git: rebase/modify first commit

January 15th, 2012

How to modify the first commit of a git repository:

git rebase -i $SHA1_OF_ROOT

Add “exec bash” at the top. When you get the terminal, you have a git history containing only the root commit, which you can modify with “git commit –amend”. Then “git rebase –continue” as usual.

tips

Java generics – example snippet

January 8th, 2012

The following is a funny piece of Java code, which very well demonstrates the shortcomings and possible confusement of Java Generics.

List<Integer> integers = new LinkedList<Integer>();
List untyped_integers = integers;
untyped_integers.add(new String("foo"));
System.out.println("Integer: " + integers.get(0)); // Integer: foo

If confused, read Wikipedia: Generics in Java – Problems with type erasure.

software

New project released: dokuwiki2git – dokuwiki data to git repository converter

December 28th, 2011

I have written and released a python script to convert complete Dokuwiki page history (data/attic, data/meta etc) into a git repository. Each change on a page becomes a single commit, and all changes are committed with original dates, ordered by date, also keeping the original authorship information. This way the whole Dokuwiki page history should be converted properly.

dokuwiki2git should make migration from dokuwiki to git-backed wiki engines (eg. Gollum) easier.

See dokuwiki2git github page for more information. Feedback & bug reports welcome as usual!

releases , , ,

Debian Squeeze: self-signed certificate for a wildcard commonname

December 27th, 2011

Debian Squeeze contains a nifty package named ssl-cert, containing make-ssl-cert used to make self-signed certificates easily. It also allows you to create self-signed certificates for other hostnames.

Read more…

tips , , ,

Linux: SATA disk manipulation, hot-swapping using /sys/

December 9th, 2011

Linux has a nifty way of allowing disk state modification via /sys/ interface. Very useful when debugging LVM mirroring, disk disaster recovery etc.
Read more…

tips ,

ViewSVN hosting moved to GitHub Pages (from BerliOS)

November 1st, 2011

Due to BerliOS shutting down on 2011-12-31, ViewSVN webpages have now been migrated to GitHub Pages. The new web address is http://viewsvn.fealdia.org/, and the old one, http://viewsvn.berlios.de/ now redirects there with 301. Somehow I’m a bit worried about the exponentially growing popularity of GitHub, but we’ll see…

projects , ,

BerliOS going down for good, after becoming irrelevant

October 6th, 2011

On 2011-09-30 I got a mail from BerliOS, announcing the death of the site on 2011-12-31.

Read more…

rant ,

ViewGit 0.0.6 released

September 17th, 2011

ViewGit 0.0.6 has been released. This release contains all changes from almost two years since 0.0.5 was released (finally got around to making a new release!). Freshmeat release note is pending.

Read more…

releases , , ,

Supybook 0.0.4 released

September 14th, 2011

Supybook 0.0.4 has been released, to incorporate changes since 0.0.3 which was already released in 2009-05-31. No major changes.

releases , ,

Supybook.fealdia.org hosting moved to GitHub Pages

September 13th, 2011

As planned earlier, I have now moved supybook.fealdia.org hosting to GitHub Pages. Everything should continue as-is and there should be no visible changes to visitors. If necessary, the old mirror is still available at http://supybook-mirror1.fealdia.org/. Hopefully GitHub Pages will prove to be a solid hosting platform.

projects , ,