project

Buat Programming Contest Environment, Susah!

Proyek gw sekarang membuat programming contest environment (kayaknya sih namanya itu) – aplikasi yang digunakan untuk lomba-lomba pemrograman seperti ACM, IOI dll. Sebenarnya sudah ada sih aplikasi yang sudah jadi (dan open source) yaitu Mooshak.

Tetapi sayangnya, karena gw nggak punya server sendiri (yang bisa benar-benar diutak-atik sendiri dan install apa saja semaunya), program-program yang disubmit harus dijalanin di komputer lain (bukan di server). Nah, membuat fitur itu yang sulit (gak ada di Mooshak). Selain itu Mooshak juga butuh TCL dan shell access untuk jalan. Sekaligus harus buat client yang bertugas untuk koneksi ke server, compile, dan mengirim hasilnya. Belum lagi masalah security (gak mungkin kan siapa saja boleh grading, nanti testcasenya bisa bocor dong?) Read more »

Salvation for Textile Drupal Module!

The last version of PHP seems to break the current Textile module for Drupal. I also experienced the bug – OLs and LIs suddenly doesn’t work as expected, and later I also discovered that one of my page also suffer from the blank page bug . Dreamhost issue (also this one which is basically the same) and the bug I experienced, apparently have the same root of evil: the core Textile module.

I don’t really think that TextilePHP, the code base this module is using is maintained anymore. Instead, the Textile implementation of Treshold State seems to be much better (if it is maintained at all). I tweaked around a bit to integrate it to textile.module (throwing out the original TextilePHP), tested it, and boom – bugs went nowhere! Hooray! Read more »

Random Name Generator, in Javascript

This random name generator is one of my results on toying with Javascript. It is sometimes useful if you want to tweak your fantasy a bit! It is also useful for generating names for characters in games (especially fantasy RPGs). You can try it right away as it is written purely in HTML and Javascript.

Sometimes the generator produces non-sensible and hard-to-pronounce names, like ‘Jugxyzthw’. There are plenty of them (well, yes, plenty), and since the algorithm does not rely on English dictionary it is unavoidable. But the rest are good names that can be used for anything from game characters to country names.

This random name generator is one of my results on toying with Javascript. It is sometimes useful if you want to tweak your fantasy a bit! It is also useful for generating names for characters in games (especially fantasy RPGs). You can try it right away as it is written purely in HTML and Javascript.

Sometimes the generator produces non-sensible and hard-to-pronounce names, like ‘Jugxyzthw’. There are plenty of them (well, yes, plenty), and since the algorithm does not rely on English dictionary it is unavoidable. But the rest are good names that can be used for anything from game characters to country names. Read more »

Ip2Nation for Drupal

This Ip2Nation module provides an API to access ip2nation database in Drupal. Actually, there is a module called ip2cc which does the same thing, but it exposes another Ip-to-Country database. Ip2nation database is better because it is optimized for queries (and so smaller and faster to use), so I made this module.

Another feature in this module is commenter’s information. You can show from which country a comment in your website is from. This is nice especially for social websites that have lots of users all around the world, or for personal blogs. Of course you can turn off this feature at will (it is, by default). If you know HTML you can put up country flags in the comments, too. Read more »

Recent comments