There's an interesting blog article on MSDN about Enterprise Architects. Check it out:
http://msdn2.microsoft.com/en-us/library/bb945098.aspx
You may also want to take a look at some other blogs by Microsoft Architects:
http://msdn2.microsoft.com/en-us/architecture/aa699386.aspx
Sunday, November 4, 2007
Friday, November 2, 2007
Resource files in Java
Just as we have resource files when developing with .NET, Java can read from resource files located in a directory listed for the class path.
You can use one of the following two statements depending on the context from which you want to read the resource file:
You can use one of the following two statements depending on the context from which you want to read the resource file:
[className].class.getClassLoader().getResourceAsStream
("filename"); //to call from a static context
this.getClass().getResourceAsStream("filename"); //to call from a non-static context
Bridging Business and I.T.

In many firms, the department working on the core business shares little with the I.T. division and they talk completely different languages. Here's a little comic that I found at: http://www.insurancebroadcasting.com/Cartoon_2.gif
Findstr to grep on Windows
If you've been using grep all week only to come home to an PC running Windows, you're probably missing a part of your life when you leave your Linux workstation.
If you've been in the dark on the Findstr command line utility for Windows, you'll certainly love my blog for this. If you're on a text file containing huge amounts of text, such as a log file (I've got a log4net log that generates a few hundred lines every hour... that is after disabling the memcache logging) you can get Findstr to search for all lines with a particular word. Findstr does regular expressions too. It's got many of the options that grep does - printing filenames for matches, printing lines that do not match, and multiple file search.
If you've been in the dark on the Findstr command line utility for Windows, you'll certainly love my blog for this. If you're on a text file containing huge amounts of text, such as a log file (I've got a log4net log that generates a few hundred lines every hour... that is after disabling the memcache logging) you can get Findstr to search for all lines with a particular word. Findstr does regular expressions too. It's got many of the options that grep does - printing filenames for matches, printing lines that do not match, and multiple file search.
iPod Touch picky about its electrons
I just came across a blog post by Daniel Schneller about his iPod Touch being very picky about where it gets its electrons from. It can get charged via a USB port and gets charged while running Windows or MacOS but not when running Linux. The fix was to install a driver, but it seems pretty odd anyway. I connect my iMate Jasjar to the computer (irrespective of which OS is running) and sometimes to the DVD player.
I can understand people being cautious about where they get their money from to avoid counterfeit but why would an iPod touch want to know where it gets its electrons from?
I can understand people being cautious about where they get their money from to avoid counterfeit but why would an iPod touch want to know where it gets its electrons from?
An AppSettings Equivalent
I've been looking for an equivalent of the AppSettings file in Java and came across the java.util.Properties class. I haven't tried it yet but I'm guessing I've got to explicitly specify the file from which I'm going to read the properties from and save the values to. It's good enough for me.
Episode 6 of Bionic Woman missing
Bionic Woman Episode 6 of Season 1 seems to be missing. Usually the episode comes up in a search on Mininova for download as a torrent on Wednesday or latest by Thursday.
I prefer to download them before watching because I've got a slow connection :-(
I prefer to download them before watching because I've got a slow connection :-(
Subscribe to:
Posts (Atom)