Categories
Tags
apache apogee duet applescript bbedit bootcamp bsod canon caps lock directadmin extjs hardware highslide i18n idiocy illustrator increasing productivity iphone itunes javascript kaspersky internet security keyremap4macbook laserjet mac mac hardware mac mouse problems mac os mac pro mac software memory modx mod_auth mootools mouse pckeyboardhack printer skype steam windows windows firewall yumRecent comments
Social networks
Category Archives: Programming
ExtJs 4: password validation + random password button
This one is simple.
ExtJs 4: dealing with messages (and errors) from an Ajax or REST proxy
When sending Ajax or REST requests, a proxy of ExtJs 4 typically expects a response with the following parameters: data, success and message. The message parameter is optional, but it may come in handy when you want to show the … Continue reading
ExtJs 4: submit form on enter
It’s a shame that such a powerful framework as ExtJs 4 does not have this feature built-in.
AppleScript to mount/unmount a drive
On my Mac Pro I have two internal hard drives I rarely use. Some times they “sleep” and while doing so, every file opening dialog, search in Spotlight or search in Dictionary might wake them up and that takes some … Continue reading
Permission error of AppleScript in iTunes
I was getting a permission error (code -54) when trying to set an id3 tag of a track using AppleScript. The solution was to add a delay between each operation: delay 1 Note that the track will remain “locked” until … Continue reading
Launch character palette using AppleScript in Snow Leopard
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 … Continue reading
Restrict page access to authorized MODx managers only
A while ago I needed to create a private zone with documentation, accessible only by the MODx managers (I’m talking about MODx Evolution here). In order to restrict access I wrote a simple snippet, which you can now use as … Continue reading
Add an <option> to a <select> using Mootools
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’);