Tiny Deathstars of Foulness

Consultant $93,017 (up by 3.68%) 

Full-time work at company $72,003 (up by 1.73% )

May 30th, 2007

Posted In: Business, Consulting

Tags: ,

In Mac OS X you can use cron to schedule tasks but you can also use launchd.  To use launchd to load or unload an agent where you’ve setup a task use the launchctl command.  Here we will use launchctl to manually start a process given that we defined a plist called /Library/LaunchAgents/ (where program is maybe the name of some program you want to fire up):

launchctl load Library/LaunchAgents/

Your application should fire up now.  Do not quit it for ten seconds. Wait about 15, then quit it. Notice it start up again. This is because it is a launchAgent and will restart any time it is closed.  Now run:

launchctl unload Library/LaunchAgents/

Watch your program close.

May 29th, 2007

Posted In: Mac OS X, Mac OS X Server, Mac Security

Tags: , , ,

vmrun -T server -h -u hostUser -p hostPassword -gu guestUser -gp guestPassword runProgramInGuest “[storage1] vm/myVM.vmx” /usr/bin/X11/xclock -display :0

May 28th, 2007

Posted In: VMware

Tags: ,

All volumes have a block size. In Mac OS X you can see a block size by entering the following command (assuming disk0):
sudo diskutil information 0

If you notice in the Total Size: field you’ll see the number of blocks followed by a block size. By default it is 512 bytes. One of the things that makes it possible to attain high performance from an Xsan volume is the ability for the block size to be customized. The general rule of thumb is that the Stripe Breadth and the Block size should multiply to equal 1MB. So if you have a block size of 256 then your stripe breadth should be 4.

May 27th, 2007

Posted In: Xsan

Tags: , ,

May 26th, 2007

Posted In: Unix

Tags: ,

May 25th, 2007

Posted In: Mac OS X

Tags: , , ,

May 24th, 2007

Posted In: Mac OS X, Mac OS X Server, VMware

Tags: , , , ,

May 23rd, 2007

Posted In: Ubuntu, Unix

Tags: ,

May 22nd, 2007

Posted In: Mac OS X

Tags: , , ,

May 21st, 2007

Posted In: Mac OS X

Tags: , ,

Next Page »