Monthly Archives: November 2004

Cara mudah belajar Regex (regular expression)

Andrei Zmievski, developer PHP & fasilitas regex di PHP & software engineer Yahoo, baru-baru ini melakukan presentasi mengenai Regex di seminar php-works. Presentasi ini sangat bagus bagi para pemula yang ingin belajar mengenai Regex.

Syukurlah kini presentasi tersebut sudah ditaruh di website Andrei, sehingga bisa kita download secara cuma-cuma.

Download dari sini : [ Regex Clinic ].
Atau, [ download via email ] (14 MB)

Setelah menonton presentasi tersebut, jangan lupa untuk berlatih regex dengan bantuan dari Regex Coach.

Selamat belajar Regex.

Berbagi Ilmu

Ikhlasul Amal mengajak kita untuk saling berbagi pengetahuan di sebuah entry di blog-nya.

Saya kemudian menuliskan sebuah komentar, tapi ketika di-submit tidak muncul. Mungkin ada moderasi komentar, anyway saya akan dokumentasikan saja disini juga; dengan beberapa tambahan spt link ke cwRsync dll :

=======================
Saya kira ide http://planet.terasi.net sudah bagus.

Kita jadi bisa sharing pengetahuan kita dengan mudah. Saya sendiri posting ke agregat tsb via email (well, sebetulnya posting ke kategori teknoblogia di blog saya, yang kemudian “disedot” oleh planet), sehingga sangat memudahkan proses sharing knowledge-nya.

Lalu situs planet.terasi.net ini juga mudah di-index oleh search engine (barusan sudah saya submit ke http://google.com/addurl), sehingga kemudian mudah ditemukan oleh yang membutuhkan.

Sebetulnya, memang saat ini planet.terasi.net masih belum membatasi bahwa hanya topik IT yang boleh ditampilkan, jadi saya mulai dari saya sendiri dulu, mengikuti sebuah ide yang dilemparkan di forum teknologia.
Saya pikir bagus kalau bisa disediakan 2 agregat – satu menampilkan blog umum, dan satu lagi menampilkan blog khusus mengenai teknologi/IT.

Mengenai wget – hati-hati, IlmuKomputer.com sudah pernah diusir oleh berbagai webhoster mereka karena overquota bandwidth – salah satunya adalah karena pengguna wget / kegiatan me-mirror situs ini. Situs Isnet.org juga pernah mengalami masalah yang sama; terakhir terpaksa pindah dari webhosternya di Amerika dan sekarang dihosting di Indonesia.

Jadi kalau bisa memesan versi CD-nya, mungkin itu lebih baik. Dan untuk update rutin bisa menggunakan rsync yang hemat bandwidth.
(pengguna Windows bisa menggunakan software cwRsync, dll)

Mengenai menggugah masyarakat untuk menjadi kontributor – selama ini pengalaman saya masalahnya adalah waktu. Banyak kawan-kawan yang ingin berkontribusi, namun terbentur pada kendala waktu.
Jadi kalau proses kontribusi bisa dilakukan dalam waktu yang sesingkat-singkatnya dan nyaman, mungkin bisa lebih banyak yang berkontribusi.

Salah satunya mungkin adalah dengan menyediakan fasilitas blog yang bisa diisi via email. Bagi yang bisa memberi manfaat bagi komunitas IT Indonesia, saya bersedia menyediakan fasilitas ini secara cuma-cuma.
Beri saya sedikit informasi mengenai Anda / CV, dan apa yang ingin Anda bahas.
=======================

Anti-spam untuk WordPress

Sudah beberapa waktu ini saya mencari-cari solusi anti-spam untuk spammer yang mengiklankan produk-produk mereka di berbagai blog.

Sebetulnya sih saya sudah menemukan plugin Trencaspammer, yang menampilkan sebuah gambar yang menampilkan kode, dan mengharuskan komentator untuk menuliskan kode tersebut. Ini cara paling ampuh untuk mengalahkan blog spammer, dengan usaha minimal dari kita.

Tapi “teracuni” Priyadi yang mengutamakan accessibility (Trencaspammer misalnya akan memblokir pengguna Internet tuna netra), akhirnya saya memilih menggunakan Comment Preview.
Selain menyulitkan spammer (karena biasanya software spam mereka tidak mengantisipasi form komentar dengan fasilitas preview), ini sekaligus memungkinkan Anda untuk melihat bagaimana komentar Anda akan ditampilkan.
Jadi kalaupun spammer bisa mengatasi ini, saya tidak rugi karena masih mendapatkan fasilitas preview (dan kemudian tinggal memasang Trencaspammer)

IPcop v1.4 telah dirilis

IPcop v1.4 telah dirilis.
IPcop adalah firewall yang bisa di-install dengan mudah dan dalam waktu beberapa menit saja. Saya sendiri sudah menggunakan versi 1.3-nya selama bertahun-tahun, dan belum pernah mengalami masalah.

IPcop memang harus dipasang komputer tersendiri, tapi ini lebih bagus karena lebih aman. Beberapa firewall yang dijalankan di Windows ternyata bisa dimatikan oleh virus/hacker.
Lagipula, IPcop tidak membutuhkan komputer mewah – komputer 486 bekas dengan memory 12 MB sudah mencukupi.

Walaupun gratis, ternyata kemampuan IPcop tidak kalah dengan berbagai firewall komersil ! Administrasi via browser, VPN, traffic shaping/limiting, pemisahan network (red/internet, orange/dmz, green/LAN, blue/wireless), Intrusion detection, Proxy server, dll – lebih detailnya bisa dilihat misalnya [ disini ] dan [ disini ].

[ Situs IPcop ]

Intellectual Property

…standing on the shoulder of the giants
— Linus Torvalds in his biography, attributed to Isaac Newton.

The quote above means to be able to utilise others’ achievements in order to make progress. It’s the reverse of “reinventing the wheel”.
Great scholars and inventors of the past benefited from this greatly.

However, international patent laws are set to stifle this – the system enable the rich & greedy to acquire large number of patents, thus disabling others from basing their work on it:
http://economist.com/opinion/displayStory.cfm?story_id=3376181

Worse, the patent applications are flooding the patent offices, so the overworked staff are granting it even to the ridiculous ones.

An example is the notorious hyperlink patent, owned by British Telecom. Even though Sir Tim Berners-Lee doesn’t patent this invention of his, BT applied for patent for it instead – and got it.

Somebody may commented that you can always challenge a patent – the problem is, the process is not doable to most people.
It takes time, and most of the time, a LOT of money.

So the big corporations are getting away with it. And the rest of humankind just have to enjoy this new kind of slavery – ideas slavery.

Interestingly, America was able to flourish due to the lack of patent system:
http://www.nytimes.com/2002/10/14/technology/14NECO.html

Ideally, the solution is to abolish patent.
But, with current condition, this will just make the big boys to copy the small fishes’ innovations, and kill them with advertising and cheap price brought by mass production.

For now, the solution probably is to set the fee of patent application variably, depending on the applicant’s last year income. And then the patent may not be transferred to other party.
This way, patents will become affordable to the poor (but creative), and will stop the big corporations from putting a burden on the system.

The world we live in today

The following is such an excellent summary of the world we live in today:

…On that note, f*ck America (or more specifically its government). It has ceased to care about any person without a million dollar pocket book. The laws of America now exist to enslave its poor and empower its rich.

Although, the sad part is that the comman man is just as responsible as anybody else for this outcome. We have empowered them through our complacency and utter lack of regard for anything other than what is on our damn televisions every night. We have been enslaved to technology, and as a result those that produce that technology own us all. Especially, now that what we see on television (our defacto standard for the propogation of our culture) tells us that men have to be ignorant fools who are only interested in football, sex, gadgets, and being retarded with their friends to fit in. And women just have to buy everything including a perfect body to do the same. We are trained to be submissive idiots, questioning those who are otherwise.

Oh well, at least we still have our sweet… sweet capitalism. At least we have a choice of where we buy things. You know ma & pa shop down the street or Wal-Mart up the street for 70% less (which coincidentally enough is all you can afford now that you work there). Good thing McCarthy came along and kept us from falling into the hell hole of desperation that is communism.

And at least we still have our voice in our government. You know our solitary occasional whispering voices, compared to industries full time lobbyists. I am perfectly satisfied with all of my governmental representatives are you ;-). So when’s the next civil war?

Source:
http://yro.slashdot.org/comments.pl?sid=129665&cid=10817291

Fedora Core 3 & Solaris 10

Lots of goodies today in Slashdot:

Fedora Core 3 released

I must admit that I was very sceptical when FC1 was released – I’ve had bad experience with previous releases of RedHat, and I never liked RH as a distro.

Then I tried FC2, and fell in love with it straight away. Here’s what I found:

# Truly free (as in speech), open, community-backed distro. Reminds me of Debian.
# Distro that “Just Works” – even on high-end server hardware (which usually uses strange chipset/configuration)
# Good on desktop role, Excellent on server role.
# Sensible setup process, with ability to go into great details if necessary.
# Great momentum – a LOT of people are using Fedora.
# Great choice in software management – I’m using apt on FC2 servers as we speak; yum & up2date are also available.

The last one is particularly important, because I’ve had enough spending days managing software on many servers – I now demand apt (or similar facility) whenever I could to save my time on mundane things and actually enable me to do things that’s more interesting.

I expect FC3 to be even better than FC2, well I guess I’ll find that out soon enough.

A note – contrary to a comment on that post above, I don’t think that SElinux – as it is – will make FC3 suddenly very secure. Don’t get me wrong – any security enhancements should be most welcomed by any security-conscious administrators; but I just think that the commentator is getting hyped up on one thing, and he may miss other similarly important things.
For example, you need to understand how it works to get maximum benefit from it. Otherwise, you’ll fell into false sense of security.

Solaris 10 released

I have a mixed feeling about this. First, I agree that Solaris is an excellent OS. But, I somehow doubt that Sun is able to pull such a huge leap (from Solaris 9) in such a short time – ZFS alone is quite unbelievable, then they promised Linux-compatibility (while I have had problems as silly as applying patches created by GNU/patch using Solaris’ patch), revolutionary TCP/IP stack, etc.
So I think it’ll be ridden with quite a lot of bugs.

Also, open source Solaris ? Doubt it, most probably there’ll some limitations on its license. Probably we’ll see the detailed analysis of it in Groklaw soon.

A commentator in the post above said that he’s heard McNealy promised it (open-sourcing Solaris) himself on an interview. Sorry, but I have problem believing a guy who flipped in an instant and now sleep in the same bed with his previous biggest enemy.

However, if it comes out as true – open-source developers are in for a joyride. Various solid technologies on Solaris are then available for picking by them.

But personally I still won’t use Solaris 10 for production unless I got loads of money to spare to subscribe to its bugfix/patches service….

btw, as I said before, if you use open-source software on Solaris, I think you’ll be very interested on Blastwave.org

Gentoo dan Debian

Salah satu hal yang disenangi oleh pengguna distro Gentoo adalah karena software-software yang terpasang sudah optimal untuk komputernya – karena di-compile / optimized untuk komputer tersebut

Ternyata Debian juga bisa…

apt-get build-dep package
apt-get –compile source package
dpkg -i package.deb

(kaget sendiri 😀 )

Vacancies on MessageLabs

There are 3 job opening at MessageLabs, a very well known company providing corporate email services.

The interesting thing about them is that they are willing to accept non-UK/non-EU citizen !
So if you’ve been wanting to work in UK – here’s your chance.

The vacancies for now are:
# Perl Junior Programmer
# System Test Engineer
# Software Engineer – Security

Click on “more” below for the details.

Continue reading Vacancies on MessageLabs

Sufi ?

Barangsiapa mempelajari Tasawuf tanpa Fiqh maka akan sesat.
Barangsiapa mempelajari Fikih tanpa Tasawuf adalah fasiq (orang yang melakukan kesalahan).
Barangsiapa yang mengumpulkan keduanya maka akan menemukan kebenaran

— Imam Malik

Ada kawan-kawan yang berguru kepada berbagai syekh sufi di berbagai negara. Tapi anehnya, kelakuan mereka jauh dari bayangan kita mengenai sufi itu sendiri. Beberapa contoh ucapan mereka:

  1. Kalau kamu enggak punya guru, maka gurunya adalah setan.
  2. (diucapkan ke seorang guru TPA yang mengajar dengan ikhlas tanpa bayaran) Enggak boleh ngajarin Al-Quran kalau agamanya belum sempurna (baca: punya guru/syaikh)
  3. Ghibah bahwa seseorang telah menzaliminya – tetapi ketika dicek ke ybs, ternyata tidak pernah
  4. dll

Menyedihkan.

Saya pribadi berpegang pada nasihat dari Imam Malik diatas.
Semoga Allah swt berkenan untuk selalu menunjuki kami di jalan yang lurus, Amin…

How to upgrade your Yahoo email account to 1000 MB

Are you burning with envy, seeing your friends and their 1GB Gmail account? Well you can stop doing it now, since you can have it yourself with Yahoo. Here’s how:

  1. You must already have an email account with Yahoo. This may still work if you don’t have one already but I haven’t tried it myself. To sign up, just head over to http://mail.yahoo.com
  2. Go to http://cn.mail.yahoo.com
  3. You’ll see a page in Chinese. On the top-right, enter your username on the top textbox, and your password on the textbox below it.
  4. Right under the textboxes are 2 buttons. The top button is to login to your account, the second is to upgrade your account to 1GB. Naturally, you’ll want to click the second button.
  5. The next page will be shown with a button in the center. Click that button.
  6. It’ll try to install an update assistant, allow the install to finish.
  7. Another page will show up, in the middle there’ll be 2 textboxes next to each other.
  8. Enter your username in the left textbox, and your password on the left textbox. Then click on the left button.
  9. A page will show up, click the button in the middle.
  10. Presto – your Yahoo email account was just upgraded to 1 GB

Now if you logon to your account as usual (via http://mail.yahoo.com), you’ll see that indeed the limit is now 1GB.
Enjoy 🙂

note:
Since I can’t read Chinese, I don’t know if there’s any catch to this offer, other than the installation of the update assistant. So far so good, but as usual, YMMV.

credit: This post is a translation of a forwarded post from Anny in MIFTA forum.

Belajar PHP – cara mudah & cepat

Update: versi terbaru dari artikel ini bisa dibaca disini.

Sudah beberapa kali saya mendapat pertanyaan tentang bagaimana cara yang mudah dan cepat untuk belajar PHP. Kali ini akan saya posting disini, mudah-mudahan jadi bisa bermanfaat untuk lebih banyak orang.

  1. Install PHP & MySQL.
    Jika Anda menggunakan Windows, Anda bisa download FoxServ. Jika Anda menggunakan Linux, silahkan install Apache, PHP, MySQL; misalnya dengan merujuk kesini.
  2. Pelajari tutorial-tutorial berikut ini (sesuai urutan):
    1. Memulai belajar PHP
    2. Membuat form sederhana
    3. Membuat form yang terdiri dari beberapa halaman
  3. Agar bisa mengakses MySQL dari PHP, silahkan membaca tutorial yang bagus ini: Webmonkey.com: cara memanfaatkan MySQL dari PHP
  4. Kalau sudah memahami semuanya, bisa dilanjutkan ke 2 topik berikut ini – tidak wajib, tapi berguna/menarik untuk diketahui :
  5. Selamat ! Anda kini sudah cukup menguasai PHP – ini saat yang tepat untuk mulai mengakrabkan diri dengan cara-cara untuk mengamankan PHP

Beberapa informasi tambahan:

Semoga bermanfaat.

CD Linux gratis

UbuntuLinux menyediakan CD Linux gratis sebagai bagian dalam promosi distronya yang baru ini.
Silahkan klik disini untuk mendapatkannya. Tapi jangan menunda-nunda, karena hanya tersedia sampai tanggal 12 November 2004.

Beberapa kelebihan Ubuntu Linux dari distro-distro lainnya:

  1. Mudah digunakan
  2. “Just works” – kompatibel dengan mayoritas komputer yang ada
  3. Gratis
  4. Stabil
  5. Lebih kebal virus
  6. Didukung oleh seorang jutawan Inggris dalam misinya untuk memasyarakatkan komputer & memanfaatkan teknologi untuk kesejahteraan masyarakat.
  7. dll

[ Gratis: CD Ubuntu Linux ]

WordPress: notifikasi via email bagi komentator posting

Selama ini, saya agak malas memberi komentar di berbagai blog yang ada karena sulit untuk memeriksa respon balik dari komentar tsb.

Padahal, sebetulnya banyak posting di berbagai blog yang sangat menarik untuk menjadi bahan diskusi. Cuma ya itu, saya tidak punya cukup waktu untuk secara periodik memeriksa kembali semua komentar2 yang saya tinggalkan (apakah sudah ada komentar baliknya).

Terimakasih kepada Benny, sekarang blog ini sudah memiliki fasilitas tersebut.

Jika Anda memberi komentar di blog ini, dan memilih option “Ingin diberitahu kalau ada komentar baru untuk posting ini ?”, maka Anda akan diberitahu via email setiap kali ada komentar baru di posting tersebut.

WordPress: SubscribeToComment plugin
WordPress: Daftar plugin yang tersedia