Wednesday, September 26, 2007

interesting licensing

today i was searching the web for a Java library that would allow me to get the creation time of files* ... one of the solutions I found was this ... since my code would eventually be used for some open source application, I had to make sure that the owner of the library was OK with it ... the last words of the license said:
Non-military use only.
That is something that I've never seen before, and I like very much ... so much that I'm thinking about using it for my own code**.

* I was surprised to find out that on *nix systems the creation time of files is not saved ... weird
** I have to ask my boss if I can do this for the code I write at work too ...

Thursday, September 20, 2007

aouch!!! my brain hurts

while reading about Qt, C and the like, i found this:

Of course one sometimes needs to combine some of these different uses of ‘const’ which can get confusing as in

const int*const Method3(const int*const&)const;

where the 5 uses ‘const’ respectively mean that the variable pointed to by the returned pointer & the returned pointer itself won’t be alterable and that the method does not alter the variable pointed to by the given pointer, the given pointer itself & the object of which it is a method.