What are the hard refresh shortcuts for a Mac using Safari and Firefox?

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

June 26th, 2009 / Tech Talk / Lexi

Howto track outgoing links with Google Analytics using jQuery

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

May 29th, 2009 / Tech Talk / tim

SVN update made easy

subversion logoPHP 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

May 25th, 2009 / Tech Talk / tim

Howto downsize product images in Magento using Mage_Catalog_Helper_Image

or

“How can I downsize large product images but not enlarge small images?”

simple as:

syntax:

$this->helper('catalog/image')
->init($_product, 'image')
->keepFrame(false)
->constrainOnly(true)
->resize(650);

example:

$this->helper('catalog/image')
->init($_product, 'image')
->keepFrame(false)
->constrainOnly(true)
->resize(650);

Read the rest of this entry »

May 13th, 2009 / Tech Talk / tim

How to get from A to B using Google maps

Have you every been stuck for directions or unsure about what roads to take? It’s a common problem that people (in particular men) hate to stop to ask for directions. Google maps can be a great tool to alleviate this problem (and guys, you can even do this before you get on the road; a great way to impress the ladies).
Read the rest of this entry »

May 13th, 2009 / Tech Talk / Lexi

Brown & Pemberton

bp_logo

Brown & Pemberton are a planning company who work nationwide on many different projects ranging from large-scale developments, infrastructure projects, commercial, urban and rural projects to single dwellings.

Kelpdesign worked with Brandcom to develop Brown & Pemberton’s new website. The site’s aim was to promote their latest projects as well as to introduce potential clients to the team and thier range of experience.

Read the rest of this entry »

May 10th, 2009 / Work / Lexi