Adding mcrypt support to builtin php5 on OSX Leopard….

Apache, Apple, Macintosh, OSX, osx Server, php, Server, XServe
I got a request to add mcrypt support to our Leopard server today and here is a brief step-by-step installation instruction. This works well under the current 10.5.8 server installation. It should also work for 10.6 (snow leopard), but I have not tried it. Before you start here are the requirements: Backup your system Install (and update) the latest XCode (I've got version 3) Install X11 client stuff from your server install DVD install X11 SDK stuff from your server install DVD Ensure you have server 10.5.8 (latest update as of Feb.04.2011) Make sure you have not tried to install mcrypt using another method. We need a "virgin" 10.5.8 install (as far as homebrew/local installs) BACKUP Please note that this will add mcrypt support to php. This is NOT the…
Read More

Optimizing Snow Leopard for SSD drives….

Apple, Macintosh, OSX, osx Server
I just installed a new 128GB SSD drive in my older C2D 17" macbook Pro and let me tell you....WOW....This thing is on fire. The system is extremely responsive and apps literally jump onto the screen. The machine now boots up to full desktop in roughly 17 seconds. Now that's nice. I did do a bunch of changes to the way Snow Leopard is setup to optimize a couple of things that are normally tuned for HDD's. Turn off Sudden Motion Sensor (SMS): If you are replacing your primary (and only) HDD internal drive with a SSD, you can get a bit of a performance boost by turning off the Sudden Motion Sensor technology that comes with your laptop. Remember your SSD doesn’t use read/write head on rigid platters so…
Read More

Terminal Tip: Finding information about a mp3 audio file…

Apple, CLI, Macintosh, OSX
Here is a quick tip for you OSX command line fans. If you want to find metadata information about a mp3 file use the "afinfo" command. Very quick and scripting friendly. Here is a example: $ afinfo 08_\ Lily\ Allen\ -\ Fk\ You.mp3 File: 08_ Lily Allen - Fk You.mp3 File type ID: MPG3 Data format: 2 ch, 44100 Hz, '.mp3' (0x00000000) 0 bits/channel, 0 bytes/packet, 1152 frames/packet, 0 bytes/frame no channel layout. estimated duration: 215.249 sec audio bytes: 5167920 audio packets: 8240 audio 9490176 valid frames + 576 priming + 1728 remainder = 9492480 bit rate: 192000 bits per second packet size upper bound: 1052 maximum packet size: 731 audio data file offset: 32353 optimized ----
Read More

Map any network drive to Mac OS X that auto mounts after system reboot

Apple, Macintosh, OSX, osx Server, Tip
Here is a quick recipe for making a network drive auto mount on your OSX machine. This works with pretty much any protocol supported by Finders "Connect to Server" option. Here is how you do it: From the Finder, hit Command+K or select Connect to Server from the Go menu. You'll see the following window, enter the relevant information (ie: the network drive location, be it afp:// or smb:// or http://) and hit Connect button. Enter your login/password and click “OK” Make sure your Finder Preferences are set so Network Drives are visible on your desktop: At this point you should have a icon like on your desktop Now go to System Preferences under the Apple menu Click on the Accounts icon under System and select Login Items tab (you…
Read More

Reset iTunes 10 window control buttons

Apple, Macintosh, OSX, osx Server
Not sure what's happening lately in the Apple UI design department. Someone over there decided to reposition the window control buttons (you know x,-,+ aka. close,minimize,maximize) vertically in the latest itunes10 (see pics below). If you prefer the old (proper) way of having them ordered horizontally (see picture above), you can use the commands below: defaults write com.apple.iTunes full-window -1 If you need to reset it back, you can use the commands below: defaults write com.apple.iTunes full-window -0
Read More

Restarting into Mac OS X using the command line, when running Windows…

Apple, Macintosh, OSX, osx Server
Okay so this only works in Boot Camp 3.0+ which comes with Snow Leopard (10.6). If you ever find yourself in Windows and need to quickly -- using command line -- change your boot option to reboot into OSX (process known under OSX as blessing) you can use the following command:c:\progra~1\Bootca~1\bootcamp.exe -StartupDisk "Mac OS" Shutdown /r /t 0This will reboot your windows session and boot the machine back using the Volume named "Mac OS". If you omitt -StartupDisk option, then the system will boot into the first Mac OS X volume located by BootCamp.exe. Done :-)
Read More

Forcing 64-bit mode when booting OSX 10.6 (Snow Leopard)…

Apple, Macintosh, OSX, osx Server
You all probably know about the trick with holding down 6 and 4 keys on your keyboard to force OSX 10.6 to boot using the 64-bit kernel. What you might not know is that it's temporary and the next time you reboot, you're back to using the 32 bit kernel. Now I can't guarantee that your machine will not catch fire and blow up (just kidding).....but if you know what you're doing and want to have 64-bit kernel goodness all the time you can do the following:sudo vi /Library/Preferences/SystemConfiguration/com.apple.Boot.plistModify the file to make it look like this:<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict><key>Kernel</key><string>mach_kernel</string><key>Kernel Flags</key><string>arch=x86_64</string></dict></plist>basically add "arch=x86_64" (without the quotes) to the line that reads<string></string>That's it....reboot and enjoy Full 64-bitness....to undo this (if something breaks), edit the…
Read More