Wednesday, 28 September 2011

How to make Firefox search Google UK

One thing that's often annoyed me is that when you use the Firefox address bar (or "awesome bar") to type a search query (as opposed to a URL), it takes you to Google.com, rather than your default search engine (which I have set at Google UK).

I found out today (after not much digging - it obviously hadn't annoyed me that much!) that you can change it in about:config (type about:config into the address bar, and accept the warning).  Just change the key "browser.search.defaultenginename" to "Google UK" - or whatever you please.  I found what to change it to by copying the value of the "browser.search.selectedEngine" key.

Now I don't have to replace ".com" with ".co.uk" every time I do a search in this way, and it automatically returns me pages from the UK.

Sunday, 18 September 2011

Windows 8 developer preview - first impressions

Now I know why I bought a quad core CPU and 8 GB of RAM - to play around with fun new things, using the fantastic VirtualBox.

So I started downloading the Windows 8 Developer Preview from Microsoft onto my NAS box, and several hours later (yes, my broadband is rubbish), it had finished.  I gave my VM a couple of CPU cores, 3.5 GB of RAM and a 30GB hard disk, but you could get away with much less than that.

My first attempt to start the VM gave me a "failed to start 0xc0000225" error, so after a bit of searching I found I needed the "Enable IO APIC" Virtualbox option turned on.  I also needed to change the default network card emulation to an Intel Pro/1000 card as Windows didn't detect the default one VirtualBox chooses.

First impressions are quite good, although some screens seem to give you no obvious way of getting back to where you came from (until you realise you can move your mouse to the bottom left corner to get a menu).  Apart from the new Metro UI it looks very much like Windows 7 underneath, and the new Visual Studio looks identical to 2010 except for a new project types.  I look forward to playing with .NET 4.5 at work though, as the change list looks interesting.

I like the new settings pane which pops out on the right hand side and gives you context aware settings, and overall it seems quite smooth in operation, although some things didn't work on my machines, like the news app, and the designer for a new Metro Visual Studio application wouldn't load - but overall not bad for a developer preview.

I can't see it tempting me away from my GNU/Linux system though, due to the breadth of choice that a Linux system gives you, my idealistic views on software freedoms and because Microsoft will expect you to pay for it :-)

Scientists go on trial next week for failure to predict earthquake

Scientists go on trial next week for failure to predict earthquake - Susan Watts - BBC News

Saturday, 10 September 2011

The Prey anti-theft system

After many mentions on LifeHacker and at work (thanks Mike!) I've decided to set up all my systems with the Prey project

This website and open source application allows you to register up to three devices for free, which check in to the website at regular intervals to verify they're still where they should be.  The moment you notice them missing (or stolen) you can mark that device as missing, and then the next time prey checks in, it'll be activated.

Prey can be configured to send emails, take screenshots, lock your system, and best of all, use nearby WiFi and geolocation to work out its location.  Read How I got my stolen laptop back within 24 hours to see it in action.

The free version offers support for three devices, which is just right for me (desktop, netbook and android phone) and supports most common operating systems, including (crucially for me) Linux.  You can pay for more devices and more features if you need to.

Set up on Android was dead easy, just download it from the market and enter your Prey username and password.  My two Debian Linux machines were slightly more tricky.

I run Debian testing on my desktop machine, and prey was in the repositories (apt-get install prey), but it seems to install it in /usr/lib rather than /usr/share (as the website says).  It also doesn't automatically set up the cron job that checks in every 20 mins.  My Crunchbang (Debian based) EEEPC netbook didn't have it the repos, so I had to download it from the website and unzip it to /usr/share/prey.

The command to install the cron job is in the README file (which I didn't read first), however everywhere in the documentation and the website seems to talk about an "installer".  I'm guessing that the installer is in the windows version (and possibly MacOS and Ubuntu) but I certainly can't find it in the vanilla Linux installer.  You therefore have to figure out what to put in /usr/share/prey/config and then ignore the warnings and create the device manually in the control panel on the website.

The API Key is (fairly) easy to find under the "Account" section of the website, but it took me a while to figure out that the Device Key is the bit in the url (e.g. the abcd12 in http://panel.preyproject.com/devices/abcd12) and NOT the name that you give the device when you set it up.  I'm sure if I was able to find the GUI installer that'd all be set up for me, but it's a shame that the instructions on the site seem to depend on this being there and they seem to ignore the manual set up route.

I'm still not sure if I've got all the config right, but at least the devices are reporting OK on the website and there's no errors in the logs.  Some more testing is needed to make sure it'll all work if I pretend it's been stolen.

So, I've spent a few hours setting up something I hope never to have to use, but I think it's worth it for the peace of mind.


Wednesday, 7 September 2011

Understanding Evolution: 17 Misconceptions and Their Responses

I found this blog post on RichardDawkins.net, it makes for an excellent set of rebuttals to common questions on evolution for the times when you haven't got time to recite the whole of The Greatest Show on Earth:
Evolution is one of the best supported, most elegant, and most powerful theories in all of science. As it stands, it is the best explanation that we have for the diversity of life on Earth. Understanding evolution, as a scientifically literate society, is then a primary goal for anyone who was ever at least curious about the various forms of life we encounter. However, because evolutionary facts are thought to step on the toes of modern religious interpretations of life’s diversity (that all humans came from the interbreeding of a family generated from a rib bone, for example), there are many misconceptions that have been thrown in the way to act as obstacles to true understanding.

Tuesday, 6 September 2011

Freddie Mercury Day

From the Google YouTube blog: In honor of Freddie Mercury’s 65th birthday this week, the band is sharing the concert film Queen - Live At Wembley Stadium in its entirety on Queen’s official channel for 48 hours. Widely considered one of the great concert films of all time, Wembley Stadium captures the band at the height of their powers, even though their greatest albums were arguably behind them. Mercury’s charisma is stunning: when he leads the stadium in an a cappella sing-along, you can only marvel at hearing tens of thousands of people willingly following his lead.

Monday, 5 September 2011

First post!

Well, here we go.  Not sure how much qudos I get for having the first post on my own blog, but there you go.

So, why yet another blog?  Well, mostly just to rant and to think out loud, but also because it's yet another thing to sign up for on the web, and I'm a bit addicted to new stuff.  (The whole process is made a lot easier when you've got LastPass)

I would love to be starting this on my own domain, on my own fantastic paid hosting but I fear with a wife and two kids, my development time to write it (the code not the content) would be limited, and I would struggle to reproduce what the Google engineers give me for free.  Also, I've been through the phase of needing to write everything myself, and wasted a lot of time doing so (although I have learnt a lot).

So, until the next post, welcome.