Flavio Castelli

Debugging my life

Mar 29, 2011 - 4 minute read - Comments - ruby ruby on rails suse studio

Introducing dister, a Heroku like solution for SUSE Studio

SUSE Studio is an awesome tool, with a couple of clicks you can create an openSUSE/SUSE based system and deploy to your hard drive, an usb flash, a live dvd, a VMware/VirtualBox/Xen server and even Amazon EC2 cloud. Suppose you want to create a tailored SUSE Studio appliance to run a Ruby on Rails app, this is a list of things you have to take care of: install all the gems required by the app (this can be a long list).

Aug 11, 2010 - 1 minute read - Comments - bash zsh ruby

Jump: a bookmarking system for the bash shell

[](http://flavio.castelli.name/wp-content/uploads/2010/08/van-halen- jump.jpeg)Let me introduce a small project I’ve been working on with a friend of mine, Giuseppe Capizzi. The project is called jump and allows you to quickly change directories in the bash shell using bookmarks. Thanks to Jump, you won’t have to type those long paths anymore. You can find jump’s source code, detailed documentation and installation instructions here. SUSE packages can be found here.

Jul 23, 2010 - 1 minute read - Comments - KDE plasma

Fast user switch plasmoid improvements

Just a quick note, I released a new version of the fastuserswitch plasmoid. This new release implements all the improvements suggested by the users plus some minor fixes. Code can be downloaded from here. openSUSE packages are already available on the build service. These are some screenshots illustrating fastuserswitch’s new features. {% img /images/fast_user_switch/fastuserswitch011.png %} {% img /images/fast_user_switch/fastuserswitch021.png %} {% img /images/fast_user_switch/fastuserswitch03.png %}

Jul 15, 2010 - 1 minute read - Comments - KDE plasma

Fast user switch plasmoid

Last week my mother in law started to share her Linux laptop with my wife. Suddenly my wife asked me how she could switch from one user session to another. She was looking for something similar to OS X fast user switch feature but she couldn’t find it. In fact there wasn’t a fast and easy way to switch between users’ sessions with KDE, until… now :) Let me introduce my first plasmoid: the fast user switch plasmoid.

May 28, 2010 - 4 minute read - Comments - ruby ruby on rails TDD howto

How to run a single rails unit test

This post explains how to execute a single unit test (or even a single test method) instead of running the complete unit test suite. In order to run the unit tests of your rails application, basically you have these official possibilities: rake test: runs all unit, functional and integration tests. rake test:units: runs all the unit tests. rake test:functionals: runs all the functional tests. rake test:integration: runs all the integration tests.

Mar 14, 2010 - 1 minute read - Comments - qt qjson

QJson and Symbian

I’m really pleased to announce that latest version of QJson on master is working on Symbian. You can find the installation instruction here. Since I’m not a Symbian developer it has been a little hard for me to achieve that. I would like to thank Antti Luoma for his help. There are also good news for Windows developers: now building QJson under Windows is easier. Checkout the new installation instruction page.

Dec 5, 2009 - 1 minute read - Comments - qt qjson

QJson code moves to gitorious

Just a quick note: I have just moved QJson source code to this git repository hosted by gitorious. I’ll keep the code on KDE’s svn synchronized with the git repository.

Dec 4, 2009 - 2 minute read - Comments - qt qjson

QJson: from QObject to JSON and vice-versa

Some days ago I introduced the possibility to serialize a QObject instance to JSON. Today I’m going to show you the opposite operation: initializing a QObject using a JSON object. I refactored a bit my latest changes: I created a new class called QObjectHelper that provides the methods required to convert a QObject instance to a QVariantMap and vice-versa. This class can be used in conjunction with the Serializer and Parser classes to serialize and deserialize QObject instances to and from JSON.

Nov 30, 2009 - 2 minute read - Comments - qt qjson

QJson: easier serialization of QObject instances to JSON

I have just committed into trunk a couple of changes that make easier to serialize a QObject instance to JSON. This solution relies on the awesome Qt’s property system. Suppose the declaration of Person class looks like this: {% codeblock [class definition] [lang:cpp ] %} class Person : public QObject { Q_OBJECT Q_PROPERTY(QString name READ name WRITE setName) Q_PROPERTY(int phoneNumber READ phoneNumber WRITE setPhoneNumber) Q_PROPERTY(Gender gender READ gender WRITE setGender) Q_PROPERTY(QDate dob READ dob WRITE setDob) Q_ENUMS(Gender)

Sep 14, 2009 - 3 minute read - Comments - KDE

kaveau updates

Some weeks have passed since the announcement of kaveau. I’m really proud and happy about this project because I received a lot of positive feedback messages and it has been chosen as one of the best Hackweek’s projects. In the meantime I kept working on kaveau, so let me show you what has changed: rdiff-backup has been replaced by rsync. the setup wizard has been improved according to the feedback messages I received.