Sérgio Lopes Sakabatō, the reversed blog!

Adding JARs to OSGi bundles, with maven Apr 30, 2014

I’ve been developing a middleware system for smart houses (or at least to enable easier sensor node communication) that I chose to make OSGi based. Now, OSGi is nice and all, (rant: I don’t really mind all the 100 pages every book on OSGi has just to market the virtues of OSGi and why it comes to save the world, but it does drive me a bit crazy that there isn’t a set of instructions for those that want to develop using OSGi, not develop an OSGi container, and only need to get the differences to the “non-OSGi way” that we’re already familiar with) but getting a JAR to be part of one of my bundles has been harder than expected.

More ...

First attempt at creating a Yii extension: Yiibootflat Apr 19, 2014

I Recently tried to integrate the nice widgets from Bootflat (Bootstrap 3, but in flat!)  and thought I should give a try at creating my first Yii extension. After a few hours hitting the keyboard, with the usual pause to read the docs, I got most of the basic widgets available in Bootflat working.

More ...

How does one keep the motivation? Mar 31, 2014

How can we, working as freelancers or in the traditional arrangement, keep the will to get out of bed and jump to work? Lately I’ve found myself lacking any energy to do my work and just entered a state of automation: I get up from bed, prepare my day and start working until it is time to stop.

More ...

Back to school... Mar 31, 2014

… and its not going that bad.

Somehow, still not sure why, I decided to get back to the school. After some changes in my professional life I found myself returning to Leiria, a nice place to live but not where I would like to be at this point, and amidst all the changes I added one more when I enrolled in a Masters course at the Escola de Tecnologia e Gestão de Leiria.

More ...

Fix Eclipse IDE & PyCharm not loading on OSX Mavericks Dec 23, 2013

After a, somewhat, uneventful move from OS X Mountain Lion to Mavericks I hit an issue with Java based applications that would either refuse to start or ask me to install Java 6. Well, I don’t want to install Java 6, I have Java 7 running perfectly, but I would like to use some of the applications that are refusing to run. Searching the web didn’t provide any useful info besides many recommendations to just install the Apple provided Java 6 version.

More ...

Moving away from Sourceforge.net and their malware/adware/spyware offers Aug 23, 2013

I’ve been a Sourceforge.net registered user since 2007, before that Sourceforge.net was a “website” I knew I could use to find great free software. From the “website” I learned a lot about free software, I discovered great tools and I also started my journey as a free software developer, it was there that I added my first project, it was until recently the place I first looked at for any new project I would be creating. That will all end after today where I will definitely stop using their hosting service and also use less of the existing software offers.

More ...

UITableView ignoring reloadData message? Aug 4, 2013

Just a small note to myself :), and anyone that happens to stumble on this looking for the answer…

UITableView is use a lot in iOS applications, it is one very useful component even if the defaults offer, what at first glance looks like, a very limited list of items. Usually you have your own delegate and dataSource to fill in the table, and periodically call the reloadData method, at least, if your data comes from some WebServer, API or any external source.

If this is you and you’re having issues with your table not updating as soon as the data updates and you call reloadData, if you’ve confirmed that the table is not nil at the time you’re calling the reload method, are you calling the reload as part of a different thread? Maybe inside some Grand Central Dispatch call? If so, check that you’re calling the reloadData method inside the main thread, if you’re not that is the reason why your table is ignoring you reload calls.

Now, I know this is something basic, but I’ve just spend the good part of an hour tracking this stupid mistake :)

So, to summarize, the symptoms are: UITableView that does not update by code, but does so if you scroll the table, neither the table pointer (IBOutlet) nor the data structure you’re using to fill the table is nil.

The most likely cause is that you’re updating the table on a thread that is not the main thread, all UI calls need to be done inside the main thread or the UI won’t updated.

More ...

Another adventure comes to an end... Jun 23, 2013

Seems my life is made of small adventures and frequent changes, like nice iterations on software development :D.

More ...