chrismrutherford's blog

Apr 05 18:55

g1 dev vs emulator

It seems /dev/graphics/fb0 on the device and emulator behave differently. The following code snippet causes the emulator display to flash black and white, where as the dev only flashes slightly when important processes are killed.

#include
#include
#include
#include
#include
#include

int
main ()
{

int fbdev;
uint16_t *fb;

fbdev = open ("/dev/graphics/fb0", O_RDWR);
fb = (uint16_t *) mmap (0, 320 * 480 * sizeof (uint16_t), PROT_WRITE, MAP_SHARED, fbdev, 0);

Apr 05 14:48

Android G1 native c and SDL

SDL runs on android emulator. Download SDL and compile with following options. You need to replace /dev/fb0 with /dev/graphics/fb0 in SDL_fbvideo.c or your app will return error no video device found.

./configure \
CC=arm-none-linux-gnueabi-gcc \
--host=arm-linux \
--enable-audio=no \
--enable-video=yes \
--enable-cdrom=no \
--enable-joystick=no \
--enable-threads=no \
--enable-timers=no \
--enable-loadso=no \
--enable-video-fbcon=yes \
--enable-shared=no \
--enable-sdl-dlopen=no \
--enable-video-x11=no \
--enable-x11-shared=no \
--enable-dga=no \

Nov 17 17:28

The Print Network

I just came accross this realy cool printing business called theprintnetwork http://www.theprintnetwork.co.uk. They provide the complete printing solution.

Sep 04 20:44

http://www.studiobar.com/livevideo/

I have just set up a media server for www.studiobar.com. Evenings entertainment can be viewed from 1900 BST by visiting the live webcam at http://www.studiobar.com/livevideo/

Sep 04 20:23

Home Made Nitrate Filter

I may have just figured out a way of lowering nitrates in my aquarium. Having viewed some commercial biological nitrate filters it is clear that to remove nitrates you need anaerobic bacteria. With a normal external canister filter that circulates water from the main tank at a relatively high rate you have too much oxygen for the anaerobic bacteria to thrive.

Sep 04 20:00

Address Geolocation

Here's a cool tool for address geolocation, and some other cool stuff

http://nsa.unaligned.org/

Jul 01 13:38

CheeChee the cat

My cat CheeChee has just got cancer. He is 19.5 years old and out lived his brother CousCous by about 10 years.