Archive

Archive for the ‘development’ Category

Adding Notes to Existing Commits in Git

January 14th, 2011 No comments

A really nice feature in Git is the ability to add notes to existing commits:

git notes add -m 'this concerns the foo issue as well (refs #0815)' 12a3df56

Editing existing notes is pretty easy as well:

git notes edit 12a3df56

Make sure to have a look at Evgenys extensive Git guide for further details and more hidden gems.

Tags:

JDK7 and OpenJDK for Mac OS X

January 12th, 2011 No comments

Apple won’t provide further updates to Java, but OpenJDK for Mac OS X is advancing rapidly.
Thankfully, TheServerSide.com provides an extensive list of OpenJDK/OS X related links:

For more information about the Mac OS X Port project, please check out these resources:
Project home: <http://openjdk.java.net/projects/macosx-port>
Project wiki & getting started instructions: <http://wikis.sun.com/display/OpenJDK/Mac+OS+X+Port>
Project status: <http://wikis.sun.com/display/OpenJDK/Mac+OS+X+Port+Project+Status>
Mailing list: <http://mail.openjdk.java.net/mailman/listinfo/macosx-port-dev>
Source repository: <http://hg.openjdk.java.net/macosx-port/macosx-port>

You are looking for binaries? Then head over to the opendjk-osx-build project on Google Code (via).

Tags: , , ,

Coping with “DeprecationWarning: BaseException” Warnings in Python

January 6th, 2011 No comments

BaseException has been deprecated as of Python 2.6. So if you have something like this in your code …

try:
     doSomethingStupid()
except MyException, e:
     print e.message

… you will run in some warnings. This is a quick way to fix those problems:

try:
     doSomethingStupid()
except MyException, e:
     print str(e)
Tags:

Comparing Binary Files

November 15th, 2010 No comments

Getting a diff from two binary files isn’t that easy. While there are loads of tools for comparing text files, there are only a few for binaries.

A very nice – and free – utility for Windows is HxD. It’s not just a very fine hex editor, but pretty good at comparing binary files as well.

Tags:

Links: Java, Security & more

October 13th, 2010 No comments
  • New Java desktop UI toolkit:
    Amino brings some nice features
  • Authentication != Authorization (and more):
    Diaspora has a long way to go, but there are lots of things you can learn. Things like what you should never, ever do, that is.
  • Java obfuscation:
    the Android developers recommend ProGuard. It’s actually a very nice utility, but I don’t feel comfortable to apply a complicated technique to already complicated applications.
  • One Time Passwords, remote logout:
    Facebook adds new security features, and some questions are crossing my mind:
    why not add add OPIE-like features, with One Time Password Lists and/or two-factor authentication (with something you know and something you have)? We got lots of smartphones out there, just use them…?
    re “remote logout”: why not just invalidate existing web sessions on the next login of the user? Can Facebook make a difference between web and API (e.g. widget, apps) sessions?
Performance Optimization WordPress Plugins by W3 EDGE