Distorted Android

May 26th, 2016

I have just launched a new project – ‘Distorted’ graphics library for the Android system. It is a fully Open Source library for graphics effects – various distortions were the first effects implemented, thus the name.

A suite of example applications, each one showing one particular aspect of the library, is also available.

Source code:

git clone http://distorted.org/git/distorted-library.git
git clone http://distorted.org/git/distorted-examples.git

Tutorials, JavaDoc, Wikis and more will soon appear in http://distorted.org.

Bon apetit!

J2ME: problems with sound

October 8th, 2010

Recently I am trying to write a J2ME game for Nokia S60 5th edition and Symbian^3 devices, but I face a strange problem with sound: if we have a graphics thread working hard redrawing the screen, then playing sound completely slows it down. This is unexpected because if there is no graphics thread, playing sound in very same way uses about 2-3% of CPU in my Nokia N97.

I wrote a simple J2ME app to ilustrate the problem. Its source can be downloaded from here: SoundTest.tar.gz . Here’s the Java source:

Read the rest of this entry »

Per-Process Namespaces

February 19th, 2009

Our main development servers at work use almost 100% free software; however, recently I had a rare pleasure of having to install a piece of a binary blob. The Blob reared its ugly head as soon as I tried its installation routine:

dev_server# ./blob_install
Your Linux distribtion ‘Debian GNU/Linux 5.0 \n \l’ is unsupported.
Supported distributions: Fedora 8, 9 and 10; Ubuntu 8.04 and 8.10.

Read on to see how per-process namespaces can help defeat The Blob.

Read the rest of this entry »

Sensors3.conf for Asus M3N-HD/HDMI Motherboard

February 11th, 2009

As the motherboard database in seems to be broken, here’s the sensors3.conf file I use for my recently bought Asus M3N-HD/HDMI motherboard:

Read the rest of this entry »

Converting cue, bin, nrg files to .iso

November 14th, 2008

If you download stuff from the ultimate P2P site, you most probably came across variations of optical media images like the “BIN/CUE” pair or Nero’s “.NRG” .

While there are ways to directly (and graphically) mount the “BIN/CUE” and Nero is available for Linux, it’s much easier to simply convert them to ISOs:

Read the rest of this entry »

Thinkpad X61: volume very low

November 4th, 2008

My little Thinkpad X61 is working very well, except for a strange bug: even though everything in alsamixer and Gnome’s Volume Applet is maxed out, still the volume is way too low. Every time I watch a video on Youtube I have to plug in the headphones. Yesterday I investigated the problem.

Read the rest of this entry »

Udev and its traps

September 24th, 2008

I’ve got 3 network interfaces and I wanted them to have consistent names across reboots. I read somewhere that this can be achieved with udev by adding a small script

angband:/home/leszek# cat /etc/udev/netinterfaces.rules

and a link to it

angband:/etc/udev/rules.d# ls -l /etc/udev/rules.d/ | grep netinterfaces
lrwxrwxrwx 1 root root 22 2006-03-04 23:00 010_netinterfaces.rules -> ../netinterfaces.rules

… turns out the above is not entirely correct.

Read the rest of this entry »

SMTP via a SSH tunnel

September 17th, 2008

Suppose you have an email account and a shell account on a Unix server. Furthermore, suppose that you yourself use a laptop and download your mail from the server by POP3 or IMAP, and send it via SMTP using the server as a smarthost. Now imagine that for some reason ( your dynamic IP, or your geographic location ) SMTP access is denied. What can you do?

Read the rest of this entry »

Fun with Intel 4965 wireless + kismet +aircrack-ng

September 17th, 2008

I thought I’d share with you how the latest iwl4965 wireless drivers are doing w/ respect to kismet, monitor mode, packet injection, cracking WEP, etc

Read the rest of this entry »

Debian on a Thinkpad X61

August 6th, 2008

Yesterday a friend of mine was selling a barely used Thinkpad X61:

Core 2 Duo 2.4 Ghz, 3 GB RAM, SATA 160 GB, 12.1″ 1024×768 screen, Intel GM965 graphics, iwl4965 wireless, fingerprint reader, SD/MMC reader, 3 USB 2.0, Firewire, Bluetooth 2.0, gigabit ethernet, PCMCIA, modem. Weight 1.4 kg

Read the rest of this entry »