Arquivo para a categoria “Geral”

An application that sends and receives MMS messages is now available for you’re iPhone. There is no need to have a Jailbroken iPhone as the application is available from Apple Store. Right now the application only works for clients of Vodafone Portugal. More info is available at the producers web site.

A video that shows the application working is also available:

Comments Sem Comentários »

This beatifull fish is now mine. But it was breed by Martinho Brazão. If you are looking for Betta fish you can be sure his fish will be sent in very good packaging.

My Betta

Comments 3 Comentários »

Designing a regular expression to find phone numbers is some string are not trivial. The rules of what is a valid number are strange, and the phone itself can be present with any number of artifacts, like spaces, dashes and parentheses.

This last morning I have been trying to design a good regular expression but I’m still a bit far. So far I managed to do:
(\(?[\s]*(00|\+){1,1}[\d]{1,4}[\s]*\)?)?([\s]*|-)(-|[\s])?(\(?[\d]\)?([\s]*|\.|-)){7,15}

But it sill misses things like: +351 (21) 1111111

Comments 3 Comentários »

Apple should add thunderbird+lightning support to at least iTunes on Windows. Not every windows user has Outlook installed.

Right now almost all options to do this include some extra softwares (jailbroken iPhone) or thunderbird plugins and Google accounts. And I may not want my data in Google.
If you do not mind having data in Google read on. Right now I just want to sync Calendar events.

As I need to have data synced I’ll post my findings were. So stay tunned.
[UPDATE 2009-02-10]
All this syncing is dangerous. The iPhone will delete all contacts and/or calendar events on the phone when adding a external sync.

Two solutions so far for Contacts and Calendar:

1- Get your company to install Exchange or one of the Free Software alternatives. And then just add the account on the iPhone and search for info on how to get Lightning to get the data from there.

[New Update 2009-02-15 15:17] There is no need to use the Nuevasync Service
2- This is the one I use. It involves having a Google Calendar account and Sync the iPhone and Lightning there. In the iPhone follow the instructions in the Google Mobile Sync page. To have Lightning use the calendar just add a new Calendar of type CalDAV and in the url put: https://www.google.com/calendar/dav/YOUREACCOUNT@gmail.com/events .

There is no “Sync now” and events will be propagated auto-magically. In my case if I have calendar open on the iPhone and add events in Lightning they propagate in 3 to 5 seconds.

Comments 1 Comentário »

Ontem à noite a Laura resolveu pregar um susto a mim e à mãe. A dois meses da data prevista de chegada ela achou que já estava presa à demasiado tempo e que a hora de nascer tinha chegado.
A Raquel está neste momento na Maternidade Dr Daniel de Matos e parece já estar controlada a situação. Mas agora terá de repousar para que não haja mais sustos.

Laura: Tem calma filha e espera mais um pouco.

[UPDATE 17:45]: Parece que já está tudo mais calmo. A Raquel deve voltar para casa amanhã, mas terá de ficar por casa até a Laura nascer.

Comments Sem Comentários »

A few weeks ago I talked about a new MTV service that would let us see all the videos in MTVs archive. Right now if I try to play the video it tells me that I cannot play it outside the United States.
A few minutes ago I was on last.fm trying to play some videos and the ones that were presented being hosted on youtube gave the same type of error as MTV.

This is just STUPID!!!!! If I’m not in the right country I cannot listen to the music? What can possibly be the reasoning?

Comments 2 Comentários »

A funny music meme

Go ask Alice
When she’s ten feet tall

in White Rabbit by the Jefferson Airplane

Rules for this Meme:

  • Search for the lyrics for the song that you are listening now.
  • If music is purely instrumental use the last music with lyrics
  • Copy the 5th and 6th verses
  • Post the text of the verses in your journal along with these instructions.
  • Don’t dig for your favorite music or the cool alternative musics: use the one you are listening to now.

Comments 2 Comentários »

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 Sem Comentários »

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

[UPDATE 20/7/2009]: Most of the videos are not available in Portugal. So i removed it from the site.

Comments 1 Comentário »

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 Comentários »

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 Sem Comentários »

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 Sem Comentários »

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

Comments 4 Comentários »

There is a magic that is not possible to describe.

Comments 3 Comentários »

A new life is in the process. The joy 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 Sem Comentários »

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 Comentário »

The guid to cats that we all were waiting for.

Comments 3 Comentários »

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

Comments Sem Comentários »

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 Comentário »

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 Comentários »