Wednesday, 20 January 2010

Samsung CLP 300N

OOps, seems I failed to note things about My new Samsung CLP300N printer.
Well, the CD contain driver that is old enough to work with Debian 5 Lenny, but Samsung support told the CLP310 driver (unified driver, actually) works fine. However, I can not find the printer to accept custom size paper. Card stock is accepted.

foo2 driver also work, but the paper size end similar.

http://donaldkenney.110mb.com/LPRINTER.HTM wrote there is another driver namely SPLIX (http://splix.ap2c.org/), but I haven't got chance to try it.

Sunday, 3 January 2010

Screen saver mati setelah upgrade

Permasalahan:

Screensaver di kde3 (Debian Lenny) tidak bekerja, setelah upgrade dari Etch.

Hardware:

Radeon x1200 (drivernya ribet) di ASUS M2A-VM HDMI (sudah 2 kali masuk bengkel Asus dan beberapa waktu lalu sempat tidak terbaca lagi).

Resolusi:

Setup screensaver dari KDesktop - configure menunjuk libgl.so.1 menghilang. Library ini satu paket didalam  libgl1-mesa-glx, karena xorg saya menggunakan driver vesa, bukan nv atau nvidia atau fglrx (dengan alasan hardware yang tidak bagus).

Instalasi libgl1-mesa-swx11 menghapus paket libgl1-mesa-dri dan libgl1-mesa-glx. Konsekuensinya luas, karena ada kpovmodeler, octplot, krita, vlc, blender, xine, wine, blender, quicktime, compiz dan beberapa yang lain bergantung kesini. Tapi saya kira kalau toh harus ngoprek apss tsb ya ok, karena mesa lama memang sudah tidak optimal.

Belum dicoba sih, tapi paling librarynya langsung menunjuk ke yang baru. Yang jelas, dan screensaver kdesktop-configure sudah jalan lagi plus googleearth yang tadinya tidak mau render sudah jalan dengan sangat baik.

Terima kasihku untuk komunitas libmesa untuk driver glx dan dri yang semakin cihui!

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).