Author Archive

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 »

Book Meme Floating around, so mine is:

Save the file and reboot the system for the settings to take effect.

in Asterisk, The Future of Telephony

The Rules for this meme are:

  • Grab the nearest book.
  • Open it to page 56.
  • Find the fifth sentence.
  • Post the text of the sentence in your journal along with these instructions.
  • Don’t dig for your favorite book, the cool book, or the intellectual one: pick the CLOSEST.

Comments No Comments »

MTV now has available (and embeddable) all the videos they ever played….

Comments 1 Comment »

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 »

I have not fallen and bought an iphone. Just testing one and a Rss reader and blog posting tool.

Comments 4 Comments »

There is a magic that is not possible to describe.

Comments 3 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 »

Dia 14 de Junho de 2008. É meio dia. Estou na Sé Nova de Coimbra à tua espera. Estamos a preparar este momento há dois anos e meio. Desde que nos vimos que soubemos que aqui iríamos chegar.

Estou junto ao altar de uma igreja, estou aqui à espera de pé. Estão centenas de pessoas a olhar para mim. Estão todos a pensar: “Olha para a carinha dele, está tão nervoso a pensar que ela não vem!” - Não estou nada! Claro que ela vem. Se estou assim com cara estranha é de estar toda a gente a olhar para mim.

Estamos a dar um passo. Estamos a dar o passo. Estamos a formar uma família.

Sim aceito.

Desculpa o clichê que se segue Raquel. Fazes de mim um homem melhor. Espero que sintas o mesmo e que possamos continuar assim.

Comments 1 Comment »

The guid to cats that we all were waiting for.

Comments 3 Comments »

Sometimes a problem has a complex solution. Others the smart solution is just around the corner.
xkcd 399

Comments No 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 »

Paula Simões did a reply on the previous post about second life. Go read it as it is quite good and them come back for my re-replys.

Paula: You fail to point a single source of real revenue, the one that is capable of generating more revenue. You are counting on universities to keep pouring cash into the system? That is the worst Business Model ever.
And even believing that Universities would continue giving SL money because it saves them elsewhere:

One of the best advantages of SL is simulation. There are many examples, taken from several Universities: Law students practicing in a court room; medicine students practicing with virtual patients; students creating architecture models; etc.

I can barely agree with the first one, but the others? Architecture models? Medicine students practicing on a model? SL is a poor excuse for a simulated 3D world. The 3rd person perspective kills any lessons one might learn for architecture purposes. Just try to design a real house in SL and you end up walking over every peace of furniture there. And practicing a delicate surgery in a virtual model? Maybe practicing the theoretical steps would be possible but more than that?

Why would a company want to be on SL? That is the real issue. Find a BM that is capable of generating real revenue and maybe we can find a common ground. Until them, for me, it is just a souped up academic experiment.

Comments 7 Comments »