Skip to main content

Posts

Showing posts from February, 2011

Interview at Progress Software

I have given a lot of interviews before however, this one was special. Let me start from the beginning. I got a call from Progress Software and was scheduled for the first telephonic discussion. Next day, I got a call from HR and she asked me questions on Java and a few basic puzzles.  After clearing the previous round, I got scheduled for the second telephonic interview. This interview covered Java, design-related problems and algorithms. After a week, I got a call from the HR for the onsite interviews in Hyderabad. This is the first time I googled about Progress Software. I said yes for the onsite interviews. Journey to onsite started not as planned after my flight got delayed. Because of fog-related delay in Delhi, I reached the PSI (Progress Software India) office couple of hours late.  HR introduced me to the first interviewer. The interviewer explained the first round. It was a coding round (I am not a big fan of coding rounds), the problem was ...

Java API for Print, Browse, Shutdown from Simple Java Program on Windows OS

I have been working on a app which takes the commands from database and execute on a windows machine (XP,Vista & 7). Commands include browse(given a link), print (given a location) and shutdown the machine. I have utilized the Java Desktop API for solving this problem i have used  this post . All you need is following three snippets: 1. Get Desktop instance: Desktop desktop = null; if (Desktop.isDesktopSupported()) { desktop = Desktop.getDesktop(); 2. For Browse/Open file:          File file = new File("url");          desktop.open(file); 3. For Print file:            File file = new File("url");          desktop.print(file); 3. For Shutdown file:  Process child = Runtime.getRuntime().exec("shutdown -s");