Category Archives: Uncategorized

Personnalized video game to gift

As a side project, I’m developing KustGame a mobile video game where you can : personnalize the player add custom pictures add special messages The idea came when looking for a original way to offer a gift to my girlfriend … Continue reading

Posted in Uncategorized | Leave a comment

Parsing empty column with OpenCSV

Lets say you have the following 2 lines csv file : jules,23 thomas, And object : Class Person { String name; Integer age; //getter + setter } When you use the java opencsv library to map that csv to the … Continue reading

Posted in Uncategorized | Leave a comment

Create and test a service using translator container with Symfony2

Here is the code to create a service which uses the translator component from Symfony2. The service is also tested. Create the service in messages.en.yml : cb.texta1: Travel from %A% to %B% in services.yml : cb.labelbuilder: class: AppBundle\Service\LabelBuilder arguments: [@translator] … Continue reading

Posted in Uncategorized | Leave a comment

Comparabus

Je développe depuis un an (Janvier 2013) un site permettant de comparer les prix des billets de car (ligne de bus régulières nationales et internationales). Vous pouvez y accéder depuis www.comparabus.com . La plateforme permet à l’heure actuelle de comparer … Continue reading

Posted in Uncategorized | Leave a comment

Storing opening and closing times in database for stores

Requirement: Store can open and close many times during the day Store can close the day after it opens (store opened after midnight) Precision of the time must be 1/2 hour / 30minutes Searching for the store opened at a … Continue reading

Posted in Uncategorized | Leave a comment

Symfony 2 : This script is only accessible from localhost / You are not allowed to access this file

Vous voulez accèder au fichier app_dev.php ou config.php de votre application Symfony 2, mais vous avez l’erreur “This script is only accessible from localhost” ou “You are not allowed to access this file”. Récupérer votre IP et ajouter là dans … Continue reading

Posted in Uncategorized | 1 Comment

Utiliser Symfony 2 avec 1and1

Symfony 2 à besoin de php 5.2.3. Vous devez donc créer/éditer le .htaccess à la racine et y ajouter: AddType x-mapp-php6 .php Cela va vous permettre d’utiliser la version php 5.4.0beta1. Il reste maintenant le problème de timezone, pour cela … Continue reading

Posted in Uncategorized | 2 Comments

Draw SVG rectangle with 1,2,3 or 4 rounded corner

Here is the code allowing you to draw with Raphael JS a rectangle with one or many corner rounded and to have a corner more rounded than the other. This code will add roundedRectangle method to Raphael JS (how to … Continue reading

Posted in Uncategorized | 1 Comment

Google Chrome extension: Store your Ryanair user’s preferences

Download the google chrome extension. This extension allows you to save time when booking a Ryanair ticket by: storing you preferences (Firstname, Lastname, address, phone number, etc) pre-filling the forms to avoid paying extra charges (No bags, No insurances, No … Continue reading

Posted in Uncategorized | Tagged | 1 Comment

Google Chrome Extension: Inject contentscript in a webpage with js errors

Because the webpage contains errors, we can’t inject directly the content script using this code in the manifest.json file “content_scripts”: [ { "matches": ["http://*/*"], “js”: ["jquery.js", "content_script.js"] } ] But we can inject the code each time the page is … Continue reading

Posted in Uncategorized | Tagged | Leave a comment