Monday, 28 November 2011
Thursday, 17 November 2011
Saturday, 29 October 2011
Friday, 28 October 2011
The solution enter C:\windows\system32\drivers\ and rename AppleHFS.sys to AppleHFS.sys.old and AppleMNT.sys to AppleMNT.sys.old before you enable file vault this will prevent windows from trying to mount the mac partitions.
Sunday, 16 October 2011
Basically it's a 7200 rpm drive with a 4gb solid state bit that acts like a big cache.
Now I've never done this before so it was quite an interesting experience, here's how I did it.
1. Caddy for old hard drive, I used a USB SATA caddy, you'll need this to copy your data
2. Two writable CD store the firmware on and recovery software
3. Tools (see the ifixit guides for which ones)
4. A copy of OS X Lion burnt to dvd/usb stick (see http://osxdaily.com/2011/07/08/make-a-bootable-mac-os-x-10-7-lion-installer-from-a-usb-flash-drive/)
5. An external drive or a bunch of DVDs to store your windows backup on
6. Filevault is disabled (I didn't want to try this with it enabled)
1. Backup Lion using time machine.
2. Backup windows using some great software I found paragon backup and recovery free (http://www.paragon-software.com/home/br-free/index.html) it's the only one I tried that would backup and restore windows on bootcamp successfully (more on that later), and create a backup recovery CD.
3. Download the latest firmware for the hard drive from seagate, this is quite important since they're have been problems with older firmware, at time of writing S28 is the current version. (http://seagate.custkb.com/seagate/crm/selfservice/search.jsp?DocId=215451)
4. Burn the iso downloaded to a CD
5. Following the guides at http://ifixit.com swap the hard drives, putting the old one in a usb/firewire/thunderbolt caddy (is there a thunderbolt caddy yet?) in my case I used USB, if you're lucky and have a unibody mac IMHO changing the hard drive is easy. If you have an older model it's more fiddly (I have an older model)
6. Once swapped I the drives around and put the laptop back together I booted up from the Lion usb stick and installed a fresh copy of Lion on the entire drive, this ensures the recovery partition works
7. Boot into the recovery partition, plug in your old hard drive and then use disk utility to clone over the partition, you should then run first aid on the partition to make sure there's no errors.
8. Boot into your OS X partition you just cloned as normal (you can unplug your old drive at this point you won't be using it again)
9. Run boot camp wizard create as much space as you want as long as it's big enough to hold your old windows partition, before rebooting insert the paragon recovery CD.
10. Boot into the paragon recovery CD then plug in your windows backup drive.
11. Run the recovery wizard just follow the default steps and restore to the "BOOTCAMP" partition
12. Reboot, eject the recovery CD, unplug the windows backup drive and you're done.
You can then enable file vault again if you wish.
As for the backup software I tried the following:
- Windows 7 Backup - Easy to use, backs up great, one problem the restore function requires restoring the whole disk not just the partition so it nukes the OS X partition.
- Acronis True Image Home 2010 - Again easy to use, backs up great, nice compression, however restoring doesn't work as well it doesn't restore/fix the boot loader so you get unable to boot messages and then the windows 7 repair cd can't find the partition so it can't be repaired easily
- Lastly I tried Paragon backup free - Backups up easily, sadly it can only take full images (I think), it has good compression and comes with a recovery cd that fixes the boot loaders and master boot record, it restores perfectly even to different sized partitions (and it's free!)
Sunday, 25 September 2011
Open a command prompt (start > run > cmd)
diskdrive get status
If everything is ok it'll say OK
Friday, 23 September 2011
Tuesday, 20 September 2011
VMware Fusion 4 has some problems...vmware tools segfaults on startup in Debian 6 and doesn't install on ubuntu reporting errors writing to /usr/lib/vmware bit weird so I decided to check out the competition.
Parallels Desktop 7 - Great software, the parallels tools install on everything I tried, one major caveat for me is that the shared file system doesn't support symlinks, I can't develop without those so that's a show stopper sadly.
VirtualBox 4 - Free (yay!) downsides no image convert i.e. can't import a parallels/vmware appliance. And cannot boot bootcamp partitions (so far as I know). Previously I switched from virtual box to vmware fusion 3 due to random crashes in virtual box.
So conclusion - I'm sticking with vmware fusion 3 for boot camp and my existing machines which are ubuntu, for debian I installed virtual box and going to give it a go.
Thursday, 25 August 2011
Tuesday, 2 August 2011
I found that deleting and recreating fixed the problem, no idea why :/
Monday, 25 July 2011
Anyway XBMC (and probably a bunch of other programs) can't connect to SMB shares on OS X Lion. Why? Well apple wrote their own SMB client/server which supports a different authentication protocol that XBMC doesn't support.
Now I've read a bunch of solutions i.e. try UPnP, use NFS, install SMB from mac ports, but I've found a much simpler solution.
1. On Lion set up SMB/AFP sharing as normal
2. On your computer that runs XBMC create a shortcut to the share, in the case of OSX connect to the share and then drag a copy to say your ~/Movies folder this will create an alias, for Linux consider editing /etc/fstab with the following
//server/share /mount/point cfis nounix,sec=ntlmssp,guest,user=guest 0 0
3. Navigate to the shortcut/alias on your local machine in XBMC instead of trying to connect to the share. This will let XBMC use your operating systems SMB client to connect to the share instead of it's own internal client (or in the case of OS X it will use AFP).
Thanks to http://permalink.gmane.org/gmane.linux.kernel.cifs/3522 for the nounix and sec options for linux
Note check your cfis version, Fedora has 4.5, ubuntu 10.04 has 3.5 which doesn't support the ntlmssp sec option
Friday, 22 July 2011
After download and having taken a backup of my mac mini which is the first (and currently only) mac I have it installed on I proceeded to create a installer DVD following this guide http://osxdaily.com/2011/06/08/create-burn-bootable-mac-os-x-lion-install-disc/
Next I chose a clean install of Lion by erasing the old Snow Leopard partition and installing. This sadly didn't work the first time, probably something I pushed! So I did a clean install again and it worked.
A couple of notes on the installation process.
- It takes a looooong time to boot from the dvd around 5-10 minutes in my case, using a USB stick should be faster
- If you have an internet connection enabled the installer will attempt to download Lion from Apple's servers which will take hours, so disable your internet connection first.
Once installed everything works fine, all the new features seem great.
A few notes on the initial experience
- I reverted the mouse scrolling style to the Snow Leopard way i.e. scrolling down scrolls down...in Lion it's backwards you can do this by unticking the top checkbox in the mouse system preferences
- File vault and time machine have had a major overhaul, file vault now encrypts the whole drive, and time machine can back this up, time machine can also encrypt backups which is a major boon for me since I have problems with those two interacting (something to do with how sparse bundles are backed up I believe)
- Encrypted volumes can't be read on older versions of OS X so if you plan on using target disk mode keep this in mind.
- iTunes 10.4 isn't included it comes with software update
- Java isn't installed and going to a web page with Java just crashes the page instead of warning you, you can download java here http://support.apple.com/kb/DL1421
- Flash isn't installed by default but you can download it from adobe.com
- Mac mail has been redesigned if you want the old version go into preferences > viewing an enable classic look
- Safari is wayyyyy faster
- Full screen apps are cool
- Lion remembers the state of your applications when you close them so when you open them again they have the same files open
Thursday, 21 July 2011
The document "Untitled" could not be saved as "<your service name>". You don't have permission.
To view or change permissions, select the item in the Finder and choose File > Get Info
Friday, 1 July 2011
Sunday, 19 June 2011
Thursday, 16 June 2011
Monday, 30 May 2011
Sunday, 22 May 2011
Alternatively to setting the TMPDIR in PHP you can set it in your web server and restart your web server and PHP.
Tuesday, 17 May 2011
Friday, 6 May 2011
Reason given by server:
No such file or directory
When trying to mount a nfs directory and it does exist, add fsid=0 (or whatever the id of your drive is) to your /etc/exports configuration.
Also remember that the path you mount remotely may not be the same as the one you have in exports i.e.
If your exports contains
Then you would mount / to get /home/user and /downloads to get /home/user/downloads/
Friday, 29 April 2011
To make your download faster and put less pressure on the update servers open Update Manager, click "Settings", click the first tab "Ubuntu Software", select "Other" in the "Download From" box then click the "Best Server" button, this will choose the fastest server. The more users that do this the more the load is spread and quicker updates will be.
Wednesday, 6 April 2011
Monday, 21 March 2011
Thursday, 3 March 2011
Saturday, 5 February 2011
OSX reads the /etc/paths first then everything in /etc/paths.d so all paths are appended to the variable, in my case I want /usr/local/bin searched first, to do this edit /etc/paths and move the bottom line to the top problem solved!
Saturday, 15 January 2011
I was trying to store a serialized php object in a pgsql text field via pdo. However whenever the object contained a private variable the string was truncated.
It turns out php serialized private/protected variables are surrounded by null bytes and pdo doesn't escape null bytes for pgsql so the null byte terminates the string.
However pdo mysql does escape the null byte which causes total confusion.
I've reported it as a bug with php http://bugs.php.net/bug.php?id=53756 however it maybe a problem with the underlaying pgsql driver, would be pgsqls problem to fix, I'll let the php people figure that out.
Lastly as a work around setting the field to hold the serialized data to a bytea type solves the issue setting the pdo data type to PDO::PARAM_LOB. Or you can use pgsql text fields and base64 encode the data.
(btw a subject containing nearly all acronyms, awesome!)