posted on 2009-06-21 - amd.im/TR6b
Had a day off in Japan, so I went for a stroll around Shinjuku. Nothing too special, had some lunch, took some photos, but here it is, documented in a Google Map.
If you click through to Google Maps, you can see the list of pins in order. If you're still here though, start where the two closest pins are, and then follow the trail (anti-clockwise), clicking on the dropped pins as you go to see what I did, and any pictures I may have taken. Feel free to click the pictures to get a link to larger ones on Flickr.
View My Walk in Shinjuku in a larger map
posted on 2009-06-03 - amd.im/OoOx
To ease my development while on the move, I have local development copies of my websites running on my MacBook Pro. This has always worked pretty well for me, as content for my websites was created, predominantly, by myself, and when new content was created at a single site I could sync that database manually and get an up to date local content set.
With my recent efforts into lifestreaming, this is no longer the case. My content now comes in whenever I post content on any website. I'm a fairly frequent user of the internet services that feed my lifestream (Twitter, Delicious, Flickr, etc), and keeping the content on my local version up to date was turned into a troublesome task, forcing manual, tedious syncing each time I went to work.
Without further explanation, here are the steps I took to make a one line MySQL database syncing command. There may be better ways to do this and if you know them, please comment.
Setup a MySQL "dump" user. Mine is cleverly named "dump" and is passwordless, although if you are more security conscious than I am, you can add a password of your choosing. On the server, log into mysql and issue this GRANT statement from a user with the proper permissions.
GRANT SELECT, LOCK TABLES ON `dbname_remote`.* TO 'dump'@'localhost';
Create a bash alias in ~/.bashrc :
ALIAS clone_lifestream='ssh -q -t hostname "mysqldump -u dump dbname_remote" | mysql -u root dbname_local'
Notes: For this example, you need to replace a few things.
amdavidson.com is a simple blog run by Andrew Davidson, a manufacturing engineer with a blogging habit. He sometimes posts 140 character tidbits, shares photos, and saves links. You can also see posts dating back to 2005.