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
The shortcut keys for refresh / hard (force) refresh on a Mac for Safari and Firefox:
Refresh: Command+R
Hard refresh: Command+Shift+R
Refresh: Command+R
Clear the cache: Command + Option + E
*Command = Apple key
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 UpdaterIn 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
or
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);
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 »
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.