welcome to the world of…

Looks like a small bulb used to indicate something unusual, like a malfunction.

Compile optimized Debian packages

Filed under: Uncategorized — Tags: , , , , , , — admin @ 2013/04/09 10:51

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”

Filed under: Uncategorized — Tags: , , , , , , — admin @ 2013/03/03 21:01

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

Filed under: Uncategorized — Tags: , , , , , , , , — admin @ 2013/03/02 15:24

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

Filed under: Uncategorized — Tags: , , , , , , , , , , , — admin @ 2013/02/20 10:20

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.

(more…)

Formating Sweex MP3 player in Linux

Filed under: Uncategorized — Tags: , , , , , , , , — admin @ 2012/07/14 13:17

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

Filed under: Uncategorized — Tags: , , , , , , , , , , , — admin @ 2012/05/06 20:04

I bought a digital thermometer DS18B20 and I wanted to connect it to my LaunchPad. DS18B20 communicates via 1-Wire protocol. I used a bit banging to emulate the protocol. CPU speed should be over 1 MHz since the protocol requires timing almost on a microsecond level.

(more…)

Emulating Raspberry Pi

Filed under: Uncategorized — Tags: , , , , , , — admin @ 2012/03/04 11:47

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.

(more…)

Windows 7 SDK troubleshooting

Filed under: Uncategorized — Tags: , , , , , , , , — admin @ 2012/03/03 11:49

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.

(more…)

Mass erase of MSP-EXP430FR5739

Filed under: Uncategorized — Tags: , , , , , , — admin @ 2012/02/07 22:03

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

Filed under: Uncategorized — Tags: , , , , , , , — admin @ 2011/05/13 10:29

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.

Older Posts »