I’m running an older PowerBook, one that has the capabilities to run GarageBand but (thanks to my burgeoning music collection) not the required 1.2+ GB of disk space. I wanted to install GarageBand on an external drive, loop… [Mac OS X Hints]
Category: General
MusicSafari
Surf, Listen & Record Music As MP4 (AAC)
Real, Windows, QuickTime Audio
Listen and record BBC, NPR, music videos, movie trailers, news webcasts and even Flash jingles…
focus follows mouse for Terminal.app
macosxhints – 10.3: Switch Terminal window focus with mouse movement
defaults write com.apple.Terminal FocusFollowsMouse -string YES
use NO to switch it back
base64 decoding
macosxhints – Use OpenSSL for Base64 encode and decode
With reference to the Archive attachments from Mail.app messages hint, we can use OpenSSL to convert a specific Mail attachment from Base64 and back using the following command(s):
To decode from Base64:
openssl base64 -d -in <infile> -out <outfile>
Conversely, to encode to Base64:
openssl base64 -in <infile> -out <outfile>
Where infile refers to the input filename (source) and outfile refers to the output filename (destination). Refer to man enc for more detailed information on using OpenSSL commands.
Possibly interesting things…
JDBC samples
These How-To Documents are aimed at helping developers to quickly start understanding certain JDBC features, without having to consult the detailed documentation of products or technologies.
This version of iTerm appears to have fixed my outstanding problem where terminal width was only 40 characters, even though it was reported as being 80.
The VT100 keypad seems to work very well!
AppleScript and cron
>What’s different in crontab? What can I do about it to get my
>Applescripts to run?
You’re seeing a security “feature.” It has to do with Mach
messages, which form the guts of Apple Events on Mac OS X. For
security reasons, processes in Mach are segregated into “process
groups”, and a process in one group is not allowed to send messages
to a process in a different group. Because cron gets launched at
boot time, it’s in root’s process group, while every application
launched by your login (including the Finder) is in your process
group. Therefore, a script run by cron can’t talk to any
application that you launched.
There’s something of a bug in AppleScript here, too — at its level,
it can see the application, so it tells the Apple Event Manager to
send it a message, and you get a surprising error.
It’s not clear what the truly correct solution is here — there are
valid security reasons for keeping the process group restrictions in
place. In the meantime, what can you do? Well, scripting additions
should still work, so you can use those. cron unfortunately makes
sure that only one instance of cron is ever running at once, so you
can’t launch your own personal cron, though if you’re feeling extra
studly, you could get the source for cron (it is open, after all)
and modify it appropriately.
–Chris Nebel
AppleScript Engineering
Speedup Frontier and Radio
Adding Strings – Concatenating Strings
do this optimization wherever possible when adding strings…
on add4 (s) {text = text + (s + “rn”);};
arrow keys in Terminal.app
export TERM=dtterm
this seems to make my arrows work when and where I want them to.
cool. and I can edit in Radio still
There are problems (sometimes) with emacs and other tools.
If you do this you probably don’t want “lynx” to be in color, so make lynx work like this
TERM=vt100; lynx
as a single command.