Lack Of Sleep

I am really really sleep deprived this first week of Ramadhan. This is due to the fact that I have to wake up in the middle of the night for sahur. Also, I am struggling to finish up a freelance work for a Singapore client; I am lagging behind the schedule because of the hard disk incident. That reminds me that I have yet to make a post about that 😉

Sleep has been my main problem every Ramadhan, not hunger. I have trouble falling asleep so when it takes only 30 minutes to take a meal, I might be awake for 2 hours. Anyone want to share their experience?

Take care, people. Sleep well. Maybe tonight I’ll take a break from the extra work and go to bed early.

Pacific Regency Hotel Apartments

I am writing this post from Pacific Regency Apartments, in KL. It’s a new experience for me to spend time during Ramadhan in a hotel apartment. I have CCSA training tomorrow, and since I hate driving / commuting so much (especially in Ramadhan), I’ve decided to stay 2 nights here.

The hotel is really great, and the price is right too since it’s not peak season and they have a promotion. Here’s a picture from the website (I am sitting in front of the TV with my laptop):

Pacific Regency One Bedroom Apartment

Despite of a bad experience at the reception with a female staff, the other staff seems to be very helpful and polite. Just about ten minutes ago I received a phone call from them to confirm about the time for sahur.

Lucky for me, the training is actually in the same building, on the 20th floor of Menara Pan Global.

Room Shots

Continue reading Pacific Regency Hotel Apartments

Ramadhan Is Back

Just a few hours earlier, I bet every Muslim in Malaysia sat in front (or near) the TV while watching the news. Even those who have never watched news most probably waited as well 😉

We were all waiting for the starting of Ramadhan announcement. Yes, as anticipated it’s going to start tomorrow, Sunday 24 of September 2006.

I can already imagine what it’s going to be like at the Baazars, in late afternoon where people will rush to buy food for break fast.

As for me, this Ramadhan I’ll be working 2 weeks of 7am-4pm and 2 weeks of 3pm-12am. It is going to be a new experience. Hopefully everything goes well. I’ll try to get myself to go for Tadarus during lunch hours, and perhaps steal some time to update this blog…

Selamat berpuasa semua!

WordPress Posting Problem

I’ve seen some WordPress users complaining that after they post something, sometimes their browser gave them a blank page, or an error. Many blamed it on the plugins. I had the same problem, and deactivating or removing plugins didn’t help.

I found out the real problem: Update services (Options – Writing – Update Services)

Try to root out the problematic site; they are indeed just normal websites so some of them might be outdated or dead. Your pages timed out, that’s why.

I just removed the entire list, and maybe look for a reliable list later. Now, I am posting without any problems. See me smiling? 🙂

PHP 4.4.4 and Apache 2.2 on Win32

I have just spent more than the normal time to install Apache + PHP on Windows. Well, for me at least, as a PHP trainer. It’s quite embarassing if you ask me.

Anyway, I am writing this quick post just to let you know which Apache to download. In Apache download page today, there’s a few versions available – version 1.3, version 2.0, and version 2.2

Usually I will just fetch Apache 1.3 directly, and configure PHP as module. But currently Apache only provides version 1.3 as unix source – which is fine on my Linux box. So I went to fetch Apache 2.2 – just to find that it won’t load PHP.

So to cut in short, if you are using Windows, download Apache version 2.0 and you’ll have Apache + PHP running in no time.

Why the hell am I installing Apache + PHP on Windows? Well that’s another long story I will keep for another post. My laptop hard disk crashed on me and I decided to run fully on Windows, especially I will need a lot of digital imaging capabilities on the slow laptop – I’ve just taken photography as another hobby that I hope will make me money some day.

Update 23 September 2006:

As it turns out, when downloading MySQL you might as well go for the latest version. This is why:

MySQL currently only provides version 4.1 and above. The difference can’t be seen by anyone else except those using PHP. For MySQL versions >= 4.1 PHP utilizes the mysqli extension, because the default built-in API in PHP (MySQL 3.x) doesn’t work very well (MySQL changed certain things). The problem: PHP 4.x does not provide libmysqli.dll. Only PHP 5.x does. So the final summary is:

  1. PHP 5.x
  2. MySQL 5.x
  3. Apache 2.x

The obvious thing that I noticed is the problem with MySQL passwords. If you’re worried that your host server might have older versions, you can always write your code by utilizing ADOdb.

The problems described above does not effect *NIX users, as all modules can be compiled manually along with PHP.

Kittens in The Backyard

While cleaning up our backyard last weekend, we found these little kittens hiding under some grasses. Luckily we found them on time otherwise they’ll be chopped up by the grass cutter. Here’s a video I uploaded on YouTube:

For unfortunate ones who can’t view YouTube, here’s an image. Click on it for larger picture.

Kittens

Still Alive

In contrary to popular belief, this site is still alive. It’s just hard for me to find time to update it. My new job in operations is really taking much of my time. Starting from this week, for 3 weeks I will be working in EU (European) time which is 0700 – 1600 GMT (that’s 1500 – 0000 local time).

It’s challenging, it’s different, and to be frank I don’t really like it that much. My mind plunges into its “HOME” mode, where I watch TV, manage my bittorrent downloads, and surf the Internet. I feel tired.

Oh well it’s only for these 3 weeks. In December, however I will be starting to work in rotation for Asia Pac, American, and European time – for at least 2 months! Let’s see what happens. Maybe during the American time which is 2300 – 0700 local time I would have more time to blog. Who knows. They say that during that period there’s not so many problems to be handled. Let’s hope so.

I guess that’s all I can talk about this time. Next time… I am also unsure what to write about. I don’t feel like touching any political issues, or anything much that is known by public. And I know that most of my visitors hate to see technical things in here. Oh well, for my regular visitors, do help me with suggestions, will you?
Later…

ALSA Support in Skype

Finally, Skype has released a beta version with alsa support: 1.3.0.30_API

Skype Beta with ALSA

Hopefully all the troubles with “Problem with Sound Device” will be history. However for users with very old kernels, and prefer to use OSS, the option is still there. The problem with Skype utilizing OSS on modern systems is that it keeps on failing to close /dev/dsp after using it. The only way to make it work again is to restart Skype. It’s a hassle and a headache. Believe me, I used to be a SysAdmin (until a week ago) for a 99.99% Linux desktop company – with Skype as one of the primary communication tools.

Student caught recording in cinema

PENANG: Ever wondered how the latest movie blockbusters make it into the pirated market within a day of its official cinema release?

A 21-year-old college student was caught using a video camera handphone to record Anjelica Lee Sinje’s latest horror flick Re-cycle at the Golden Screen Cinema (GSC) in Gurney Plaza on Thursday afternoon.

The movie, filmed in Bangkok on a US$5mil (RM18mil) budget, made its debut in Malaysian theatres on that day.

The student had recorded 45 minutes of the 109-minute movie when the cinemas assistant manager spotted him.

The manager apprehended the student and seized the handphone before handing him over to the police.

Had the student finished recording the movie, he would then have downloaded it into a computer and burnt it onto VCDs and DVDs.

Within an hour, hundreds of copies would find their way to night markets and eating stalls, just like the pirated copies of Superman Returns and the computer animated Cars.

Original news: http://thestar.com.my/news/story.asp?file=/2006/7/8/nation/14777185&sec=nation

I’m just wondering what handphone the kid used, good enough to reproduce VCDs? Wow… I am not saying that the student did a right thing but it’s kinda funny. Maybe after this cinemas will check our mobile phones before entering.

Bye Bye Old Friend

I have to part with my dear old friend today. It has been around since the year 2000, and we had a lot of very good memories together. It’s a 8x4x32 CD writer priced at more than RM800.00 that time, but I managed to get it for RM550.00 (brand new) from my friend. It was a long time ago, and nowadays CD writers cost merely RM100+

This HP 9100 CD Writer doesn’t have any buffer underrun protection, but it has served me well. I have to get rid of it since it is no longer working and taking up too much space in my computer room, which by the way is a junk yard and morgue for computer equipment 😉

It has burnt more than 1000 CDs if I recall correctly, as me and my wife (my girlfriend back then) had a CD Burning business. No, not 100% pirated contents, more like burning what people own (assignments, anime) since at that time CD writers was still too expensive (and anime is very hard to get!). For a CD media costing us RM0.70~RM0.90, we charged RM3.00. HEY it’s not easy to burn things, especially one mistake you lose the CD!!! So a lot of work was involved, copying the files and waiting it to burn at a very slow speed.

Oh well, thanks a lot my friend.

HP 9100 CD Writer

Storage Emergency

My 17-days old Seagate Barracuda 7200.9 300GB disk was giving a lot of error two days ago. There were a bunch of errors in my syslog:

ata1: translated ATA stat/err 0x51/40 to SCSI SK/ASC/ASCQ 0x3/11/04
ata1: status=0x51 { DriveReady SeekComplete Error }
ata1: error=0x40 { UncorrectableError }
ata1: translated ATA stat/err 0x51/40 to SCSI SK/ASC/ASCQ 0x3/11/04
ata1: status=0x51 { DriveReady SeekComplete Error }
ata1: error=0x40 { UncorrectableError }
sd 2:0:0:0: SCSI error: return code = 0x8000002
sda: Current: sense key: Medium Error
Additional sense: Unrecovered read error - auto reallocate failed
end_request: I/O error, dev sda, sector 212833665
Buffer I/O error on device sda1, logical block 106416801
ata1: translated ATA stat/err 0x51/40 to SCSI SK/ASC/ASCQ 0x3/11/04
ata1: status=0x51 { DriveReady SeekComplete Error }
ata1: error=0x40 { UncorrectableError }
ata1: translated ATA stat/err 0x51/40 to SCSI SK/ASC/ASCQ 0x3/11/04

Yes, that’s right. After 17 days so I can’t get a one-to-one replacement from the shop.

SMARTD Logs:

Error 6892 occurred at disk power-on lifetime: 427 hours (17 days + 19 hours)
When the command that caused the error occurred, the device was active or idle.
 
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 00 b4 95 af e0  Error: UNC at LBA = 0x00af95b4 = 11507124
 
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
-- -- -- -- -- -- -- --  ----------------  --------------------
25 00 d0 b0 95 af e0 00      01:47:04.861  READ DMA EXT
25 00 d0 b0 95 af e0 00      01:47:03.048  READ DMA EXT
25 00 d0 b0 95 af e0 00      01:47:01.243  READ DMA EXT
25 00 d0 b0 95 af e0 00      01:46:59.447  READ DMA EXT
25 00 d8 a8 95 af e0 00      01:46:57.650  READ DMA EXT
 
Error 6891 occurred at disk power-on lifetime: 427 hours (17 days + 19 hours)
When the command that caused the error occurred, the device was active or idle.
 
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 00 b4 95 af e0  Error: UNC at LBA = 0x00af95b4 = 11507124
 
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
-- -- -- -- -- -- -- --  ----------------  --------------------
25 00 d0 b0 95 af e0 00      01:47:04.861  READ DMA EXT
25 00 d0 b0 95 af e0 00      01:47:03.048  READ DMA EXT
25 00 d0 b0 95 af e0 00      01:47:01.243  READ DMA EXT
25 00 d8 a8 95 af e0 00      01:46:59.447  READ DMA EXT
25 00 d8 a8 95 af e0 00      01:46:57.650  READ DMA EXT
 
Error 6890 occurred at disk power-on lifetime: 427 hours (17 days + 19 hours)
When the command that caused the error occurred, the device was active or idle.
 
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 00 b4 95 af e0  Error: UNC at LBA = 0x00af95b4 = 11507124
 
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
-- -- -- -- -- -- -- --  ----------------  --------------------
25 00 d0 b0 95 af e0 00      01:47:04.861  READ DMA EXT
25 00 d0 b0 95 af e0 00      01:47:03.048  READ DMA EXT
25 00 d8 a8 95 af e0 00      01:47:01.243  READ DMA EXT
25 00 d8 a8 95 af e0 00      01:46:59.447  READ DMA EXT
25 00 d8 a8 95 af e0 00      01:46:57.650  READ DMA EXT

Here’s the disk label:

Seagate Disk 300GB

I blamed the disk. My friend Azidin had a different idea. He said that it might be the SATA controller card that I installed on my computer that’s causing the errors. I didn’t believe him.

That night I tested the disk with Azidin. There were a lot of bad sectors!!!!! But still, I refused to blame the SATA controller card.

Seatools

After work on 23 June, I immediately rushed to the shop, hoping that they would give me some help, or keep my disk for checking during the weekend but they (C-Zone) rejected me saying that their service center is closed and asked me to come the next day. I was disappointed. But I didn’t leave Low Yat plaza before buying a 200GB Maxtor disk from Startec, just in case if it’ll take months to get my disk repaired.

Maxtor 200GB

Back home, I installed the disk onto the same SATA controller card. The next day, I received these from my syslog:

end_request: I/O error, dev sda, sector 132826840
Buffer I/O error on device sda2, logical block 8210
lost page write due to I/O error on sda2
ATA: abnormal status 0xD0 on port 0x9807
ATA: abnormal status 0xD0 on port 0x9807
ATA: abnormal status 0xD0 on port 0x9807
ReiserFS: sda2: warning: journal-837: IO error during journal replay
REISERFS: abort (device sda2): Write error while updating journal header in flush_journal_list
REISERFS: Aborting journal for filesystem on sda2
ata1: command 0x25 timeout, stat 0xd0 host_stat 0x1
ata1: translated ATA stat/err 0xd0/00 to SCSI SK/ASC/ASCQ 0xb/47/00
ata1: status=0xd0 { Busy }
sd 0:0:0:0: SCSI error: return code = 0x8000002
sda: Current: sense key: Aborted Command
Additional sense: Scsi parity error
end_request: I/O error, dev sda, sector 133810704

I started to believe that the controller card might be causing the problems. What are the odds that all my disks end up producing errors like these? I decided to buy a new motherboard with a built-in SATA controller, without spending too much. Also, I have an unused socket 478 Celeron, so after some research, I decided to get an ASUS P4P800-MX that’s still available in Cycom. The very same night, I ran Seagate Desktop on my older disk – low-level format (zero fill). It took hours but totally worth it. This morning when the process finished I ran another surface scan of the 300GB disk and all bad sectors are gone. Pheww! I decided not to send it to the shop, but continue using it with caution. It carries a 5-year warranty anyway.

Seatools 2 all ok

So today I went and bought a P4P800-MX from Cycom, with two sticks of 512MB DDR (to utilize dual-channel memory bus). I have just finished installing the 300GB Seagate disk plus the 200GB Maxtor disk on the new motherboard. Everything looks good.

The cuplrit? Here it is:

Sata controller

I don’t think it’s the chip. Maybe the card is defective. I bought it at Sri, in a plastic package (they hang such packages on a wall like in a supermarket). I thought of returning it, but I’m too tired to argue with the shop.

Oh well. I am all happy now. Thanks to Azidin for his help, and of course to my dear wife for her understanding of this matter.

Another Month with Low Post

Looks like not so much useful post for May either. I was actually planning to post a few useful geeky articles about things I have managed to hack around at work (i.e. Patching the Linux kernel tree to support Linux Virtual Server + Software Suspend 2). Looks like I have to do those later. 😐

Downside of IT Certification

Interesting…

The Q1 2006 Hot Technical Skills and Certifications Pay Index, released April 25 by Foote Partners, a New Canaan, Conn., IT compensation and workforce management firm, found that pay premiums for non-certified IT skills grew three times faster than for certified ones in a six-month period spanning 2005-2006.

http://www.eweek.com/article2/…

The study suggests that there has been a change in employers’ acceptance of the value of non-certified tech skills versus certifications in maintaining competitive pay for their workers.

Click more for local copy of the full article (just in case the original is removed)
Continue reading Downside of IT Certification

Hectic April

April has been a very intense month. Everything at work has turned againts you, and the world is falling apart.

Hand

I injured my hand since a few weeks ago, and had only went to the doctor today. Don’t know what causes this, but I bet it’s because of carrying the heavy office desks to the storage unit. Something I didn’t expect when I signed the contract 2 years ago.

Oh well…

3 AM

It’s 3.45am and I am still in front of my PC. Not many people realizes my habit of staying up if my mind’s in a bad shape. Tomorrow’s a work day. Oh well I can still manage to go through hell at work even suffering from sleepless nights.

Instead of whining and complaining with the things that are disturbing me, I’ll write something useful for everyone.

Listening to my freshly leeched Metallica discography (encoded in FLAC) made me realize the quality difference between FLAC and MP3.

FLAC, an acronym for Free Lossless Audio Codec, is a popular free audio compression codec that is lossless. Unlike lossy codecs such as Vorbis, MP3 and AAC, it does not remove any information from the audio stream and is suitable both for everyday playback and for archiving audio collections. The FLAC format is currently well supported by many software audio products.

It’s true, most of us still downloads and listens to MP3 (and most of our devices/software plays MP3) but believe it or not lots of software plugins, even hardware: http://flac.sourceforge.net/news.html have been built to support FLAC.

Generally FLAC are bigger (twice the size or more) than MP3, but small enough compared to WAV files (directly ripped from the audio CD). When I compared the same track, one encoded with FLAC and the other with MP3; the difference is so obvious. As an example, an album encoded in MP3 format might use up 80MB while the same album encoded in FLAC might end up using 300MB of your precious disk space (while WAV most probably take double than that).

Try it. Download FLAC at http://flac.sourceforge.net/download.html. For now, download the plugins or players until you decide to encode something to share with the community. As for the audio files, you have to download those yourselves. Google for them 😉 Hint: Learn about bittorrent and do a search like “Metallica torrent” in Google; most of FLAC encoded files are shared using bittorrent.

You won’t be disappointed, but the choice is yours.