iPC first boot and problems
We are now ready to boot our new osx86 installation. Choose the correct drive using you bios then when you get to the boot menu press any key. Select correct partition. IMPORTANT set boot flags to -f -v
iPC post installation
Once you've installed the iPC osx86 distribution, there are a number of system dependent things you will want to do. Here is what I do on my main system
iPC osx86 distribution
This is my choice of distribution for osx86
Osx86 Overview
Running a hackintosh as my main desktop involves keeping on top of quite alot of knowledge, which I'm prone to forget. This combined with the rapid development of hackintosh technology and the vastness of the osx86 forums means I need to keep more documentation about what I'm doing. Here I'll do an overview
Updating hackintosh
A Long Awaited Update
I've put of updating my hackintosh for ages, but having finally got my replacement raptor from Western Digital, I've bitten the bullet, and in the processed destroyed my old desktop account!!
The osx86 distro I'm using is ipc, see also osx86 forums
The best thing about this distribution is you can just run the iso from a hard disk and install directly to a partition. This is very quick. The worst things about the distro is that its a beta, its cutting edge (10.5.6), it has loads of options and little documentation and it has some bugs.
However I've been able to get it working as follows
Simplest IPC Installation
Run iso and do following with settings
- deselect Language Translations
- Drivers | NVidia | NVdarwin 256 MB (works with 2 monitors - nvinject doesn't)
- Fixes and Patches | DSDT | Patch DSDT
The other setting which I've tried and think I should use is
- Fixes and Patches | Shutdown/Restart
Shutdown is now working on this install, but it seems slow
Install the above to an "empty" partition and then boot.
Menu Icons
So I was trying to remove my airport icon from my menu bar after migrating settings from mac-air. After 20 minutes of googling found you can command drag unwanted icons of menubar and poof they're gone.
Ruby Programming Language (coerce)
Reading the Ruby Programming Language which seems excellent so far. So may well do a number of blog posts about bits of it just to reenforce my memory
coerce
Method used by numeric types. Idea is to force argument into a suitable type so that the calling type can work with it. Method returns array of two values, the first being the converted value. Some irb will illustrate
>> require 'rational'
>> r = Rational(2,1)
>> r.coerce(2)
=> [Rational(2, 1), Rational(2, 1)]
My initial thought was that a.coerce(b) == b.coerce(a). This is completely wrong as shown below
>> 2.coerce r
=> [2.0, 2.0]
coerce is all about convenience for the class it is defined for. So Rational(x,y).coerce is all about making things easy for Rational to do things, whilst Float.coerce is all about making things easy for Float to do things. I'm labouring this point quite a bit, because I don't think the book made this quite clear enough for my slow brain to grok without a bit of further investigation.
Work since 2007
Keywords: Category:
What Have I Been Doing Since February 2007
The short answer is lots and lots. For the longer answer
Complications with users and customers
I find it very easy to get paralysed by complexity. This has been happening on my current project with users and customers. You see I want people to be able to buy things without having to be users. However I also want it to be especially easy for users to buy things. Finally I don't want any particular person to have seperate records in user and customer but a customer can be user.
Now this doesn't really make sense, and I haven't really written the half of it! And all these possibilities have ... well to be frank left me paralysed. Now eventually I might get my head around all of this but is there a better way? Can I use features to explore this problem bit by bit, just dealing with one little piece at a time. Will a reasonable solution emerge
Pluralisations in features
Been a bit of a dummy in this one. Basically each step definition is a regular expression so if we have
When /^I add (\d+) products to the cart$/ do |n|
we can improve this to make allow both
When I add 1 product to the cart
When I add 2 products to the cart