URL handlers on OS X

Friday, 04. 20. 2012  –  Category: sw

Update 2012-04-25 Corrected the plist key to CFBundleIdentifier. I’ve often wondered about how to do this without monkeying in Objective C. It’s doable in (ugh) Applescript with some property list editing. Whimsical XKCD handler such that xkcd://627 behaves like http://xckd.com/627: on open location uri   set delimiter to AppleScript's text item delimiters   set AppleScript's text item […]

httperf on Linux

Monday, 04. 16. 2012  –  Category: stash, sw

“httperf is a tool for measuring web server performance. It provides a flexible facility for generating various HTTP workloads and for measuring server performance.” Set open files to 65535 via ulimit -n Recompile httperf with /usr/include/bits/typesizes.h’s __FD_SETSIZE dialled up to 65535 (( http://gom-jabbar.org/articles/2009/02/04/httperf-and-file-descriptors )) Twiddle the TCP stack for faster socket recycling (( http://www.speedguide.net/articles/linux-tweaking-121 )) […]

Moving disks from Xen to KVM

Sunday, 04. 8. 2012  –  Category: stash

Overview Moving virtual machines from Xen to KVM The storage for both is under LVM Under Xen the storage for each VM isn’t partitioned as a disk, it’s just a filesystem. GRUB under KVM will need to see a boot sector and a partition table. Under Xen the storage for each VM doesn’t contain a […]