Posted by Jens Jäger
on May 04, 2018
I just changed the url of this blog to https://jensjaeger.com. TLS encryption is now the default for all request to this page.
It might be possible that some image links on some articles are hard coded http. If you find such an error it would be nice if you leave me comment so i can fix it.
I use a free certificate from Let’s Encrypt to encrypt the site.
Posted by Jens Jäger
on November 14, 2015
Prettytime is a nice java library to format a java Date()s in a nice humanized ago format, like:
- moments ago
- 2 minutes ago
- 13 hours ago
- 7 months ago
- 2 years ago
Prettytime is localized in over 30 languages.
It’s super simple to use
Add the dependency to your maven pom:
|
<dependency> <groupid>org.ocpsoft.prettytime</groupid> <artifactid>prettytime</artifactid> <version>3.2.7.Final</version> </dependency> |
or an sbt dependency if you use an activator project like play framework.
|
libraryDependencies += "org.ocpsoft.prettytime" % "prettytime" % "3.2.7.Final" |
Then add the following static method to a helper class and call it from your json processor or your template engine.
|
public static String agoHumanized(final Date date, Locale locale){ PrettyTime p = new PrettyTime(locale); return p.format(date); } |
Thats it!
You can find the code on github and the documentation on the ocpsoft page. Happy coding.
Posted by Jens Jäger
on November 03, 2014
In 2006 I startet a travel website called journizer.com with some friends. The goal was to build the ultimative website for individual travelers. The side has some successes but never get the momentum to grow this thing to a successful startup.
Our biggest problem was the vision to build the ultimative site for everything about travel (Blogging, picture sharing, social network, hostel search,…) instead of doing one thing really well. If you want to start any kind of startup make sure you have the one thing in mind you wan’t to really solve for your customers. Don’t try to make everything for everybody.
We learned a lot and had a lot of fun with the site. But finally it’s time to say good-by

Posted by Jens Jäger
on August 27, 2014
This blog will be splitted into two blogs. Here (jensjaeger.com) I will keep posting technical stuff about developing web applications with Java, Scala, Ruby, Javascript and Playframework. Some other geeky stuff might come along.
My new blog (jensjaeger.de) will be in german about business and investment.
I also removed the german stuff from here and moved all the old german posts to jensjaeger.de. If you click on a link to a german post, you might be redirected to jensjaeger.de.
If you speek german you’re welcome to have a look at the all new jensjaeger.de. You might also want to follow my german Rss-feed or sign up for my shiny new newsletter.
Why two blogs?
When I started blogging I started in german. After some time I realized software development stuff is easier written in english. This is because allmost all resources are already in english and programming code has english keywords anyway.
Then I switched to write blogposts in english. That was fine. But having two languages in one blog is kind of ugly. I never cared much until I decided to write more about business an investing topics. The problem with this topics is, some parts like tax or law stuff is really country specific. A lot of investment or business advise I can give works only in germany. So I makes perfectly sense to write those posts in german.
This was the point I decided to split my blog into two and make this one english only.
Posted by Jens Jäger
on January 22, 2014
I just build a new german marketing page for my consulting company. It’s build with bootstrap and is much nicer than the old one, and has a full responsive design. Here is the before and after comparison:

