Vakantie

May 31, 2007 on 9:37 pm | In .dutch | No Comments

Ik ben een maandje op vakantie in Dalfsen, in het huis van mijn ouders. Het is rustig hier, en de tuin is een klein lustoord. Ik zie er met enige regelmaat roodborstjes, koolmeesjes en zelfs een eekhoorntje in rondbanjeren. Er is duidelijk ook voldoende bier te krijgen… wel Grolsch natuurlijk, want ‘Heineken is net water’. :-)

Stemcomputer info gemirrord

May 23, 2007 on 12:45 pm | In .dutch, news | No Comments

Vandaag viel op NU.nl te lezen dat wijvertrouwenstemcomputersniet.nl de software en beschrijving van de Nederlandse stemcomputers niet openbaar mochten worden gemaakt.

Gegeven dat de overheid het stemproces VOLLEDIG transparant moet regelen, wil een kiezer kunnen zeggen ‘ik vertrouw en weet dat mijn stem eerlijk geteld is’, heb ik hun informatie gemirrord. In de zipfile vind je niet alleen de benodigde software, maar ook de omschrijving (met foto’s) van de stemcomputers. Bovendien heb ik het bovengenoemde artikel uit NU.nl erbij gedaan. De rest zijn de relevante files. Lees de index.html voor meer duidelijkheid.

Mijn mirror versie is hier te downloaden. Het origineel staat hier.

Nieuwe harddisk

May 17, 2007 on 3:02 pm | In .dutch, hardware | No Comments

Ik heb een fijne nieuwe harddisk gekocht, een ‘My Book’ ding, met een 500gb Western Digital harddisk erin. Het lampje dat I/O aangeeft heeft een leuk effect:

Three good, free e-books on c++

May 4, 2007 on 1:32 am | In .english | No Comments

Hiya, here I’ve got three e-books mirrored on this site that are all good and available freely from other sources on the net… I’m just mirroring them.

  • Thinking in C++, Volume 1 - Contains the basic knowledge on C++ starting with C and classes and all the other basic things.
  • Thinking in C++, Volume 2 - STL, algorithms, iterators, containers. Advanced topics.
  • C++ Draft TR1 - The first official document on the upcoming C++0x standard, which is already (partly) supported under g++, and has among many other useful things: arrays, tuples, smart pointers, hash tables, and random generators.

Unittesting and c++ templates

May 2, 2007 on 7:43 am | In .english, coding | No Comments

I’ve been doing some C++ templates recently, and I found out that ‘unit testing’ is absolutely handy when making templates. Say you have a template like this:

template<class T> struct foo { T data; foo() { data = 0; } };

I could define an operator ‘+’ on it using complicated syntax, but say I have done that, and I want to test that it works. (And, say, you want T is ’std::complex<float>’ and ‘float’, for example.) Okay:

template<class T>
struct foo_test
{
inline foo_test() /* here we test the whole 'foo' class on syntax */
{
foo<T> x,y,z;
z = x + y;
}
};
inline void foo_test_instantiate() /* here we instantiate *the test* for our supported types */
{
foo_test<float> tmp1;
foo_test<std ::complex<float> > tmp2;
foo_test<std::complex<long double> > tmp3;
/* done testing supported types */
}

I suppose you can place this kind of syntax checking right into the header file, as it has zero code overhead, if it wasn’t for the fact that those get too big as it is, and testing doesn’t belong there anyway.

Powered by WordPress with Pool theme design by Borja Fernandez.
Entries and comments feeds. Valid XHTML and CSS. ^Top^

[rss feed: http://blog.superstring.nl/feed/rss/]