Archive for the “Gentoo” Category


After many years running on my home server this blog is now hosted at lylix. I went to them because it was the only Gentoo/Funtoo VPS provider I could find:)

If something does not work, please drop me a note :)

Comments 4 Comments »

20 Weeks and we now know that were having a girl. We’ll name her Laura, and as you can see from the picture she has a beautiful nose…

Comments 6 Comments »

A long long time ago I voiced about the need for a wiki in the Gentoo project. In those days Gentoo-Wiki was starting up.
For some reason or other people inside the project felt that having the users producing documentation was a bad idea. For some other reasons that I never understood the gentoo-wiki.com becamed a banned issue, and Gentoo developers were advised not to mention, and not to link to him. I wrote an extensive article about Gentoo on the Efika board that got some raised eyebrows because it was written on the Wiki.

Now Gentoo Wiki has been down for a few days. And according to the backup page it does not seem a fix is going to happen soon.

If we had taken this project under an umbrella a long time ago our users would not be missing on this very important resource.

Comments 24 Comments »

My friend L0rd Saur0n made this nice retro chick image. I found it so hilarious that I just had to share.

VT100

VT100 in Bright Green

Comments No Comments »

Lets say you have an Action that lists some items. And you have another action that adds items.

If you add an Item you can either just show a “blank” with the “All ok with addition” or even smarter is to use the ListAction. But how do you give feedback to the user that the addition was ok? Simple you just addActionMessage(”Item added ok”); on the first action and the message will be rendered by the s:actionmessage in the jsp of the second. Right? Wrong!!
Struts will “eat” ActionMessages and ActionErrors between the first and second action. But Glindholm solved the problem with a simple Interceptor.

Comments No Comments »

If you like IDEA and use Struts 2 you can be happy to know that 8.0 release comes with a new Struts 2 plugin. There is a small tutorial on how to use it but it has some errors.
First the Action class should extend ActionSupport hand have proper setter methods:

package hello;
import com.opensymphony.xwork2.ActionSupport;
public class HelloWorld extends ActionSupport {
    private String username;
    private String message;
    public String getMessage(){
        return message;
    }
    public String execute(){
        message = "Hello, " + username + ".";
        return SUCCESS;
    }
    public String getUsername() {
        return username;
    }
    public void setUsername(String username) {
        this.username = username;
    }
}

Second the JSP file can have a proper action:

< %@ page contentType="text/html;charset=UTF-8" language="java" %>
< %@ taglib prefix="s" uri="/struts-tags" %>
<html>
  <head><title>Simple jsp page</title></head>
  <body>
		Struts 2 Message: <s :property value="message" default="Guest." />
		<s :form method="GET" action="HelloWorld">
			Enter your name:<s :textfield name="username" />
			<s :submit value="Submit" />
		</s>
  </body>
</html>

And finally struts.xml can have the Action declared without the ugly unRESTFUL .action:

< ?xml version="1.0" encoding="UTF-8"?>
 
< !DOCTYPE struts PUBLIC
  "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
  "http://struts.apache.org/dtds/struts-2.0.dtd">
 
<struts>
    <package name="/" extends="struts-default">
		<action name="HelloWorld" class="hello.HelloWorld">
			<result name="success">/index.jsp</result>
		</action>
	</package>
</struts>

I really like IDEA when it comes to Java codding, and I can live with the quirks of the Struts 2 support. But one thing that makes me steam is the fact that I have to un-deploy and deploy the application for each change I make. That steals me hours every week.

Comments No Comments »

The jPod book by Douglas Coupland is probably one of the most hilarious things I’ve read in the last few years. It is a fairly accurate picture of Pop-Geek culture (minus the homicidal, drug dealer mom and the homicidal, white meat smuggler friend).

If you have the chance get a copy and read it. You’ll love it.

My copy is going to be dropped in some bookcrossing site somewhere in Coimbra… Search for it :)

Comments 4 Comments »

A new life is in the process. The join of looking at a small paper with a tiny bean that is part of me is overwhelming.

Raquel told me that even with this small size she could hear the tiny human being hearts beating fast. Next time I’ll go and no matter what I’ll get to listen to it to.

Ecografia 7 Semanas

Ecografia 7 Semanas

42 ? 42 is not the answer. Life is the answer.

Comments No Comments »

Thunderbird was behaving strangely today not showing messages when I clicked them. I tried to close it and open it a couple of times but nothing happened.

I selected the compress folder option and now my mail from 2003 till now is gone!!!!!

Sad sad sad day. Really sad indeed.

Comments No Comments »

Comments No Comments »

The guid to cats that we all were waiting for.

Comments 3 Comments »

For some days now Skype has released a new public release that has video support. Since day 0 the Gentoo users that were running the testing version could have an upgrade. A few more weeks and if no strange bugs pop up it will be marked as stable software.

So if you are still running the old skype and want to use the new one:

emerge --sync
echo "net-im/skype" >> /etc/portage/package.keywords
emerge skype

Comments No Comments »

All in all there's something to give,
All in all there's something to do,
All in all there's something to live,
With you ...

14-06-2008

Comments 1 Comment »

The company I work for (WIT-Software) launched it’s new corporate identity a few days ago. The new web site is up since…… some 15 minutes ago :) .

WIT-Software

I hope you all like the new logo and image.

Comments 8 Comments »

This is just a pointer to my guide about Gentoo on the Dell D630.

Comments No Comments »

I’ve been trying to stress test a RTSP Streaming server. My goal is to see how many clients a particular server can handle. Apple has a tool called StreamingLoadTool, but virtually no information on it, also it crashes alot with:

ClientSession: Failed to bind a UDP socket.

after running for some time.

All other tools I saw where commercial windows based multi purpose test tools that would need a giant test farm.

Comments 1 Comment »

With XCB and java graphical applications on recent distributions one gets:

java: xcb_xlib.c:82: xcb_xlib_unlock: Assertion `c->xlib.lock’ failed.

This is very well documented (just google a bit). So this serves mostly as a mental note for the way to fix it.

$ sed -i ’s/XINERAMA/FAKEEXTN/g’ /opt/sun-jdk-1.6.0.04/jre/lib/i386/xawt/libmawt.so

or the libawt.so of your JRE. Remember that many programs may come with they’re own JRE and not use the one provided by the system.

Comments 1 Comment »

A week ago I stared on my new work. I was at IPN and now I’m on the corporate world working at WIT-Software developing software for mobile systems as well as backend code for Mobile operators.
It was been a wounder full week, with lots of work and new stuff to learn.

As an added bonus last Week I received my last grade and now have my CS degree :)

Comments 1 Comment »

Since I was a child I’ve always been interested in Aquariums, so this Christmas my fiancée offered me a 60 liter world. I’ve started it and this week I added some (21) fish. I’m very happy for finally having the chance to play with this. I’ll keep adding pictures here as time goes by.
Aquarium 20080112

Again I must say THANK YOU Raquel. One day at a time you keep my world turning.

Comments No Comments »

There are some rumors that the Portuguese ISCTE is going to start a 2 years master program in OSS software. I must say that I find this a very dumb idea.

Software Engineering is an area in Computer Science, the same way Networks, Artificial Intelligence, Database, Operating Systems etc etc. OSS is a distribution model in CS.

Comments No Comments »