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.