Alcides Fonseca

40.197958, -8.408312

República 2.0

Chama-se República 2.0 e a ideia é aproximar os jovens da vida política. O conceito República 2.0 faz parte das “20 propostas jovens para Portugal” que vão ser apresentadas hoje em Lisboa pelo Conselho Nacional de Juventude (CNJ).

Bonita ideia.

A proposta da CNJ é a de que todos os órgãos de soberania criem plataformas digitais, como as redes sociais do Facebook ou do Twitter, que permitam a participação de todos, “melhorando a relação entre cidadãos e instituições e promovendo uma verdadeira democracia participativa”, explicou.

Essa rede devia sugir por si própria, e não devia ser incentivada pelos próprios partidos, quer pela sua função de representação, quer pela angariação de novos membros/votos. Já andava a pensar nisto há uns tempos e acho que é uma coisa que devia surgir, mas na qual não tenho grande esperança.

The Death of the Div element

I’ve given a couple of wedesign workshops, and one thing that makes it easy to explain is the div element. It just works as a box, and you have them nested. And that’s it.

Now with HTML5, there are a lot of new tags that somehow have the same function as div, but for special kinds of content. Article, aside, nav, etc…

While they help to organize the content in a semantic way (instead of using classes like in microformats), it raises the entry level on HTML a little bit. On the other hand it speeds javascript execution by using getElementByTagName, which might be really useful in full blown web applications.

Back to the Gym

Three years since I stopped doing gym (at the time with my basketball team, I am going back. I’m not really much of a fan of doing exercise inside a sweaty room, but since Göteborg has an unstable weather and the gym is right inside the building, we’re going for it.

And we’re only paying 100 SEK (about 10 euros) per semester, against the 30 euros/month they cost in Portugal.

Vídeos TakeOff 2009

Finalmente depois de umas viagens e alguns imprevistos técnicos, estão disponíveis os vídeos desta edição do Take Off. Como é normal gostaria de agradecer à equipa do Sapo Vídeos pelo apoio, ao Celso Martinho pela camera e ao André Ribeirinho por guardar os vídeos durante tanto tempo ;)

Espero que sirva para partilhar o conteúdo e as ideias a quem não pode estar presente, e que sirva de incentivo a participarem em futuras edições.

Erasmus start

I have arrived at Göteburg – Sweden and I’ll be spending the next semester here at Chalmers. I’m not alone in this journey, the guys are here with me.

Right now I’m enjoying the last day of holidays and getting to know the city, so updates here might be scarce, since I am restricting personal stuff to our common erasmus-related tumblelog. I will give out the link per request.

For now, the weather is nice (already got in the pool) and we’re now adapting to the new timetable.

Eulogy to _why

Underlying the layer of whimsy that permeated his work there was a more serious tone: expression, simplicity, and education. In all of his code, and writing, he was constantly trying to find ways to bring the art of hacking to more people – to younger people – to simplify the complexities that normally permeate development.

John Resign on _why’s disappearance stating Personally, I feel a mixture of joy and amazement..

I actually believe this is a step in his life, so he might return again in more awesomeness!

Gattaca

This holidays were themed by scifi. After SG-1 and in the beginning of BSG, I watched Gattaca [Thanks Té for the suggestion].

The movie is somewhat dark and heavy, almost like Blade Runner. The plot doesn’t include robots, but focuses in genetic manipulation and its effects (subject that is also studied in the Peter F. Hamilton’s books I am reading).

In the future there are two kinds of people, the ones who are born naturally and those who are engineered. The former are discriminated by society for their genetic incapabilities and relinquished to do toilet cleaning for the rest of their days.

The story is about one of the natural born, that tries to fulfill his dream of going to space against all odds.

The Status of 2007 Tech Stuff

Checking up on my posts from 2007 I noticed how I would evangelize some technologies as being the next wave of the web, and those should already be mainstream in 2009. Here are my thoughts on the matter, very subjective to my opinion and experiences.

Microformats

In 2009 I see large media websites and social networks to be adopting microformats, but corporate websites and such haven’t really though about it. Webdesigners and Webdevelopers that deserve such titles are already implementing microformats in their pages because it’s really simple to do so.

I believe traditional corporate developers don’t really care about this technologies. They are not a requirement for their projects and therefore not worth the time. A good way of correcting the problem would be to have Java and .NET promote these technologies.

The problem with microformats is not the server implementation. Wordpress alone transforms a lot of websites and blogs into a semantic repository. Long-tail websites like Upcoming and LastFM also provide microformats for their content. The major issue I find is the lack of uses, and browser integration for those.

It’s 2009 and none of the major browsers support the majority of microformats by default. It almost got into FF3 and it’s somehow in IE8, but not at the point people actually use it. Another opportunity would be using hCard information for the default data when you register an account in a new website.

At least uFs are out there just waiting to be used. The reverse would be much worse! We just have to give tools for people and machines to use them.

OpenID

OpenID suffers from the same browser-support problems as microformats, but in this one I agree it’s not browser-ready. There are few mainstream websites that support OpenID, and those that do have faulty implementations (usually the 1 account – 1 openid problem, or the problems in maintaining an UI for both traditional and openid logins).

Websites that support this technology are aimed at geeks or alpha-users go into the trouble of implementing OpenID. Others don’t, and until a perfect UI is reached I wouldn’t do it for a general user target.

OpenID is acceptable in a technical view, but when it comes to implement it may not be that simple (Google itself said they were taking their time to do it) and when it comes to UX the gap may be too big for the mom and dad kind of user.

What I happen to see a lot is twitter/facebook/etc… login option. Since the majority of uber-geeks have accounts in those websites, it’s easier to ask them to login in those websites than rather ask for an URL. You are what?

OpenSearch

OpenSearch hasn’t evolve at all. FF, IE and Opera all support it (safari doesn’t want to loose its simplicity, probably) and popular search engines also offer the description file (as well as this website). Users just don’t use it at all, since it’s easier to use google with one or two extra keywords.

Maybe when Google’s monopoly in online searches is at risk this might change.

OAuth

Of all three, this is the one that is working the best. It’s aimed at tech people, so with a few libraries, it’s a nice way of dealing with authentication of web APIs. I actually think it limits the developer to include a way of accepting the token in a web view, but most developers don’t seem to complain.

Asking for user and password is not secure, and people are starting to know that. Developers know that as well, and therefore want to offer a secure alternative. OAuth is the answer, and it’s looking pretty good. Even in Twitter mashups!

Camelot, Django for the Desktop

Django for the Desktop is a great way of describing Camelot. It uses SQL-Alchemy for the SQL connection and PyQT for the interface.

I don’t really know why they didn’t go with Django ORM (probably because it’s not released in a standalone form) but the way your code looks is exactly like a django model, and the django admin customizations.

Too bad for the QT dependency for Windows, but it’s still a nice way of developing applications which are just an interface to a database.

iPhone repression

Tom Morris write and excellent response (although a bit geeky) to Calanis’ post against the closeness of the iPhone.

I have to agree with Tom, those who buy an iPhone know what they are buying, they know how closed their iPhones (along with data-plans) are. Sure, all phones are closed, from being locked to a network, to block wifi/bluetooth/usb transfers to promote data-plans.

If you’re buying something (as awesome and eye candy as it can be), you must know if you can live with it’s closeness or not.

Cash for Tax offset

Each director, including Schmidt, also received a “commemorative gift” in fiscal 2008 valued at $7,580, as well as a cash payment to offset the tax liability of the gift.

Macrumours has a piece on the fact that Eric Schmidt has never received his payments for being a director at Apple. Although I find it interesting, I was amused by the cash payment to compensate the taxes of a gift.

I bet this could make wonders in Portuguese political and sport landscapes.

The Kingdom of Infinite Space

The Kingdom of Infinite Space is a wonderful book which I can’t categorize. In fact, the best way to present it, it’s by its subtitle: A Fantastical Journey Around Your Head.

Raymond Tallis uses his expertise in both medicine and philosophy (we could list many other fields) to be our guide around our head, in all its aspects. From the basic physiology to some philosophical digressions with some light neuroscience, he doesn’t just explain thing to us, but makes us wonder about some things we consider given such as the production os saliva in our mouths. Why do we behave in some ways we can’t control, and how we act in the ones we can control. Above all, why if asked where inside our body where our selves would be, we answer “inside our heads”.

A wonderful book I recommend to anyone curious about their head.

Django Staticgenerator with Passenger

Ricardo Martins’s post (along with several similar ones) about switching to jekyll, a static generator in Rails. Even Jeff Atwood, a windows-centric developer, is a fan of Movable Type, a perl-written static generator blog engine.

The advantages of a static generator for blogs or more static websites are clear: reads are much faster and will help your website survive digg, hacker news and reddit. It will also ease on the CPU and Database.

This wiki runs on Django (source available), so to implement static generation it was clear I should use Jared Kuolt’s staticgenerator app. The documentation is pretty good but I found two small details I should point out.

First, my urls didn’t ended in /, so the generated files didn’t have an extension and weren’t properly served by apache (no mimetype, so html wasn’t processed). When I changed them, static generator considers them a folder, so adds a index.html inside it and it just works (although your WEB_ROOT gets full of junk).

The other problem is that the documentation only mentions nginx configuration, and I am using Passenger under Apache. Which is even more simple, you just have to point WEB_ROOT to the public folder under your project. You can see my settings-prod.py which has all those settings.

I don’t have any popular website under this machine, so I can’t see the results just yet, but I got to get my hands dirty.

SUSE Studio

Back in the days when I formatted my desktop every week, I tried a lot of linux distros, including SUSE. 6 or so years forward and I haven’t touched any of them. My choice is Ubuntu for both the server and desktop. Mainly for being widespread (and therefore lot of troubleshooting resources, and .deb’s for almost everything out there).

Last week I got back to SUSE because Novell launched SUSE Studio, an online service for building your own configuration. You select the OS you want (OpenSUSE, SUSE Enterprise 10 and 11), the software packages and even your own files. You then download it as a standard ISO, USB image, VMware or XEN virtual machines. You even got the bonus of booting it in their servers, and use a Flash VPS client to try it.

This is an awesome idea that I believe Canonical and even RedHat will mimic sometime soon. This allows businesses and organizations to make their own distros based on a mainstream one, but with the software packages they depend on.

I am personally interested in being able to build custom small and light virtual machines for each of my project, with only the dependencies needed. We are only waiting for Level 1 Virtualization to be mass-deployed.

Another of my interests in the project it to select the software stack for my servers and download the VMWare/Xen image for local testing or for deploying in my VPS host. Actually I believe that such service providers like Amazon, Slicehost, Linode and others should provide a system like this one, but with more OS choices and we could rent it on the fly. I know there are a few companies that have automated setups that can do almost as SUSE Studio, but the VPS on-the-fly would rock.

Novell is really impressing me with this project, and the on-going work with Mono.