welcome to the world of…

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

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.

Ubuntu encrypted home

Filed under: Uncategorized — Tags: , , , , , , — admin @ 2011-03-18 19:04

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

Filed under: Uncategorized — Tags: , , , , , — admin @ 2010-05-05 22:25

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…)

« Newer PostsOlder Posts »