Archive for July, 2009
Google Analytics: IP filter across multiple accounts
Posted by admin in Analytics, Web design & development on July 13, 2009
So I’m developing several sites from one end of an ADSL line with a dynamically assigned IP address. All of which use Google Anaytics. Obviously I don’t want traffic from my activities to get registered and skew any GA data for these sites.
Having a dynamic IP address I’ve had to be keeping an eye out for changes by logging into utrace every couple of days. (I know…) . Then when I notice a change (randomly every couple of weeks or so) changes I have to update the Analytics Setting on each account. Tiresome.
While setting up an IP filter for GA is trivial there’s currently no way to set IP filters in GA across these sites’ accounts. But there is a solution that get the other half (the dynamic IP half) of the problem solved…
Exclude GA traffic by Cookie Content
With this new trick I need only to create a singe page specifically for each site/account and then anybody involved in the development can be excluded automatically by visiting these pages. Now I have to do this for all these sites with every blessed browser I use to test and debug. Life’s not fair is it.
rsync and other old school Coda tricks
Posted by admin in Web design & development on July 9, 2009
First a quick one – thanks to the folks that supplied the coda plugin for Markdown. Anonymous folks with big hearts.
Markdown plugin for Coda
It’s about time I stopped running to WordPress every time I have to format a <ul>. I rememer thnking Markdown was cool forst time I saw it about four years ago! Funny I thought it wouldn’t last.
Next another oldie – spurred on by a post in the Coda Users forum on Google Groups I was reminded of the magic that is rsync.
Rsync is syncing magic
Magic that I turned to again recently to get lose a heavy syncing feeling when faced withthe fact that I really don’t know too much about GIT just yet. Not beyond using it to keep a proper track of my own changes anyway…
The issue was with a workflow that forked Coda’s capabilities to track changes (which although straight forward are not always reliable).
Forum thread here. My ravings about rsync:
OK so no SVN on the server – how about rsync and ssh?
I tried and failed and gave up getting Git to push changes to my
server [ way toon00b]. So dusted off a couple of old rsync scripts I used to use back in the days of RsyncX. That was before rsync was
made a native MacOSX binary with HFS+ support (not needed now I’m out of
DTP!) or became the foundation of Time Machine…Rsync is fabulous – it can do a sync based on checksums of the files’
content. Modification dates etc be damned. That and more magic. Have
alook into for yourself. Maybe there’s other folk out here who can
confirm or deny this. (and any of the following too… !)If you have ssh access and rsync on both servers (type “rsync –
version” in a terminal window to see) you could try something along
the lines of:
time rsync -a -c -z -e ssh ~/Sites/source.dev/public_html/
u...@12.34.56.789:/Users/user/Sites/desination.dev/public_html/ --
delete --progress --exclude=\*.git/\* --dry-runtime – to tell you how long it takes
-a for archive mode (overwrites any changes on the destination)
-c skip based on checksum, not mod-time & size (killer feature)
-z compress file data during the transfer
-e specify the remote shell to use (in this case ssh)
–delete will delete file not in the source folder
–progress gives feedback on how things are going
–exclude specifies what to ignore (in this case anything in any
folder ending in “.git”)
–dry-run doesn’t actually change any files – just goes through the
motions so you’re happy all is wellWhen you’re happy – lose the “–dry run” and go!
The sincerest form of flattery…
Posted by admin in Web design & development on July 1, 2009
This post now archived under the don’t-jump-to-conclusions category – and perhaps a lesson in the transient nature of web properties. My apologies Manpreet… it simply didn’t occur to me to check the history of the domain – or to drop you a line and ask you directly.
Original post contents quoted below. See Manpreet’s answer in the comments.
Oh the joys of Google…
I don’t know where to take this just yet; so back to the World Wide Web, and Google, it goes…
Just to clarify a point: Manpreet Singh Chandoak, despite the current statement on his CV, has had nothing whatsoever to do with the design or build of the Solutions Overseas website. That pleasure was all mine, thank you very much. [All mine, minus the original logo and colour scheme and the very important part played by the good folks in the office there... it's improved immeasurably over version 1.1!]
Funny – you can’t hide from Google – unless, of course you at least try to
noindexyour links. Here’s the link to the word doc that Google kindly crawled: www.manpreetsingh.com/manpreet.doc…(all websites made by me)
I like that.
Many thanks for the flattery, Manpreet. Much appreciated!