Web

Left and Right align text on the same line

It can sometimes be useful to have some text be aligned to the left and some text be aligned to the right on the same line, eg in a footer. Here is how this can be done in HTML: <div id=”footer”> <p class=”leftalign”>Text on the left.</p> <p class=”rightalign”>Text on the right.</p> </div> If you were […]

Read More
Web

Using multiple CSS classes

Let’s say you need six different 100px square boxes with different characteristics: Red with Border Blue with Border Green with Border Red without Border Blue without Border Green without Border You COULD create a unique class for each of these: .redwithborder { width: 100px; height: 100px; margin: 10px; float: left; background-color: red; border: 3px solid […]

Read More
Linux

Install Geo::IP Perl Module on Debian Etch

This post describes how to install MaxMind Geo::IP perl module on Debian Etch. You need the GeoIP C library (that includes also the free GeoLite Country database). This is fortunately available in the Debian repositories. apt-get install libgeoip1 libgeoip-dev To install the GeoIP perl module, we need to download the perl module locally from MaxMind […]

Read More
Web

Corrupt Content Objects in eZ Publish

On my eZDB I’ve found two different scenarios of corrupt objects, they must have become corrupt when not having transaction enabled, and eZp or the user breaks out of a content object creation, og content object edit: a content object exist only in table ezcontentobject, no referernces to object in any other ezcontentobject*-tables. SOLUTION: delete […]

Read More
Web

Setting up an SSL server with Apache2 on Debian

With the introduction of the Apache2 packages in Debian it is much simpler to create and use a secure SSL protected webserver than in the old days with Apache 1.3, here we’ll show how it is done. If you have Apache 2.x installed already then you’re good to go as you don’t need anything extra […]

Read More