Thursday, August 27, 2009

Quartz: pause all running jobs

We have a requirement to pause quartz jobs while complex changes are being made to our webapp.Use Scheduler.pauseAll() to pause them. This will pause future triggering of jobs but it doesn't stop jobs which are currently running.

To find if any jobs are running currently, size of scheduler.getCurrentlyExecutingJobs() list can be checked. Check this in a simple while loop till size is zero.

Scheduler.resumeAll() is the counterpart of pauseAll().

Saturday, December 06, 2008

Mac OSX pmset utiltiy

Had a requirement to start machine at predetermined time.
pmset utility can do the same ! Check its usage details in man pages.

Hidden utility in Mac OSX to convert html (and other formats) to pdf

Utility is located in /System/Library/Printers/Libraries/convert

Example:
/System/Library/Printers/Libraries/convert -f ~/Desktop/Quotes.html -o ~/Desktop/Quotes.pdf -j "application/pdf"

/System/Library/Printers/Libraries/convert -f Learning.rtf -j "application/pdf" > sample.pdf

Credits: http://forums.realsoftware.com/viewtopic.php?t=13436

Technical fun


Message on Mac OSX 10.4.x machine, first time when "sudo" command was used.
Last line is a classic from spiderman and got added after spiderman movie was released. Earlier Mac OSX sudo commands just gave #1 and #2 warnings. Apple's engineers certainly have humor !

Technical fun


Bug in stuffit (for Mac OS X). Too many hours to unzip ?? Classic signed/unsigned integer bug.

Technical fun



When Google says n results are found, these are approximate.
It doesn't find all the results, in this particular case, after moving to page three, all the results were exhausted, although earlier estimate was upto four pages.

Technical fun




While using the calculator on mac os X, the buttons disaapeard. Moving the mouse over them, got a few back.
Classic refresh problem.

Sunday, November 09, 2008

Drawing styles - Movie posters from south India.


Same scene can be drawn in various styles. Over time, I have collected samples of various styles. Attached are samples.

Look at the image highlighted with a red arrow. Notice the usage of few colors and wide spaced black lines.

Thursday, October 30, 2008

Portable and free apps

One of the pains of windows software is portability ! Install the app, it makes changes to registry, uninstall it, leaves registry bloated. And if you wish to backup data, you'll need to manually figure it out.


Portable Apps is a collection of popular applications which carry data along with application. It has minimum installation and no need to backup (registry, Application data, My documents, etc). And it is FREE.


Check out the entire list of applications available at http://portableapps.com/

Tuesday, May 04, 2004

Watched Kill Bill рез

Watched Kill Bill vol 1. Amazing movie it is. Quentin shows his genius in each stroke. Dialogues and actions are precise. Lots of action. !!

Thursday, April 29, 2004

This is my blog !

Hello World !

this is the more than a hello world blog ;)

The latest news:
Went on a trekking trip to AzUsa, california. That was a big group, total 16 guys.
Then roamed around in Los Angeles, saw USC campus. Met Sumit and his roomie.
Visited Universal Studios. Chaitnaya, Gaurav, Shyam & I had tons of fun!