Category Archives: Teknoblogia

Data Recovery in Linux

Willy posted an article discussing how to recover lost data in Linux.

I just would like to add a few more software that you can try for this purpose:

1. [ Foremost ]
Developed by the United States Air Force Office of Special Investigations and The Center for Information Systems Security Studies and Research, this may prove very beneficial in time of trouble.

2. [ DDrescue ]
This is the tool to use when you have a hard disk which is dying and have a load of bad sectors in it.
The tools is fully automatic, just run it and it will try its best to recover your data. It’s loaded with features; such as automatic merging (when there are several copies of the file, it will merge them to get the most complete version of the file), and robust recovery system; when run multiple times, it may be able to recover more of your data.
It also has logfile feature, which enable it to continue from the last point if it was interrupted.

Thanks to Willy for his post.

Ubuntu menjadi makin mudah dengan Automatix

Ubuntu adalah salah satu distro Linux yang paling mudah digunakan. Dengan Automatix, maka menjadi semakin mudah untuk meng optimize dan mendapatkan berbagai software untuk Ubuntu.

Daftar tweak dan software yang disediakan Automatix bisa dilihat disini.

Alternatif lainnya adalah EasyUbuntu, tapi setahu saya Automatix menyediakan lebih banyak software daripada EasyUbuntu.

Automatix kini juga sudah mendukung versi terbaru Ubuntu, yaitu Ubuntu 6.06 (Dapper Drake)

Semoga bermanfaat.

Turbo series is back

Just read on Koen’s blog that the Turbo products line will be revived. Great stuff !

I started my serious programming works on Turbo Pascal around 1990. It’s clear that the Turbo products was a breakthrough because of the following reasons :

  1. With the simple IDE (Integrated Development Environment), Borland significantly lowered the barrier of entry to programming. People can start to program and see results in very little time.
  2. Excellent documentations – it’s not easy to find product documentations that’s of equal quality of Borland’s. For example; a Turbo product manual also includes a programming tutorial, aiming at complete newbies. So you don’t need to buy additional “Idiot’s Guide To ..” book – Turbo product already got you covered. Before O’Reilly’s book series, there were Borland products and its excellent user manuals.
  3. Cheap – it was priced within a lot of people’s reach.
  4. Because of the reasons above, Borland’s Turbo series has helped Microsoft to dominate the PC platform, even though they’ll hate to admit it. Among the reasons of the OS/2’s failure (much to my grief) was lack of a big enough developer community (a vital ingredient to grow any platform).

Too bad there’s no Linux version yet, I think that would really help to entice more newbies to Linux programming. Oh well, later perhaps.

In the mean time, kudos to everyone involved.

LowFatLinux.com — panduan bagi pemula Linux

Bagi yang sudah selesai install Linux dan kini kebingungan, “mau apa lagi ?”…. situs LowFatLinux.com bisa membantu Anda.

Ditulis dengan bahasa yang sangat sederhana dan mudah dimengerti oleh siapa saja.
Saya sempat takjub juga pada awalnya melihat bagaimana newbie-oriented situs ini, dan bagaimana isinya membuat siapa saja merasa nyaman membacanya.
Kemudian saya perhatikan nama webmasternya, lha…. ternyata, Bob Rankin, salah satu dari 2 orang pembuat Tourbus.

Tourbus adalah salah satu mailing list (tepatnya, newsletter) yang pertama kali saya ikuti. Isinya adalah panduan ke berbagai resources / fasilitas yang ada di Internet. Ini adalah zaman ketika Google belum ada, dan berbagai search engine lebih banyak berisi link iklan daripada content yang relevan 🙂
Tourbus, sama juga seperti LowFatLinux.com, ditulis dengan bahasa yang santai, mudah dicerna, namun tetap penuh dengan informasi. Milis ini telah membantu saya sampai akhirnya mampu untuk “berkendara” sendiri di information superhighway. Hebatnya lagi, milis ini masih terus exist, dan menurut pemiliknya, kini telah memiliki 100.000 pelanggan. Luar biasa.
Hanya di Tourbus : Warning: squirrels. 🙂

euh, jadi melantur…. jangan lupa, segera bookmark [ LowFatLinux.com ].

nb: satu lagi situs seperti ini yang cukup lengkap dan bagus; LinuxCommand.org

Kekejaman Indofood

Saya kaget sekali sewaktu membaca posting Thomas yang berjudul Indomie Gempa Goreng Kriuk.

Saya sendiri tidak terlalu memperhatikan iklan tersebut. Tapi jika ini benar (Kriuk-nya mie ini “mampu membuat gempa”), maka saya kira ini cukup keterlaluan.

Perlu ada klarifikasi dari pihak Indofood untuk menjelaskan kejadian yang sebenarnya; apakah memang maksudnya mengeksploitasi musibah2 gempa kemarin ini, atau tidak sengaja, atau lain-lainnya. Kalau tidak, maka saya kira sah saja jika para korban gempa mengasumsikan bahwa Indofood memanfaatkan musibah2 kemarin ini untuk keuntungannya sendiri.

Berbagai iklan di Indonesia sekarang ini makin memprihatinkan saja. Sudah saatnya disusun kode etik periklanan Indonesia dan sebuah badan yang mengawasi penerapannya (dengan wewenang untuk menindak para pelanggarnya). Mudah-mudahan bisa segera terwujud.

Blogging in English

Just would like to say “well done” to Fatih Syuhud for his excellent post about why we should blog (more) in English.
I especially like point #6, this is after reading far too many news / article written by outside journalists but with very little information on Indonesia. I can’t blame them because sometimes the article was written in good intention, only lacking in in-depth information. We can only blame ourselves in that case I think.

Note that you don’t have to blog 100% in English. Create a special category (I just created “In English” and “Indonesiana” category), and post more in English, that’d be already much better.

So here again kudos to Fatih, and hope a lot of people will follow.

Indonesian Wikipedia

Wikipedia is a novel project. An effort to build an encyclopedia, which content is contributed by anyone willing to do so. The content then will be examined by anyone as well, and anyone may have their say regarding whether a specific content is appropriate or not. A form of the true democracy indeed.

When I first experienced the Internet back on 1996, I thought, wouldn’t it be great, if this (the Internet) can be used to pool our collective knowledge ? With Wikipedia (among others), the idea became a reality.

Even better – Indonesian Wikipedia has shown up for some time now. It’s the same Wikipedia too, built by Indonesian people, for Indonesian, in Indonesian language.
The amount of its contents has reached about 1000 MB (this is just the texts, not yet including pictures). This is quite an accomplishment and we should salute all of the contributotors of the project.

However, there’s one problem – the server (Indonesian Wikipedia) is located abroad. Due to limited external bandwidth, most of the time, access to this encyclopedia can be painfully slow.
Also there has been ideas to compile an offline version of it, which then can be distributed to schools and anyone who may need it. This would be rather troublesome with the current situation.

Thanks to Groups.or.id efforts, we can now enjoy Indonesian Wikipedia at blisteringly fast speed. This mirror will be updated roughly every week.

Note that the mirror is read-only. Which means if you wish to contribute to Wikipedia, then you’ll need to go to its main server.

Information is now not only free, but also can be obtained speedily. Thanks to everyone involved.

Link:
[Mirror of Indonesian Wikipedia ]

Email semi-hosted @ Gmail

I’ve got a domain name which need to be able to receive email from (anything)@domainname.com (catch all). However, as you know already, these days it means getting a lot of spam. And by a lot I’m talking like hundreds everyday.

I’ve setup a server with all sorts of anti spam & anti virus defenses. Unfortunately, the spam is still coming through in bulk. These vermints really need to be on the receiving end sometimes, enjoying their important mailbox bombarded by torrents of cheap viagra offers. Anyway …

I got an idea 2 days ago – how about if I redirect the incoming email to a Gmail account, let Gmail kill the spam, then I can fetch the (clean) mailbox with their POP3 feature ?
Sounds good to me, since I assumed Google would have far better resources to deal with spam, and therefore able to defend their mailbox better that me.

So I setup my mailserver to redirect the incoming mail for that domain to Google, and I waited.

After a day, I got about 5 spam in my Gmail Inbox… and 300 of them in the Spam folder. Hooray ! 😀

My server loves Google too now. SpamAssassin (and others) has been torturing it for some time, especially with those massive influx of spam. Now it just redirect the whole lot, and forget about it.
And I’m happy for obvious reasons.

Kudos to Google.

Esia sering nada sibuk

Akhir-akhir ini saya sering gagal menelpon relasi dengan menggunakan telpon Esia saya, mendapatkan nada sibuk. Tadinya saya kira memang sedang dipakai telponnya.
Tapi sekali iseng saya telpon dengan handphone XL saya – lha, bisa.

Lalu saya makin sering mengkomparasi ini. Ternyata, nyaris semua koneksi yang gagal dengan Esia kemudian bisa ketika langsung dicoba dengan XL.

Saya bingung, apakah handphone Esia saya rusak ?

Lalu saya membaca artikel detikcom berjudul Kapasitas Interkoneksi Terbatas Ancam Pertumbuhan Esia. Oalah… apa mungkin ini gara-garanya.
Saya kemudian juga menemukan posting Balada Telkom Flexi – Esia

What, Telkom can’t stand a bit of competition ? 🙂
(Esia – 1 juta pelanggan, Telkomsel – 21 juta pelanggan)

Anyway, ada yang punya informasi lebih lanjut? Silahkan tinggalkan komentarnya disini.

PHP: ajax without XMLHTTP-request

Got a request to make a quick hack; but this quick hack will be immensely helpful and able to cut like 3 hours of work / employee everyday. Naturally, seeing such huge cost / benefit ratio, I agreed to make it my priority.

The hack is to make pricing become automatic for a client. At the moment, they have to look up a pricing table manually for each order that they received. Even though they’re pretty big, built their own IT system from scratch, they’re still doing this particular topic manually. I can’t believe that their previous developer missed this stuff.

Until I realized the full scope of the job…. suffice to say, it’s complicated enough to scare most programmers. Their pricing scheme almost got no pattern at all, almost fully customized for every client. Yet we can’t afford to just enter the whole thing as it is to the database – it’d be too cumbersome.
The previous developers spent 3 years developing the system, and still managed to avoid this particular bit.

More time would be required to develop the algorithm and proper database schema, than the actual coding itself. Anyway, more to that probably later; one particular thing that I’d like to avoid in this job is the XMLHTTP-request stuff.
Why ? Because I’m too lazy 🙂 too lazy to implement it myself from scratch, and I don’t have the time to use the available implementations (and deal with their quirks/bugs).

I like things as simple and as fast as possible. I think I’m kinda a control freak, yes that explains it.

Anyway, here’s the requirement:

1. Once the staff entered an order into the system, he’ll clink into a link on the form.
This link will fill the textbox next to it with the right price for that order

That’s it. What’s going on behind the curtain is of course much more than that. Here you go :

1. The link actually invokes a JavaScript function called do_ajax()
2. The function will then append a JS element – which actually a PHP script. Thus executing the “AJAX” call
3. The JavaScript function can communicate with the server-side PHP script by way of GET method.
4. The PHP script produced its output as JavaScript code.

As simple as that.

Here are the details:

The HTML form

cn-ajax.js

cn-ajax.php

It may look complicated at first, but if you think of the cn-ajax.js as a blackbox,
then it became very simple.

NOTE: Another plus is that this form become usable for mobile warriors as well. Sure today’s PDA can do JavaScript – but speedily? Thought so.
This trick moves most of the processing to the server, with as little JavaScript code as possible. Therefore giving the best performance for these audience.

Other advantages are : clean, cross browsers, adherence to standards.
(thanks rendy ak)

Credit goes to PHPit.com for figuring these out.

TIP: Use Firefox while debugging this stuff. Its JavaScript console was a massive help to me.

OK, back to work.

Seminar Homeschooling : MENYUSUN KURIKULUM di RUMAH

To: asahpenaindonesia@yahoogroups.com
From: Yayah Komariah
Subject: [asahpenaindonesia] Undangan Workshop

Assalamu’alaikum Wr. Wb.

Untuk ke-3 kalinya Komunitas Homeschooling BERKEMAS akan menyelenggarakan Workshop tentang homeschooling, yang kali ini akan mengambil topik:

MENYUSUN KURIKULUM di RUMAH

yang insya Allah akan kami selenggarakan pada:

Hari/Tanggal: Sabtu, 12 Agustus 2006
Waktu: pk. 09.00 – 12.00 WIB
Tempat: Aula Peternakan, Jl. HR. Darsono, Ragunan, Ps.Minggu-Jaksel

Pembicara:

1. Ibu Yayah Komariah (praktisi pendidikan/homeschooler/ketua Komunitas Homeschooling BERKEMAS)
2. Ibu Emmy Soekresno (praktisi pendidikan/homeschooler/kepala Sekolah JERAPAH KECIL)

Biaya: Rp. 30.000,-/peserta

Bagi homeschooler yang berminat dapat langsung menghubungi ibu Yayah Komariah (0888 176 5303)

Wassalamu’alaikum Wr.Wb.

< *> To visit your group on the web, go to:
http://groups.yahoo.com/group/asahpenaindonesia/

PayPal “Buy Now” problems

Just setup PayPal “Buy Now” buttons in an eCommerce website. In short, with this facility, people can pay even without becoming a PayPal member. Very convenient indeed.

First I created one “Buy Now” button, and tested it. It worked very well.
So I created several more.

Then the problems started.

I got all sort of errors, including “Message 3104”. Basically, all the error messages asked me to login with existing PayPal account. Which pretty much defeats the purpose.

Googling around, all suggestions are about lowering security settings, allow cookies, and so on. Tried them, and still the same problem occured.

After hours of messing around, finally I found the culprit – instead of one <form> tag for EACH button, there was only one of it for ALL buttons.
No wonder PayPal got so confused with it.

I put one <form> tag for each button, and tried again – voila, I can pay for the goods just with my credit card now.

Hope it helps someone out there.

WordPress 2.0.4

WordPress 2.0.4 has been released. Not only it closes down critical security holes, it also fixes at least 50 bugs. So you really should install this version.

Thankfully this website is hosted on Dreamhost.com, and one click is all it took me to upgrade it.
Kudos again to Dreamhost.

Indonesian Bloggers Condemns Israel

I just posted a simple script on the sidebar of this blog to support Indonesian Blogger’s movement to condemn Israel. Instructions to join are available here.

In short, Israel is the root of the problems in Middle East.
First, it took over other people’s land, so it can create the country of Israel. Second, it has now employed policies so racist, it has became the Nazi of middle east. And so on.

There are propaganda campaigns going on all over the Internet that says the points above are wrong. But when you check with unbiased sources, you will find out that they are correct.

We have been invaded as well (Dutch & Japan), so we know that the ordeal of the Palestinians and others around Israel are worse. Back at that time, our freedom fighters too were branded as terrorists. Guess who ended up unmasked as the real terrorist ?

My heart goes to the victims of Israel’s atrocities.

To other Indonesian bloggers – you can do something. You are not helpless.

Expats are miserable in Indonesia…. ?

After reading countless complaints from Indonesian about discriminations against them over their expat counterparts (eg: same skill level, but the expats got paid like 5x, etc), I can’t believe that there are expats who are still complaining that their live in Indonesia is miserable 🙂

Holy Batman… you got paid in USD, spend in the cheap Rupiah, with Indonesians admiring your white skin – and you’re still complaining ?
Some people are just impossible to please 😀

I was an expat too, and I’ve had it worse. I’m quite sure that most expats are having it (way) better in Indonesia.
We also had our share of racial abuse. It seems that all races are capable of racism and xenophobia.
But we’re grateful with what we have.

So come on guys, think positive, then your life will be better. You did that to yourself.

I just hope Treespotter won’t get any backlash from all this, but he seems to be a very capable guy. So no worries here 🙂

Pengenalan Virtualisasi

Dalam dunia IT ada 2 teknologi yang dapat meningkatkan manfaat IT dan menurunkan biayanya secara signifikan, yaitu centralized computing dan virtualisasi.

Centralized computing sudah banyak saya bahas di berbagai artikel saya, Anda bisa search keyword “LTSP” dan akan mendapatkan berbagai penjelasan serta panduan implementasinya.

Mengenai virtualisasi akan saya bahas di posting ini secara ringkas.

Virtualisasi adalah metode untuk membuat sesuatu menjadi lepas dari ketergantungan secara fisik. Contoh; virtual machine adalah komputer, yang sebetulnya hanya berupa sebuah file di hard disk kita. Dengan virtualisasi, maka sebuah komputer (fisik) bisa menjalankan banyak komputer virtual sekaligus pada saat yang bersamaan.

Berbagai kelebihan virtualisasi :

  1. Penghematan biaya : di sebuah komputer server saya pernah menjalankan 4 buah virtual machine sekaligus.
    1 buah menjalankan OS Windows sebagai database server Oracle, satu buah menjalankan OS Solaris 8, satu buah menjalankan OS Suse Linux Enterprise, dan satu lagi OS Windows 2000 server. Sehingga, alih-alih membeli 4 buah server fisik, saya cukup membeli 1 buah saja.
    Juga, VMware server kini juga sudah bisa diakses secara remote. Maka, kita tidak perlu lagi membeli monitor/keyboard/mouse untuk setiap server – server bisa headless, dan kita akses secara remote saja.
  2. Murah : VMware Server kini sudah disediakan cuma-cuma, tanpa biaya. Demikian juga dengan berbagai solusi virtualisasi lainnya; VirtualPC, QEMU, Xen, dan lain-lainnya.
  3. Kemudahan maintenance : Biasanya, untuk maintenance sebuah server, kita perlu berada di lokasi server, dan ada monitor/keyboard/mouse untuk setiap server. Kini VMware server sudah bisa diakses secara remote. Maka, kini dari komputer kita sendiri, kita bisa mengakses puluhan server sekaligus yang berada di belahan dunia yang lain sekalipun pada saat yang bersamaan.
  4. Reliabilitas : Makin banyak server fisik berarti semakin besar kemungkinan terjadi kerusakan. Jika jumlah server fisik dikurangi, maka infrastruktur kita akan menjadi lebih reliable.
  5. Kemudahan backup : Biasanya kita tidak bisa membackup sebuah server secara utuh, karena jika suatu saat backup tersebut di restore di komputer yang berbeda hardwarenya, maka Windows biasanya akan gagal booting. Sialnya, backup per layanan (database, fileserver, dst), membuat proses backup menjadi lebih rumit, dan proses restorenya juga lebih memakan waktu.

    Kontra dengan virtual machine, dimana semua konfigurasinya sama. Contoh; semua virtual machine di VMware akan selalu mendapatkan card VGA VMware, network card PCnet, dst.
    Karena itu, backupnya jadi sangat mudah. Cukup copy virtual machine tersebut (biasanya berupa beberapa file) ke tempat backup.
    Proses restorenya yang lebih mengagumkan lagi – menjadi sangat mudah dan cepat. Cukup install VMware di komputer yang lain, dan copy virtual machine tersebut ke komputer tersebut – presto, semua kembali berjalan normal.

Demikianlah berbagai kelebihan virtualisasi. Seperti yang dapat Anda lihat, kelebihannya sangat banyak dan signifikan.

Teknolgi yang dulunya hanya tersedia di komputer mainframe (server kelas atas) kini sudah tersedia bagi kita semua, tanpa biaya pula. Jangan sampai luput untuk memanfaatkannya demi keuntungan Anda pribadi.

The Core

Nowadays I returned home around 23:00, and most of the time my body would be too exhausted but my mind still attached to work, making me unable to sleep. To help put it to rest, usually I like to read, messing around with my computer a bit, or watch movies. Sometimes I’m able to slip a bit of exercise as well while watching the movies. I’d fell on the bed around 01:00.
Helen has been kind enough to rend DVDs for me from VideoEzy at the day, so we can watch it together later.

A movie that I’ve been wanting to watch for sometime now is The Core. I’ve been reading Jules Verne’s Journey to the Centre of the Earth, and couldn’t wait to see something like it visualized. But I was too busy to watch it when it was on the theater.
Finally, about 3 days ago, I got my hands on it.

It didn’t disappoint. Sure, there are flaws on its science. But then again, which sci-fi movie hasn’t ? The Core actually is a bit better – one of the professor which was consulted on the movie then submitted the ideas (on sending a probe into the core of the earth) to the prestigious science journal, Nature. It was accepted and published on 15 May 2003.

But what The Core really is non-stop thriller and action.
I was rather sceptical about how a movie about 6 people trapped in a small space could get interesting. But they pulled it off.
Hairy problems keep popping up, and somehow, McGyver-style, they manage to solve those with their (indeed) very limited resources. Although many of the crew ended up dead, but they accomplished their mission.

Special FX are in abundance from start to the end. Although not all are perfect, but they are amusingly different than the others – not just explosions and other standard effects, but things like hordes of pigeons attacking people 🙂 and such. Refreshing indeed.

And; there was not a single the-girl-bare-it-all scene. This movie survived on adrenaline alone – from beginning to the end. Good for me, I hate it when the producer throws that in just for the sake of “hey look, we got [insert_gorgeous _actress] naked in our movie *drool*“, even when it’s totally unnecessary. And most of the time it’s not even convincingly done.

These kind of scenes are plain annoyance. I was pleasantly surprised that The Core didn’t feel the need for such thing (or, perhaps it’s been censored? dunno).
Here’s wishing there’d be more movies like this – just the interesting stuff, with no distraction. Better yet, get more “normal” people in (not just the skeleton-skinny girls / hunky guys), but I’m dreaming here, I know. Beauty over quality. OK. Gotcha.

Next – Bubba Ho-Tep. Bruce Campbell was the King of one-liners in Army of Darkness (absolutely hilarious), and people said he’s still the same there. Just what I need after a day’s hard work. But to be honest, I have no idea where to find it in Indonesia, heh. Let me know if you do.

We have moved

I’ve moved sufehmi.com to a new server at dreamhost.com

Everything looks pretty sweet, though email is still down. But once the new DNS records has been propagated properly, it should be ok – probably in about 12 hours.

There are so many information to share, things to do; but couldn’t be done on my old server. Now it’s been moved to the new one, I can start rearranging stuff around here, so it’ll become more useful (and more pleasant to look at as well).

Here’s hoping that dreamhost will stabilize soon 😀