Thursday, March 22, 2007

Ten Commandments for Egoless Programming

Just receive it... and just had to share it :D


1. Understand and accept that you will make mistakes.

The point is to find them early, before they make it into production. Fortunately, except for the few of us developing rocket guidance software at JPL, mistakes are rarely fatal in our industry, so we can, and should, learn, laugh, and move on.

2. You are not your code.

Remember that the entire point of a review is to find problems, and problems will be found. Don't take it personally when one is uncovered.

3. No matter how much "karate" you know, someone else will always know more.
Such an individual can teach you some new moves if you ask. Seek and accept input from others, especially when you think it's not needed.

4. Don't rewrite code without consultation.

There's a fine line between "fixing code" and "rewriting code." Know the difference, and pursue stylistic changes within the framework of a code review, not as a lone enforcer.

5. Treat people who know less than you with respect, deference, and patience.
Nontechnical people who deal with developers on a regular basis almost universally hold the opinion that we are prima donnas at best and crybabies at worst. Don't reinforce this stereotype with anger and impatience.

6. The only constant in the world is change.

Be open to it and accept it with a smile. Look at each change to your requirements, platform, or tool as a new challenge, not as some serious inconvenience to be fought.

7. The only true authority stems from knowledge, not from position.
Knowledge engenders authority, and authority engenders respect -- so if you want respect in an egoless environment, cultivate knowledge.

8. Fight for what you believe, but gracefully accept defeat.

Understand that sometimes your ideas will be overruled. Even if you do turn out to be right, don't take revenge or say, "I told you so" more than a few times at most, and don't make your dearly departed idea a martyr or rallying cry.

9. Don't be "the guy in the room."
Don't be the guy coding in the dark office emerging only to buy cola. The guy in the room is out of touch, out of sight, and out of control and has no place in an open, collaborative environment.

10. Critique code instead of people

Be kind to the coder, not to the code. As much as possible, make all of your comments positive and oriented to improving the code. Relate comments to local standards, program specs, increased performance, etc.

Thursday, March 15, 2007

Open-ssi cluster

I did this a few months ago, but since i got bluetooth working on my computer, now i'm able to share this little something with you :D



Pick a debian sarge, add some cool stuff to sources.list and dist-upgrade it.
Let it cook until everything is settled.
At the end prepare a initrd image with flavours of all the network cards used.
Reboot and it's ready to serve

enjoy :D

Wednesday, March 14, 2007

New Portuguese Magazine "Revista Linux"

So, finally the lack of portuguese Linux magazines is now end.
"Revista Linux" has born:


Is very promissing :D let's (contribute and) wait... :D

The latest release is


Enjoy!

Tuesday, March 06, 2007

Creating a debian stable repository (Step 2)

Now that we have space for the new repository, is time to create it.
For that, I use the reprepro tool because it allow me to create new repositories for "out of the box" specific packages.

To set reprepro you'll need to prepare a directory. I created a "repository" directory, and all the repositorys will be below that.
Since I only use this once, before this time I generated a new dir "apt" below repository, so I can manage multiple configuration.

cd to the place where to generate, and create a directory named conf/ and create a file named "distributions" and fill it like this:
Origin: Debian
Label: Debian
Suite: stable
Version: 3.1r4
Codename: sarge
Architectures: i386
Components: main contrib non-free
Description: Debian 3.1r4 Released 28 October 2006
Update: sarge
For this step I only describe how to mirror a known repository, but is possible to gerante your own repository (I'll talk about that later).
Having a mirror is particulary usefull for times there's no stable internet or just is not possible to everyone to access the internet at the same time to install packages.

This tool is very flexible, so you can manage different repositorys by the input of a new entry. So have in mind that
  • Multiple entries are separated with an empty line.
  • The codename is used to determine the directory to create.
The Update line is described later. If SignWith is there, it will try to sign it. (Either use "yes" or give something gpg can use to identify the key you want to use).
The other fields are copied into the appropriate Release files generated.

So... I don't want only the sarge repository.. i'd like a etch as well! so my conf/distribution looks like this (and only the i386 part, as you can see).
Origin: Debian
Label: Debian
Suite: stable
Version: 3.1r4
Codename: sarge
Architectures: i386
Components: main contrib non-free
Description: Debian 3.1r4 Released 28 October 2006
Update: sarge

Origin: Debian
Label: Debian
Suite: testing
Codename: etch
Architectures: i386
Components: main contrib non-free
Description: Debian Testing distribution - Not Released
update: etch
Now, that I've defined what I want, I must set the update part.
Each configuration will search its updates in the destinations set at conf/updates. Mine looks just like this:
Name: sarge
Method: http://debian.ua.pt/debian
Architectures: i386
IgnoreRelease: yes

Name: etch
Method: http://debian.ua.pt/debian
Architectures: i386
IgnoreRelease: yes
Now, it's all set. reprepro command must be runned at the path before of conf/
after a ls you should see this
# ls
conf db dists lists pool
To update everything possible do:
reprepro -Vb . update
To only update some distributions do:
reprepro -Vb . update sarge
Note:You can use the VerifyRelease field also, which can be retrieved using
gpg --with-colons --list-keys
I wasn't able to manage with this command, so I just ignore it.
/**********************
* NOT COMPLETE!
**********************/

Monday, March 05, 2007

New aquisition


Finally I post something

Today I'm glad to announce that I have purchased another gadget :D

Pretty cool :D It's canon 3000v
I hope it will borrow even more joy in my life (I hope it didn't sound gay)