Skip to main content

Posts

NOTEPAD++ SOURCECOOKIFIER SETTING FOR CLIPPER LANGUAGE

Notepad++ is a very excellent programmer editor for Windows. It has plugin system which enhances it's functionality. Sourcecookifier is a plugin I like very much, it is a simple plugin which shows the outline of your source code. The screenshot below shows a pascal (delphi) source code. We can easily see the structure of the source code, and we can go to a particular method/function just by one click. Sourcecookifier recognizes several programming languages, but it does not support Clipper language. Fortunately, it is very easy to add Clipper configure. Follow this step: Click setting icon (the yellow gear icon) on the sourcecookiefier window. Click Language Settings On the setting form, type Clipper on the language box and click add. Set the file extension setting, add .prg to the extenson box On Tag Type choose any letter you like. Here I add “f” for “function” (any letter will be fine) On Appearance box, you can write the de...

Install PCI Parallel card murah meriah di Linux.

Baru-baru ini, parallel port onboard di salah satu komputer klienku rusak. Lalu dibelikan Parallel card PCI made in China yang murah meriah. Card ini tidak ada merknya cuma ada tulisannya PCI60806A dan cuma terdiri dari 1 IC :) Tapi setelah dipasang ternyata parallel card ini tidak dikenali di ubuntu, sehingga kemarin terpaksa komputernya di bawa ke rumahku untuk opname. Anehnya, output dari perintah lspci -v mengatakan bahwa card ini adalah serial port: 03:00.0 Serial controller: Device 4651:7073 (rev 10) (prog-if 02 [16550]) Subsystem: Device 4651:7073 Flags: medium devsel, IRQ 20 I/O ports at df00 [size=8] I/O ports at de00 [size=8] Kernel driver in use: serial Dari hasil googling ternyata ini memang kasus umum pada pci parallel card murah meriah, card-card ini sebenarnya mempunyai 2 fungsi interface, serial interface dan parallel interface. I/O port pertama (df00) adalah port untuk Serial Port sedangkan port kedua (de00) adalah untuk Parallel...

Install Windows Printer Fuji Xerox DocuPrint P205 b di Ubuntu

Kemarin ada yang baik hati memberikan aku printer laser Fuji Xerox type DocPrint P205b. Masalahnya, printing system di Ubuntu (CUPS) tidak ada driver untuk printer ini. Situs Fuji Xerox pun ( http://www.fujixeroxprinters.com.au/en/Downloads.aspx?product=9933 ) tidak menyediakan printer driver untuk linux, karena ternyata printer ini adalah GDI printer. GDI printer biasanya merupakan printer murah meriah, karena dia tidak mempunyai 'otak' untuk memproses image (rasterize). Pemrosesan image diserahkan ke operating system. Oleh karena itu printer-printer semacam ini biasanya hanya bisa dipakai di Windows saja. Namun, dunia linux benar-benar menakjubkan – hampir tidak ada yang mustahil di linux. Setelah searching di internet, akhirnya aku menemukan sebuah situs yang menyediakan driver untuk printer ini, namun untuk menginstallnya tidak sekedar mengcopy file drivernya (.ppd) saja. Silahkan cek http://foo2hbpl.rkkda.com/ . Di bawah ini adalah langkah-langkah untuk mengi...

Creating custom build wine deb package

In one of my projects, I need to install custom build of wine to several computers running ubuntu. Hence, I had to get the sources, apply the patch files and then compile the source.  Doing this for 1 computer is okay, however repeating this to several computers is a huge waste of time. The solution is compiling once and then build a debian package (*.deb), so for the other computers we just install the debian package file. Fortunately, making a debian package is very-very easy. Here is what I did:

Merge several pdfs in ubuntu

Some times we need to merge several pdf files into 1 pdf file. Fortunately, it is very easy to do it in ubuntu.   For instance, I have 2 pdf files: proposal_rpi.pdf and program_qc.pdf. Here is how I merge these 2 files into 1 pdf file: proposal_jan_15_2012.pdf: bambang@bambang-notebook:~$ gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=proposal_jan_15_2012.pdf -dBATCH proposal_rpi.pdf program_qc.pdf

Tip: Recompiling PHP under linux

There is a problem if we install PHP from source, i.e: when we need to recompile due to a new version we should reapply the old configure parameter. Forgetting to enable some features often means break our web application which depends to the feature, however it is also hard memorizing what parameters we passed to the configure command as we do not often compiling the PHP. Fortunately, there is an easy way. Here it goes:

HTML <textarea> maxlength problem

We can limit the maximum characters in <input> with <maxlength> attribute. However it is not possible to do the same thing with <textarea> . This will be a problem if value of the <textarea> will be stored into database table and the length of the user input exceeds the field's length, either the value will be truncated or your database will throw an error to you.