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().
Thursday, August 27, 2009
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.
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
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
Technical fun
Technical fun
Sunday, November 09, 2008
Drawing styles - Movie posters from south India.
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!
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!
Subscribe to:
Posts (Atom)