Search
Calendar
April 2024
S M T W T F S
« Sep    
 123456
78910111213
14151617181920
21222324252627
282930  
Your widget title
Archives

Archive for the ‘The geek way of life’ Category

PostHeaderIcon DiskDigger

Catastrophe! J’ai efface mon rapport de stage de ma clef USB! Je suis fichu, ma soutenance c’est demain matin a 5h! Mais non, tout n’est pas perdu.

DiskDigger est un logiciel freeware qui permet de recuperer des fichiers effaces, volontairement ou non, sous Windows. En effet, contrairement a Unix, la suppression d’un fichier sous Windows n’efface pas physiquement le fichier de la surface du disque, mais se contente de retirer son adresse logique sur la table de partition.

DiskDigger propose de scanner un disque physique ou logique, NTFS ou FAT, les memoire flash et meme les clefs USB… Tres pratique pour quiconque a deja perdu des photos de vacances lors d’une mauvaise manipulation.

DiskDigger est disponible a ce lien. DiskDigger a ete cree par Dmitry Brant.

PostHeaderIcon net/sf/ezmorph/Morpher

Error:

nested exception is java.lang.NoClassDefFoundError: net/sf/ezmorph/Morpher org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:899) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:793) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476) org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:441)

Fix: add ezmorph.jar to your classpath.

PostHeaderIcon net.sf.cglib.transform.impl.InterceptFieldEnabled

Error:

 java.lang.ClassNotFoundException: net.sf.cglib.transform.impl.InterceptFieldEnabled  at java.net.URLClassLoader$1.run(URLClassLoader.java:200)  at java.security.AccessController.doPrivileged(Native Method)  at java.net.URLClassLoader.findClass(URLClassLoader.java:188)  at java.lang.ClassLoader.loadClass(ClassLoader.java:306) 

Fix: add ehcache.jar in your classpath.

PostHeaderIcon Java 7: Strings in Switch

Dolphin extends the switch operator to String

Read the rest of this entry »

PostHeaderIcon Java 7 diamonds

Tiger (Java 5) introduced new syntax, among which generics are the most used. Mustang (Java 6) did not offer anything new. Dolphin (Java 7) will introduce a new scheme, the “diamond syntax”. We deal of diamond because of the look of theses characters: “<>

To sum up quickly, in Java 5 we have to write:

List<Integer>  myList = new ArrayList<Integer>()
Map<String, List<Double>> myMap = new Hashmap<String, List<Double>>();

On last Dolphin development releases, we can simply write:

Lis<Integer> myList = new ArrayList<>()
Map<String, List<Double>> myMap = new Hashmap<>();

There’s nothing revolutionary, but developpers will save a little more time ;-).