This is a poor man’s implementation of PHP environment chrooting. Apache’s suexec is too hardwired to user homes. Suexec is probably more secure but this is more flexible. (more…)
Detaching MS Windows libusb driver
It was easy to assign a FTDI device VID/PID to a libusb backend with Zadig. But detaching it from the libusb and assigning the original FTD2XX driver wasn’t so easy. Simple “remove device” in the Device Manager is not sufficient. When you plug back the device it will be assigned to the libusb again.
Formating Sweex MP3 player in Linux
I bought a year ago a tiny MP3 player Sweex Clipz MP300. I found it to be very tricky to format it in Linux. After few trials and errors I found a way. (more…)
1-Wire and MSP430
Emulating Raspberry Pi
My friend asked me if there is any possibility to try Raspberry Pi disk image in MS Windows. What a challenge! It wasn’t any challenge at all since I found almost everything prepared.
Windows 7 SDK troubleshooting
Let’s say you need to compile your C++ project under MS Windows and you need to use the Microsoft’s toolchain instead of MinGW. Buying the whole Visual Studio is not necessary. I like a simple combination gvim+scons+gcc which gives me a high amount of flexibility. I just needed to switch the gcc to the MS compiler.
Mass erase of MSP-EXP430FR5739
I bought myself a new toy – MSP-EXP430FR5739 experimenter board. It didn’t stay working long because I ran into the same trouble like the guy here. Mspdebug was complaining about blow fuses. Fix was quite easy thanks to my another toy MSP-EXP430G2 LaunchPad which I luckily bought together with the experimenter board. (more…)
Python setup.py to DEB package
From time to time I hit an interesting Python package which is not available in a DEB package. Setup.py/distutils/setuptools are de facto standard but the base binary distribution command set includes only RPM support. I don’t like python setup.py install. I prefer full installation/purging control via Ubuntu package system. Solution is easy.
Install package python-stdeb and then execute
python setup.py --command-packages=stdeb.command bdist_deb
And your DEB is ready! More information.
Ubuntu encrypted home
I played with my new toy – HP Mini 5103 WT211ES. eCryptfs is not as enterprise as they say. It started to fail on Ubuntu 10.10. And also it is terribly slow especially for seeking. So I was looking for a better solution. I didn’t want the full disk encryption which the alternative CD offers during the installation because the disk is very fast and the CPU is not so fast 🙂 I decided to make a separate partition to host my home directory and other private data. (more…)
Firefox cache and history cleanup
Firefox gets slower by the time. Lots of data is stored in sqlite databases. First step is cleaning cache – Menu>Tools>Clear Private Data – check Cache and Cookies. Other slowing stuff is the browsing history. Cleaning the whole history is not very effective way so why not remove only the oldest items? (more…)