Skip navigation

Category Archives: Code

Awesomium is a fantastic tool that I’ve been using for the past few months on the Card Kingdom project. I posted a brief description and reason for switching to use Awesomium here, so I won’t go too much into how awesome Awesomium is. It just is, trust me. One thing that is not so awesome about Awesomium is how they handle strings. To fix this, I wrote some utilities to make dealing with the Awesomium strings much easier.

Read More »

This plug-in simulates how a wiki links between pages. By specifying the root URL of the wiki, terms in normal HTML can link to the corresponding wiki page. It also supports the use of aliases for terms.

Read More »

I don’t know why I haven’t gotten into this earlier. Here are some of the things I’ve learned while tinkering around.

Don’t use static variables.

The tutorials I’ve read say to use static final variables in your code for readability. I totally agree with this, except for the part about declaring the variables static. When you declare a static variable, the name of the variable gets stored in the string pool in the header. Even if it’s final. And even if it’s private. That means that every one of the static variables’ names is spelled out in modified-utf8 in the header. There goes your class size, exploding out of proportion.
Read More »

I’m surprised they didn’t add this feature to the core of jQuery. Oh well, here is a plug-in to create a child nodes. The plug-in also returns the nodes that were created or the jQuery object that called the function if no options were passed.
Read More »

IE6 is the bane of the Internet. One of the worst things about it is how it handles transparent PNG images. Here is a jQuery plug-in that fixes it.
Read More »