Introducing FrameRain

I have been working on different projects since the beginning of the year. Today, I want to introduce FrameRain: a way to manage favourite videos from Youtube. The idea came out, after thinking that it would be great to have a place to store videos you prefer without the need of an account. Today, I’m happy to « open source » this project, as decided at the beginning. It is licensed under MIT.

I’ve built FrameRain using Node.js and Express for the server. Data persistence uses MongoDB. These are the only requirements to run FrameRain. Configuration can be found in the file config.json, but there are only a few things in it for now. FrameRain stores the miniature of each video, so that it does not rely on Youtube to display it.

It is possible to add some video to a playlist to watch them one after another. FrameRain uses youtube embedded player to prevent the need to go on youtube.com. Unfortunately, it doesn’t prevent youtube from tracking you. Moreover, I’m not satisfied with the way I implemented the player. It is working, but it will be hard to add another platform like vimeo or dailymotion using this implementation.

I should also consider password encryption. Among other things, an initial idea was to be able to manage playlist of videos, like for example, a music playlist, trailer playlist, funny playlist, … I’m planning to add it later.

This was a really fun project. I learned a lot about how to use Mongo and Mongoose. I will now work back on my other project which aimed at playing flac files in the browser. So, if you have any comments about FrameRain, don’t hesitate to contact me.

Casper-Shadow-Front – A dark theme for Ghost

I was testing Ghost last week. I found it really interesting, but I’m not a big fan of white interfaces… too bright for me. That’s why I decided to fork the original theme named Casper to create a darker theme.

I’m happy to introduce Casper-Shadow-Front: a Dark Theme for Ghost Blogging Platform. You can find it on my Github account.

Ghost-Casper-Shadow-Front

I’m also considering extending this dark look to the control panel. Stay tuned!

ArduiTemp: Temperature, Arduino, LOLShield

ArduiTempYesterday, an idea just jumped in my mind. I was thinking about using my arduino and my LOLShield to display the local temperature. I tried to figure out how to achieve this the whole day. So I imagined a simple program. First, it will need to find the weather of a given city by requesting an url. Then, parse the information to extract temperature and finally, generate the code to turn on the right leds. The hackaton could begin.

I started digging the problem of compiling my code without any IDE, I found some Makefile but didn’t manage to make them work correctly. There was always something wrong. Finally, I discovered Ino, installed it et tested it with a sample code for the LOLShield. It compiled, uploaded the code: it worked well. I then search for a correct weather API with up to date data. I tested some and found wundergroud API, which corresponded to my need.

I then wrote the program I imagined during the day. I hadn’t encounter any specific problem during this step. I used NodeJs and request to perform retrieve data from the API and generate the code to compile for the arduino.

You can find this quick project on my github account under the name ArduiTemp. It was rewarding managing to produce a working solution in a small amount of time. Even though, I did not manage to use a simple Makefile, it would be interesting to write a correct Makefile from scratch. I think Ino source code could be helpful to achieve this.

Au revoir Android. Bonjour Cyanogen!

Novembre 2012

En lisant la Newsletter de Novembre 2012 de la FSFE, je suis tombé sur un article qui clarifie les choses du côté de la garantie en cas de modification  du logiciel présent sur le téléphone. Celui-ci explique donc que si vous avez acheté votre appareil dans l’Union Européenne, vous conservez la garantie constructeur de 2 ans même si vous modifiez le côté logiciel. Une bonne nouvelle donc, qui me pousse à ne pas attendre la fin de ma garantie et à installer Cyanogen sur mon téléphone.

Après avoir assister à la conférence Libérez votre Android! de la FSFE lors des Journées du Logiciel Libre de Lyon, je me lance dans l’aventure le soir même. L’installation des logiciels nécessaires se passent plutôt bien, puis vient le premier problème: impossible de démarrer le téléphone en mode fastboot. En effet, l’opérateur a semble-t-il désactivé ce mode… Fin de l’histoire donc; pour l’instant, jusqu’à ce que je trouve une solution.

Juillet 2013

Après différentes recherches complémentaires et diverses lectures pendant ces quelques mois, j’ai fini par trouver une solution à mon problème. Seul petit bémol, celle-ci est payante mais a le mérite de fonctionner: WotanServer. Ce site propose différents services allant du désimlockage à la mise à jour du système. Dans mon cas, l’opération de désimlockage a également pour effet de débloquer le mode fastboot et donc de me permettre de commencer l’aventure Cyanogen.

Je commence donc par l’installation de l’environnement nécessaire sous Arch Linux grâce aux dépôts: yaourt -S fastboot  android-sdk-platform-tools android-udev  android-sdk-build-tools .

Je décide de choisir la version Nightly de Cyanogen pour être sûr de bénéficier de la correction de la faille Master Key touchant toutes les versions d’Android.

Pour la suite, il est donc nécessaire de passer en mode fastboot sur le téléphone, dans mon cas, pour un Xperia Mango SK17:

    • Éteindre le téléphone.
    • Maintenir le bouton volume haut.
    • Connecter le cable USB au téléphone après l’avoir connecter à l’ordinateur au préalable.

Le téléphone devrait avoir démarrer en mode fastboot et la led en haut à gauche s’allumer en bleue.

Enfin, il suffit de suivre le tuto d’installation sur le wiki. Celui-ci est bien détaillé et complet. Simplement, ne pas oublier d’utiliser sudo pour fastboot si besoin. La page Sony pour obtenir le code de déverrouillage du bootloader (Pas nécessaire avec la procédure WotanServer).

J’utilise donc Cyanogen depuis quelques jours maintenant, pas de difficulté particulière pour s’habituer au système. De nouvelles fonctionnalités intéressantes. Enfin, ajout du dépôt d’applications F-Droïd pour avoir accès à un choix d’applications libres.

Ghost: Un « nouvel » outil de publication

Je suis tombé par hasard il y a plusieurs semaines sur une campagne Kickstarter visant à financer le développement d’une nouvelle plateforme de blog nommée Ghost. Le design mit en avant est alléchant. Ghost prévoit en effet de présenter le contenu de manière simple et claire.

Côté fonctionnalités, la possibilité d’écrire ses articles en utilisant le langage de mise en forme Markdown a retenu mon attention. Langage déjà présent par exemple sur Github, pour la mise en forme des Pull Request notamment. Le dashboard semble également prometteur car il devrait permettre de visualiser, entre autre, des informations concernant le trafic du site. En effet, cette fonction de statistique me manque un peu sur WordPress (bien qu’il soit possible de l’ajouter par ailleurs, aucune des solutions que j’ai pu envisager ne m’a pour l’instant convaincu) et je me contente pour le moment des logs apache si besoin. Autre point intéressant, la compatibilité annoncée avec tous les types de supports: ordinateurs, smartphones et tablettes.

Côté techno, le tout repose sur NodeJs et Express, que j’affectionne tout particulièrement. Un package NPM est également prévu, annonçant un déploiement aisé. Enfin, Ghost sera publié sous licence MIT.

Ce projet a été financé à 785% au terme d’une campagne Kickstarter fin mai 2013. Le développement est maintenant en cours, avec une première publication des sources sur Github prévue pour la rentrée (Septembre 2013). Peu d’informations sur l’avancement des choses pour l’instant, mais gageons que nous aurons plus d’informations d’ici la fin du mois.

J’attends donc avec impatience de pouvoir tester la bête et pourquoi pas, contribuer lorsque le code sera rendu public. Les grandes inconnues restent pour moi la gestion des images et des galeries, ainsi que la possibilité d’avoir des pages statiques. Fonctionnalités que j’apprécie sur WordPress. Alors Ghost: évolution, révolution ou simple outil parmi d’autre? A suivre donc…