WordPress: Html language meta tag depending on post language

Setting the html language meta tag and/or lang tag is important for search engines like Google and increases Web accessibility. WordPress does not set the language meta tag, and the html lang tag is only set by some WordPress themes. It is easy to set these, so I suggest you do it. If you have the All in one SEO plugin installed, you can define the language meta tag for all posts, pages and home in the settings.

Using SVN Apache Subversion command line tool

This tutorial will cover the absolute basics of using the Apache Subversion command line tool. It is aimed at people who are using svn for the first time or who have used guis for svn before but are considering using the command line tool from now on. Why use apache subversion command line tool My memory is not too great, so I try to avoid using command line tools (it is quite annoying having to look up every other command in the help pages).

Netbeans vs Eclipse: An IDE comparison

VS Intro In this post I will compare the two popular IDEs Eclipse and Netbeans and share with you which one works best for me and why that is. I will be using the Versions Indigo and 7.0.1. All in all, they are quite similar. They both make programming easier by providing auto-complete and auto-insert code options, easy overview over program structure, nice refactoring options, debugging, and so forth.

Android Snake Game: Source Code and Development

This is the second part of the series “Snake with different Guis” in which I will describe the port of the Snake game to the Android platform. The first part was Java Swing: Snake with different Guis”. General Structure of Android game Gui with Android Input Source Code Screenshots Download Android Snake Game (Source Code attached) This is the first time I developed an Android application, so there are still some weaknesses in the code, but all in all it works.

Mill – the board game – including an AI using Alpha-beta pruning (Java)

General Description of Mill Game Notes on code quality Notes on Mill AI Alpha-beta pruning in a nutshell Screenshots Download Mill Game and Java Source Code Thanks General Description of Mill Game Mill is a two person board game. The goal is to remove the stones of the enemy from the board while keeping once own stones on the board. This is done by producing a line of three stones by moving the stones across the board.

Java Swing: Snake with different Guis

This is the first part of a Series about different Guis and how to implement them. To demonstrate the game Snake will be used. In this part I will show the development process of a Java Game using Java Swing.

The planned parts of this Series:

– Swing

– Android

I will start with Swing.

Java List Efficiency

Java List efficiency I found this nice cheat sheet for Java collections. As you can see, ArrayList is most efficient when doing lots of adding and reading to/from a list. This is because an ArrayList allows for direct access, while the implementation of a LinkedList does not allow this. If possible (that is if you do not need the methods provided by a specific list implementation), a list should always be declared via its interface (as this enables to easily adjust the program):

Connect4 with Java AI

Connect 4 including AI


Everybody knows it, everybody loves it: Connect 4. Place your stones so that they connect in a row of 4 pieces diagonally, horizontally or vertically and win.

You hate “4-In-A-Row” – the Connect4 game that e.g. comes per default with ubuntu – because even on the easiest setting it always beats you? Download this game! Its AI makes thoughtful but not too hard moves, it will feel like playing against an actual human being – that’s just a little worse than you are ;) It is also possible to play against another human being. The second player uses right-click to place.

Java: Handling Files (Reading, Writing, Fetching Webpage)

This is a collections of Java methods that are needed all the time, but you forget the code for it anyways because in Java, sometimes things that should be simple one liners are quite blown up (well, if you eg do use the writer/reader classes instead of the streams to write/read a file it is not as bad). Logging/Writing to a File Reading a File Reading a remote file/a web page Logging/Writing to a File       /**

WordPress username leak

 WordPress author permalink displays username (instead of nickname) WordPress distinguishes between username and nickname (username for login, nickname for display). If you click on the author link below a post, you will be redirected to a page (permalink) that seems to be: example.com/author/username which is odd, as it really should be example.com/author/nickname Well, actually, it is neither username nor nickname but user_nicename from your WordPress user table (which seems to be set to the username by default).