-
This happened to me. If, after a crash, your postgres instance won't come back up, there's a cheeky PID file you need to delete manually.
-
"I already use PostgreSQL for a few years, but every now and them, when I need to upgrade my local installation, I run into trouble. This is the step by step that I’ve used to upgrade my (homebrew) installation." This worked for me, and saved me a lot of time.
-
OpenEmu: OSX emulation front-end that supports multiple back-ends. Currently in beta (ie, compile-it-yourself) but looking interesting.
OSX Migration Assistant and symlinked disks – some notes
30 September 2013
I upgraded my Mac recently, and moved from a laptop with two internal drives – an SSD and an HDD – to a single, large SSD. I wanted to note down the aspects of this transition I’d have like to have known beforehand, and also want to know for
My old computer placed various core user folders – Documents, Music, etc – onto the HDD, whilst storing the System and Applications on the SSD. I symlinked the User folders into my home directory, and OSX was none the wiser.
As far as backing up goes, I used to use the excellent SuperDuper. When I moved to my symlinked setup, I went to Time Machine, which can back up multiple drives to a single Time Machine volume. I told it to back up both the SSD and HDD; it backed up the symlinks themselves from the SSD, and the directories they referred to from the HDD.
When I transfer data to a new Mac with Migration Assistant, I do so from a backup or bootable clone of the original computer – never from the computer itself. I chose to restore from Time Machine. This will only restore from a bootable drive – so I was only given the option to restore from my SSD, which contained Applications and my Desktop, but not my Documents. This unnerved me a bit at the time.
However, this is because the Migration Assistant only offers to restore from bootable (system) drives. Once I’d restored, I booted up the new system, mounted my Time Machine drive, and dragged everything over from the “Latest” directory symlink inside the HDD’s backup folder; I soon had my documents and other files back in the original locations they should have been.
So that’s the main note I wanted to make: restoring from that kind of setup works entirely fine, but you musn’t panic when your HDD isn’t offered as a volume to restore from.
I’m always impressed with Migration Assistant – it holds onto my system preferences, my eccentric Unix setup, my MySQL and Postgres databases, everything like that. What’s worth remembering is the stuff it doesn’t:
- I use Caps Lock as my Control key, and vice versa. (Blame Vim). I had to re-specify this preference, and frequently, it would get overwritten on wake-from-sleep. A reboot (which presumably repaired permissions fixed this).
- For a while, I noticed
git
wasn’t working. This was because it was not installed through homebrew, but directly into/usr/local/bin
– and that was no longer in myPATH
. Adding it back to myPATH
re-enabled it. (All my homebrew binaries were working fine). - My
/etc/hosts
had been overwritten back to default; I need to copy that across manually. As had all my Apache config (/etc/apache2/httpd.conf
), my vhosts config file (/etc/apache2/extra/httpd-vhost.conf
), and/etc/php.ini
. Nothing we can’t recover quickly, but it did mean the usual dance of setting up vhosts for sites that already existed, and pointingphp.ini
at the correct MySQL socket file (/tmp/mysql.sock
on OSX).
I think that’s it – everything else transferred entirely seamlessly, and there was nothing to fear about my unusual setup – you just have to make sure you’ve been backing up correctly, and everything will work.
-
So far: much happier with this than I ever was with Sparrow; the shortcuts are the ones I need, and it handles plaintext. So going to try living with it for a bit.
-
"Use PiP to show video from any webcam on your screen, nicely integrated as "Picture in Picture" which makes it ideal for live presentations, screencast recordings and in the educational sector." Or filming your hands…
-
"In this post, I want to pay tribute to my favorite “games” of 2012 – specific performances, instances, and events that really meant something to me. The list is admittedly idiosyncratic, subjective, and a little self-indulgent. And that’s the way it should be, I feel (um, unless you’re a journalist or something), because games, at their best, are deeply personal affairs. Games generate memories, and I want to share some of mine with you." Doug is smart.
-
"I think it’s valuable to have an understanding of assembly language. Assembly language is the lowest level of abstraction in computers – the point at which the code is still readable. Assembly language translates directly to the bytes that are executed by your computer’s processor. If you understand how it works, you’ve basically become a computer magician." I don't, and this looks like a lovely way to learn. Also: I think I finally get this. Nine-year-old me sure didn't.
-
"Porthole streams music from your favorite music player to all your AirPlay speakers, in sync." Slightly cheaper alternative to Airfoil.
-
"Basically Lion handles .local TLDs differently to Snow Leopard. Whenever I would try to access my phpMyAdmin installation at http://xampp.local/phpMyAdmin, Lion would take a ridiculously long time to resolve the host and it probably has something to do with the Multicast DNS feature of Bonjour." What the hell? That explains a lot.
-
"I’ve just released a little Mac app I’ve been working on for a while. It’s called Satellite Eyes. It’s pretty simple. It just sits in your menu tray, and changes your desktop wallpaper to the satellite image or map view from overhead." I've had a preview build for a while, and this is just lovely. Well done, Tom.
-
This fixed the weirdest set of bugs on a fresh install for me.