Archive for May, 2007

hemingway reloaded fixes

Hemingway Reloaded is a great theme for the Wordpress Blogging Software, however, it lacks a little bit IE 7 compatibility.
Here are two simple fixes for the style.css which will display the startpage correct.
First off, in style.css, change the width of #primary.twocol-stories .story to 47% instead of 48%:
#primary.twocol-stories .story{
float:left;
width:48%;
margin:0 0 0 4%;
display:inline;
}
becomes
#primary.twocol-stories .story{
float:left;
width:47%;
margin:0 0 0 4%;
display:inline;
}

This […]


javascript, prototypes and object references

If you are using OOP, you are familiar with initializing class members in the head of the source:

/**
* Pseudocode
*/
class Foo {
int i = 0;
Array bar = new Array();
}

However, if you are using Javascript’s prototypying, assigning objects to class (prototype) members will result in static instance variables.
Example:

function Foo(){}
Foo.prototype.i = 0;
Foo.prototype.bar = new Array();

What happens here? If […]


teaching javascript the concept of interfaces

There’s an easy way to simulate Interfaces in Javascript, this post shows you how it is done.
(Beware, I’m going to mix OO terms in this posts a little bit for the sake of Javascript, but readers familiar with OO concepts will understand what I mean.)
At first we will extend Javascript’s native Object with a method […]


web 2.0 - what is all the fuss about, anyway

When I started my studies of social- and economic history in Hamburg, Germany,  the internet - as we know it - was raring to go.  The one or other dotcommer was already out of business, however, there were still hotheads out there with a grandiose idea, plans were made (up) and shown to potential investors. […]


fighting the spill

More than a year ago I was digging deep in the sources of the Java-like GNU Classpath, trying to find a way to adopt the MVC Pattern they are using. Despite all the hassle with translating and substituting objects, methods and functionality (have you ever taken a look at the event queue?) to the world […]