Jamiesutherland.com
RSS icon Email icon Home icon
  • Using vi and forgetting the bastarding sudo command.

    Posted on May 19th, 2009 jsutherland No comments

    OK, so how many of you have been messing about with a system file using vi and you’ve edited about 10 lines. You go to save the file and it complains that it’s Read-Only!! Gah, you then do your thing to correct it and slap yourself for making THAT mistake AGAIN.

    Anyway, rant over. Fix it by doing this!

    vi ~/.vimrc

    Insert this

    command! -bar -nargs=0 Sw :w !sudo tee % >/dev/null

    Now when you go to save and it complains just type :Sw and it will save it out as root and then ask you to reload (If someone know how to do this part automatically it would be appreciated :D )

    Problem solved!

  • Sonyintosh – My experience with OSx86 on my Vaio VGN-C1Z

    Posted on May 16th, 2009 jsutherland 6 comments

    So everyone has been banging on about how great Macs are for a while now. I’m not convinced, the little time I’ve had using them I’ve found the OS annoying to work on. Now, I’m happy to admit it’s because I haven’t given it a chance, and the reason for that is I don’t have a spare grand to shell out for my own one.

    Recently I’ve been feeling the need to try out some iPhone development. (I don’t even own one, yet) This proves particularly difficult under Window so I started looking at Mac hardware. As lovely as it is, I can’t bring myself to spend the cash on one without a purpose for doing so when I can do almost everything I need to under XP/Ubuntu. Then I came across the Hackintosh community who have documented alot of their experiences while attempting to install Mac OS X on various types of hardware with varying degrees of success.

    So this brings me to my experience with it. Thankfully the community has taken the sting out of getting the majority of components for my laptop working. Hazza!

    So here’s a step-by-step guide for getting OSX installed on a Sony Vaio VGN-C1Z/B Laptop. This has the following specs which might help people looking at this with a differnet model laptop which has the same hardware. Specification Link

    Read the rest of this entry »