Two quick points:
1) The new forum is missing the "new post" at the bottom of the view-thread page. Can you add it again, please?
2) I think the stamp would be very useful if it worked on digital files (i.e. Visual Basic source code.) I don't think it's all that practical for paper only. There just aren't enough printed wtf, compared to digital ones. I think the idea of the logo as a real 'thing' is cute, but not practical. Coffee mugs would be much better. They actually serve a purpose (drinking beverages) that is usful in everyday work, and you can still communicate the point by holding it up to peoples faces when they start talking nonsense. Works great in meetings too. When the guy from marketing starts requesting new features, just slowly move the cup to your mouth and shake your head :-)
Nand
@Nand
Best posts made by Nand
Latest posts made by Nand
-
RE: CS 2.0 Upgrade Status
-
RE: Not all your font are belong to you
Sorry, I don't have a serious answer.
1) Drop to the command line, and replace Tahoma.ttf with Corbel.ttf :)
2) hook ("Rootkit") the GetFont...() system call of the win32 API, and set the font size parameter to an apropriate minimum.
.. and then watch all the dialogs with static layouts and fixed dimensions cut off your new, nice, big and shiny fonts. -
RE: Firefox, large tables and images
@TDC said:
No, it's not the memory.
But at least a part of it really boils down to the Adblock-Extension.
White-listing the test page/deactivating Adblock reduces rendertime to about 4 seconds for me (which is still unnormal high and far away from instantious though)
Can anyone confirm this or even come to a normal rendertime with deactivated Adblock?
Is there anyone experiencing this without having Adblock?
Are all the guys who have instantious rendering running their Firefoxes without Adblock?
It's not enough to deactivate AdBlock in the adblock preferences. You have to actually disable the extension (tools->Extensions). When you merely turn off ad blocking it still parses the page.
With adblock removed/disabled, the page renders instantaneously on my system.
-
RE: Firefox, large tables and images
My guess is that this is caused by some kind of extension, i.e. AdBlock testing the image url 50*50 times against each regex in the AdBlock file.
-
RE: C# Threads
I hope I'm missing something here.
This is an ASP.NET app that runs on top of a web server?
It's started by a client accessing the page, "FORKS" a new thread (inside the webserver?!) that is suposed to stay running and, every 5 minutes perform some database maintenance?!
W T F
If that really is the case, then I would assume that the script (and all children) is KILLED as soon as the client disconnects after all output has been sent.
I don't see how this is supposed to work in practice at all. Do you access the ASP page and leave the browser open all day long to make sure the script runs? Does it really run in the background, and what happens when you access the page multiple times? do you end up with thousands of background threads all performing the same work?!
You should do something like this:
- Write a stored procedure that updates the rows when new data is inserted.
- Update the rows in the script that inserts the new data.
- Write a standalone C# application that performs the maintenance.
- Update the rows when the data is accessed.
I hope I just don't understand what you're doing :) -
RE: Idempotency and cookies?
Just as easy: Set up mod_rewrite translate:
http://www.example.org/text/page.php?foo=bar
into
http://www.example.org/page.php?foo=bar&mode=text -
RE: Another question for the database gurus out there
I would thought the same thing you did: calculate an MD5 hash and use that. I would hash the data rather than the current time however. That just seems more logical, (but really doesn't make a difference.)
As far as the cookie discussion goes, it would be trivial to pass the "cookie" in the URL.
http://www.example.org/download/d80ac87e2c1bf882bc47084de96bd8c4/files.zip can be easily rewritten into /download.php?auth=d80ac87e2c1bf882bc47084de96bd8c4. That will work with any browser/download manager. -
RE: The Other String
Well, this problem calls for an Enterprise-worth solution!
public class StrBool {
String [] values;
int index = 0;
public StrBool(String ... values) {
this.values = values;
}
/**
* @return the next String in the series
*/
public String get() {
if( values == null ) {
return null;
}
index %= values.length;
return values[index++];
}
public static void main(String [] args) {
StrBool color = new StrBool("white","gray");
System.out.println(color.get());
System.out.println(color.get());
System.out.println(color.get());
System.out.println(color.get());
}
} -
RE: Useful classes
That is so incredibly useful! I can hardly believe it. It's a Java Bean wrapper for a String! It may be badly named, but the design is absolutely bomb-proof.
Eclipse can autogenerate that code with about 3 clicks, so I hope that's what happened.
The only reason for this codes existance must be someone unaware of their own framework, trying to hack random Beans together to store some data. Was the author named Paula by any chance?