Richard Levitte's journal/ tags/ The material in this blog is personal, and you might find it offensive. I'm not taking any responsibility for how you interpret what I write or your feelings about it. Consider yourself warned. hacking

This feed contains the 10 most recent pages in the "hacking" category.

A quote...
There are 10 types of people, those who understand binaries and those who don't.
A quote... | Posted Tue 23 May 2006 02:19:45 PM CEST | to comment: journal.richard@levitte.org
Tags: hacking
OK, I've a hard time deciding...

For a while now, I've been using SCons to build NetCrypto, and a few days ago, I stumbled upon CMake, which is basically a multiplatform Makefile creator, and I'm starting to wonder if I should switch. CMake looks pretty good and seems to do a pretty good job as far as I can tell, but that will actually remain to be seen. Thing is, to meet my goals, which is to have NetCrypto build on OpenVMS as well, whatever I use will need to be ported, and I've a hard time deciding which would be the easiest. Also, I've a hard time with Python, which is what SCons is made in.

Don't get me wrong, SCons has a cool concept with build recipes made in Python, but that also makes it hard to extend when needed, as there are a gazillion classes to go through when something goes wrong, and quite a bit of confusion when trying to debug anything and then ending up somewhere deep in a file system node layer and wondering how the hell you triggered that particular exception.

As far as I understand the docs for CMake, it basically implements some kind of script language to make configuration tests, define what goes where and just do it. Looks simple enough, and extending it is done by writing another of those scripts, often using very well defined file names.

So I don't know, it looks like CMake is a bit more mature. On the other hand, I shouldn't be surprised. After all, the latest release of CMake is version 2.2.3, while SCons is at version 0.96.1, with 0.97 being around the corner. It indicates that CMake has been through a lot more (or that Kitware Inc wants to make it look that way :-) ), which in itself leads to a certain level of maturity. On the other hand, if you look at the timeline for both projects, it looks like they both started around August 2000, with Another way to look at SCons leaning on Cons and CMake leaning on something called pcmaker, which I know nothing about.

Basically, it's hard to decide, and I need to use something that I feel I can trust fully to invest my time in and to stay with for a while. Wallowing between the two is just counterproductive. I'd appreciate any help from outside people in this, especially good advice.

OK, I've a hard time deciding... | Posted Sat 25 Mar 2006 09:21:58 PM CET | to comment: journal.richard@levitte.org
Tags: hacking
How monotone changes your views and your ways

I've noticed how much monotone has changed my habits and views on version control. From being a fairly mature CVS user and hacker, I've now fully moved to use monotone as much as I can. It was most noticable a couple of days ago, when I worked on some project that's still versioned using CVS, and wondered why so many files were missing, until I realised I had forgotten to update with -dP... Those flags used to be second nature!

The thing that attracted me the most about monotone was its off-line capabilities and the way it keeps track of history, which is essential to get merging working the way I want (contrary to the way I have to do it with CVS, with all the dealing with tags and all). I've also come to realise that the way it works leads to a different approach to work flow:

Maintainance branches:
many large projects that use CVS, for example OpenBSD and OpenSSL, use separate branches to maintain one or two "current" versions of the product while still being about to do "bleeding edge" development in the trunk. When you want to make a change (a bug fix), you might need to do it in a maintainance branch and then merge the results into the main trunk, which leads to the typical merge hassle with CVS. With monotone, it's a bit of a different story. First of all, you don't really have to deal with separate maintainance branches. Since a branch can have multiple heads, all you need to do it is to update to the latest release, make your change and commit, then tag it. If you want to merge the change with the other (or all the other) head(s), you simply merge. Of course, it might be more practical to have a separate branch for maintainance, but at least there is the option! There is no such option with CVS.
Looking at it as things to follow up on:
Just an hour or two ago, someone said there was a bit of an error in Makefile.am in the monotone source. I decided to take it on, and decided to do it in a slightly different way. Instead of just update to the head and make the change there, I updated to the revision where the error was introduced, made the correction, committed, which of course created a second head, and finally merged While being something of an experiment, it taught me another way to look at source development, as responses to very specific events. Basically, I treated this particular event as an email to follow up on, which creates a link between the other emailer (committer) and me, and a thread of emails (revisions) to follow. Kind of a different view, much more like people responding to each other than people dealing with a big blob called the source and whatever "magically" happens in it. A kind of social interaction between developers, maybe far away from each other.
How monotone changes your views and your ways | Posted Sat 18 Mar 2006 08:02:46 PM CET | to comment: journal.richard@levitte.org
Tags: hacking
How to deal with unreasonable demands (LOL)!

There are times when User Friendly delivers real pearls of wisdom. Today is one of those days.

You know how you sometimes get completely ludicrous demands as a programmer, and end up working you ass off day and night for a week or so? Things like having a life just being a fleeting memory from past times when things were sweeter? Well, here's the way to handle it:

You've got to love it, just throw that ball back in the other court, elegantly and swiftly!

How to deal with unreasonable demands (LOL)! | Posted Thu 09 Mar 2006 12:12:50 PM CET | to comment: journal.richard@levitte.org
Tags: hacking
No comment?

I've recently been told that I'm leaving no possibility to comment. While that was true a while ago, I actually recently changed that. Just look below, at that link that looks like an e-mail address. Yeah, that's it, there! You are oh so welcome to use that to send me a comment!

There's an exception, though; if you read this through some aggregator, you won't see the comment link. Sorry.

Now, some may wonder, why don't I have that kind of fancy public comment system like everyone else (or at least like LiveJournal et al)? There are quite a few reasons for that

  1. I do not want to subject myself to the potential holes that may come with such a system.
  2. Some people might actually want to send me a comment in private.
  3. I do not want my blog to become a discussion forum. That has never been its' purpose and never will.

Now, use that link, comment away, tell me that I'm great or that I'm silly. Just because I make them private doesn't mean I do not want your comments sent to me!

And oh, it might be a good thing to tell me if you want your comment to remain private. I just might choose to pick a few, publish them and comment on them on rare occasion...

No comment? | Posted Sun 19 Feb 2006 06:32:49 PM CET | to comment: journal.richard@levitte.org
Tags: hacking
Getting back to basics (hacking)

Last week, I spent all evenings and the whole darn weekend hacking (oh, and if you think I mean anything other than writing good software, you're a wanker... just so that's clear :-) ). Haven't had the opportunity or even the courage to simply take the time for so darn long (I think last time was last summer or something like that)! And it was really great to get back to that. I finally found the energy to make some decisions on how to do certain things; among others about one thing that had been spinning around in my head for almost a year!!! Good I got that one through, it takes quite a bit of energy having that jumping around in my head!

Yesterday, I found myself in a very good mood, and could relate that to the greatness of the weekend. I just have to do this more often. It's quite obvious that hacking (programming, you wankers! :-) ) is something I love, where I feel powerful and that gives me energy back.

I'm guessing that every few weekends or so should be enough to at least keep me afloat. Something regular, I think that's important. And I recall my SO saying that she needed some weekend of her own, so I could probably match that.

And maybe I should make sure I've one free working day per week.

More to ponder...

Getting back to basics (hacking) | Posted Tue 17 Jan 2006 03:35:10 PM CET | to comment: journal.richard@levitte.org
Tags: hacking
There are barebones, build-it yourself laptops!!????!!!!!!!?

My friend elmindreda just showed me what kind of laptop she's going to shop. A build-it-yourself one. DROOOOOOL I had no idea such a thing even existed.

Don't get me wrong, I'm very happy with my laptop. However, the next time I feel the need to get a new one, I'll definitely go for a built-it-yourself one. That way I'll probably get the exact specs I want instead of having to make compromises.

There are barebones, build-it yourself laptops!!????!!!!!!!? | Posted Thu 05 Jan 2006 08:34:55 PM CET | to comment: journal.richard@levitte.org
Tags: hacking
Use C or not use C

[ A good friend sent this to a forum I participate in ]

Use C, or not use C, that is the question:
Wheter 'tis nobler in the mind to suffer
The flags and warnings of a rude compiler,
Or to take arms agains a sea of errors,
And by debugging, fix them? To code, to hack,
No more; and by a hack to say we end
The type-check and the thousand other checks
Pascal is heir to, 'tis a compilation
Devoutly to be wish'd. To code, to hack;
To hack! perchanse to test: ay, there's the rub;
For in that hacker's bliss what bugs may come,
When we have written out this awful code,
Must give us pause: there's the respect
That makes development of such long life.

-- Wes Munsil
Use C or not use C | Posted Fri 14 Oct 2005 01:36:07 PM CEST | to comment: journal.richard@levitte.org
Tags: hacking
Cutting down on activity...

OK, it's decision time. It's obvious that the amount of activities I've had lately came with consequences. I'm hardly at home before late most of the week days, I've a hard time making time to be with Eva, let alone take care of my own home. It's just too damn much, and generally deteriorating.

So, I've decided to take a break from the choir. Yes, I know, I was all excited a year ago, but the way things look right now, it's a luxuary I can't uphold anymore, if I want to stay healthy.

I'm also going to cut down on the time I spend at Stacken unless I can find a way to stay in focus with the stuff I work on. I could, for example, only appear every second week...

Cutting down on activity... | Posted Tue 11 Oct 2005 07:02:11 AM CEST | to comment: journal.richard@levitte.org
Tags: hacking
Is GLP3 going too far?

Here I am, reading about one particular detail about GPLv3 at ZDnet, how GPLv3 is closing down a loophole. The loophole is supposedly that companies can use GPLed software to offer services over the web...

Well, d'uh!

The suggested solution is to have those pieces of software include a command to be used specifically to offer it's own source code. At least, that's how I understand what's written in the article.

Let's see, I'm sure there's a GPLed FTP server somewhere out there, probably even a GNU one (no, I haven't looked). Does that mean that everyone using that for their FTP server now will have to hold it's source in some repository?

If what's written at ZDNet is accurate, I think the GPL has passed the line of absurdity. Sorry, Richard. I love your quest for software freedom and I totally support it. However, I think this step just doesn't take it in the right direction.

I wonder how all those people who license their software with terms like the following will think about this new GPL:

licensed to the public under the terms of the GNU GPL (>= 2)

are they ready to uphold GPLv3? I've been worried about the way the GPL has been refered to for a long time. ">= 2", right... Do all these people really know how to predict the future, because if they do, I'd love for them to share the secret with, as I'm seriously lacking in that department!

Is GLP3 going too far? | Posted Sun 02 Oct 2005 02:14:41 AM CEST | to comment: journal.richard@levitte.org
Tags: hacking

To see all of them, check the archive-hacking.