Archive for December, 2009

Create an iPhone ringtone on Mac

Saturday, December 26th, 2009

This “how to” will guide you through the process of making an iPhone ringtone from a mp3 file using free tools on Mac OS X. I’m pretty sure most of those steps can as well be reproduced on Windows, since both applications we’re going to use — Audacity and iTunes — exist for both systems.
Read the rest of this entry »

“Building boot caches” error when changing startup disk

Friday, December 11th, 2009

Once I tried to change the default startup disk on my Mac running Snow Leopard and the following error appeared: “you can’t change the startup disk to the selected disk. Building boot caches on boot helper partition failed”.
Read the rest of this entry »

“Failed to expand the files” error

Thursday, December 10th, 2009

Getting “failed to expand the files” while installing Canon camera software, such as ZoomBrowser Ex? Just turn off your antivirus.

BBEdit preview shows raw PHP code

Thursday, December 10th, 2009

If your BBEdit preview shows raw PHP code, go to “Preferences” and configure a “HTML web-site” with “Use local preview server” ticked.

Launch character palette using AppleScript in Snow Leopard

Sunday, December 6th, 2009
tell application "CharacterPalette" to activate

There is an issue though: the new character palette doesn’t get “bound” to any of the applications, therefore double-clicking a symbol doesn’t paste it automatically to the text field. You’d have to drag-and-drop.

I’m posting this because most results from Google were telling me to launch a “.component”, and that “.component” doesn’t exist on my Snow Leopard system.

Restrict page access to authorized MODx managers only

Sunday, December 6th, 2009

A while ago I needed to create a private zone with documentation, accessible only by the MODx managers. In order to restrict access I wrote a simple snippet, which you can now use as well.
Read the rest of this entry »

Add an <option> to a <select> using Mootools

Sunday, December 6th, 2009
var newoption = new Option("option html", "option value");
try
{
	$('myselect').add(newoption, null);
}
catch (err)
{
	$('myselect').add(newoption);
}

To select the newly created option:

newoption.setProperty('selected', 'selected');