Do you envy Gentoo users their tuning? Debian packages are mostly shipped only with a basic optimization (-O2) and for more generic CPUs. How about fine tuning for your CPU? (more…)
Fixing Ubuntu “Open with”
First there was the annoying default “Wine Internet Explorer” for opening images. Why? I found the default source, I deleted it and then it was “Firefox”. Why??? I have different image viewers. Linux distributions are starting to behave like MSW. (more…)
Chroot PHP
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.