Who reads my blog?

According to Feedburner, at the time of writing I have 44 readers subscribed to my blog’s RSS feed. I have no idea how accurate this is, so I’d like to run a little experiment.

If you are a subscriber to this site’s feed please post a comment on this post with your name. If you don’t want to leave your full name then just leave an alias, but please use a valid e-mail address so I know you are a unique reader. If you want to give me any feedback about the things I write about, then now is also your chance!

Thanks Guys!

Bupa London 10K 2008

Aimi and I completed the Bupa London 10K yesterday, and now I’m thoroughly knackered! Thanks very much to everyone who sponsored us.

We completed the race in a little over 1 hour (1:00:27), meaning that we came 3734th/3735th out of 12,500 entrants. Together, we raised over £950 for the Mental Health Foundation.

Here are some facts and photos from our race:

My results:

Runner No.: 7663
Position (Overall): 3734
Position (Gender): 2586
Position (Age group): 553
5k: 00:30:49
5k-10k: 00:29:38
Finish Time: 01:00:27

Aimi’s results:

Runner No.: 7662
Position (Overall): 3735
Position (Gender): 1149
Position (Age group): 123
5k: 00:30:49
5k-10k: 00:29:39
Finish Time: 01:00:27

Facebook Virus – Super Potent Legal Bud

In the past 24 hours, 2 of my facebook friends have posted a spam comment on my wall:

“Found some super potent legal bud at http://www.b_bzop.co_ !!”

So it would appear that either their accounts have been hacked, or they have some spy ware on their machine that is hijacking their sessions and posting comments while they browse around the site.

If you think your facebook account might have been hacked, then you should change your password to a more secure one, and run a virus checker on your machine!

Runaway Inflation

The Bank of England released it’s quarterly inflation report today, and it paints a pretty gloomy picture. Inflation is set to exceed 3% for most of the rest of the year, obliging the Bank of England’s governor, Mervyn King, to write a series of explanatory letters to the Chancellor.

As part of their report, The Bank release a fan chart which projects the likely probabilities of a given inflation rate in future years. I thought it would be interesting to look back a few years and to see how accurate their projections were.

Thanks to the emergence of China as the world’s biggest manufacturer of goods, inflation was kept at bay during the late 90s and early 2000s, but at the beginning of 2005 it began to move upwards. The Bank’s central projection showed inflation rising above 2% during 2005 but falling back to below 2% in 2006.

Sure enough, it did do this. The Bank then projected a couple more blips above 2% before falling back to it’s 2% target in 2007…

Unfortunately, this time the Bank got it wrong, and rather than blip above 2%, inflation soared to 3%. The Bank thought this was only a temporary problem, and predicted that inflation would fall back to 2% by 2008.

Inflation did have a brief drop below 2% during 2007, but it now seems that’s its back well on its way toward 3% and beyond…

Water Conditioner Road Test

Background

Magnetic water conditioners are used to treat the effects of hard water. They work by creating a magnetic field that causes the calcium carbonate (limescale) that is naturally found in water to remain in solution, thus preventing it from furring up as scale inside water pipes.

Science

This method of water treatment is a controversial subject. Although they have long been used in industry, the science is not yet fully understood and so there is no authoritative word on how effective they are.

There is however, plenty of anecdotal evidence to suggest they work, and one UK based supplier, Water Improvements Limited, has even commissioned a laboratory trial by the Department of Chemical Engineering at the University of Bath to verify their effectiveness.

The trial was conducted over 30 days with two systems of copper pipes. One system was attached to a Waterimp water conditioner, the other was a control system with no conditioner. At the end of the trail there is a clear difference in the amount of deposition of scale on the two pipes.

Figure 1 shows the pipe system after 30 days with a waterimp attached.

Figure 2 shows the control pipe system after 30 days (no waterimp).

The trial found 3 main conclusions:

  • The device was shown to reduce the deposition of scale under the conditions tested. This was confirmed by analysis of both total dissolved solids (TDS) and conductivity in parallel trials using a simulated domestic hot water / radiator heating system.
  • The device prevented the deposition of approximately 10 mg of scale/day for 30cm length of 1 inch pipe under the conditions tested.
  • The device was shown not to effect the pH of water passing through piping where it has been installed.

Road Test

So, armed with this information and the wealth of positive testimonials that WaterImp have on their website, I decided to give their basic unit, the Elf, a road test. I live in a 3 bedroom property, so according to their site, this should be sufficient.

Southern England is mostly a hard water area and as a consequence our shower doors are constantly covered in a thin film of limescale:

I have now installed the Elf, coiled around my mains inlet pipe underneath my kitchen sink, and I plan to see over the coming months how well it does. Unfortunately for me, the mains riser in my house is located in a bit of an awkward position, with little access space. However, once I managed to get to the plug socket behind my washing machine, installing the unit itself was incredibly easy. Once it powered up, the LEDs flash happily in a variety of sequences to indicate the circuitry is functioning.

I will post the results of my road test later in the year. I’m aware that it doesn’t work for everyone, but hopefully I will be able to join the army of enthusiasts that swear by theirs, and banish limescale for good. Of course, the Elf comes with a generous 190 day guarantee so if it doesn’t work I can always send it back.

Asterisk – Outgoing calls rejected because extension not found

I had been having problems making external calls from my asterisk box. When I initially set it up, I used the asterisk-gui to setup a service provider for outgoing calls. This automatically appended the following context to extensions.conf

[numberplan-custom-1]
plancomment = Default DialPlan
include = default
include = parkedcalls
exten = _0XXXXX!,1,Macro(trunkdial,${trunk_1}/${EXTEN:0},${trunk_1_cid})
comment = _0XXXXX!,1,test,standard

However, since the default context for users is default, and the [default] context did not include this custom context, the calls weren’t being routed. This was giving the following error:

Call from '6000' to extension '08448160000' rejected because extension not found.

The simple way to fix it was to include the custom [numberplan-custom-1] context within the default context:

[default]
;
; By default we include the demo.  In a production system, you 
; probably don't want to have the demo there.
;
include => demo
include => numberplan-custom-1
exten => 1571,1,VoiceMailMain

Asterisk – Rejected incoming IAX connection

I was having trouble getting an inbound IAX connection to connect successfully to test my asterisk box. The asterisk console was showing the following error:

 Rejected connect attempt from 213.166.5.129, who was trying to reach '448448160404@'

After some hacking around it turns out that the username in the IAX address must match the [header] name in iax.conf, even though you specify the username separately.

E.g. if your iax address is something like IAX2/xxxx:[email protected] then your iax.conf defintion will need to be:

[xxxx]
type=user
context=inboundmagrathea
username=xxxx
secret=password

I also added the inboundmagrathea context to extensions.conf

[inboundmagrathea]
exten => 448448160404,1,Dial(SIP/6000)
exten => 448448160404,2,Hangup

Learning Asterisk

In preparation for the launch of a new Fubra VOIP service later this year, I decided that it would be wise if I knew a little more about asterisk (our chosen PBX software). Although I’m not building the underlying phone system (we have an asterisk expert working on that), nor the user control panel (our in-house developers will be doing that), I think it’s always helpful as a director of a technology company to have a fairly in-depth knowledge of your systems.

So over the next few weeks I will be installing an asterisk PBX at my house, and setting it up to make and receive calls via VOIP to the PSTN and beyond.

We’ve been using asterisk in our office to power our phone system since 2005, and so I’ve gotten pretty good at configuring Snom phones and other sip devices, but this is the first time I will have actually tried to setup an asterisk box from scratch.

Setting up asterisk-gui on Ubuntu

Tonight I had a go at installing Digium’s asterisk-gui. I followed some instructions from Asterisk Guru, but then had to apply a fix at the end because the static-http folder was in the wrong place.

Installation Instructions

Download the asterisk-gui source code from SVN:

mkdir -p ~/downloads/asterisk-gui
cd ~/downloads/asterisk-gui
svn checkout http://svn.digium.com/svn/asterisk-gui/trunk .

Compile the source code:

./configure
./make
./make install

Backup your asterisk config:

cp -r /etc/asterisk /etc/asterisk.backup

Install the sample settings if you wish (this adds things like a list of VOIP providers to use as a PSTN gateway).

./make samples

Edit /etc/asterisk/manager.conf to enable the web management interface and to add a user:

enabled = yes
webenabled = yes
[administrator]
secret = YoUrPaSwOrD
read = system,call,log,verbose,command,agent,user,config
write = system,call,log,verbose,command,agent,user,config

Edit /etc/asterisk/http.conf to enable asterisk’s mini webserver. If you are accessing from your local machine use 127.0.0.1 otherwise you might want to bind to a public ip, but be aware this is less secure.

enabled=yes
enablestatic=yes
bindaddr=127.0.0.1

Run make checkconfig to verify your configuration settings:

./make checkconfig

I then had to do an additional step to link the static http scripts folder to inside /usr/share/asterisk as it seems asterisk was looking in here instead of /var/lib/asterisk/

sudo ln -s /var/lib/asterisk/static-http/ /usr/share/asterisk/

After that you should be able to login to the control panel at http://127.0.0.1:8088/asterisk/static/config/cfgbasic.html (replacing the IP address with whichever one you chose).

Missing asterisk config files in Ubuntu / Debian

If you install Asterisk on Ubuntu via apt-get, and then remove it and re-install again, you may find that you are missing the all the config files in /etc/asterisk.

This is a bug in the debian asterisk package that means that the config files are deleted when you remove the asterisk package even though they are part of the asterisk-config package.

To fix it simply run the following commands: (NB: This will nuke any asterisk installation you have)

sudo dpkg --purge asterisk
sudo dpkg --purge asterisk-config
sudo apt-get install asterisk-config
sudo apt-get install asterisk