Disculpa, pero esta entrada está disponible sólo en English.
NSLU2, Grilo and UPnP in Ubuntu’s GNOME
8
Let’s go quickly to the important stuff: I’ve been helping the great team that is organizing GUADEC 2012 in A Coruña. I cannot count myself among this amazing group of people since I’ve scarcely devoted any time to the tasks they needed from me but this is the result out of it, in the shape of a t-shirt 🙂
I cannot get all the credit of it, I was basing the final design on the previous work done by William Carlson and some drafts done by Alba Castro. You can find all the material in this public git repository hosted at Igalia.
Also, I did a small variation for the t-shirts of the staff, which will be red. This is back of the female’s version:
Doing artwork for GNOME events is no new thing for me. I’ve been regularly doing some stuff for them. Some just for Igalia, my company, but also some other for the event itself.
Last thing I designed before 2012 were the t-shirts (again) for the GUADEC-ES 2010 that took place also in Coruña. I got inspired that year by the soccer world cup that would be won by Spain (yeah!!!). Here you can see the 3 versions, starting by the Brazil one:
Denmark:
And a female’s version:
This last model is the one that holds the final sorting of the back logos that was printed for all the t-shirts. Actually, Xulia Barros, from FreeWear did a small modification to the final design leaving some space among the lines for the «7» in the back.
Again, you can find all the material in this public git repository hosted at Igalia.
Even before 2010 I found myself tangled with The Gimp, Sodipodi and Inkscape, later. In 2006 I did a small design for that year’s GUADEC-ES which consisted on the header:
and foot of its webpage:
The lady was inspired on Pasiphaë who has a sculpture in Vilanova’s see shore while the sea tide was inspired by The Great Wave off Kanagawa.
You can find all the material in this public git repository hosted at Igalia.
And finally getting to the end … or maybe better the beginning.
In 2005 Coruña was hosting for the first of several times the GUADEC-ES. For that event I did most of the artwork that was used. Web page, printed banners, badges, talks’ book, but one of the things that I was most proud of was the animated banners that were featuring for some time in Barrapunto, the Spanish version of Slashdot:
And I learn to do it the hard way. You cannot imagine how difficult was by the time to do a GIF animation with The GIMP!
Also, that year was a great one for the t-shirts. Most of the attendants liked them and we had them in several colors: red, green, blue, orange and, as always (or almost 😉 ), black. I think that was once in a lifetime for a hacker’s conference 😀
Even, with Chema‘s help, the master of organizing events, I was experimenting with some sketches done directly in the sand, from which I got inspired to do the rest of the material:
Of course, you can find all the material in this public git repository hosted at Igalia.
BTW, if you have been able to read this boring post until here, you are my hero 😀
Or kind of … because unlike you may guess from the title, I’m actually attending mighty GUADEC 2012
I’ve attended GUADEC 2006 in Vilanova i la Geltru, GUADEC 2007 in Birmingham, GUADEC 2008 in Istanbul and the Desktop Summit in Gran Canaria as a guest in all of them.
Finally, this year the event comes home but, funnily enough, I moved to Helsinki some months ago so I’m again a visitor. Now in A Coruña 🙂
Honestly, I can’t wait to attend some of the talks and meet again the GNOME folks. Also, my mates Igalians are featuring quite some talks in the program meanwhile Igalia itself has been doing quite an effort to host some of the hackfests and meetings that are happening during these days.
And not only that!. As I was saying, I’m a visitor again so I only have pending to thank Igalia again for sponsoring my trip!
Back again with a new release, the 0.0.3, of Applications Fullscreener and Automatic Skype Launcher.
Just download and install them in your N8x0 for making it become a good 24/7 Skype phone. For more information about the goals and features of this project you can check the previous post Extending the life of your N8x0: Automatic Skype Launcher.
I took the chance to update also the artwork used in these two applications. First thing, I created a Tango-ized version of the Skype logo.
Then, I used the previous magnificent art works from Andreas Nilsson and Jakub Steiner to create the new icons, and these are the result:
Anyway, going to the actual changes.
The most important change for Applications Fullscreener is:
You can, also, check the complete ChangeLog for Applications Fullscreener.
The most important changes for Automatic Skype Launcher are:
You can, also, check the complete ChangeLog for Automatic Skype Launcher.
That’s it. Comments and patches are welcomed!
I’ve just released the 0.0.2 version of Applications Fullscreener and Automatic Skype Launcher.
As I was already commenting in my previous post Extending the life of your N8x0: Automatic Skype Launcher, just download them and install them in your N8x0 for making it become a good 24/7 Skype phone.
The most important change for Applications Fullscreener is:
You can, also, check the complete ChangeLog for Applications Fullscreener.
The most important changes for Automatic Skype Launcher are:
You can, also, check the complete ChangeLog for Automatic Skype Launcher.
That’s it. Comments and patches are welcomed!
Leading quickly to the “ham”, just install Applications Fullscreener and Automatic Skype Launcher in your N8x0 and turn it into a Skype phone. Now, the long explanation 🙂
After working in Maemo and MeeGo for the last 5 years I’ve become the proud owner of a N810, a N900, a N950 (by now) and a N9. Obviosly, my old and beloved first maemo device, the N810, has been pushed into the background.
Thinking about how to still keep doing a good use of it, came to my mind the idea of turning it into a Skype phone. Nokia’s hardware is superb and the sound quality of the N810 makes it a good choice for this.
Still, I didn’t need another Skype phone myself but my parents, who have a lot of troubles for making use of Skype’s software in the computer, were the perfect candidates. Also, placing the N810 24/7 online side by side to their land line phone would let them receive and check at any moment for the availability of their regular Skype contacts. That’s it, my oldest’s brother family, who lives in Germany, and myself, who have already spent the last year and half in Finland and will be there, at least, for another six months.
Therefore, I copied all the remaining data out of the N810, cleaned the internal MMC and re-flashed the device with the latest available image and the needed flasher. Afterwards, and for having an easy way for maintaining the device, I upgraded to the OS2008 Feature upgrade and installed Skype, openssh and x11vnc packages. Also, I set the “Red Pill” mode in the Application Manager and added the following repositories:
~# cat /etc/apt/sources.list.d/hildon-application-manager.list deb http://repository.maemo.org/extras-devel/ diablo free non-free deb http://repository.maemo.org/ diablo/tools free deb http://catalogue.tableteer.nokia.com/certified/ diablo user deb http://catalogue.tableteer.nokia.com/non-certified/ diablo user deb http://catalogue.tableteer.nokia.com/updates/diablo-2/ ./
In addition, after being able to ssh into the device, I installed the screen package.
Then, I set the connection manager to be connected to my parents WiFi automatically, without energy saving, with the smallest searching intervals, in case it would lose connection, and with unlimited inactivity time.
I modified the display settings for having the bright level, the bright timeout and the timeout for turning it off to the maximum, unchecked the option for blocking the display and keyboard on turning the display off, and set the display to not being permanently on ever. In the LEDs settings I left everything checked but when the device is on.
Because of the possibility of connecting with a bluetooth headset, I also set the bluetooth to be always on and visible.
Finally, I launched Skype and configured a new account for my parents.
The only thing left was to be able to launch Skype automatically at boot time and in fullscreen mode. As I said before, my parents are not really skilled on technology or gadgets use so the simplest approach would be to have a fully working Skype client just after booting and with no more distractions that the contacts list and the button for calling.
I’ve developed the package skype-autolauncher for this task. This package would launch Skype automatically on boot time through a init script. Yes, I know it is not the cleanest way but it just works™ and other strategies are not much cleaner. The init script makes use of dsmetool to monitor the Skype instance so, if it crashes, or is closed by mistake, the application is relaunched. Also, this package adds a cron.daily task which will restart the service so it will also shut down and re-launch Skype for having fresh memory and a healthier running environment.
Automatic Skype Launcher’s code is kept in gitorious. For downloading the code, just type in a terminal:
$ git clone https://git.gitorious.org/skype-autolauncher/skype-autolauncher.git
For the matter of automatically turning the launched Skype instance into fullscreen mode, I’ve also developed the package apps-fullscreener. This package sends a fake fullscreen hard key event to a XWindow by its process name.
Applications Fullscreener’s code is also kept in gitorious. For downloading the code, just type in a terminal:
$ git clone https://git.gitorious.org/apps-fullscreener/apps-fullscreener.git
That’s it. Comments and patches are welcomed!
Hoy no me pude aguantar más y tuve que hacerlo …
Como propietario de un Thinkpad Lenovo X61s en el que no uso, ni hecho de menos un ratón, gracias al fantástico TrackPoint que incorpora, las nuevas barras de desplazamiento de Ubuntu son, simplemente, inusables.
Así que, yendo rápidamente al «turrón«, para deshabilitarlas sólo hay que abrir una consola y escribir 🙂 :
$ sudo echo "export LIBOVERLAY_SCROLLBAR=0" > /etc/X11/Xsession.d/80overlayscrollbars
y reiniciar.
No digo que las nuevas barras no sean una mejora. Permiten una utilización mejor del espacio en pantalla pero, desde el punto de vista funcional, sólo valen como indicadores de tu posición. El progreso en el desplazamiento de la ventana. Forzosamente necesitas una rueda en tu ratón o una manera de emular este comportamiento. Si tienes que desplazar la barra manualmente, desde el punto de vista funcional, son un fracaso.
Francamente, en Ubuntu se echa de menos una manera de seleccionar des/habilitar su utilización sin tener que acudir a este tipo de «hacks«.
Por supuesto, otra alternativa habría sido «emular» la rueda del ratón mediante el uso del botón central, pero la última vez que lo usé decidí que prefería tener una mejor experiencia de «seleccionar y pegar» con este botón, antes que usarlo como modificador para el desplazamiento vertical/horizontal.
En todo caso, si lo que se quiere es usar este botón de esa manera, antes había que añadir una seríe de modificaciones al archivo de configuración del servidor «XOrg«. Ahora, sólo tenemos que instalar el paquete «gpointing-device-settings«:
$ sudo aptitude install gpointing-device-settings
y seleccionar las debidas opciones tras lanzarlo desde «Sistema -> Preferencias -> Pointing devices«.
Esta y muchas otras recetas se pueden encontrar en ThinkWiki.
Quién sabe, quizá, en un tiempo, cambie de opinión y retome esta funcionalidad (y las nuevas barras de desplazamiento de Ubuntu) …
As I was introducing in the former entry QUrl (mis)usage, the direct creation of a QUrl from a QString should be avoided in any software that is not trying to smartly guess what a user input should lead to.
So, going directly to the ham, to avoid mistakes due to automatic conversions from QString to QUrl, I encourage the usage of the QT_NO_URL_CAST_FROM_STRING macro. The only thing you have to do is adding a line to your qmake project file like this:
# Avoid automatic casts from QString to QUrl. Dangerous!!!
DEFINES += QT_NO_URL_CAST_FROM_STRING
Or add it directly to the compilation line, like this
g++ ... -DQT_NO_URL_CAST_FROM_STRING ...
As I was pointing in my previous post, the usage of QUrl::fromLocalFile(QString) and QUrl::fromEncoded(QByteArray, QUrl::StrictMode) is recommended when dealing with QString and QUrl, but committing mistakes is a human condition so it is pretty easy to end passing a QString as a parameter to some API expecting a QUrl, or assigning a QString to a QUrl with the «=» operator through the C++ automatic cast mechanism which is implemented in the QUrl class. That’s why forbidding these automatic casts in our code is of such importantance.
Lately, I’ve been developing some software which makes an intensive usage of QUrls as resource locators for local files. Nothing wrong here. QUrl is a powerful way of sharing the locations of those in an universal way. The problem is when you construct those QUrls from QStrings and you actually forget that QUrls are meant for much more than representing local file locations.
At the moment of writing this, QUrl documentation, although quite complete, could be much more explanatory. For example, it says that the recommended way for creating a QUrl from a QString is:
* When creating an URL QString from a QByteArray or a char*,
always use QString::fromUtf8().
* Favor the use of QUrl::fromEncoded() and QUrl::toEncoded()
instead of QUrl(string) and QUrl::toString() when converting
QUrl to/from string.
But this is explained in the documentation for QUrl::fromUserInput(), instead of in the Detailed Description [ 1 ].
What is important from this explanation is that it is not a matter of favor the use of QUrl::from/toEncoded() over QUrl::(from)toString() but, I would say, a must if you don’t want to end up with bogus corner cases.
Why would this happen? Well, as I was saying, QUrl is meant for much more than universally representing the location of a file so, here go the big tips:
/mypath/my#file.jpg
Correct:
QUrl myUrl = QUrl::fromLocalFile("/mypath/my#file.jpg")
Incorrect:
QUrl myUrl = QUrl("file:///mypath/my#file.jpg")
The problem here is the way QUrl will treat the «#» character in the second example. It will think, as it actually doesn’t have a way of guessing, that the character is delimiting the fragment part of the URL.
As a result, calling to:
myUrl.toLocalFile()
in the first case will result to:
/mypath/my#file.jpg
while in the second will be:
/mypath/my
/mypath/my#file.jpg
(encoded) url representation:
file:///mypath/my%23file.jpg
Correct:
QUrl myUrl = QUrl::fromEncoded("file:///mypath/my%23file.jpg", QUrl::StrictMode)
Incorrect:
QUrl myUrl = QUrl::fromEncoded("file:///mypath/my%23file.jpg")
The problem here is the way QUrl will treat the «%23» encoding in the second example. Although it is not explicitly explained in the documentation [ 2 ], QUrl will use QUrl::TolerantMode as ParsingMode by default. Therefore, it will think that the input comes from an ignorant user which was actually trying to pass «file:///mypath/my#file.jpg». Again, it will understand after converting back «%23» to «#», that the character is delimiting the fragment part of the URL.
As a result, calling to:
myUrl.toLocalFile()
in the first case will result to:
/mypath/my#file.jpg
while in the second will be:
/mypath/my
/mypath/my#file.jpg
(encoded) url representation:
file:///mypath/my%23file.jpg
(unencoded and wrong) url representation:
file:///mypath/my#file.jpg
Correct:
QUrl myUrl = QUrl::fromEncoded("file:///mypath/my%23file.jpg", QUrl::StrictMode)
Incorrect:
QUrl myUrl = QUrl("file:///mypath/my#file.jpg")
Here, we have another incarnation of the very same problem than the two examples above. QUrl will think, again, as it actually doesn’t have a way of guessing, that the character is delimiting the fragment part of the URL.
As a result, calling to:
myUrl.toLocalFile()
in the first case will result to:
/mypath/my#file.jpg
while in the second will be:
/mypath/my
The default behavior of QUrl is to provide an easy handling of URLs to the user of our programs, the end user, but not the user of QUrl, the developers. I find this quite awkward but, still, it is a decision of Qt people and, as developers, we only have to take this into account when writing our code.
These bogus URLs, which are to be corrected with the usage of the QUrl::TolerantMode ParsingMode, usually come from a text entry box «à là» browser location bar, but this use case is, actually, not so common when talking from the developer’s point of view. When dealing with URLs in our code we have to take into account what an URL is and how it should be formatted/encoded to be valid. Therefore, if I’m receiving a wrongly encoded URL I should go to the source code providing this URL and fix the problem there rather than trying to smartly guess which should be the proper URL. For example, in my software currently in development we use Tracker and I rely on it to feed my code with properly formatted URLs. If for some reason Tracker gives me a wrongly encoded one, the place for solving it is, actually, Tracker, and not my software. I should not and must not interpret what Tracker may have wanted to pass me, but open a bug in its bugzilla and provide as accurate information as I can to help them solve this issue.
Just so my friend Iván Frade doesn’t kill me, make notice that Tracker is, so far, perfectly dealing with URLs 🙂