Le Petit Monde

Real Life Facebook Home

Hi there, just a really small post to share this article found on The Verge:
Facebook Home is beautiful, but what if your friends aren’t?
I thought it was funny to see how an idea that seems good can fail when applied to the real life. I myself can think of many friends pictures that I wouldn’t like to see on my homescreen (and not only because I have ulgy friends :)).

Bye,
Martin

Raspberry Pi Incoming!

Hi guys!
Two weeks ago my geek instinct told me it was a good idea to buy a Raspberry Pi to play with. After some research I bought it from RS as others French distributors, despite shipping from France, where more expensive. Of course I took a Type B as without the ethernet port it would have been less fun for me, and as my better half would not necessarily love having a small electronic part in our living room, I also bought the white case to make it look less geeky. ;)

Cause yes, my RPI is going to be in my living room. I had to think about what I wanted to do with it after I finally placed my order. So I know it’s not really new but my RPI is going to be a Spotify player and act as a Time Machine on my network, I might also try to connect it to my tv to see how it behave as a MediaPlayer.
Why am I telling you all this ? Cause it should give me some geek material to talk about in here so you should expect some posts about my RPI. I know I’m not really actively posting here and I’m going to try to correct that once again. I’m starting some projects on Android too which may also result as posts (and Google Play available app too I hope ;)).

While waiting for my RPI to come (approx 8 days they said) you may be interested in reading some of my inspirations:

So let’s hope it will ship on time and as soon as I have it I should start playing with it and share some tips in here.

Bye,
Martin

Proguard With External Libs on Android

Hi
So recently I was playing with proguard in order to obfuscate and optimize my app. But I happen to use several external dependences (the great ActionBar & ViewPager Indicator as well as the Support library and Joda Time) and Proguard kept telling me it couldn’t access some referenced fields or methods. As I understood it there where two kind of error: Some of the libs I use are on jar file. And some Joda-time method are not in the main jar (?) which is the only one I included in my project. So I had to change Proguard configuration and I thought it could help to have these new lines here.
So here they are:

1
2
3
4
5
6
7
8
9
-keep class android.support.v4.app.** { *; }
-keep interface android.support.v4.app.** { *; }
-keep class com.actionbarsherlock.** { *; }
-keep interface com.actionbarsherlock.** { *; }

-keepattributes *Annotation*

-libraryjars libs/joda-time-2.1.jar:libs/android-support-v4.jar
-ignorewarnings
It sure will help me in the future and it may help some of you as it was hard to find this solution with google.

Bye

SVN Add All Untracked Files

I’m always looking for this when I’m forced to use SVN so I’m going to note it in here:

1
2
alias svnaddall='svn st | grep "^\?" | awk "{print \$2}" | xargs svn add $1'
alias svnrmall='svn st | grep "^\!" | awk "{print \$2}" | xargs svn rm $1'
These are just two usefull small macro I usually add to my zshrc when working with svn. The first one “svn add” every untracked files. And the second one “svn rm” every tracked files that don’t exist anymore.

Hope this can help some of you.
Martin

Updating My Web Presence

Just put my CV (not that up to date for now) online to replace my old moadib.net blog.
Sorry it’s only in French but i’ll work on the English version while I update it. You can find it here: MoAdiB’s CV