Crazy Idea

how to (politely) stop a find process after the 1st match
April 26, 2007, 12:26 am
Filed under: howto


I’m on windows(cygwin); Every now and then, I run a “find” task which finds the file and then continues searching for a lot more time . I’d like it to abort after the 1st match.

eg : find . -type f – iname “foo.txt” -exec xemacs.bat {} ;

Is there a way to tell find that “hey, after you find the 1st match(a file), do the exec piece and then quit the find part of it ?

I know that I could create a .bat file that finds who its parent process is and terminates it. But is there a more nicer way ? 🙂

Thanks for any hints.


Java 6(Mustang) upgrade path hurdles ?
December 21, 2006, 6:38 pm
Filed under: howto

I changed my default java to java 6(from java 5), and what do I find : My build is broken! Why ?

javac complains
1) xxxxStatement is not abstract and does not override abstract method isPoolable() in java.sql.Statement
2) xxxxxxStatement is not abstract and does not override abstract method setNClob(int, in java.sql.PreparedStatement

Sun’s new jdbc 4.0 introduces new methods to Statment, PreparedStatement among others.

So, a lot of projects having their own ConnectionPools and connection leakage detectors will have problems with the new JDK. Not sure if sun thought about it ? When we upgraded from java 1.4.2 to java 1.5, we had to fix a bunch of code to get it working in the new compiler but java 6 was advertised as no hassle upgrade!

What happens when we run pre-built java(say java 1.4.2 or java 1.5) programs using JDK 6 ?

gmail bug ?
November 15, 2006, 6:09 am
Filed under: howto

I wanted to created (yet) another gmail account

So, I went to my usual account and sent an invite to my yahoo account. At yahoo mail, I clicked on the link in the invite email. This brought me to another tab (in firefox) and I entered my details and submitted the form. I was taken to the gmail welcome page.

Then I clicked on the “Ready : take me to my inbox” and when I clicked on that, i was taken to my original gmail account (from which I had sent the invite to the yahoo account) rather than the new gmail account!

Not sure if this is a security bug — if anyone from gmail(cedric, josh, …) is interested, I can give more details.

August 25, 2006, 9:46 am
Filed under: howto
ZOHO writer. cool app

wow, it’s good to know that this will let me edit multiple documents at the same time.

it’s free and pretty decent. But……., can it let me import WORD docs ?

RFE(Req For Enhancement) : Add SVN
March 4, 2006, 1:18 am
Filed under: howto

hi there sun/oreilly/ admin,

public request to add subversion to

Sourceforge has had port 80 access to their CVS servers for a while. Recently, they added svn support .
For a long time java did not have good hosting options. Now we have a few good options(Contegix seems to be the most popular). If only one (Tim Bray, Jonathan, Phipps) of Sun’s smarties can nudge their team to add svn support and somehow make it easy for a java enthusiast/developer to host their applications on solaris, that would be great. Apart from offering free evaluations and free servers , sun should make it easy (in the absence, currently, of outside interest) for java developers to have their applications hosted.

Just like Intel invests in companies(that increases the presence of intel) worldwide, sun’s investment arm should invest in some ISPs, hosting companies that popularize java/solaris/sun.

Investing in Javalobby might make sense. How about Javaforge ?
Am I talking sense ?



Technorati tags : sun evangelism investment developer java solaris

Gmail for other domains
February 14, 2006, 4:34 am
Filed under: howto

I now understand the significance of google offering gmail for domains. at first I thought that this was a good way to monetize stuff. But only after using the chat feature in gmail just now did I realize how this would make gmail a very good collaboration tool for corporations. Imagine having the capability to chat with people in the same gmail ui where you have all your contacts. That would be really cool as long as I can have multiple conversations. If we add voice chat to the gmail interface, then we will have a full featured service. Given that skype is allowing for conferencing facility in a pc for upto 10 contacts, if gmail voice chat can replicate such a feature and integrate it into the same ui, that would be the ultimate!

Adobe Acrobat Reader tip
February 11, 2006, 5:16 pm
Filed under: howto

Just a note for myself,

While pasting a code snippet from Agile Web Development with Rails, noticed that I was getting the line number info too. AcrobatReader does NOT give the whitespace(WYSIWYG) in between the lineNumber info and the actual code while copying. I didn’t want to bother with deleting this info by hand(or by macro), so I tried keeping the ALT button pressed and then did a COLUMN/RECTANGLE copy. This feature is available in the MS-OFFICE product suite and it was good to know that acrobat reader(6.0) has the same feature.