Cameras, gadgets and general shenanigans.
December 25, 2011 by Luke

Old vs New

Old workspace

New workspace

  •   •   •   •   •
November 8, 2011 by Luke

Pretty permalinks & password protected directories

How’s that for alliteration!?

I recently changed my portfolio/photography site over to a WordPress back end in order to easily update and maintain the content. One of the best things you can do for SEO with WordPress is to enable “pretty permalinks”. This means that your article URLs will all be more relevant to the content – rather than each post having an address like yoursite.com/?p=1234 they will instead have a more apt address like yoursite.com/2011/10/name-of-article. Now, this had never been an issue in the past, however I recently managed to break something.

On my photography site I like to password protect directories that have clients’ photos in them so that they can choose who has access to view the photos (by sending them a username and password). I simply arrange authentication with the .htaccess file in the directory. This has never really been an issue in the past either. Until, that is, I tried to use both pretty permalinks and password protected directories. Apparently WordPress doesn’t like you having your cake and eating it too (probably a good thing for the waistline).


Strangely, when you enable pretty permalinks in WordPress, you can’t access anything in .htaccess password protected directories. WordPress just shows up a 404 “Not Found” page, even though the directory exists. And it doesn’t matter if you include the file name either. Very frustrating. After quite a search, I finally found the solution. Hopefully this advice will find some poor soul before they migrate their whole WordPress database, only to discover that it hasn’t fixed the problem and decide to end their life by speeding past the nearest “Bridge Out Ahead” sign. The solution is quite simple:

  1. Create an HTML document and call it “401.html” – it really doesn’t matter what the content of the page is, as long as it exists, so knock yourself out and fill the page with lolcats.
  2. Create a folder in your root directory (usually public_html or wherever your main site lives) and upload the 401.html to the new directory (let’s call it “cake”).
  3. Edit the .htaccess file in the password protected directory, and insert the following as the first line, before everything else in that file: “ErrorDocument 401 /cake/401.html”
  4. Haz your cake and eat it, too!

P.S. Yes, I know I use en dashes incorrectly. Deal with it. Do as I say, not as I do.

  •   •   •   •   •
January 28, 2010 by Luke

iPad

I came across this well-placed ad during a hands-on video of the new Apple iPad.

The e-book reader application looks pretty interesting; it’s much prettier than the Amazon Kindle, though navigation doesn’t seem 100% yet. It’ll also strain your eyes after a couple of hours, unlike an e-ink display. Check out the video here. The iPad is basically a bigger version of the iPod, but seems to be missing some crucial features such as multi-tasking and Flash (Steve Jobs goes on about how great it is for web… but doesn’t support Flash?). I guess with future iterations they will fix these issues, but I’m sure it will do well anyway – people will buy just for the brand. The iPad seems to be a jack of all trades, master of none. It seems as though Apple is trying to fill a gap in the market that doesn’t really exist!

  •   •   •   •   •
November 9, 2009 by Luke

Top 5 Online Stores

Possibly the first in a series of “Top 5″ posts. This one is about my top 5 rated online stores. These are sites I’ve found useful or regularly visit to purchase items (usually electronics).

  1. www.digitalrev.com - DigitalRev is an online store selling photographic equipment. I buy most of my camera equipment there – they sell cameras, lenses, filters and accessories both at their online store, and also via eBay. I’ve found the eBay store is usually cheaper, but doesn’t always have the items I want. Packing, shipping, price and service are all top notch (though repairs can take a while compared to a local store), and they actually have a couple of points of presence in Hong Kong I’d love to visit.
  2. www.betterworld.com – Better World Books is another online store, selling… you guessed it – books! They collect and sell both new and used books, with part of the money used to fund literacy incentives worldwide. The price and range is a million times better than even the biggest book shops here in Brisbane, and you can use coupons to save even more! Not only do I love a bargain, but it’s good to know that it’s also contributing to a good cause (they also offer carbon-neutral shipping for 10 cents!).
  3. www.ozbargain.com.au – Not strictly an “online store”, OzBargain is an online community where users post up great deals and coupons in Australia. Great for pizza vouchers and electronics amongst other things :)
  4. www.ebay.com.au – Yes, that’s right, eBay! I find eBay quite useful for purchasing items, just make sure you check the seller’s rating and feedback before making the decision to purchase. Use Paypal for added buyer protection.
  5. www.catchoftheday.com.au – This website offers a new deal at 12pm each day. The items are usually quite crappy, useless things but occasionally a great bargain will pop up when manufacturers are trying to clear stock.

Other worthwhile shopping-related websites that didn’t make it into the top 5…

  •   •   •   •   •
October 25, 2009 by Luke

Ninite

Wow! I just came across this awesome program which installs all your essential Windows apps automatically. You simply choose which applications you want installed (browsers, PDF software, office apps etc) and it queues up, downloads and installs them all for you! No longer do you have to go to each website and download them all yourself. A great time-saver for anyone who is installing a new OS :) Check it out at http://ninite.com/

ninite

  •   •   •   •   •