Generate a self signed certificate based on RSA
Recently we had some issues where we had to create our own private and public key. This is quite easy, but I tend to not to remember this from each time to time when I do this. So, in regard to that – I thought:
Let’s create [...]
Finding class-files within these pesky JARs
So, ever been doing reverse engineering or decompiling for some specific classes? That happens to me once in a while, and it usually turns out I have to search for a specific class within some jar-file, without actually knowing WHICH jar-file its contained in? Well, I have – and [...]
Generate an AES-key with java-keytool
Recently a project that we’re working with @ work needed a generated security key with the AES-algorithm. This was not straight forward as I hoped (as anything else ). Anyway – here’s a quick reminder how this is possible to do with the keytool-program. Hope someone else struggeling with this [...]
JSON Serialization with Jersey
Serialization from POJOs has never been so easy. You can easily convert from a JSON-representation to and from objects with extreme ease. To make this example work, you’ll need a few components:
IDE Maven3 Jetty/AppContainer Dependencies
In your pom.xml, add the following dependencies:
<!–JAX-RS–> <dependency> <groupId>com.sun.jersey</groupId> <artifactId>jersey-core</artifactId> <version>1.17.1</version> </dependency> <dependency> <groupId>com.sun.jersey</groupId> [...]
Android Emulator with NFC support Introduction
I was recently toying around with a NFC enabled application for android. This stuff is easy as long as you got a device that supports NFC nativly by using USB, but if you are not one of the lucky few that got a NFC-enabled device, you have to think [...]
Converting from Subversion to GIT
Recently at work I got this task; We have a lot of Subversion repositories that needs to be added to GIT. Can you please fix this, Vegard? I ofc said:
Why ofcourse!!!
(..as I tend to favorize the GIT over Svn any day)
This is just a simple overview of [...]
Version 4.0.1 released
So, the Version 3 was not live long. It lived from 27th of December untill, well 27th of January. One month! lol.
Reason for this? Well, I felt that version 3 was not what I wanted it to be. It was slow, big, strange, un-UX etc. So, I decided to revert back [...]
Default annotations in Java
Oh my god, what a useless post this is
..is what many may think. And hey, I cant blame you – I do totally agree! Anyway, here it is – just a quick summary of which annotations that is avail in the JDK without any additional import-statements:
Configuring Maven3 to deploy to a Nexus repository
The goal of this short article is being able to publish to a Nexus installation from Maven using mvn deploy command. To do so, you’ve to do some changes to your project pom.xml
First you’ve to add a distributionManagement section, to tell Maven where releases and snapshots will be [...]