Archive

Archive for the ‘Uncategorized’ Category

Network Solutions and DNSSEC

January 18th, 2012 No comments

It’s interesting that not only does netsol not list any information what-so-ever on their knowledge base about DNSSEC, their support staff have no idea what it is either.

Come on network solutions, sort it out otherwise I may have to move my domains to a registrar that does support DNSSEC.

Categories: Uncategorized Tags:

df not reporting correct disk usage

July 27th, 2011 No comments

I had a problem where df and du disagreed with the amount of disk usage. The cause was processes holding on to unlinked files. Running the following identified the processes:

ls -ld /proc/*/fd/* 2>&1 | fgrep ‘(deleted)’

I killed the processes and df is now showing the correct information.

Categories: Uncategorized Tags: , ,

Dreamhost supports ipv6

April 29th, 2011 No comments

I just found out that dreamhost supports ipv6 (has done since March ’11). Just go to manage domains in the control panel and click “Add IP” next to each of your domains.

Now if only our enterprise hosting at Verio/NTT supported ipv6!

Categories: Uncategorized Tags:

Browser Wars (sunspider edition)

April 14th, 2011 No comments

It seems that most browsers are focused on speeding up javascript execution now as most websites are heavy with ajax and complex js.

With Firefox releasing their pre-beta “dev” version Aurora this morning I decided to run all the current browsers through sunspider to see if any progress has been made.

Chrome-dev: 294ms
Aurora (FF dev): 324ms
Firefox 4: 348ms
IE9: 251ms
IE10 preview 1: 254ms

So it would seem that Firefox has sped up their js engine, but has a little way to go to catch up to the other browsers.

Categories: Uncategorized Tags: , , ,

Remove site from Google

February 22nd, 2011 No comments

We found that Google had indexed a site that shouldn’t be indexed so I setup a robots.txt file to deny all crawlers and locked down the site with http auth. I also put in a request to have the urls removed from the index and cache.

When I did this Google returned ~2,400 results when doing a “site:www.site.com”. A few days later it was returning ~54,000. Today it is returning ~133,000.

I’m not sure how Google managed to mix up “remove my site” with “index it more”. Maybe this is just part of the removal process?

Update: Google is now up to 217,000 results for this site. Maybe removing your site from the index is good for SEO?

Categories: Uncategorized Tags:

unzip 6 for RHEL 5.6

February 15th, 2011 2 comments

Redhat likes to run old packages with backported patches, but sometimes it’s nice to have the latest version that includes new features. Unfortunately the unzip from RHEL yum can’t unzip files > 4GB. I found the src rpm and compiled binaries that work with RHEL 5.6 (may work with older).

unzip-6.0-1.i386.rpm
unzip-6.0-1.x86_64.rpm

Categories: Uncategorized Tags: ,

Deny access to website, but allow robots.txt

February 15th, 2011 No comments

I had a problem where Googlebot was indexing a development site, so we locked it down using apache basic http auth. Now Googlebot was being served with a 401 when accessing the site, but because it had no stored robots.txt it was persistently trying to crawl the site.

Using the following allows anyone to access robots.txt but denies access to the rest of the site:
<Directory “/home/username/www”>
AuthUserFile /home/username/.htpasswd
AuthName “Client Access”
AuthType Basic
require valid-use

<Files “robots.txt”>
AuthType Basic
satisfy any
</Files>
</Directory>

Eventually Googlebot will get the hint and stop indexing the site and we can remove existing content using webmaster tools.

Categories: Uncategorized Tags: , , ,

Overheating Macbook Pro

February 14th, 2011 No comments

I’ve been having problems recently with it overheating. It’s not much fun when trying to code on the couch with a boiling hot mac on your lap.

I found a program called smcfancontrol which seems to take care of that. It’s now under 50oC and coding it now more fun!

Categories: Uncategorized Tags:

Online Banking

January 5th, 2011 1 comment

Why is it that in this day and age it takes a day to transfer money from one bank to another? And if it’s a weekend or public holiday it takes even longer. Do computers not work weekends now?

Can someone please invent a protocol or process to allow bank transfers to be instant? Surely it can’t be that hard, it’s just numbers/data being shifted around. I can transfer entire DVDs of information from one side of the world to the other in a short period of time, why can’t a bank process things in real time?

Categories: Uncategorized Tags:

PANWA2204A WLAN 11g Router

November 17th, 2010 2 comments

I came a cross an unbranded router with the FCC ID PANWA2204A stamped on the bottom (with MAC addresses and serial number). If anyone else is trying to identify one of these it’s a “RadioLabs High Power O2Link Broadband Turbo G Router“.

Categories: Uncategorized Tags:

Auckland Frost Dates

July 5th, 2010 No comments

I had been searching for approximate frost dates for Auckland to help schedule veggie plantings. Luckily the people at NIWA are nice and respond very quickly to emails. I was told that ground frosts are days where grass minimum temperature are less than -1.0 degree C. Screen frosts are when the air temperature dips below 0.0 degrees C.

Using NIWA’s free data explorer tool “Cliflo” and the closest weather station to me I came up with the following data:

2009
First Frost: 2009-04-10
Last Frost: 2009-09-09

2008
First Frost: 2008-04-21
Last Frost: 2008-09-07

2007
First Frost: 2007-05-29
Last Frost: 2007-10-04

2006
First Frost: 2006-05-31
Last Frost: 2006-09-19

2005
First Frost: 2005-04-22
Last Frost: 2005-09-03

2004
First Frost: 2004-05-21
Last Frost: 2004-09-30

2003
First Frost: 2003-04-26
Last Frost: 2003-10-27

2002
First Frost: 2002-07-14
Last Frost: 2002-10-24

2001
First Frost: 2001-05-29
Last Frost: 2001-09-29

2000
First Frost: 2000-06-14
Last Frost: 2000-09-29

This averages out to:

First Frost: May 19
Last Frost: September 27

Hopefully this helps the local gardeners. Join me on Folia

Categories: Uncategorized Tags:

Webby Awards

April 30th, 2009 No comments

The Webby Awards are upon us again for the 13th year. It’s ironic though that awards that celebrate the best on the internet have one of the worst designed sites. The Webby People’s Voice site (http://pv.webbyawards.com) is hard to register on and vote. This has discouraged a lot of people from voting for their favourite websites.

Categories: Uncategorized Tags:

Recursive file sizes (filtered by file type)

April 9th, 2009 1 comment

I had to find out the size of all our images on a site today. This was the easiest and fastest way to do it

[code]

find /home/username/public_html -name ‘*.png’ -printf “%s\n”|awk ‘{sum+=$0}END{print sum}’

[/code]

Categories: Uncategorized Tags:

Photography links

April 6th, 2009 No comments

Here’s a great list of photography resources: http://mashable.com/2007/06/23/photography-toolbox/

Categories: Uncategorized Tags:

iMob Friend Codes

January 25th, 2009 1,220 comments

Add your imob friend code to the comments and I’ll add you

My code is 100 631 009 (also for iKnights)

If you haven’t installed iMob yet, search for it on the itunes store and install it on your iPhone for free.

Update: Comments are now closed, there are over 1200 people posting here and it takes ages to page through them all. If you want your code added to this post (at the top) please donate $2 via paypal:


Add your code into the comments of the payment and I’ll add it. Limited to 100 places. This is highly ranked page for imob codes and gets a ton of traffic, you’ll get added by hundreds of users (I’ve been added by 2300 people).

Other codes to add:

268-154-383
165-281-454
123-643-569
142-622-107
162-023-523
163-976-612
179-594-415

Categories: Uncategorized Tags:

Freezer Jam

October 15th, 2008 No comments

Learn about freezer jam and how to make it. I hadn’t heard of it before, but apparently it’s quite a popular way to make jams these days. Saves a lot of time.

Recipes:

Strawberry Freezer Jam
Blueberry Freezer Jam

Categories: Uncategorized Tags: , ,

Google Knol

July 31st, 2008 No comments

I’m doing an experiment with Google Knol, so I’ve written a Knol about back pain

I will post the results of this test later on.

Categories: Uncategorized Tags: , ,

New Blog

June 30th, 2008 No comments

I’ve just started a new blog about antioxidants and good health.

You can find it here: Antioxidant Smart

Categories: Uncategorized Tags:

Verizon Wireless

February 3rd, 2008 No comments

I’ve just set up a lens on Squidoo.com about Verizon Wireless

It’s still a work in progress, but there’s some interesting information there.

Categories: Uncategorized Tags:

Good code ruined?

August 16th, 2006 No comments

I happened across a really neat site the other day, called codegolf.com. Some of you might recall a similar scheme going on a while back called perl golf – well this is the same idea.

The deal is, there is a load of challenges set, and you have to write and submit the code to supply the required output of the challenge. However, there is one snag – you have to write it in as little code as possible. It has you really thinking laterally – outside of ways you might normally think of writing code, which I personally find fantastic (and depressing, realising how little shorthand I know!)

There is currently four languages you can submit in – PHP, Perl, Ruby and Python. Suggest that you hardcore execution-time monkies take a look at it and get scoring.

Categories: Uncategorized Tags:

Colorado Sheriffs To WarDrive For Safety

July 14th, 2006 No comments

The Sheriff’s Department in Douglas County, Colorado says it’s going to start warning computer users that their networks may be vulnerable to hackers. It plans on equipping its patrol cars with devices that detect unprotected computer networks, and distributing brochures to computer users in vulnerable areas, instructing them on how to password protect their networks.

More info here

Categories: Uncategorized Tags: