Category Archive: Code

Sep 07

Strong Typing PODs

Identifiying object by a numerical integer is an almost trivial task. In DISPLACE, a very complex simulator I am involved with, there are many of different categories of objects that model different categoris of agents in the simulator, like vessels, marine locations, ships, ports, and so on. Each object has an Id, and it was very natural, …

Continue reading »

Permanent link to this article: https://www.studiofuga.com/2017/09/07/strong-typing-pods/

Mar 07

A compact CSV parser using C++ TMP

How many times have you implemented a CSV parser to fill a list of stucts from a text file? Personally, it happens to me about every time I have new project. Though it is a simple task that requires no more than half an hour to build and debug, it is boring, error prone and repetitive. …

Continue reading »

Permanent link to this article: https://www.studiofuga.com/2016/03/07/a-compact-csv-parser-using-c-tmp/

Nov 28

The dbus-cpp Library, introduction

While working on a bluetooth based embedded device, I needed to deal with the somehow infamous dbus. DBus and Bluez5 have a very steep learning curve, and if you are don't have access to either Qt framework or glib framework, you have indeed a problem. Glib are very complex C libraries that mimick some of …

Continue reading »

Permanent link to this article: https://www.studiofuga.com/2015/11/28/the-dbus-cpp-library-introduction/

Aug 10

Pairing Bluetooth with no pin on Intel Edison

It may seems strange for an IoT enabled device, but there's no obvious way to pair an Intel Edison through Bluetooth without accessing the shell. I spent different hours to do something that with Bluez4 took at most 4 minutes, including the research on Google. Here's what I did. Edison provides Bluez5 that reworks most …

Continue reading »

Permanent link to this article: https://www.studiofuga.com/2015/08/10/pairing-bluetooth-with-no-pin-on-intel-edison/

Jul 11

TouchWiz and the onOffsetChanged missing call

I am currently working on a Live Wallpaper project for a customer. Interestingly, I found that though my app works perfectly on different devices – I have a Nexus7, Nexus10, a Galaxy Tab p1010, different chinese allWinner devices, and a Note II phone – my wallpaper can’t scroll when the screen is swiped on some …

Continue reading »

Permanent link to this article: https://www.studiofuga.com/2013/07/11/touchwiz-and-the-onoffsetchanged-missing-call/