Doppel Gelb! Parallelles gelb!!
Nice one, referee.
Read the rest of Doppel Gelb! Parallelles gelb!!
Nice one, referee.
Read the rest of Doppel Gelb! Parallelles gelb!!
Today I made a simple stack for you. It’s pretty much as basic as it gets. You push elements, you pop elements, you peek at elements, you get the size of the elements.
Here’s the code:
Node.java:
1
2
3
4
5
6
7
8
9
10
public class Node<E> {
private E content;
private Node<E> below;
public Node(E content) { this.content = content; }
public E getContent() { return content; }
public [...]
Read the rest of Java Abstract Data Type Series: SimpleStack
Forget everything you’ve learned, this is how it’s done in the real world.
Software Development Cycles
Programmer produces code he believes is bug-free.
Product is tested. 20 bugs are found.
Programmer fixes 10 of the bugs and explains to the testing department that the other 10 aren’t really bugs.
Testing department finds that five of the fixes [...]
Read the rest of Software Development Cycles
By request, and for fun, I made the game “Joker” (I think that’s what it’s called?), best known for it’s parody “Ekstra Joker Nord” (Extra Joker North) from Team Antonsen:
It’s a simple game where you get five numbers from 1 to 9, and decide if you want to go up or down based on that [...]
Read the rest of Lottery - Norwegian joker game in Groovy
For some crazy reason, I today decided to implement the most simple form for priority queue possible. And since I just got Syntax highlighting on my site, I decided to put it out here.
PS: If you are looking for a PriorityQueue, please use this one, it’s a better solution, based on a heap implementation.
This SimplePriorityQueue [...]
Read the rest of A SimplePriorityQueue in Java.
Today we had trouble with changing the default error messages in JSF, they were pretty confusing. After surfing the net, we found an easy solution:
Make a file called messages.properties and put it somewhere in your source folder (for example in a resource folder).
Go to the faces-context.xml, and add the following inside the faces-context tag:
<application>
<message-bundle>resource.messages</message-bundle>
</application>
Open the [...]
Read the rest of JSF: Make your own error messages.
I would just like to recommend the web comic Buttersafe, which is just great. Here one example:
And link to the comic: buttersafe.com
Freakin fantastic: A funny strip
Read the rest of Buttersafe - a webcomic.
I came across a pretty damn hard, but fun game today. The point is to run (or crawl) as long as possible. Easy, right? But this isn’t Track and Field. You have control over the calves and thights of our runner, controlled by four buttons, and it’s a real challenge. My record is 5,7 meter, [...]
Read the rest of Game: Athletics.