Category Archives: Development

VSCode: Make vscode-tslint analyze multiple files in a project

vscode-tslint allows you to get Tslint warnings/errors in the problems view. Minimal Versions: visualcode-tslint : 0.5.38 gulp-tslint : 6.1.1 Note that I use typescript@next and tslint@next. The only problem is installing this extension will only show the problems of a file once you open it. Here is how to get it work on your whole […]

AngularJS2: Send HTTP Post request with parameters to PHP

After some troubles trying to reach an old PHP server (Using $_POST to retrieve parameters) with a new Ionic2 project (so using AngularJS2 Http). Here is what worked : var headers = new Headers(); headers.append(’Content-Type’, ‘application/x-www-form-urlencoded; charset=UTF-8′);   var params = ‘email=email@example.com&pwd=xxxxxx’;   this.http.post(’http://mysite.com/api’, params , {headers: headers}) .subscribe( data => console.log(’Received:’ + data), err […]

JAD: Recursive Java decompilation command

Recursive JAD decompilation To decompile all the classes of a jar file, unzip the jar in a folder. Then use this command: jad -d . -s java -r **/*.class   -d <dir> – directory for output files -s – output file extension (default: .jad) -r – restore package directory structure JAD can be found here

JAVA 8 : Lambda Expressions. Tutorial, example

Lambda Expressions Introduction JAVA 8 introduces a new language : Lambda Expressions It’s meant to simplify the syntax when one use an anonymous class containing only one method. These interfaces are known as function interfaces.   Use case Suppose you have a list of Person (age, last-name, first-name) and you’re asked to create a method […]

GWT “CssResource.style” possible values for class names

How to modify GWT generated class names Use this configuration tag in the .gwt.xml file : <set-configuration-property name="CssResource.style" value="pretty" /> CssResource.style For those like me looking for all possible values, here is where to find them (at least in GWT 2.5.0) : com.google.gwt.resources.rg.CssObfuscationStyle pretty –> VERBOSE (true, false, true, true), stable –> STABLE_FULL_CLASSNAME (true, true, […]

play framework 2.0 error : Connection timed out

Problem: When trying to launch the play framework you get errors about connection timed out trying to retrieve “ivy.xml” D:\frameworks\play\play-2.0\todolist>play [info] Loading project definition from D:\frameworks\play\play-2.0\todolist\project [error] Server access Error: Connection timed out: connect url=http://repo.typesafe.com/typesafe/ivy-releases/org.hibernate/hibernate-validator/4.2.0.Final/ivys/ivy.xml [error] Server access Error: Connection timed out: connect url=http://repo.typesafe.com/typesafe/ivy-releases/javax.validation/validation-api/1.0.0.GA/ivys/ivy.xml [error] Server access Error: Connection timed out: connect url=http://repo.typesafe.com/typesafe/ivy-releases/org.springframework/spring-context/3.0.7.RELEASE/ivys/ivy.xml [error] Server […]