SVN externals 1
Here is how to set a directory to fetch as an svn:externals directory. I keep forgetting this. Now you can remember it too.
#make sure your editor variable is set, find the editor
# or which vi or whatever
which emacs
#no spaces in EDITOR="
export EDITOR="/usr/bin/emacs"
cd THE-DIRECTORY-YOU-WANT-EXTERNAL-TO-BE-IN
#propset the svn externals on the current directory, this pops up the editor
svn propedit svn:externals .
# in emacs --- in emacs -- in emacs one directory per line.
apache-ant http://svn.repository.my/apache-ant/trunk/
# you saved the file, back in the shell
#download the repo as the new directory directory-name, in this case apache-ant
svn update
DONE
Heres a list -o- useful mac software.
MUST HAVE
super useful app like finder on steroids http://quicksilver.blacktree.com/
most excellent project timer widget http://www.microcore.dk/TheDailyGrind/
good countdown timer widget http://www.metabang.com/widgets/stop-it/index.html
list of osx shortcuts widget http://www.apple.com/downloads/dashboard/reference/xcuts.html
dashboard wiki ( not super useful but fun ) widget http://inkspotting.com/wikity/
All the linux programs ( for mac ) – recommended http://www.macports.org/
There is something very similar called http://finkproject.org/
trick out safari http://pimpmysafari.com/plugins/safaristand
PRODUCTIVITY
open office with cocoa mac look and feel http://www.neooffice.org/neojava/en/index.php
project management just started using this one, no opinion yet http://bargiel.home.pl/iGTD/
mailing list software http://imailistproj.sourceforge.net/
billing and invoicing http://www.prettygoodsoftware.org/
screencast software ( make a movie of your screen as you do something ) http://www.shinywhitebox.com/home/home.html
enveloper maker http://www.ambrosiasw.com/utilities/easyenvelopes/
set alerts for most anything on your system, alot of good software plugs into this http://growl.info/
PROGRAMMING
terminal replacement, tabbed terminal http://iterm.sourceforge.net/
cocoa mysql http://cocoamysql.sourceforge.net/download.php
enable the local mailserver for testing of php mail functions http://cutedgesystems.com/software/PostfixEnabler/
text editor http://macromates.com/
really useful firefox plugins https://addons.mozilla.org/en-US/firefox/addon/1843 https://addons.mozilla.org/en-US/firefox/addon/60
COMMUNICATION
RSS news aggregator (free and good) http://www.utsire.com/shrook/
multi client chat http://www.adiumx.com/
ftp / sftp http://cyberduck.ch/ or http://code.google.com/p/macfuse/
irc client http://colloquy.info/
vnc http://sourceforge.net/projects/cotvnc/
remote desktop ( terminal services ) http://www.microsoft.com/mac/otherproducts/otherproducts.aspx?pid=remotedesktopclient
control outbound connections http://www.obdev.at/products/littlesnitch/index.html
bittorrent client http://azureus.sourceforge.net/
wifi sniffer http://www.istumbler.net/
network sniffer http://kismac.de/
MEDIA
RIP MP3’S AT HIGH SPEED uses lame to rip mp3’s and itunes to give them the names. Must compile lame for osx, install apple development tools, you need the c++ compiler, you will not need to actually compile stuff, macports does this for you. install macports, then from terminal as root, “port install lame” http://blacktree.com/apps/iTunes-LAME/
movie viewer http://www.videolan.org/vlc/
view windows media files http://www.flip4mac.com/
mount your ipod and retreve music without Itunes http://ipoddisk.ourbiti.com/
sound editor http://audacity.sourceforge.net/
guitar tuner http://www.silencetostatic.com/software/guitartuner1.0.zip
HELPFUL
windows helpfile viewer for osx http://chmox.sourceforge.net/
mind mapping software ( helps get ducks in row or vector in java speak ) http://freemind.sourceforge.net/wiki/index.php/Screenshots
FUN
mac saber http://isnoop.net/blog/2006/05/20/macsaber-turn-your-mac-into-a-jedi-weapon/
screensaver of earth with live overlays of clouds. http://www.osxplanet.com/
alot of cool screensavers ( he wrote winamp ) http://www.jwz.org/xscreensaver/screenshots/
Sftp in the osx finder
A while back I found a nifty utility that allows you to browse other server via sftp through the finder. http://toadstool.se/journal/2007/01/12/first-look-at-macfuse-and-sshfs
osx command line to clipboard 2
pbcopy and pbpaste are command line tools that take standard in and put on the system clipboard. Useful when noodling around with config files.
... the new black
Design by numbers
I look at the Pantone Fashion Color Report to see whats hot for colors. This makes it easy to choose color families for designs.
The colors below are not correct. If you make the CMYK in illustrator you will get the correct colors ( I think )

SSH as a VPN
I found this example on using ssh as a vpn.
You can use SSH to set up a socks proxy on a remote Mac where you have an account.
First setup the remote Mac:
- Make sure you set up a user account on the remote Mac, and that all user accounts have a strong password
- turn on “remote access”.
- If the remote Mac is behind a router, you will also need to give it a manual internal IP address and to set up port forwarding on your router to forward port 22 to that manual internal IP address.
- You will need to leave the remote Mac running (turn off sleep and set it to restart if there is a power failure).
- You will need to know the external address of the remote Mac, so note it, and if your isp regularly changes it, you will need to purchase a service that regularly informs you of the remote Macs current IP address.
Once set up as above, you start up the proxy from your local Mac using the terminal application and the command:
ssh username@xx.xx.xx.xx -D 2001
where username is your short username and xx.xx.xx.xx is the remote Macs external ip address. You will need to enter your password.
Now set Firefox on your local Mac to use a socks 4 proxy on 127.0.0.1 (localhost) port 2001, and you can use www.showmyip.com to verify your proxying through the remote Mac.
Now your web traffic will be proxied and encrypted between your local and remote Mac. This should also work with other application that allows you to set a socks 4 proxy.
There is some risk in having remote access setup on a computer which is constantly on the internet. Strong passwords can help deter hackers, but for further security, there are ways to change the port that remote access uses, or to disable passwords and use only encryption keys for access. Others in this forum can give you the details.
OSX Webdav SVN
Osx can mount a subversion repository over webdav. The repository appears as a network drive. Any changes to files in the repository are autocommited. Cool, except..
The svn repository is filled with one .DS_store file for each directory. Annoying
type this in a terminal window and restart.
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
No more problem.
MP3 ripping on osx
I needed a mp3 ripper for our wedding, gotta make a mix-tape. I don’t have an Ipod with a screen so want to use a friends. Can’t use a friends with music ripped with ITunes ( Digital Rights Management ). So I looked for mp3 ripping software and gui for osx. I wanted something like CDEX on windows. I found an OK solution in LAME ( compiled for Intel Mac ) and iTunes-LAME
iTunes-Lame uses iTunes to gather the info on a CD but uses LAME to encode it ( no DRM!!! ) http://blacktree.com/apps/iTunes-LAME/
http://sourceforge.net/projects/lame
To use LAME on osx intel you have to compile it.
open a terminal ( Applications:Utilities:Terminal ) and type
su root
cd <directory where you unzipped lame>
./configure
make
make install
The PPC binaries of programs which use lame ( compiled for PPC ) ripped at about 1.8x. The Intel compiled version rips two songs at a time (one per processor) at 7x-8x each. Its worth compiling for.
CSS3 Multi-column printing of a webpage
I have written some reports for a real estate brokerage I am building a site for, they are printouts of all the agents 300 or so. The office uses these as phone lists. They wanted it to print out mulitcolum like MS-Word multicolumn. Trouble is if I made it one huge table spit in 2 columns you would get a-m in column one and n-z in column 2, not flowing on each printed page. Enter CSS3.
I heard about CSS3 support in some browsers, and though I would give it a try in firefox.
<style type="text/css">
#wrap {
-moz-column-width:20em;
-moz-column-count: 3;
-moz-column-gap: 20px;
}
</style>
Here is the CSS code for a <div id='wrap'>list goes here</div>.
Works great.
Backup your MySQL databases and your user folder on your mac with Automator
I have been backing my stuff up weekly using an applescript. But ran into a wall trying to automate the mysql backup. The issue is I have ALOT of development databases and I do not want a single dumpfile, else I would have to blow away and rebuild everything if I needed a refresh of one table. I wrote this nifty automator script.
- 1 Basicly the steps are drag Automator::Run Shell Script.
- 2 Fill in the script.
- 3 Drag Mail::New Message and send confirmation to yourself. I would have preferred to add an event to iCal but there is no Time.now() feature in the iCal Automator actions, so my system would always be backed up freshly August 18th 2006 at 12:50 pm, This is a problem.
- 4 Drag the Mail::Send Outgoing Messages
- 5 Save as a workflow
Here is the script from step one.
It asssumes there is no root password. I never open my laptop up to the world so a password is a hassle.
I created a directory in /Users/joel/backup_mysql/ to hold the archived mysql I created a directory in /Volumes/DROPSHIP/backup to archive to ( This is an external firewire drive )
for x in `/usr/local/mysql/bin/mysql -u root -Bse "show databases"`; do
/usr/local/mysql/bin/mysqldump -u root $x | /sw/bin/gzip -9 > /Users/joel/backup_mysql/$x.gz
done;
/usr/bin/rsync -aE --delete ~ /Volumes/DROPSHIP/backup 2>>~/rsyncErr.txt || echo -n;
To execute, rightclick :: Automator :: Backup Laptop …
