After stumbling across this problem recently in IE6 / IE7 there are three things you need to make sure of:
overflow: hidden, is applied to the div that you want to hide the text in
position: relative, is also applied. IE seems to get confused if this isn’t there
a width and height are applied to the div
e.g.
.div { width: 882px;
height: 246px;
overflow: hidden;
position: relative; }
A new script introduced in Ubuntu 9.10 Karmic Koala to add apt repositories and import the gpg key is “add-apt-repository“.
Sample usage:
~$ sudo add-apt-repository ppa:gmpc-trunk/mpd-trunk
For some reason there is no script to remove repositories that have been set up this way.
Luckily the guys from sourceslist.eu (it) wrote a script fixing this issue.
It can be downloaded either as a bash script or as deb package.
After the installation the usage is straighjt forward using the same syntax:
~$ sudo remove-apt-repository gmpc-trunk/mpd-trunk

On a previous post I explained how to build SVN updater script in PHP. This works fine on hosts that allow the webserver runas user to access the subversion binaries, such as Dreamhost.
What if not?
Our favorite hosting provider Webdrive allows our ssh-user access to subversion but not the apache runas user.
What can we do?
In order to avoid being asked to update the working files for website xyz.com every change someone made -> we need a script that executes the command “svn up” via ssh on a remote server!
This script will be hosted locally and the access will be restricted.
Sounds good what are the problems?
Everyone, who ever tried to build a script that connects via SSH to a remote machine in PHP, knows the big question:
“How can I send the password?”
The answer is: “Not“
thanks to ssh key authentication.
Read the rest of this entry »
Quick tip
The shortcut keys for refresh / hard (force) refresh on a Mac for Safari and Firefox:
Firefox
Refresh: Command+R
Hard refresh: Command+Shift+R
Safari
Refresh: Command+R
Clear the cache: Command + Option + E
*Command = Apple key
I think it’s great the idea of including semantic markup in XHTML pages is gaining traction due to that fact that Google has announced support for Microformats and RDFa.
What is semantic markup?
Semantic markup means developers use html elements to give content meaning, or context to computers. For example if we use the word “Paris” in our content we can tell the computer (through markup) that we mean “Paris” is a place in France or “Paris” is referring to Paris Hilton the person.
Read the rest of this entry »
News aggregators have been around for some time, starting with sites like Drudge Report, breitbart.com and the Huffington Post.
However, with the rise of automated aggregation, far more news sites have become available allowing you to view and filter news and its context in interesting ways.
Read the rest of this entry »

The release of the FitPC2 brings us a step closer to a ideal workstation:
- Small (101 x 115 x 27 mm)
- Environmentally friendly (8W at full CPU load)
- Powerful (Intel Atom CPU)
- Silent (fanless)
- Cheap (from US$245)
and of course
Simply include these lines and the jQuery library in your document.
$(document).ready(function() {
$('a[href^=http]:not("[href*=://' + document.domain + ']")').click(function() {
pageTracker._trackPageview('/out/'+$(this).attr("href"));
});
});
(please indent them!)
Cheers
PHP Subversion Updater
In our company we use Subversion for version control.
Using a GUI for Mac gives our more graphical team members easy access to common tasks, such as committing changed files to the repository.
However updating the working copy on a (test-) web server still requires knowlegde of a unix shell and having to log in and running it manually can be a full time position.
After doing some research I found the official PECL SVN bindings. These are still very experimental and a hussle to install.
So I decided to use the simplest solution that just executes a “svn up” on the server and does not require any server-side modification:
exec("svn up ".dirname(__FILE__), $out, $ret);
Which serves perfectly for this purpose.
Wrapping this line in a (30secs) self refreshing file makes sure the working copy stays updated.
And the best thing is:
it does not require anything, except installed svn binaries that are executable for the apache user and write access to the webroot.
Download

The Situation
Its been a while since everybody stopped complaining about the standards compliancy of Internet Exporer 6. In fact there was no way of having a website that was not working in the most popular browser.
However.
Times have changed.
Read the rest of this entry »