Wednesday 30 December 2009

HP LaserJet P1006

Driver:

  1. foo2xqx, bukan yang dari repository Ubuntu, dan ikuti langkahnya.


Sharing di Windows require samba.

Untuk pasang driver tanpa instalasi, unzip file .exe. Add printer, browse file, cari file .inf. Next, beres.

Thursday 10 December 2009

Sylpheed di KDE

Ukuran font sylpheed+gtk yang running di KDE nggak mau tunduk sama font kde ataupun font gnome.
Ah, males nerusin.

Monday 7 December 2009

Menulis buku: tools

Sepertinya word prosesor, yang banyak fitur seperti MS Word dan OpenOffice.org terlalu gemuk untuk penulisan buku. Selulit dari kedua contoh word prosesor tersebut membuat distraction penulisan, karena penulis seharusnya lebih konsen ke konten bukan tampilan dengan Heading, footnote, styles, dst.

Persis iklan TeX dan turunannya macem LaTeX, Lyx, dst.: konsentrasi ke konten, karena tampilan sudah diurus sama TeX.

Kalau nggak ada TeX mungkin cukup gedit, kate dan freemind. Atau openoffice.org draw, tapi bukan inkscape dan gimp karena akan jadi distraction baru.

Setoran ke penerbit cukup dengan rtf dan gambar dalam 1 folder. Atau pdf hasil editan TeX kalau nggak mau repot ngasih judul gambar dengan nama file.

Desember, musim durian, musim laporan...

Tuesday 1 December 2009

PHP didalam Plone

Keynya adalah PHPParser. Berikut di cut and paste dari http://plone.org/documentation/how-to/integrate-php-applications. Males nerjemahin.


Integrating PHP applications in Plone

How to use PHPParser to display content from an external PHP application inside Plone.

Here are the steps to follow:

  • Install PHParser
  • From the ZMI, add a PHParser item that references each of your existing PHP page. For instance, if one of your PHP pages is located in /myphp/index.php, your PHParser item will contain:

  • In the ZMI, create a Page template for each PHP file. Each Page template will reference a PHParser item. For instance, if you have called your PHParser item mainPage:
  • You need the keyword structure if your PHP file generates HTML. If your PHP file generates plain text, you can simply use: content="here/mainPage".


Thanks to Wei He, creator of PHParser, for his help.

A more generic way

If you have many php files this is very tedious. There is in fact a more generic way, using one single template for all:

  • Create the template in your portal_skins/custom folder instead, call it php_view and modify it slightly
  • Replace
  • With
  • Then you access all your PHParser pages with myphppage/php_view

Note that you must consider security if you take the generic approach: remember that all your PHP files in that particular folder will be accessible.

Adobe AIR

Pengen install tweetdeck, tapi untuk download saja ternyata (homepagenya) perlu flashplugin terbaru. So, here's the clue:

  1. Download flash plugin dari adobe, atau run

  2. $ sudo apt-get install --reinstall flashplugin-nonfree. Permasalahan di Debian Lenny 5.0.3 karena libnspr4-dev dan libnss3-dev belum ada. Jadi, bisa install dulu keduanya dengan

  3. $ sudo apt-get install libnspr4-dev libnss3-dev

  4. Mungkin perlu juga $ sudo apt-get -f install, bergantung urutan yang dikerjakan. Kebalik-balik nggak pa-pa.

  5. Restart mozilla firefox atau iceweasel


Masuk ke www.tweetdeck.com, download tweetdeck, ia akan install (juga Adobe Air).