For the Queue ICPC programming game Capture I ran into a geometrical problem.
While programming my little robot I wanted to have an algorithm calculate this for me:
I have a field with 122 points I have a circle of fixed size
How do I calculate where to put the circle so it [...]
Why, when one color has run out of ink, you can’t print anything!? Why does a pencil cost $0,50 and does an ink-cartridge cost $30,-? Why does a pencil still work after 5 years and is an ink-cartridge completely dried up? Why is a new printer (including ink cartridge) sometimes cheaper then a seperate ink-cartridge [...]
Yesterday I found and programmed a nice little algorithm. I’m not going to tell you (yet) what it does and how its called, but I’ll just show the code:
private int function(int x, int y) { int r = 0; while(x!=0) { if((x&1)==1) { r+=y; } x>>>=1; y<<=1; } return r; }
So tell me, [...]
Struts
If Struts was a woman, she would probably be around their 40s. She is mature and has a lot of experience, but she has lost her glamour and her good looks. Everything still kind of works, but not ‘like it used to’. Young new JEE developers don’t want anything to do with her [...]
Recently I placed a comment on this interesting blog from Uncle Bob Martin (Robert C. Martin). It contains a brief description on how I teach people how to use the Spring Framework.
Now, by popular demand (one person requested it over Twitter), I’ll guide you through the method and examples I use in this blogpost. It explains why people should use frameworks like Spring and/or Google Guice, and how.
Latest tweet
- Unique, there is only one traffic jam in the Netherlands currently! The only problem? It is almost 1000km long.
Links
Archives

