MACC Downfall

I love the way that the sudden death of a local political aide is referred to in TheStar. You must wonder at the kind of brilliant writers that work there.

Selangor exco’s aide falls to death.
SHAH ALAM: A man died after having fallen off Plaza Masalam here where the Malaysian Anti-Corruption Commission (MACC) has its office on the 14th floor.
The man is believed to be Teoh Beng Hock, political secretary to Selangor executive council member Ean Yong Hian Wah, who was taken in for questioning by the MACC Wednesday evening.

They make it sound like he decided to step out off an open window to take a stroll along the outside of the building, breathing in a lung-full of fresh hazy air and enjoying the spectacular view from up high, before sneezing and falling to his death. Wow, who says that Malaysians have a weak grasp of the English language!

Half Precision

I was looking up floating-point numbers yesterday just out of curiousity and I found out that the IEEE754 standard for floating-point numbers includes half-precision numbers. These mean exactly what the name says – it provides half the precision of single-precision floating-point numbers. I had once read an article which argued that for most normal applications, we do not require high precision numbers. An example application would be voice applications, that only require a quarter-precision value to work.

A half-precision number is a 16-bit representation for a floating-point. It has the ability of providing a larger range of values than a 16-bit integer representation but is less computationally expensive to work with, than a 32-bit single-precision representation and uses up half the memory space. According to the Wikipedia article, it was mooted by the graphics industry for working on graphics applications. This proves that lower-precision numbers can actually be ‘good enough’ for certain applications.

I just thought that I should note it down here. It will come in useful at some point in the future, when I work on enhancements to my processor.

Self Love

I like the definition of ‘self-love’ that a friend of mine came up with the other day – it is loving yourself enough so that you don’t take shit from anyone. Then, there is this other saying that goes – shit rolls down-hill. Well, obviously something happened today but I shan’t go into too many details. Suffice to say, it was good that the other person walked away because I most certainly was not going to. Let us hope that it just stays that way.

Debian Live

Just discovered the debian live project. It is a sub-project from debian that is focused on making it easy to create live debian systems that either run off a CD-ROM, USB disk, or network boot image. It comes with various tools that make it so easy to work with building specialised ‘live’ debian images.

Before there were such simple tools to use, I used to create my own live distributions by hand. So, I have an appreciation of how much work these tools actually save me now. Of course, doing it by hand gave me insights into the Linux boot process that I would have never learned about otherwise. I have just tested the live ‘rescue’ image and it seems to work fine.

Recently, I have wanted to make a live ‘rescue’ image to use at home. Since I am maintaining a bunch of machines now, most of which are running on fairly old hardware, I often run into minor problems that require maintenance. Last week, one of my machines refused to boot up because the EXT3 journal got corrupted. So, I had to pull out the harddisk, plug it into an external USB adaptor and fix the problem on my main machine before plugging it back in and turning it back on. With a debian live rescue disk on a thumb drive, I can just boot off the drive to do all kinds of maintenance stuff.

I will test out the debian live network images next. If it works, I will just use those to boot up my home cluster instead. The advantage of using a debian live image is that it is compressed using squashfs, which reduces the bandwidth requirements and actually makes the system read-only and safe from external corruptive influences.

I just wish that they would make it easy to add software to an existing live system. This can be done by using fuse along with additional modular squashfs images like they do in slax live systems. Maybe it is already available but I’ll need to dig around a bit to find it.

PS: There is a way to make a ‘live-snapshot’ that will be automatically mounted during the next boot. This will work just as well.

Reading Phase

I have this habit of going through certain activity phases in my life. At present, I seem to be going through a reading phase, where all I do is actively read. I have just finished another stellar book by Alastair Reynolds – House of Suns. While it was a little confusing at first, the cause of the confusion became obvious later and pulls the reader in as a participant in the narrative. In fact, it has been called “mind-boggling” and “mind-bending” by several reviewers. I totally concur.

The novel is divided into eight parts, with the first chapter of each part taking the form of a narrative flash-back to Abigail Gentian’s early life (set roughly 1,000 years from now), before the cloning and the creation of the Gentian Line. Every chapter is narrated from the first-person perspective, shifting between three individuals; Abigail Gentian herself (in the flashbacks) and two clones called Campion and Purslane who are engaged in a relationship which is frowned upon, even punishable, by the Line.

While the story may have been set in a science-fiction back-drop, all good science-fiction is less about the science and more about the story. This story was one about a love, an imperfect one, but one that managed to last through thousands and millions of years. In fact, towards the end of the story, one of our main characters literally pursued the love of his life through seventy-seven thousand years, beyond the end of the galaxy. Literally.

I loved this book and I have come to realise that the best place to get scifi books in Malaysia is actually at Kinokuniya. I’ve got a few more on my shelf, to go through. I hope that I would be able to get through a couple more this week.

Perception is False

Perceptions are often untrue.

I’ve often lived with that belief that perceptions, especially general perceptions, are generally untrue. Today, I had the opportunity to meet someone who was showing off a new product in Malaysia. The product was a special mechanism to protect CD/DVD media from scratches. I won’t go into how the thing actually works as I’m not sure if I’m allowed to talk freely about it. However, after being shown the product, I pointed out that it was protecting the wrong side of the disc. Everyone stared at me (me and my big mouth).

You see, the product is designed to protect the clear side of the disc, which often gets scratched if we do not properly care for our discs (or if there are any pesky nieces/nephews around). Anyway, I merely pointed out that the clear plastic side does not actually need protection. What needs protection is the side with the art-work on it. To understand why, all you need to do is go back to how these optical discs work. Essentially, the side that actually holds the data is the painted side, not the plastic side.

If the plastic side is scratched, it will still work fine in most disc drives. This is because of special fault tolerant mechanisms that are built into the drives. As long as the errors stay below a certain bit error rate threshold, everything is fine and dandy. Even if it is badly scratched, a good polish will help recover the readability of the data. If you visit the pre-owned game stores in the UK, they actually grind/polish the disc before selling it to you. However, if the art-work side is scratched, it is nigh impossible to recover the data. It is gone forever.

However, I did point out that the product could still possible sell because it solves a perceived problem – not a real one. Most people do not know that they actually need to protect the art-work side and not the plastic side. So, we asked how much the product was going to sell for. Turns out that it will cost much more than a pirated disc. That’s when I kept my mouth shut. Nobody in Malaysia is going to spend money on a disc protection system that costs more than purchasing a pirated disc.

Net Boot

I have just set up my disk-less compute servers yesterday. These compute servers were configured to boot from the network, pick up the operating system from a network server and save all their files on a network file-system. I was surprisingly easy to set up from a Debian base system. I am really glad that I have so many spare machines to toy around with.

I plan to put in a couple of verilog simulators. I wonder if distcc could be modified to accommodate these simulators as well. I will experiment with this and report my findings later.

So, these compute servers will boot up and run distcc that I mentioned earlier. I did not need to do much except to configure dd-wrt to provide the dhcp-boot option. It was just as simple configuring freenas to provide the necessary storage and network service. First time I got to fool around with PXE – fun!

Now that I have a number of machines, I need a way to keep administer and track them all. For administration, I am currently testing out dish, dsh, clusterssh, pssh and kanif distributed shells. There are advantages and disadvantages of each and I kind of think that Kanif (from INRIA) is more suitable for my use.

As for tracking them all, I have actually just set up a wiki on my local home network. I plan to use the wiki to not just track the servers but to document everything I do at home. This includes any sort of configuration and customisations that I perform on the home network so that I have a easy place to refer to in the future, in case I need to replicate the work at any time.

You know what I’ve started to realise? Computing takes on a whole new dimension when you have a dozen machines running on a home network. There is just so much more that can be done with that power of computing.