Using Disqus without any plugins

At TurnGeek we recently had the task to include Disqus (which is great by the way) into our site, so readers of our books can leave comments for each chapter. For a couple of reasons we couldn’t use their Wordpress plugin although the site is running on Wordpress. If you’re running in the same issue or you just don’t want the dependency of another plugin, you can paste the following snippet in your Wordpress posts (by the way, this also works with non WordPress sites):...

October 17, 2015 · 1 min · admin

Cloud Tutorial - Java EE

If you know standard Java and want to quickly learn something more about the core components of the Java Enterprise Edition (Servlets, JSP, JSF, CDI and EJB), you should have a look at this new tutorial I have written with Martin called Cloud Tutorial - Java EE. We call it a cloud tutorial, because you learn everything step by step using an Online IDE. That way you don’t have to struggle with any software configuration and you can directly start learning....

August 22, 2015 · 1 min · admin

Securing Your Play 2.1.1 Web Application Using a Filter

After deploying my Play 2.1.1 based application to Cloudbees, I had the problem that everyone could access it. Not very ideal if you want to restrict your program to only a single audience. To solve the problem you would usually write a complicated user-based authentication system. Slightly an overkill, if you don’t need different users accessing your program at all. My idea was more that the user has to add an URL parameter with a secret key, the first time the application is called....

April 27, 2013 · 2 min · admin

Storing large images RESTful in the cloud using Google App Engine

In my last article I showed how to store files in the cloud using Google app engine. Problem there was that the maximum size of the files was 1MB. Not that much for images. To improve the situation, we just shrink the images with this very simple algorithm by factor 0.9 until the size is less than 1MB: public class FileTransformer { public static final Logger log = Logger.getLogger(FileTransformer.class.getName()); private static final int JPEG_QUALITY = 90; private static final int MAX_FILE_SIZE = 1024*1024; public byte[] transform(byte[] ba, String mediaType) { if(mediaType....

December 1, 2011 · 2 min · admin

Vorstellung bei Best-Practice-Business.....

Nachdem mein Blog nun bei best-practice-business vorgestellt wurde, ist schlagartig die Anzahl der Seitenaufrufe von 1 auf 43 gestiegen. Dadurch komme ich natürlich nun etwas mehr unter Druck neue Artikel zu schreiben - werde wohl gleich einmal damit anfangen….

April 19, 2008 · 1 min · admin