Older blog entries for tevaum (starting at number 11)

8 Sep 2005 (updated 8 Sep 2005 at 12:21 UTC) »

LPT on Linux

Yesterday I started playing with that LEDs in Linux... I made a small program that sends bytes to the parport... if you wanna take a look... It runs only as root, because there's a call to ioperm()... We want to make this program control something cool, like lights in a house... and we also want internet interface...

6 Sep 2005 (updated 6 Sep 2005 at 11:57 UTC) »

Today, my neighbour (he likes to play with hardware stuff) wanted to play with the LPT parport... he set up some LEDs and asked me to control them via software... I thought it would take a lot of work, but when I realized all I needed to do was to send one byte to the LPT base address (0x378) and watch the result, I made a little 16bit dos program (he uses win98) that switched the leds in sequence. That was beatiful, and took less than one minute! We'll try to make something more interesting than turning LEDs on and off... and I'll let you know! :]

Well... finally I'm done with the gaim-vv package for Ubuntu... I'm not sure if it's really good, 'cause it's my first serious one... It took a long time since I started trying... I had some problems compiling the software... something related to autotools that I still have to understand better. The libtool script tried to enter the NONE directory, which didn't exist, and I think it wasn't supposed to... I traced it back and got into this in configure.ac:

dnl #######################################################################
dnl # Check for X session management libs
dnl #######################################################################
if test "x$enable_sm" = "xyes"; then
        enable_sm=no
        AC_CHECK_LIB(SM, SmcSaveYourselfDone, found_sm_lib=true, , [$x_libpath_add -lICE])
        if test "$found_sm_lib" = "true"; then
                oldCPPFLAGS="$CPPFLAGS"
                CPPFLAGS="$CPPFLAGS $x_incpath_add"
                AC_CHECK_HEADERS(X11/SM/SMlib.h, SM_LIBS="$x_libpath_add -lSM -lICE" enable_sm=yes)
                CPPFLAGS="$oldCPPFLAGS"
        fi
else
        SM_LIBS=""
        enable_sm=no
fi
AC_SUBST(SM_LIBS)
if test "$enable_sm" = "yes"; then
        AC_DEFINE(USE_SM, 1, [Define if we're using X Session Management.])
fi

All I did was to remove the

$x_libpath_add
from the
AC_CHECK_HEADERS
line and it worked. That's it. As I still don't know how to make a repository for you to install this package with apt* install, I'll get the deb file in my site in the session Linux/Packages. Try it and report bugs to tevaum at gmail dot com. Thanks

Ok... I'm sad! I discovered that in CVS, blam has already ATOM support... :[ but that's fine. At least, now I know how to parse XML files in C#. :] Some good news: the FreePalm (the project I mentioned in the 19 Aug post) project was approved in Gna! We need to create the arch repository to store the little SDK code we have and go on with the project. I think it will be cool! :]

I've been playing a little with C# and XmlTextReader this week, trying to parse atom feeds. Far from complete, my program extracts the title, link, id, updated and summary nodes from each entry in the atom structure. I'll try to make it extract the author's name 'til the weekend and then, maybe i'll put it into blam!

Some time ago, kov and I started to play with winpopup messages via samba. We intended to receive messages in linux from windows systems at our university. Unfortunately, my student life did't left me finish. But today, I needed to. We have some windows machines at work, and the only way to comunicate internally is via winpopups. I made some modifications in my part of the program that reads the message and formats it to send to the 'reader' via unix sockets. The reader is a gnome-panel applet that blinks in the tray when a message has arrived. As I'm not using GNOME there, I needed to adapt to my needs. I made it format the message and append to the mbox file, so that I could read it with Evolution. The code is a little ugly, but it worked quite well...

Well... after such a long time, I'm back... this week, Cascardo and I started up with a prototype of a Free PalmOS SDK. It's still in the beginning, but we're very excited with it... There's a mailing list on FreeList and we're about to register the project in Gna!. Today I'm posting using gnome-blog... and I think this is the esyest way for me to keep this blog up-to-date. At least, I hope so... see ya on the Free Software Highway!

Today I'm playing with HTML validation... I'll try to get my entire site into the W3C specifications... it's not a hard stuff, 'cause it's dynamic and modular... about the boot stuff, it worked, but it's not yet the way we want... I'll go on with this later... se ya!

30 Jan 2005 (updated 1 Feb 2005 at 13:20 UTC) »

Humm... some news... I made an rss aggregator, just like debian planet... it takes the last entries from my blog, kov's and cascardos' one and put them together into one page, with links to the other entries... the next step is to make an 'information' page, with the news that interests me... I'll get to the USB bootdisk as soon as I get the time... see ya!

28 Jan 2005 (updated 2 Sep 2005 at 20:49 UTC) »

Yesterday I was trying to learn how to play with RSS and PHP... aand I found a class that does the hard stuff and has a clean interface... it's MagpieRSS. Now, you can see this blog here too!

Right now Aldir and I are trying to make a USB bootdisk... we have some diskless workstations booting linux via clusterknoppix terminal server. The problem is: we're not root :(. That's why we wanna boot via USB hd... our problem (up to now) is that Debian kernel has support to these stuff as modules... so we need to play with the initrd to make it load usb_storage stuff so that we can mount the USB hd as the rootfs... let's work!

2 older entries...

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!