Does my Eircom eFibre modem / router need to be connected to main phone socket?

This is quite a tricky one. Eircom says that your new eFibre fibre broadband modem / router must be connected to your main telephone socket but that they can move this socket by a few metres if you request it. They don’t seem very keen on moving the socket however and it seems to me that moving it isn’t always a great choice – if there are no suitable sockets to move it to then they must messily chase a cable from your main socket up the stairs and over doors etc. to a new socket, and if there are existing sockets they can’t be sure of the quality of the in-place wiring and warn that you could suffer a drop in broadband ‘power’ (whatever that is!) if you choose to use it.

Typically the normal DSL modems could be placed at any telephone socket within your house, you would just use the DSL filter adapters as appropriate. This allowed broadband customers to connect wired printers and NAS devices etc. directly to the router’s Ethernet hub. Now if this router must move to the main socket (which is often just beside the front door) then you may have a problem!

I think that one of the reasons why ericom want the modem plugged into the main socket is that they have built the vDSl filter into the module at the from of the socket – this removes the need for a separate filter but means that all other sockets within the house do not have the vDSL signal. I think that they also want to avoid going near the house’s internal telephone wiring as they can’t be sure its quality (which is fair enough).

Fibre Boradband Socket with built-in vDSL filter

Fibre Boradband Socket with built-in vDSL filter

So how can you connect your existing wired network into your new fibre broadband router if they are physically separated in this way?

Well, one relatively cheap and simple solution is to use an Ethernet over powerline adaptor to run an Ethernet connection from your modem’s hub to your hub elsewhere in the house over the mains wiring – no need for running any cables or for fighting with WiFi bridges etc. just plug one end into your eircom router and the other into your wired network.

Here is a 500Mbps device that PC World has for about 54 euro:

http://www.netgear.com/home/products/networking/powerline/XAVB5201.aspx

 

Powerline in place

Powerline in place

Cross compiling libjpeg-turbo targeting ARM for software jpeg compression

In a quest to get faster software jpeg compression on ARM I cross compiled libjpeg-turbo 1.3.0 and pitted it against standard libjpeg (libjpeg-turbo can be used as a drop in replacement for libjpeg). For 24bit rbg images of size 4096×2000, libjpeg-turbo was about twice as fast as libjpeg. Here’s how I compiled libjpeg-turbo:

First get the source:

Then un-tar it and cd into the main source directory. Then configure for ARM:

And make:

The output files will be put under the directory that you specified when you configured, copy them onto your ARM device as appropriate.

New batteries for my Casio fx-580

The Software Engineer’s mate – a really good scientific calculator, I have just refreshed the batteries in my Casio fx-580, I still haven’t found as good a calculator even though it of 80’s vintage!

The keys are a bit ‘yellowed’ now, bit otherwise its powering along.

casio-fx-580-small

New Scientist Enigma 1780 and Python

Python program to solve New Scientist Engima 1780
Sometimes a body has to take a break from all this Software Engineering stuff and instead delve into some recretional programming, so with this in mind I decide to see if I could write a small python program to solve the New Scientist Enigma #1780. This enigma is kind of like suduku on an icosahedron of all things (a 20 faced thing).

Anyway it was just for fun and I wasn’t looking for the ‘best’ or most ‘elegant’ solution to the problem, just one that kinda worked! So I wrote a little program over Christmas which I got working (more or less).

I enjoyed the challenge decided to try my hand at future enigmas – only to find out that Enigma #1780 was the last one ever, the New Scientist is giving them up – which is a great pity seeing as I have only started to get interested in them.

Today I came across this site which has python solutions for tonnes of Enigmas including 1780, it was on this site that I learned that 1780 is the last enigma. They point out that there is a large archive of enigmas.

In an attempt to codify the puzzle, I decided think about the flattened out icosahedron (its net) as a grid of 4 rows of 5 triangles, in this way an individual triangle can be referenced using a pair of numbers (i, j), where i varies between 0 and 4 and specifies the triangle’s ‘column’ while j specifies its row. Next I tried to come up with some rules that would find the coordinates of all of the triangles ‘connected’ to the triangle at (i, j).

Once all of that is done solving the puzzle given a valid input net is a matter of finding an empty triangle, finding the set of numbers that can go into that triangle, picking one of these numbers and recursively solving the puzzle for the update net, if the recursive solve fails for that number we try the next number and so on….

Anyway, the solve() function is called like this:

Update, 07/02/2014
The answer to this Enigma as announced here is: 324125, thankfully the same as that announced by the Python program! Unfortunately I didn’t win the competition, but I had loads of fun trying to write some software to solve it! I might try a Haskell version next if I find the time…

sed: unsupported command e

If, when you try to use sed command to do a search and replace you get the following error:

sed: unsupported command e

Then you may have forgotten to include ‘s’ at the start of the command, e.g. this will produce the error:

While this will work ok (note the all important ‘s’):

PS Happy New Year!