Android has landed.

Finally, I have my own Android phone – Samsung Galaxy Spica (i5700). After few weeks and insane amount of modding I have to say I’m very satisfied. Among exceptions is the fact that android still doesn’t support proxies, which is imho a suicide for a smartphone. The other is the fact that while the hardware in Spica is awesome, the drivers… aren’t.

Fortunately people at samdroid forums are insane and are slowly transforming spica into much more powerful phone.

This post was of course written on my phone :-)


Linux Common Lisp Quickstart HOWTO

Due to some questions on #lisp, I decided to throw together a quick, step-by-step solution to setting up a basic, but working, Common Lisp installation on Linux. The implementation used will be SBCL

This HOWTO assumes basic linux knowledge as well as knowledge of your distro’s package management system.

  1. Install SBCL from your distro’s repo or download binary build from SBCL website
  2. Install Emacs – I recommend Emacs-22 or 23. Again, for fast install, I recommend going with your distro packages – if you need/want specially patched version, you probably don’t need my hand-holding
  3. Install clbuild
  4. run cd clbuild; ./clbuild check and install any remaining dependencies.
  5. Depending on your distro SBCL packages, install local build of SBCL through ./clbuild compile-implementation sbcl. It will be used by clbuild after that and saved in ./clbuild/target
  6. Install SLIME: ./clbuild install slime
    and configure it by adding result of ./clbuild slime-configuration to your emacs config. I recommend switching slime-autodoc to t
  7. Test it by running emacs and invoking M-x slime
  8. Now go over to Cliki and maybe entertain yourself to Practical Common Lisp

Update:2010-04-10: Fixed links broken by lack of wildcard entry on

Simple manager for Emacs Lisp packages in Gentoo

I don’t know about other people, I found myself pretty much lost in my .emacs file, mainly because of the pretty big list of packages I included in it. Nearly all of them installed through Portage.

Before, I used the site-gentoo.el file, which loaded all of them at startup time. However, that results in a pretty much bloated piece of software.

So today, I decided to try my luck with Emacs Lisp. The result is site-load-manager.el. It’s a simple script that, given a config file, will create a byte-compiled equivalent of Gentoo’s site-gentoo.el that include only those packages whose names include strings defined in the config file. To speed-up things a little, instead of referencing the scripts in site-lisp directory, it includes them directly

The archive contains script, simple shell script to execute it and example config file. I think that it should be pretty easy to understand, although config file mechanism isn’t very good :-)
Technorati Tags:

Broadcom 4318, ndiswrapper and wpa_supplicant under Linux

I don’t know about others, but for a long time I had problems with using WPA with my Broadcom wireless card in Ruri. Thankfully all troubles are now gone :)

The steps for a working wpa_supplicant are simple:

  1. Download the latest wpa_supplicant. I recommend at least version 6.3 (5.x didn’t work for me)
  2. Install it and configure it to use Linux Wireless Extensions driver interface, for example by supplying -Dwext to it’s command-line options. Exact configuration depends on your linux distribution – on Gentoo it’s a wpa_supplicant_interface="-Dwext -iinterface" line in /etc/conf.d/net
  3. Start it up and voila – wpa_supplicant should be able to properly associate with networks from now on. Do some checking with wpa_gui

Happy wireless surfing :)

Testing Blogging Apps: QTM

So I downloaded and installed QTM.

I have to say that it surprised me from the building process: It was a first application that used cmake which I had to build myself,
and it shows clearly that Cmake is superior to Autotools.

The only dependency was QT >= 4.1.x, and it worked like a dream with QT4.3.
The building process itself was a breeze compared to what I would except from QT application (And CMake showed it’s beatiful scripts again :D)

As for the application itself: IT’S FAST!, I mean, REALLY FAST. Sure, it’s about tasks that don’t consume too much resources, but it snappy in a way that doesn’t always show with today’s apps. I also didn’t even notice when it downloaded my categories after inputting my blog settings in configuration window.

There are however some drawbacks – It doesn’t seem to have support for editing existing blog posts, support wordpress tags (But it might work from the technorati tags page) nor uploading media objects. Also, the interface is a little different, but usable.

Now let’s see how it will publish this post :D

Well, it had some problems with uploading the post, and a progress bar would be a good thing :D. However, it worked pretty nice. And I found it does support uploading files!

HOWTO Get SMC FastIR IRDA to work under linux


  • Knowledge how to modify module set of kernel or roll your own
  • linux 2.6.x
  • Laptop with SMC IrDA chip

Many laptops nowadays come with IrDA served through an SMC IrCC SIR/FIR controller. Unfortunately, it’s setup is not done “by default”, leading people to think that IrDA simply doesn’t works. This is not true. Here’s a howto (not full, you have to read your distro’s manuals about how to adapt it to your system. Console commands however are universal on 99% percent of distros)

Read the rest of this entry »

ndiswrapper and Broadcom 4318 wlan card HOWTO

Broadcom is a company well-known for their lack of cooperation with open-source developers, even when they have complete code for linux driver!

That also means that one of the more popular 802.11b/g cards, Broadcom 43xx series, is a PITA under linux.

Some time ago I got it working using ndiswrapper 1.38 and XP64 drivers from some other laptop. Sometime later, I upgraded both kernel ( and ndiswrapper (1.47) and when I got myself in need to use WiFi, I found it doesn’t work. After long story of shotgun debugging, I finally found a way to make it work.

Install ndiswrapper 1.47 from here.

In gentoo:emerge ndiswrapper

Download driver sp33008, like:

And use cabextract to extract drivers from exe file:
cabextract sp33008.exe

Now, install driver using ndiswrapper and reload ndiswrapper (Remember to uninstall old one!):
ndiswrapper -i bcmwl5.inf && modprobe -r ndiswrapper && modprobe ndiswrapper

In case of my card (in Acer 5112WLMi), I had to add symlink 14E4:4318.5.conf -> 14E4:4318:1355:103C.5.conf, like
ln -s /etc/ndiswrapper/bcmwl5/14E4:4318:1355:103C.5.conf /etc/ndiswrapper/bcmwl5/14E4:4318.5.conf

It seems to help with some errors concerning encryption. Your mileage may vary, but there are few variants of this conf file – one of them might work for you, and they are all included with the driver

If all is well, you should have a new network device by the name of wlanx or ethx, depending on your settings, and iwconfig should be able to set up your card.