Archive for the ‘apple’ Category

Use PHP to find your mobile browser January 11th, 2010 by Sheldon Lendrum

I needed a quick way to include different files based on the if the visitor to a site is on a mobile device or a regular browser/computer.
Every browser has a user agent depending on the operating system, browser and system.
below are some common use agents, they can be found by echoing the server variable HTTP_USER_AGENT

< [...]

Cleaning my Apple Mighty Mouse Ball's April 29th, 2009 by Sheldon Lendrum

I have a couple of Apple Mac’s and with each of them, I have a Mighty Mouse.
I have one I carry with my with my Mac Book Pro, this is getting quite old now, It was the first release of the Wireless model, I pre-ordered it as soon as they were announced and have [...]

Changing the RSS refresh rate in Apple Mail April 29th, 2009 by Sheldon Lendrum

I use Apple’s Mail App as my primary mail client on both my personal and work mac’s, and for both machines I have various RSS Feeds subscribed.
I use apple mail as an RSS Client for a couple of reasons,
1) I just like how it works
2) its not just one more application I have to have [...]

BounceBox Update, Version 1.1 March 21st, 2009 by Sheldon Lendrum

I was using an implementation of my BounceBox mootools javascript class on a site I am working on at the moment, and made a couple of additions to the Class that I hope other will enjoy.
The new version1.1 demo can be viewed at http://bouncebox.lendrum.co.nz/ and the change log with a new version 1.1 demo [...]

Hack Safari to open links in new tabs, not new windows March 11th, 2009 by Sheldon Lendrum

Safari (by default) will open certain links (e.g. target=”_blank”) in a new browser window instead of a new tab even if you have your preferences set no too. Fortunately, there is a hidden preference you can set to force Safari to behave.
If you run this command in Terminal /Applications/Utilities/Terminal.app

defaults write com.apple.Safari TargetedClicksCreateTabs -bool true

to disable [...]

removing .SVN directories recursively March 4th, 2009 by Sheldon Lendrum

I have been working a lot lately using SubVersion ’s to maintain all the projects that I and some times others are all working on.
A firm that I contract to has recently set up a SVN Server on a dedicated machine with ActiveCollab and Versions to manage our projects. This means that we have versions [...]

Force Eject a CD/DVD in Apple Leopard February 18th, 2009 by Sheldon Lendrum

Today I had to help a friend force eject a stuck DVD in his iBook, there are a couple of methods we tried and I thought that hey may be helpful for others.
I would recommend trying to eject your stuck CD/DVD in this order;
1) Hold the ‘Eject’ Key for up to 30 [...]

Safari's CSS Support for multiple backgrounds on the same Style February 16th, 2009 by Sheldon Lendrum

I was browsing just now and fond something pretty interesting, Safari supports multiple background image declarations for the same style tag.

.box {
 
background:
/* Upper-left */ url(./corners_01.png),
/* Upper-right */ url(./corners_02.png),
/* Lower-left */ url(./corners_03.png),
/* Lower-right */ url(./corners_04.png),
/* Icon */ url(./icon.png),
/* Gradient */ url(./gradient.png);
 
background-position:
/* Upper-left */ 0% 0%,
/* Upper-right */ 100% 0%,
/* Lower-left */ 0% 100%,
/* Lower-right */ 100% 100%,
/* Icon */ 0.6em 0.6em,
/* Gradient */ 0% 100%;
 
background-repeat:
/* Upper-left */ no-repeat,
/* Upper-right */ no-repeat,
/* Lower-left */ no-repeat,
/* Lower-right */ no-repeat,
/* Icon */ no-repeat,
/* Gradient */ repeat-x;
}