Archive for January, 2007

obfuscating PHP code

Monday, January 29th, 2007

Recently I needed to obfuscate PHP code. Nothing fancy, no bullet-proof protection needed. The goals were:
* complicate removing of license protection by an unexpierenced person, and
* prevent code re-use by a third party.


mysql statistics

Saturday, January 27th, 2007

Found an useful command: “SHOW STATUS” or, depending on the mysql version, “SHOW GLOBAL STATUS“. Of some interest also “SHOW VARIABLES” (or, correspondingly, “SHOW GLOBAL VARIABLES“).


the essence of functional programming

Wednesday, January 24th, 2007

I’ve transcripted the code examples from the paper “The essence of functional programming” by Philip Wadler.


Learning Haskell

Wednesday, January 17th, 2007

The main problem of learning Haskell is the very beginning, the first step: to write a working program, which
* as small as possible, and
* more than just print "Hello, World!"

Lexmark isn’t printing

Tuesday, January 16th, 2007

After returning from holidays, I found that printer doesn’t print anymore. After some investigation, I found that dmesg contains:

usb 2-1: new full speed USB device using uhci_hcd and address 7
usb 2-1: device not accepting address 7, error -71
usb 2-1: new full speed USB device using uhci_hcd and address 8
usb 2-1: device descriptor read/64, error -71