Arxiu de la categoria 'Programari Lliure'

Cap al Fosdem 2012

diumenge, 08/01/2012 (19:49) per carles

Igual que anys anteriors: també vaig al Fosdem 2012. A veure quines sorpreses hi haurà enguany, bons conferenciants, etc.
(breument, és la conferència de programari lliure més gran d’Europa i imagino que del món)

Normalment surto de cada Fosdem amb una llista de projectes, programes, coses a mirar que tardo uns quants dies…

Si algú ve i vol saludar que avisi. Companys de Catux també venen.

Screensaver for KDE using Python and Pygame

diumenge, 11/09/2011 (19:49) per carles

At Mendeley we have already done two hackdays. That’s quite interesting event: during a period of time (first one was on Friday until late night or overnight, second one Saturday and Sunday) we do whatever we want to do, it only needs to be a bit related with Mendeley.

On the last hack weekend I did a screensaver using Python, which one is integrated with KDE. Probably with some small changes would work in other systems.

In this entry I’ll cover the basic of the screensavers in KDE (how to integrate the new screensaver in KDE), and how KDE interacts with the screensaver. You should know a little bit of Python and Pygame, but if you don’t know you can still understand the code and do the same using other systems.

The code is in Git. Or if you want the quick example look here.

(més…)

Desenes Jornades de Programari Lliure

diumenge, 05/06/2011 (01:59) per carles

Ja hi ha notícies, programa, inscripcions de les X Jornades de programari Lliure!

La informació a la Web, com sempre: http://jornadespl.org/.

Hi haurà xerrades per varis gustos: des de tècniques (programació amb QtQuick) a xerrades més d’àmbit legal -sempre relacionat amb el programari lliure. Tal com he dit, visiteu la Web.

vim filename:line:col

divendres, 06/05/2011 (20:08) per carles

When g++ or gdb are reporting some error (e.g. compilation error) in some file the output is like:
a.c:3: error: ‘pintf’ was not declared in this scope

then I usually do “vi a.c” and I go to the line 3 (:3).

Using this script you can do:
vi.py a.c:3 and will go to the line 3.
Or vi.py a.c:3:5 and will go the line 3, column 5.
Or vi.py a.c:3: and will also go to the line 3 (so you can copy-paste g++ output).

The script also accepts some other variations, see the first big comment in the script sourcecode.

It’s useful in my case, I thought to share in case that it’s also useful for somebody else.

By the way, you can rename the script to vi and save in some directory that has preference to the standard vi, or create an alias, etc. I’m always using the script, since it just does something when it’s needed.

As said in the script: it could be improved a lot, but it’s not needed for my needs. If somebody has some suggestion just say it here or by mail, it’s inside the script.

Ubuntu Cola

divendres, 22/04/2011 (12:14) per carles

Em sonava haver-ho llegit, però fa unes setmanes em van dir que als supermercats Waitrose hi havia Ubuntu Cola. I efectivament… n’hi ha:

(més…)

Enviant emails? notificació a la barra

divendres, 08/04/2011 (20:30) per carles

Fa un any aproximadament vaig comentar que quan envio mails faig que s’enviïn després d’un minut. Així evito errors tipus enviar el mail a la persona equivocada. Tinc un minut per adonar-me’n i cancel·lar l’enviament.

Un any després el sistema segueix en funcionament, i per sort durant aquest any diria que no m’he equivocat cap cop (o un?). Vaja, gairebé poc i en tot cas era poc important.

Però el sistema té un petit problema: quan un envia un mail i vol apagar l’ordinador (o adormir-lo, per anar a dormir). En aquests casos obro una consola i faig «mailq» per veure si hi ha mails que estan esperant ser enviats.
(més…)

Invitacions a Joindiaspora

divendres, 01/04/2011 (18:50) per carles

Al gra: tinc invitacions per Joindiaspora. Si algú en vol envieu-me un mail a carlesblog arroba pina.cat i us n’envio.

O si voleu connectar-vos doncs el meu perfil és aquí.
(més…)

Mendeley API binary

divendres, 25/03/2011 (11:26) per carles

Fa unes setmanes es va anunciar que Mendeley organitzava un «API Binary Battle». La idea: qui participi i guanyi guanyarà 10001 Dòlars, és a dir, uns 7000 Euros.
El jutjat, entre altres, inclou Tim O’Reilly.

Ja hi ha aplicacions fetes, abans del concurs (la pàgina Web de dev.mendeley.com). Es poden veure a http://dev.mendeley.com. Se sabrà el guanyador a finals d’octubre.
(més…)

Pidgin plugin for MegaHAL

divendres, 18/03/2011 (17:11) per carles

Some time ago I wrote how to setup MegaHAL to have some talks with “it”.

But, after that, I went one step further and I wrote a Pidgin (multinetwork -Jabber/XMPP, msn, etc.- Instant Messenger client,plugin) so MegaHAL can automatically answer some people. In other words: you can say “for this Instant Messenger account, when this contact writes to me Pidgin will automatically answer some text using MegaHAL”.

(Warning: some people can get upset if they think that they are talking with you but they are talking with MegaHAL. Even if MegaHAL learnt from you and the co-worker chat logs.)
(més…)

Megahal: how to use it?

diumenge, 13/03/2011 (19:50) per carles

Megahal is a conversation simulator, free software, available as a package in Debian systems. This post will talk about how to use and train it. Not difficult, but the first time I was a bit confused.

First of all: install megahal:
apt-get install megahal
(or aptitude, compile from the source, etc.).

Then you can run megahal in the terminal, just typing megahal. It will probably show something like:

(més…)