Posts

Showing posts from November, 2011

Batteries

I2C addressing

HOWTO install Flashplayer 11 on Firefox 8 on Ubuntu 10.04 64bit LTS

Download Flashplayer here
Copy libflashplayer.so to /usr/lib/firefox-8.0/plugins
Create symbolic link: sudo ln -s /usr/lib/firefox-8.0/plugins/libflashplayer.so /usr/lib/firefox-addons
Restart Firefox

Curl Rest Examples:

GET

curl -X GET -H "Content-Type:application/xml" "http://localhost:8080/some/path/505?username=foo&password=bar"

Create

curl -X PUT -H "Accept: *" -d @someFile.xml "http://localhost:8080/some/path?username=foo&password=bar"

Create or Update

curl -X POST -H "Content-Type:application/xml" -d @someFile.xml "http://localhost:8080/some/path/save?username=foo&password=bar"

Delete

curl -X DELETE -H 'Content-Type:application/xml' -d @someFile.xml "http://localhost:8080/some/path?username=foo&password=bar"

Upload file

curl -X PUT -H 'Content-Type:multipart/form-data' -F "someFile.csv=@someFile.csv;type=text/csv" "http://localhost:8080/some/path/505?username=foo&password=bar" --verbose

Download file

curl -H "Accept: *" "http://localhost:8080/some/path/506?username=foo&password=bar" --O "foo.bar" --verbose

PUT data with linefeeds

Example is co…

Maven

mvn -version

Create html dependency report:

mvn versions:display-dependency-updates
mvn dependency:tree
mvn project-inf-reports:dependencies

Create project:

mvn archetype:generate -DgroupId=com.foo.someproject -DartifactId=some-project -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false

Create eclipse project:

mvn eclipse:clean eclipse:eclipse

Run jetty from maven:

mvn jetty:run

Create packge:

mvn package

mvn -U clean package -DskipTests

Compile test:

mvn clean compile test

Generate Javadoc:

mvn javadoc:javadoc

see here for howto create and embed UML in javadoc automatically

sudo apt-get install graphviz

<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>2.9</version> <configuration> <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet> <docletArtifact> <groupId>org.umlgraph</groupId> <artifactId>umlgraph</artifactId> …