Press "Enter" to skip to content

Richy's Random Ramblings

News: BBC News: Woman Blames Sat Nav for accident

As I’m in the process of slowing shutting down other sites I’ve worked on (due to time constraints), I’m reposting them here. Here’s an article from the 12th of May 2007 from “Treble R News” which was going to be a Register-esque general news site.

“A 20 year old students car was wrecked by a train after she followed her sat nav system onto a railway track”, BBC News South West reports.

News: Daily Mail: Bank Holiday Traffic

As I’m in the process of slowing shutting down other sites I’ve worked on (due to time constraints), I’m reposting them here. Here’s an article from the 3rd of May 2007 from “Treble R News” which was going to be a Register-esque general news site.

The Daily Mail has got an exclusive for you today – the shocking news is that on this bank holiday there will be “mayhem on the roads” with big traffic jams expected.

The traffic on the M25 is meant to be a “congestion hotspot”.

Wow – thanks Daily Mail, you know, I wouldn’t have thought about the roads would be busy just before a bank holiday weekend and the M25 – knowing how quiet it is normally (yep, that’s sarcasm) – being a congestion hotspot!

Techy: Firefox Exploit (sortof)

It appears there is a new Mozilla Firefox based exploit around which (as these demos shown) can be utilised to practically run anything on your computer.

However, the reason I’ve added “sortof” is that Firefox doesn’t actually trigger the exploit itself – another browser (such as Internet Explorer) has to go to a URL starting firefoxurl:// which is then passed to the command line version of Firefox which then starts the exploit. Therefore, even if you just have Firefox installed (but not in use), you are at risk.

So how can you fix this? Secunia advises you to “Do not browse untrusted sites” (yep, like that is easy – especially with third party advertisements on “trusted sites”), and also to disable the “Firefox URL” URI handler. But how do you do this?

It’s reasonably simple:

Open Windows Exporer (not Internet Explorer) and from the Tools menu select “Folder Options” menu. On the dialog that appears select the “File Types” tab.

Now in the list of registered file types find the one that says:

“(NONE)” for extension and “Firefox URL” for file type

Select it and click on delete button to delete it.
Click on “OK” to close the “Folder Options” dialog.

If the delete button is greyed out, click it anyway, click [Advanced], [Remove], Sure? [yes].

Search Engines: What does Google Analytics Bounce Rate Mean?

As many of you may be aware, Google Analytics is actually based off the old Urchin statistical gathering systems (which was a commercial available stats package). However, the new version of Analytics has a “Bounce Rate” section – but what does this mean?

Via 123-reg, I came across Google bounce factor research data is in, I found a nice summary which basically means:

  • The Bounce Rate is the rate that people leave your site for the one they were on previously (i.e. they didn’t find what they wanted on your site)
  • Google actually uses this information to tweak the search engine rankings for your site (on the basis, the lower the bounce rate the “better” your site is)
  • The overall bounce rate for the site and each individual bounce rates for each of your keywords plays a role.

Interesting – and it’s certainly one reason not to use Google Analytics (unless your bounce rate is non-existent), but in theory, it should help persuade people to build content rich sites which actually have the content on the page which the page is being promoted for (no more search for “car insurance” and ending up on adult only websites!).

Techy: Background Processes In PHP

From What You’re Doing Is Rather Desperate is a very nice way of running a background task in PHP. I’ve implemented compression of a .tar file in the following method using this code:


$ps=runinbackground("gzip -v $tarfile -c 1> ".$tmp."download.tar.gz 2>".$tmp."download.tar.log");
$count=0;
while (isprocessrunning($ps)) {
sendupdate(3,'overall','Compressing'.str_repeat('.',$count).$lastline);
$count++;
if ($count>8) { $count=0; }
sleep(1);
}
function runinbackground($command) {
#error_log($command);
$command="nohup $command & echo $!";
#error_log($command);
$PID=shell_exec($command);
return ($PID);
}
function isprocessrunning($PID) {
exec("ps $PID",$processstate);
return(count($processstate)>=2);
}

I can then monitor (within the loop) the download.tar.log file if necessary. Hope it helps someone else.