Man of Vision...

If you interpret things really literally there's a lot of fun word jokes to be found. Here's one: You don't have to be a man of vision to be successful in the radio broadcasting industry... but you do have to have a good ear for business. :D Continue reading →

Game of Thrones, season 2 - one month to go!

To celebrate there's only a month (unfortunately a long month, but still) left until season 2 of Game of Thrones premieres (April 1, 2012), I've collected some trailers and teasers from youtube! I like this trailer the most, it just has this... we're-plotting-to-kill-each-other-feel to it, however these two are also... Continue reading →

Pure silence is added whenever possible.

Couldn't help myself! I'm using some random text (Lorem Ipsum) in an application (I took a couple of sentences, split them up into words and randomized them into a new "text"), and I got curious about what would happen if I took my random text and run it through Google... Continue reading →

The glass is empty and full

The glass is empty and full, because: 0.5 empty glasses = 0.5 full glasses 2 x 0.5 empty glasses = 2 x 0.5 full glasses 1 empty glass = 1 full glass It's just like eating the cake and keeping the cake... I mean pity those who eat the cake... Continue reading →

How do you log to the Windows event log from C# .NET?

This seems to do the trick if you want to log to the Windows event log: private void logError(string message, string source) { System.Diagnostics.EventLog log = new System.Diagnostics.EventLog(); log.Source = source; log.WriteEntry(message, System.Diagnostics.EventLogEntryType.Error); log.Close(); } private void logError(Exception exception, string source) { logError(exception.ToString(), source); } Put it in your class,... Continue reading →

Happy 09-09-09 09:09

Summer is nearing its end, autumn leafs are everywhere, yellow, red and brown... unless you're in australia... eh or by the equator? Regardless, this is kind of a hoax since I'm writing this in March.  But still, I've discovered the timed post, and so, this hour being very special I've... Continue reading →

Human society

A good way to understand human society is to realize that any large group of people will be represented by those individuals belonging to it that are most conspicuous, loudmouthed and newsworthy... Continue reading →

Is Java pass-by-value or pass-by-reference?

The question if Java passes parameters by value or by reference seems to be one of the things newcomers to the Java language stumble upon quite often. In general the answer is simple: Java is always pass-by-value. What does this mean? Pass-by-value means that you get a copy of the... Continue reading →
« First « Prev 21 22 23 24 25 26 27 28 29 30 Next »