Skip to main content

Ralsina.Me — Roberto Alsina's website

Be afraid, young pumpkins!

Al­low me to en­ter trash-talk­ing mod­e...

Be very afraid be­cause this year, my mighty skills are en­ter­ing Py­Week for the first time.

Just to make it in­ter­est­ing and some­what chal­leng­ing:

  • I will be en­ter­ing as an in­­di­vid­u­al, not in a team.

  • I have not writ­ten a line of PyGame code in my life.

  • I have writ­ten bare­­ly any game code at al­l.

  • I will sub­­mit my fi­­nal code one day ear­lier, just be­­cause I can.

Nonethe­less, I in­tend to kick ass­es and ask no ques­tion­s. I in­tend to over­whelm you all with a game of such awe­some­ness you will all whith­er like let­tuce in La­p­land. I will write code of such in­ge­nu­ity you will try to steal it and fail.

...ex­it­ing mod­e.

Should be fun and my en­try will prob­a­bly suck. But we'll see...

Me and FLOSS in the late '90s

I have no idea how, but I ran in­to this in Lin­ux­to­day:

KDE Pro­gram­ming Tu­to­ri­al 0.2 (Dec 22nd 1998, 00:09:36 )

Rober­to Alsi­na an­nounced that he up­load­ed to ft­p.kde.org the ver­sion 0.2 of his ex­cel­lent pro­gram­ming tu­to­ri­al. It is al­so avail­able here. Hope­ful­ly, this must-have ma­te­ri­al will be soon in­clud­ed in the kdes­dk pack­age and in CVS.

Now, this was pret­ty shock­ing be­cause I don't re­mem­ber writ­ing it (any­one knows where a copy may be?). I have no idea what was in it, and in fac­t, the idea of peo­ple learn­ing C++ from me in 1998 is so stupid it's shock­ing, since I knew very lit­tle.

Then it hit me, the URL! Ul­tra­7? That was my 486 at col­lege [1].

It had a web­server? What on earth had I been drink­ing back then? Why can't I re­mem­ber this???

Way­back ma­chine, come here! Fetch!

Here's my first home page. I must say it's pret­ty good. It's not gar­ish. Very We­b2.0 in the abun­dant white space.

First in­ter­est­ing thing: there is at least one ex­tant copy of PyX­Forms, my first free soft­ware pro­jec­t, used by ab­so­lute­ly noone.

And there are even two cool screen­shot of a func­tion­al pro­gram noone ev­er used [2]:

im1im2

In fac­t, I have no idea how I did that high­light­ed mes­sage dis­play.

Then all that pro­to-­good taste goes away when you reach the page for my most "pop­u­lar" project ev­er... Krn in my 1999 home page [4]. It' so 1999 free soft­ware style. All that's miss­ing is an elec­tric blue back­ground.

It seems I had dis­cov­ered The Gimp and it's ban­ner script­s!

BTW: I won­der what's Mag­nus Ref­tel do­ing nowa­days? We used to ex­change dozens of mails a day and for some rea­son we lost con­tac­t.

There was al­so a mail­ing list ar­chive for the very very very first posts of our pro­to LUG (which would lat­er be­come LUGLI)

And here's the best part, and the one that makes me kin­da sad... Themes for Qt1.

You can read a lit­tle about them in this thread.

I have writ­ten about them once or twice be­fore but here's the short ver­sion:

Raster­man was start­ing to hack themes for Gtk. I de­cid­ed they could­n't be the on­ly ones with this cool new tech­nol­o­gy but I had the big dis­ad­van­tage of not be­ing able to touch Qt's code be­cause of li­cens­ing is­sues. So I in­ter­cept­ed the draw­ing events us­ing a LD_PRELOAD hack and im­ple­ment­ed a theme full of gra­di­ents with­out mod­i­fy­ing or re­com­pil­ing Qt or KDE.

Now that's one of the most im­pres­sive hacks I have ev­er per­formed, even if it was a hack done with the most evil code ev­er, and... there seems to be no ex­tant copy of the code or the screen­shots.

Which is kin­da sad, in­deed.

Fixing old tutorials

I got a mail from a read­er telling me that he could­n't down­load the sources for Not­ty, the toy app I de­vel­oped in my Rapid Ap­pli­ca­tion de­vel­op­ment us­ing PyQt and Er­ic3 ... in re­al­time! tu­to­ri­al.

So, I checked and was shocked at just how much the serv­er moves had wrecked that ar­ti­cle, which is one of my favourites!

No im­ages, bro­ken link to the sources, no syn­tax high­light­s!

So, I re­jig­gered the thing quick­ly with some search and re­place (thanks re­struc­tured tex­t!) and now it should be up to stan­dard­s, ex­cept that... it's still about Qt3 and I am not even sure it works nowa­days.

Nor­mal­ly that would be sim­ple to fix: change the code as need­ed, make it work, and be hap­py.

But the fun thing about that ar­ti­cle was that it was writ­ten in 3 hours, and it talks about how it was writ­ten in 3 hours. So, I think I may have to do keep that and add a note with a link to a cor­rect­ed/up­dat­ed one, some­day.

If you try to use quotactl on Linux...

Al­ways re­mem­ber to do this:

#define _LINUX_QUOTA_VERSION 2

Or else, your code will break in mis­te­ri­ous ways.

That's be­cause sys/quo­ta.h has this:

/*
 * Select between different incompatible quota versions.
 * Default to the version used by Linux kernel version 2.4.21
 * or earlier (in RHEL version 1 is AS2.1, version 2 is RHEL3 and later).  */
#ifndef _LINUX_QUOTA_VERSION
# define _LINUX_QUOTA_VERSION 1
#endif

Why? I have no idea. But this is true at least on Cen­tos4, I have no clue of this is al­so true for your dis­tro, but it is sooooo wrong :-(

A bit sad about this

It seems that dur­ing the big SVN con­ver­sion some da­ta were lost in com­mit­s.

So, if you check KDE's svn for the re­al­ly old stuff, it has no au­thor in­for­ma­tion.

For ex­am­ple, check this out:

http://web­svn.kde.org/branch­es/KDE/1.1/k­denet­work/krn/

I know I wrote pret­ty much ev­ery­thing there, but you are prob­a­bly not go­ing to no­tice it, and I spent a good cou­ple of years work­ing re­al­ly hard on that thing.

Sure, it was crap, but it was hard-­worked crap, and there is at least one thing I am slight­ly not ashamed of: TypeLay­out, which is still nicer than most tool­kits have, even if it was sham­less­ly copied from Lin­ux­Con­f.

But what the heck, it's old stuff.


Contents © 2000-2024 Roberto Alsina