Resizing Mac Partitions on-the-fly

Macintosh, OSX, Tricks
As of OSX 10.4.6 you get a extra bonus if you use the terminal and run diskutil. The new addition is the function resizeVolume. Note that this command works only on Intel Macs with hard disks formatted using the GPT (GUID Partition Table) format with a journaled Hierarchical File System Plus (HFS+) file system. This is the default for Intel Macs’ hard disks.To use the resizeVolume command, you need to get some information: you must be able to specify which partition you want to resize. You also need to know the partition’s size limitations, since it must be big enough to hold data already on the disk. To find the partition’s name, type diskutil list in Terminal. Press return and you’ll see a list of all the disks on your…
Read More

Streaming Quicktime from Nokia N800 Internet Tablet

Darwin Streaming Server, N800, Nokia, QTSS
Let me start by saying that I found the recipe for this on Josh Lifton's website. So most of the credit really goes to him. I've just simplified (and expanded) his method to cover generic quicktime streaming.So basically what we want to do is to connect the N800 to a network, setup a quicktime server (or darwin streaming server for people who don't have access to OSX server) and get the N800 to create a H.263 stream (audio and video) and send it to our server. Sounds easy right?Here are the bits you need:N800 Internet tabletMac (or PC) with Quicktime 7 (or higher) installedA server box running OSX server (can be the same machine as above) or a PC running Darwin Streaming server.Recipe for N800Assuming you have the N800 powered…
Read More

Set/Change the default Umask…

Macintosh, OSX, Tricks
Open Terminal, and then type this command, followed by the Return key:defaults write /Library/Preferences/.GlobalPreferences NSUmask #defaults write -g NSUmask -int #The first sets the system default, the second sets the per-user default. The NSUmask may not be honored by software that has not been adapted for OS X. # is the umask (per umask(2)). It may, however, be in decimal instead of octal.
Read More

Turn off Dashboard…

Macintosh, OSX, Tricks
Open Terminal, and then type this command, followed by the Return key:defaults write com.apple.dashboard mcx-disabled -boolean YESThis tells the system that you no longer wish to have Dashboard available. However, the Dashboard task is actually “owned” by the Dock, so to make your changes take effect, you need to restart the Dock. The easiest way to do that is to type this command into the Terminal (and press Return when done):killall DockAfter the Dock restarts, hit F12 and you’ll see…nothing at all. If you run Activity Monitor, you also won’t find any Dashboard widgets in the list of tasks, even if you had several open when you ran the above command. Dashboard has been eliminated from your system, and won’t return until you tell it to do so. You can…
Read More

Change the screenshots file format…

Macintosh, OSX, Tricks
To change the file type that OS X outputs when using the command + shift + 3 or command + shift + 4 (with or without the spacebar after) in Tiger launch Terminal, and depending on what file type you want outputted, type the appropriate line below followed by return:defaults write com.apple.screencapture type pdfdefaults write com.apple.screencapture type pngdefaults write com.apple.screencapture type jpgdefaults write com.apple.screencapture type tifQuit Terminal. One caveat: You must restart your computer for the change to take effect right away. To revert to the default png format, type:defaults write com.apple.screencapture type png as shown above, or delete the com.apple.screencapture plist file in your user preferences folder (again, you need to restart). You can test out different formats, just remember to restart your computer when you are done or…
Read More

Customize those tooltips…

Macintosh, OSX, Tricks
Tooltips are those 'helpful' yellow tags containing messages that sometimes appear when the mouse pointer hovers over controls in many programs. For various reasons, I sometimes find aspects of their implementation to be unsatisfactory. Fortunately, it turns out to be possible to tweak tooltip characteristics (at least in Cocoa apps) to some extent, by adding various properties to the .GlobalPreferences.plist file, or an individual program's .plist file.Some of the available properties (their functions are more or less self-explanatory) include:defaults write -g NSInitialToolTipDelay -int 10000 (time in ms)defaults write -g NSToolTipAutoWrappingDisabled -bool true (or false)defaults write -g NSToolTipsFont -string fontname (substitute fontname)defaults write -g NSToolTipsFontSize -int 10 (or some other font size)Note that this will only affect programs launched after the change is made.
Read More