Calling REST services with AngluarJS

We have seen the server side part of REST with Spring MVC. Now its time of getting to the frontend side with AngularJS. I will try to do it simple and accurate. ;) Goal: How to request REST service and handle response with AngularJS. Introduction Let’s use our REST service…

REST with Spring MVC

[underline] Goal Introduction to REST, JSON and Spring MVC. To do so, let’s implement a REST service with Spring MVC. [underline] RESTFul principles Uniform interface Stateless Cacheable Client Server mode Where SOAP services are based on verbs (like methods exposed by an interface) , REST are based on resources. When…

IP GeoLocation with AngularJS

Your web site is available in different language and you want to select the one matching the client location. To be accurate we need to locate the client IP to retrieve the country it belongs to. How to do it fast and simple ? Let’s use an existing free IP…

Great icons for web site

You will find plenty of web site dedicated to icons. Here are my favorites. clean icons http://www.iconsdb.com huge collection https://www.iconfinder.com awesome vector font icon at http://fontawesome.io I will update it over time.…

Grayscale image using CSS

Need a grayscale to color effect applied to images used in menu or button ? I do ;) Doing it the old would need to create colored and grayed image and use either javascript or CSS background-image. But today CSS should be enough to accomplish this task. Here is how: img.grayscale{…

Coding with a mac french keyboard

Coding requires some specific characters such as [ ] { } ( ) \ Unfortunately the Apple french keyboard (wireless or macbook) does not show brackets, curlybraces and backslash. Also, a lot of characters are available with key combination but not displayed on the keyboard. Learning these combinations is an option. Displaying the available character…

I need a NAS for TimeMachine

My needs Apple’s backup TimeMachine is the backup solution offered for every Mac owner, if he did not got stuck with Tiger ;) Plug an external disk and here you go, you can backup your Mac on it. Great! Easy! Nice! What if I want to backup elsewhere than on…

Shuttle SN41G2 recycling project

Je compte recycler un vieux shuttle SN41G2 en HTPC. Bon il faut le dire, le shuttle avait de la gueule quand il est sorti. Petit, sobre, tout alu et ce qu’il faut en connexion façade. Mais son alim est assez fragile lorsqu’on l’utilise comme un serveur (la…

Java.lang.OutOfMemoryError

There are three possible causes for an OutOfMemoryError. The first is that the JVM has a real memory leak, caused by a bug in the internal implementation of the JVM heap management. This is extremely unlikely. All JVMs are tested very strenuously for this, and it would be the absolute…

Java Unparseable date

If using SimpleDateFormat to parse a string into a Date object, it may fail if the Locale sets in SimpleDateFormat differ from the string format. java.text.ParseException: Unparseable date: "02NOV2004" at java.text.DateFormat.parse(DateFormat.java:335) The above example shows an exception parsing the string “02NOV2004” with…