The New MacBook Air
January 15, 2008Digg|OS X vs. Vista – a GUI development and concept analysis
July 4, 2006Great article on interface design concepts and developement process on both operating systems. Different company philosophies for different results on user interfaces.
read more | digg story
An interesting article in the design process of Windows Vista and Mac OS X. One of the comments had a link to a video superimposing a presentation about Windows Vista’s upcoming features with all the features that Mac OS X has right now.
Rules for Unix Programming
March 20, 2006It had been a long time since I had posted anything on my blog, so I thought I’d post this.
This is an extract from the online book called “The Art of Unix Programming” by Eric S. Raymond, and summarizes the programming style, and state of mind when writing programs for Unix. I think these rules are applicable in other OSes too.
- Rule of Modularity: Write simple parts connected by clean interfaces.
- Rule of Clarity: Clarity is better than cleverness.
- Rule of Composition: Design programs to be connected to other programs.
- Rule of Separation: Separate policy from mechanism; separate interfaces from engines.
- Rule of Simplicity: Design for simplicity; add complexity only where you must.
- Rule of Parsimony: Write a big program only when it is clear by demonstration that nothing else will do.
- Rule of Transparency: Design for visibility to make inspection and debugging easier.
- Rule of Robustness: Robustness is the child of transparency and simplicity.
- Rule of Representation: Fold knowledge into data so program logic can be stupid and robust.
- Rule of Least Surprise: In interface design, always do the least surprising thing.
- Rule of Silence: When a program has nothing surprising to say, it should say nothing.
- Rule of Repair: When you must fail, fail noisily and as soon as possible.
- Rule of Economy: Programmer time is expensive; conserve it in preference to machine time.
- Rule of Generation: Avoid hand-hacking; write programs to write programs when you can.
- Rule of Optimization: Prototype before polishing. Get it working before you optimize it.
- Rule of Diversity: Distrust all claims for “one true way”.
- Rule of Extensibility: Design for the future, because it will be here sooner than you think.
Or if you want the lesson in one “affectionate” word,

Also read the the section on applying the Unix Philosophy.
Mac OS X Blues Part V
February 14, 2006So here I am at the Carousel Center Apple Store. I had about fifteen minutes on my hands so I thought why not write a quick post.
I have to say this, these Apple guys do have a certain following!
In the 10 minutes, I’ve been here, I’ve seen them sell two computers.
While I love the end-to-end experience that a Mac provides, I think their manufacturing quality leaves much to be desired. This is the second time, that an Apple product has crapped out on me . Six months ago, it was my 15 GB iPod. Now its the hard disk. While I’ve heard about hard disks crashing, this was much too soon!! My HP hdd, is still alive at 3 years, even if its LCD is dead.
Anyway, I had a long discussion with him, and he gave me a couple of tips. He told me that most probably the hard disk is shot and the only thing left to do is to replace it.
The way to replace it would be open the base of the mac and replace the IDE drive. And he also told me that the price of having it done at the Apple Store would be expensive enough to justify getting a new Mac. I’m just not prepared to do that right now. I want a new Mac, but not until the new Intel-based macs mature.
The next suggestion that he said would be go to ATS (off carrier circle). They had a lot more leeway about using more generic parts because they dont work under the Apple logo, as opposed to the Apple Store which has to buy overpriced Apple authorized parts.
Replacing the hard drive while possible, seemed to be a significant task, which I’m not prepared to do right now.
One last suggestion that Mac Genius suggested was to use my newly acquired external hard drive. This hard drive has a firewire interface. That was a good decision. So according to his suggestion I installed Mac OS X 10.2, and now I’m upgrading to Panther. My first priority is to transfer my music file so that its safe and the new files are authorized. Once that happens, I’m going to try to format the original hard drive again and see if I can recover the original hard drive again.
Mac OS X’s ability to boot from a firewire drive is really a god-send right now. Some of the design choices that Apple has done for its OS are really good, and the way the guy at the Apple Store described, their hardware is really well designed too.
Mac OS X Blues Part IV
February 13, 2006I GIVE UP!
I tried and tried, and I could’nt get my Mac to either boot up, or transfer my data to an external hard drive.
Now after nearly $400, I’m going to finally bite the bullet, and try to get an appointment with the Apple Store at the Carousel Mall and see if I can get this thing repaired. I’m cursing myself for not having taken backups. Curses !! Curses!! Curses!!
A part of me thinks that I should move away from this Mac business finally. It was good while it lasted, but there are bigger fish to fry than this. Another part says that it was’nt anyone’s fault. hardware failure happens all the time, and anyway its your fault for not taking care of backups. Being a person who write software for a living, I should no better.
As far as the money I spent in trying to recover the data, I think it was money well spent, and should definitely help me as I go along.
This story is finally over, I think I’m ready to move on now.
Mac OS X Blues Part III
February 12, 2006Mac OS X Blues Part II
February 11, 2006So I went out and bought a copy of Alsoft’s Disk Warriors.
I bought it the Apple Store at the Carousel Mall in Syracuse. Talking to the technician I found out that the main cause of the I/O errors usually occur because of hardware failures, and I would be much better off just by getting an external hard-drive and backing up my data. So i though I would risk a an investment of $107 and see if that Disk warrior is going to work or not.
Right now its displaying a dialog box saying that its Rebuilding director, and below two progress bars in brackets showing me that the (Speed is inhibited by disk malfunction). Seems to me that the technician was right. The hard disk is physically damaged.
The causes of damage could be anything, it could be a bad cable, a faulty logic board, or that the hard drive has gon bad. I guess the only thing I can do is just wait…. I’ve taken photographs, which I will be posting as I go along.
Disk warrior starting up.

Disk warrior’s attempt to graph the hard disk.

And this is where its stuck at.

and I’m right here waiting for it to finish.
Mac OS X Blues
February 11, 2006The hard drive on my mac seems to be either dead or dying. my iMac is about 2 years old. Its a G4 with w/ 256 MB ram , 80 GB harddrive. I mostly used it for storing my music collection, browsing the internet, doing some word processing, and blogging.
I noticed the the problem last night, as I was working on my PC. I had turned around to launch iTunes so that I could listen to some music as I coded. Suddenly, there was a scrapping sound from the hard-drive, I listed to it a little bit, and then iTunes suddenly started up. I immediatly thought that the time had come to do a backup. Unfortunately, I was so caught up in my code on the other screen that I did’nt do the backup.
This evening when i came back from work, I turned on the Mac, and then walked away. I heard the familiar boot up sound that the mac makes as it comes up, and the gentle chugging of the hard-drive as it loaded up OS X booted up. Usually by the time I come back to my desk the Mac has fully boot-ed up and read to go to work, but today it just showed the blue screen and the mouse pointer.
I know that my premonition had been right last night. I immediatly ran Disk Utility from the Mac OS DVDs. They could’nt fix the problems. I became concerned that it may be a hardware failure, so I ran the Apple hardware test utility. At first that reported there was an error. However, when I ran it a second time, the hard drive passed the mass-storage test. It passed all subsequent attempts at the test too.
So I booted the Mac up in safe mode and brought up the command line console. I ran the fsck utility and then I got the best shock of the day. I/O error could not repair drive. All the websites recommended that some of these messages are benign, and you should keep on running fsck until all errors appear to be removed. Unfortunately, I got the same result. So now I’m confused, is it a hardware failure or is it some file system corruption? I know that the two browsers I use on the mac (Safari and firefox) had crashed more frequently. I had put that down to my heavy usage, plus I know for a fact that Firefox has some serious memory leaks. I had also recently upgraded to Firefox 1.5.
From what I could find on the web, the best way to fix these kinds of problems is to get Alsoft’s Disk Warrior.
So now I’m running the Disk Utility again. This time I told it to verify the the Disk Permissions. I still hear those periodic grinding sounds, and the progress bar seems to be stuck at that percentage.
Update I
The progress bar on the verify Disk Permissions has moved, Hallelujllah! However progress is painfully slow!
Update II
The task bar has moved! The task bar has moved !!, A whole lot of permissions were wrong, and the disk utility is reporting them as such. Could it be that it was only this problem. In any case, I think a good backup manager is nonetheless required.
Update III
The verification phase is done. I’m now repairing the disk persmissions. I’m just hoping that it works. Keep your fingers crossed.
Update IV
Its OFFICIAL. The file system on my Mac is corrupted, and apparently only Alsoft’s Disk Warrior can recover it.
I still have some ideas on how to recover my data. I need to figure out someway to transfer my music files.I could then easily format the hard drive and then rebuild the Mac.
The Graphing Calculator Story
December 26, 2004The Graphing Calculator Story is one hell of a story. This is the kind of work I want to be doing at my place of work.
Posted by bybitsandbytes
Posted by bybitsandbytes
Posted by bybitsandbytes