Grr is now part of the GNUstep Application Project

2009 October 16
by guenthernoack
Grr RSS Reader

I’m happy to announce that the Grr RSS Reader application is now part of the GNUstep Application Project (GAP).

Grr running on the Letux 400 netbook. -- Image shamelessly copied from Riccardo Mottola's weblog :-)

Grr running on the Letux 400 netbook. -- Image shamelessly copied from Riccardo Mottola's weblog :-) (Click!)

Riccardo Mottola’s announcement: http://multixden.blogspot.com/2009/10/grr-rss-to-go-on-gnustep.html

Garbage Collectors

2009 October 8
by guenthernoack

Garbage. I need to illustrate more. :-)
A great introduction to garbage collectors: “Storage Management, cont’d” (Paul Hilfinger). It was fun to figure out how to implement this. Just a short link, I didn’t want this to get lost in my twitter stream. :-)

More links:

Lessons learned: My first C program with a void***. Should have used more unions. Just about 200 lines of C, a working stop-and-copy garbage collector. :-) A fun hack, but hard to test. It’s probably buggy. ;-)

Subversion-aware bash prompts

2009 October 6
by guenthernoack

This is a handy trick to see whether you’re in a directory managed by version control or not.
shell

To enable this prompt, I use the following code snippet (in my .bashrc file):

pimpmyprompt() {
  if test -d `pwd`/.svn ; then
    pwd | sed -e "s#^$HOME/*# #" -e "s#/.*\$##"
  fi
}

export PS1="\u\e[0;32m\$(pimpmyprompt)\e[m:\w$ "

Note: This will always print the name of the first path component after $HOME, which is not necessarily a SVN working copy.

Update: Also have a look at Frank’s hint in the comments, which looks quite useful for when the customizations start to grow. :-)

Authentification tricks with htaccess

2009 September 26
by guenthernoack

Here’s a neat trick with htaccess files: The page on my diploma thesis should be available to everyone within my university subnet, and to selected people from outside, who may authenticate using usernames and passwords.

This .htaccess file seems to work for it:

AuthUserFile "/home/guenther/htpasswd"
AuthName "Only visible from the TU Kaiserslautern subnet or with username (ask me for it)"
AuthType Basic

Satisfy any

order deny,allow
deny from all
allow from 131.246.

Require valid-user

From the outside, you’re asked for a password, from inside the subnet, you can see it without password. Works. :-)

Strict Architectural Documentation

2009 September 3
by guenthernoack

Ralph Johnson (Yes, from the Gang of Four) writes in “Comment on a comment on 4+1 views”:

“The book Documenting Software Architectures: Views and Beyond is a great source of ideas for different viewpoints. If you take the book literally, however, you’ll write bloated documentation. So, don’t take it literally. Use it to jog your creativity. It is the only book on software architecture documentation that I know of, hence the best.”

Yes, this sounds obvious. Too obvious to mention, you think? read more…