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 git
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 java
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 dokuwiki, git, projects, releases
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 apache, debian, squeeze, ssl
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 linux, tips
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, github, viewsvn
On 2011-09-30 I got a mail from BerliOS, announcing the death of the site on 2011-12-31.
Read more…
rant github, viewsvn
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 projects, releases, sourceforge, viewgit
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 projects, releases, supybook
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 github, projects, supybook