Last recently I did a talk about the some of the new features in JDK7 or Java 7 (Project Coin, Concurrency Utils and InvokeDynamic) at the freshly founded Koblenz Java User Group . I’ll present the content of this presentation in written form in a series of three or four blog post over the next few weeks or so.
In this post I’ll start with the first four features of “Project Coin”.
Read more
JDK 7 Features: Project Coin
Sunday
13
Mar 2011
Devoxx 2010
Friday
19
Nov 2010
I was very lucky to attend the Devoxx 2010 (the conference part) this year. So this is reason enought, to blog about the thing I found most valuable to report:
The discussion panel
This was a discussion panel lead by Joe Nuxoll (with Dick Wall as keeper of the minutes) between Josh Bloch, Mark Reinhold, Antonio Goncalves, Stephen Colebourne, Jürgen Hoeller and Bill Venners. They did a fanominal job in covering up for James Goslings cancellation (get well soon James!).
Insertion Sort in Scala
Friday
22
Oct 2010
Finally beeing a bit more serious about learning the Scala language, I wanted to do some exercises to get a little fluent in the language. Because I’m only four Chapters into “Programming in Scala”, I choose the simple one: Implementing search algorithms – today the insertion sort. Here is the the “easy” solution coming from a mostly object-orientated background transcoded from a text book:
Get All SVN Commiters from a Repository or Working Copy
Saturday
30
Jan 2010
Short – but unfortunatly to long for Twitter. With this little snippet you can get all commits from an svn working copy, repository or from a pure log:
svn log | ruby -e "puts STDIN.read.split(/\n/).select{|l| l =~ /^r\d+/}.map{|l| l.split('|')[1].strip}.uniq.sort"
Who has any guess why I did need this?
A Ruby Script for Upgrading Multiple DokuWiki Installations
Sunday
24
Jan 2010
After DokuWiki has been released multiple times in the last few days because of security problems, I though it was a good time, to write a little script for automatically updating multiple instances. You can find the ruby script at http://gist.github.com/285219.
The ruby script basically automates the upgrade instructions from the DokuWiki main page. So the following actions are performed when executing the script:
- Making a backup into /tmp/dokuwiki_backup_#{timestamp} of every installation.
- Downloading the dokuwiki release (passed in as a parameter).
- Extracting the files and copying everything to the installations (execept for the content of the /data directory).
- Creating missing folders in the /data directory, making the owner www-data:www-data and chmodding them to 664.
- Deleting files from a list of file from older revisions.
Within the script you need to specifiy this snipped for setting your DokuWiki installations:
# Definition of existing installation INSTALLATIONS = [ '/path/to/docu/wiki/installation1', '/path/to/docu/wiki/installation2' ].freeze
Then you can call for a new release as follows:
/path/to/script/upgrade_dokuwiki.rb http://www.splitbrain.org/_media/projects/dokuwiki/dokuwiki-2009-12-25c.tgz
If you want to improve the script, feel free to fork me on Gist.
