How to create CUE/BIN image in Linux

February 4, 2010 - Leave a Response

DOSBox’s wiki have a nice guide on how to create CUE/BIN image in Linux:

$ cdrdao read-cd –datafile image.bin –driver generic-mmc:0×20000 –device /dev/cdrom –read-raw image.toc
$ toc2cue image.toc image.cue

You’ll of course need cdrdao, which if you’re using Arch Linux, is in the extra repository.

Small realization

January 29, 2010 - Leave a Response

In case you didn’t noticed, I didn’t update this poor blog of mine that often.

At first I thought it was because, well, I just didn’t have anything to write. But after I have been trying out the magnificent blogit.vim script for Vim, it dawns on me that the main reason I blog so little is not that I didn’t have anything to write but more about the fact that I can’t stand the sluggishness of the web interface (yes, both Blogger and WordPress is equally bad in this department).

I guess this reinforced the fact that web application is still not ready to replace the good old, well, applications. I mean, can any web app beat the speed and responsiveness of good old local app like Vim? Maybe in the future, but definitely not now.

Kudos to all people who make blogit.vim, blogging have never been this fun. :)

เขียน blog โดยใช้ blogit.vim

January 29, 2010 - Leave a Response

ลองทำการเขียน blog โดยใช้ Vim script ที่ชื่อ blogit.vim ดู

เท่าที่ลองใช้ดูแล้ว ไม่เลวเลยที่เดียว นอกจากจะทำการเขียน post ใหม่ได้แล้วยังสามารถทำการแก้ไข/ลบ post เก่าๆ ได้ด้วย นอกจากนี้ยังสามารถทำการ preview post ที่เขียน (แบบ local!) ได้ด้วย ถึงแม้จะมีปัญหา encoding เมื่อตอนใช้กับภาษาไทยก็ตาม แต่ก็ถือว่าไม่ใช่เรื่องใหญ่

ชักจะติดใจซะแล้วแฮะ :D

Blogging with blogit.vim

January 28, 2010 - Leave a Response

Try out blogging using blogit.vim Vim script.

Aside from minor issue with publish date, everything have been working great so far.

Mutt, Rxvt-unicode and the problem with backspace key

January 28, 2010 - Leave a Response

Mutt is a very nice email client. In fact, I think it is currently the best client to use with Gmail’s IMAP.

However, I run into some problem with Mutt on Rxvt-unicode: the backspace key doesn’t seem to work in pager and thus I cannot scroll back the mail I’m reading.

Today I’ve found the solution, it turns out that Rxvt-unicode use some none standard value for backspace key. Rxvt-unicode use “^?”, while Mutt seems to expect… something else.

Anyway, the solution is to simply bind Mutt’s previous-line action to “^?” (that’s Ctrl + ?, so we must use “\c?” in .muttrc) and voila! Backspace key is now working.

More info about Rxvt-unicode’s backspace key value can be found in its man page.

Mercurial’s Branching Explained

October 5, 2009 - Leave a Response

For anyone interested in how branching in Mercurial works, then this blog post by Steve Losh is a must read:

A Guide to Branching in Mercurial

Moving to Bitbucket

October 5, 2009 - Leave a Response

Finally fed up with Github bugginess  (missing public activities history, tag shows up again after I’ve deleted them, etc.), I’ve decided to start moving my stuffs over to Bitbucket.

So, so long, Github. We had a good time together, but sadly it didn’t last.

CFLAGS for Atom with Additional Optimization

September 22, 2009 - Leave a Response

Stumbled upon a blog post on Ivan Voras’ blog which give a nice advise on CFLAGS that provide additional optimization for Atom CPU on my Eee PC 901.

Combine Ivan suggestion with Arch Wiki’s suggestion on safe CFLAGS for Atom and we have this:

# CFLAGS For Atom with additional optimization
CFLAGS=”-march=prescott -mfpmath=sse -O3 -pipe -fomit-frame-pointer”
CXXFLAGS=”-march=prescott -mfpmath=sse -O3 -pipe -fomit-frame-pointer”

I’ve tried out the above CFLAGS by using them to compile my custom kernel. I haven’t got time to play with it yet, but from what I’ve seen so far, things does feel faster. Bootchart showed that the system boot up faster by 1 second and Powertop showed that the system as a whole consume less power.

I’ll have to spent more time with the new kernel to see whether this is a placebo effect or not, but things have been looking promising so far.

Bitbucket is Also Fantastic

May 29, 2009 - Leave a Response

*Meant to post this one since last month. Show just how lazy I am…

In my last post, I loudly proclaimed that GitHub is fantastic. Well, after using Mercurial (hg) and Bitbucket for this past month, I can say that Mercurial (and Bitbucket) is also fantastic (in its own ways). I especially love that Bitbucket gives you one free private repository to host your, well, private stuffs.

Anyway, If you can, try them out both and see which one you like the most. Both of them are very good DVCS and won’t dissapoint.

Oh, and while you’re at it, why don’t check out my account on Bitbucket?

GitHub is Fantastic

March 28, 2009 - One Response

Nuff said.

Check out my GitHub account page, which hosted my customized kernel for ASUS Eee PC 901, among other things.