
2012/02/05
by Shaika-Dzari
0 comments
2012/02/05
by Shaika-Dzari
0 comments

2012/01/26
by Shaika-Dzari
0 comments
À la demande générale, ma recette de Ramen au miso
Vous pouvez varier la quantité de miso ou de sauce soya au goût.
2011/11/05
by Shaika-Dzari
Comments Off
“Why do we bother protecting them?”
“We don’t. Your memory transfer must have glitches. We protect ourselves. Earth is merely is our citadel”
Peter F. Hamilton
The naked God, The Night’s Dawn Trilogy
Sci-fi
2011/10/24
by Shaika-Dzari
Comments Off
Je crains que ce soit seulement pour les vrais fans (et j’en suis un! HouHa!) mais Sony Picture a annoncé la sortie pour 2012 d’un nouvel opus dans la série Starship Trooper.
Cette fois, on a droit à un film d’animation (CG) réalisé par nulle autre que Shinji Aramaki (Appleseed, GITS, etc). Bien sûr, on s’écarte encore plus du roman original de Robert A. Heinlein mais peu importe…
Vous voulez en savoir plus ?
2011/10/02
by Shaika-Dzari
Comments Off
English follows…
Lorsque vous prenez une photo avec votre appareil photo, celui-ci ajoute plusieurs informations à l’image : résolution, marque de l’appareil, heure, etc. Si vous prenez une photo avec votre cellulaire, vous pouvez même y retrouver votre position GPS. Pratique pour classer vos images de vacance mais inquiètant si vous publiez cette image sur Internet.
Voici comment retirer ces informations grâce à imagemagick sous linux (disponible aussi sur Windows) :
convert -strip image_in.jpg image_out.jpg
Si vous êtes sous Android, vous pouvez aussi utiliser l’application ObscuraCam disponible sur le market.
Imagemagick : http://www.imagemagick.org/script/index.php
—
When you take a shot with your camera, informations are added to your image : resolution, date/hour, camera brand, etc. If you’re using your cellphone, it can also add your GPS location into the picture. All these informations can be very useful to classify your holiday picture but not very secured if you want to share them on the Internet.
This is how you can strip all these meta-tags on Linux using imagemagick (also available on Windows):
convert -strip image_in.jpg image_out.jpg
If you own an Android phone, you can also use ObscuraCam from the market to get the same result and much more.
Imagemagick : http://www.imagemagick.org/script/index.php
2011/10/02
by Shaika-Dzari
Comments Off
2011/10/01
by Shaika-Dzari
Comments Off
Want to serve JSON from one of your spring-mvc controller ?
This is how to do it in 3 steps!
1- Download Jackson JSON processor here : http://jackson.codehaus.org/
If you’re using maven, add this dependency to you pom.xml :
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-jaxrs</artifactId>
<version>1.8.5</version>
</dependency>
Be sure jackson is in your classpath.
2- Add the mvc context and the mvc:annotation-driven in your servlet configuration file (in my case : dispatcher-servlet.xml) :
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd">
<!-- To serve JSON -->
<mvc:annotation-driven/>
<context:annotation-config />
<!-- Scan for controller -->
<context:component-scan base-package="net.nakama.example.controller"/>
<bean id="viewResolver"
class="org.springframework.web.servlet.view.UrlBasedViewResolver">
<property name="viewClass"
value="org.springframework.web.servlet.view.JstlView" />
<property name="prefix" value="/WEB-INF/jsp/" />
<property name="suffix" value=".jsp" />
</bean>
</beans>
3- Write a simple controller. This controller must contain a method with a proper @RequestMapping tag. This method must return the object your want to “serialize” as JSON and must contain the tag @RequestBody :
package net.nakama.example.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import net.nakama.example.datamodel.Foo;
@Controller
public class JsonExampleController {
@RequestMapping(value = "/getfoo/{name}")
public @ResponseBody Foo getFoo(@PathVariable String name) {
Foo foo = new Foo();
foo.setBar(name);
return foo;
}
}
Enjoy!!!
Resources:
http://static.springsource.org/spring/docs/current/spring-framework-reference/html/mvc.html
http://blog.springsource.com/2010/01/25/ajax-simplifications-in-spring-3-0/
2011/09/20
by Shaika-Dzari
Comments Off
Sans tomber dans les rumeurs, il semblerait qu’une troisième saison de Ghost in the Shell Stand Alone Complex soit en développement chez Production IG.
C’est ce que semble avoir “échappé” Nakamura Satoru et Kakimoto Kodai au Anime NEXT de Somerset.
Il faut que ce soit vrai!!!
Quelques sources :
http://animediet.net/conventions/main-events-anime-next-a-recap
http://reversethieves.com/2011/06/15/animenext-2011-production-i-g/
2011/09/08
by Shaika-Dzari
Comments Off
English follows…
Si vous avez besoin de convertir des fichiers .ogm en fichiers .mkv, voici un petit script pratique…
Vous avez besoin de mkvtoolnix et de bash/zsh/etc.
#!/bin/sh
for i in ls *.ogm;
do
echo $i
mkvname=`basename "$i" .ogm`
mkvmerge -o "${mkvname}.mkv" "$i"
done
If you need to convert .ogm file to .mkv file, you can use this simple script.
You need mkvtoolnix and bash/zsh/etc.
2011/09/07
by Shaika-Dzari
Comments Off
Voici une liste de quelques groupes de musique que j’ai découvert dasn les dernières semaines.
Si vous cherchez de la nouveauté, jettez-y un oeil.
1- Stormwarrior
Heavy Metal (Power), Allemagne
Bon groupe de métal avec une sonorité proche de Gamma Ray. Certain de leurs albums ont d’ailleur été produits par Kai Hansen.
http://en.wikipedia.org/wiki/Stormwarrior
http://www.youtube.com/watch?v=EKN6__eYvAo
2- Go!Go!7188
Punk Rock, Japon
Groupe de punk rock japonais fort intéressant. Yumi Nakashima (chanteuse, guitariste et compositeur) et Akiko Hamada (chanteuse et bassiste) participent comme invité à plusieurs autres groupes japonais et multiplent les différents albums.
http://en.wikipedia.org/wiki/GO!GO!7188
http://www.youtube.com/watch?v=VAx9WESY6Uw
3- Persuader
Heavy Metal (Power), Suéde
Groupe métal avec un vocal très intéressant : très proche de Hansi Kürsch (Blind Guardian) mais capable de pousser quelques cris presque Grindcore.
http://en.wikipedia.org/wiki/Persuader
http://www.youtube.com/watch?v=bhEmAvZBFUs
4- Flogging Molly
punk celtique, État-Unis / Irlande
Ma découverte du jour (Merci Stéphane!) est Flogging Molly. Joyeux, entrainant et donnant envie de faire la fête (Bière!!!).
http://en.wikipedia.org/wiki/Flogging_Molly
http://www.youtube.com/watch?v=pDwlGbEcJ6Y&
Sayonara