| Title | Description |
| Where was this class loaded from?! |
There are many ways to figure out where a class is being loaded from. Naveen uses the -verbose flag of the JVM to figure out where a class is being loaded from. If you are using Pramati Server, then you can use the command: who_load_me to find out which classloader loaded the class, the classloader [...] |
| Moved out of blogger |
When I first setup this blog, I chose blogger because it would let me publish (using sftp) to a server at my alma. This way neither was my data locked into any blogging service nor did I have to install any software on the server. For the past six months or so I have been [...] |
| Chasing the cause for performance degradation |
Spoiler: The last three pictures speak more than the thousand odd words that precede them Day before: Too many issues resizing photos in Java. Takes too much memory, takes too long, runs out of mem on Mac. A quick comparison with ImageResizer PowerToy shows that the Java code is taking too much memory and time. [...] |
| Yahoo! messenger archive file format |
The first step to get my Yahoo! messenger (YMessenger) conversations into windows desktop search is to decode the conversations stored in YMessenger archive files. If you enable message archiving, YMessenger saves all the conversations with your friends in C:\Program Files\Yahoo!\Messenger\Profiles\${userid}\Archive\Messages\ directory in files with the extension .dat. The menu option Contacts -> Message Archive shows [...] |
| Addicted to search |
For as long as I can remember, I have been too lazy to use: my fingers to type and my brain to remember things. When I used to work on linux, I used to rely heavily on the locate command to search and open files vi `locate math.h`. This was something I missed a lot [...] |
| Neal Gafter’s proposal for constructor type inference |
Neal gafter has proposed that java language include Constructor Type Inference in order to reduce verbosity. So what was Map<String,List<Thing>> map = new HashMap<String,List<Thing>>(); looks like: Map<String,List<Thing>> map = new HashMap<>(); Though there is an alternate proposal to deduce the LHS type instead, like: map := new HashMap<String,List<Thing>>(); I find Neal’s proposal more appealing and [...] |
| Why do catch clauses need to be ordered? |
Looking at question #15 on JDJs Secrets Of The Masters: Core Java Job Interview Questions (Secrets of the masters???!! Whhoaaah!!), I was reminded of the question Vinod once asked me: “Why do catch clauses have to be ordered?” It is generally known that, in Java, the order of the catch clauses is important. The more [...] |
| Backward compatibility of specified, under-specified and un-specified features/API |
Backward compatibility is a challenge for everyone from the guy writing the kernel to guy building the application. Raymond Chen has written a lot of anecdotes on compatibility issues in windows. (See Compatibility Constraints and Handling Compatibility Hacks.) He has also authored a book with the same title as that of his blog: The old [...] |
| Enum and other Java 5 tricks … |
Deepak has finally started blogging at Deep into Java. He has been sharing some neat tricks like Bootstrapping static fields within enums. Thanks for the tips buddy … look forward to more of them. Share: |
| Got Phished :( |
I booted my laptop early this morning to get my daily dose of Google alerts. Navigating through the alerts I ended up at: The Museum of Modern Betas and browsing through its entries I chanced upon Google’s firefox extension for detecting phishing: Safe Browsing. While I was going through their site, I noticed the yahoo [...] |