April 2011
6 posts
Convert to MP3, ffmpeg and Applescript
AppleScript to convert lots of audio files into mp3. At first, I had aac set as the output format, but it said that wasn’t a suitable output format. So to convert to AAC, drop into iTunes and convert.
Requires MacPort installation of ffmpeg.
Room for improvement:
escaping characters in file path
selector for fileformat
better input format detector (to remove extention)
The code:
on...
Comic Strips to Comic Book Pseudocode
This isn’t written in any particular language and represents a sketch of what a program might look like that takes a directory of images and creates static images to be zipped into a CBZ file or similar. Since this is “pseudocode” it is not meant to actually function in it’s current state and would need to be re-written in the language/environment of your choice which I...
Nine down to Two
I find the following example to be what I enjoy about writing code before I get to execute it.
Nesting if statements to sketch out an idea in 9 lines:
if Condition_A then
if Condition_B then
set OutputValue to (2 * Var_1) + Var_2
else
set OutputValue to Var_1
end
else
set OutputValue to Var_1
end
I noticed the Var_1 term being in each case. So instead, I...
Feature Request - Keychain Access Advisor
In regards to services such as the Playstation Network being hacked and personal data being stolen, it would be nice to have some view in Keychain Access that would aid in changing my passwords.
The problem as I see it is that if you use a selection of passwords, or a scheme of passwords (a changing password with some sort of static or similar portion) and one of those passwords becomes...
Excel Rant
I hate Excel’s Developer Ribbon which you have to enable separately, so that tells you that MS doesn’t feel it’s a real feature to headline. iWork Numbers will let you format cells as checkmarks, it’s a number style like currency or time & date.
Excel has not had this sort of idea. Instead, they rely on a gui for placing checkmark elements on an active sheet, and then...