Blog

  • Phone list test

    After my recent post about making changes to your phone line to improve broadband performance, I thought I’d mention a helpful test facility that allows you to hear a quiet line (and hence check if there is any interference).

    To access…

    1. Unplug anything that plugs into your BT master socket.
    2. Plug a normal touch tone phone directly into this socket.
    3. Dial 17070 (If you have your “Caller ID” withheld, then the test system won’t know who’s calling (it will probably say there is no CLI detected). To temporarily override this, dial 1470 before 17070.), press option 2 (quiet line test).
    4. You should hear ‘Quiet Line Test’ and then silence.

    Hopefully, there should be no pops, clicks, whistles, buzzing, etc. If there is, though, make sure it’s not your phones connection to the socket (wiggle it about a bit) and that you are using the master socket.

    If you are sure it’s the line making the noise then ring BT and report the fault – they should be able to sort it out. Remember that misreporting a fault (e.g. if it turns out to be your phone, extension cord etc.) may be chargeable.

  • Firefox and blank tags

    Firefox 3 is great. Particularly the new tag facility for bookmarks.

    However, it would appear that this initial version is, possibly, a bit buggy. I say “possibly” because after reading some of the forums it would seem that these may not be bugs but intentionally done to “save the user from themselves”.

    Let me explain.

    This came about when I accidentally created an empty tag. I don’t know how, but I’ve recently found one way – delete it from the list of tags in the “Organise Bookmarks” window. Any shortcuts that had the tag in it will have it replaced with an empty one. This tag is then listed as “(no title)”. Now try and delete it. You can’t? No, and if you’re using Foxmarks, it will cause synchronisation to fail.

    I looked for all sorts of solutions but, in the end, the easiest was simply to start again. And what I mean by that is to create a new Firefox profile, re-install all my search engines and plugins and then use Foxmarks to download all my bookmarks again from their server. Once done I deleted my original profile. It’s not neat but it works.

    Anyway, it would appear that deleting tags generally can be a bit, erm, hit and miss. However, the suggestion is that this has been done on purpose to save the user from doing it by accident. Erm, yes. Ok. Doesn’t really make sense to me and I can only hope this issue gets fixed.

    Why, for example, if I delete a tag is an empty one created for all those bookmarks that use it? Why isn’t the tag simply removed?

    Maybe we’ll never know.

  • Recording video from a Nintendo DS

    My daughter asked me last night if there’s a way to record quality video from a Nintendo DS.

    After some digging I found that the only way to connect a DS to a video camera properly involves taking the DS apart, soldering and a general high-knowledge of electronics. My hope was that there some sort of GBA cart that would plug in and provide the facility.

    However, I did come across the following video on YouTube which is a simple but genius alternative…

    [wp_youtube]3xT8UfwrvSE[/wp_youtube]

    This would cover the picture – quality sound that doesn’t pick up your button clicking and nose sniffing can be achieved simply by connecting your DS headphone socket to your PC – you will need to record the video and sound at the same time but from different sources.

  • Webpage language translation

    Google provide some excellent tools for adding translation facilities to your website. They also provide browser tools so that you can quickly translate a page that you might be on.

    With that in mind they’ve taken the appropriate step of adding facilities for web developers to override this.

    For example, to stop translation on a section of your site add class="notranslate" to the appropriate tag, such as DIV or SPAN.

    To prevent translation on an entire page, add the following to the <HEAD> section…

    <meta name="google" value="notranslate">

  • Finding the number of users online

    I often wondered how sites detected the number of users online. After some digging I’ll admit to be no closer to the answer. The problem is that once a page is delivered to someone you have no idea what they’re doing unless, and if, they then do something – go to another page of yours, click a button, etc. They could have immediately left the site and gone elsewhere… you simply don’t get back the level of interaction that would tell you this.

    So my solution was based on simple maths. Using Google Analytics and the like I work out how long an average user spends looking at a page on the site. Let’s say it’s 90 seconds.

    I’m using PHP and MySQL for this example. So, create a new table named users_online and create two fields for it – the first named timestamp and the second ip_address.

    With your database already open execute the following PHP, pre-setting the variable $online_seconds with the figure we discussed a couple of sentences ago (in my example, 90). This should be at the top of each page.

    $timestamp = time();
    $timeout = $timestamp-$online_seconds;
    $insert=mysql_query("INSERT INTO users_online VALUES('$timestamp','$REMOTE_ADDR')");
    $delete=mysql_query("DELETE FROM users_online WHERE timestamp<'$timeout'");
    $result=mysql_query("SELECT DISTINCT ip_address FROM users_online");
    $user_num=mysql_num_rows($result);

    This will add the period of time (90 seconds) to the current timestamp and insert a row into the table with that as a “timeout”. We then delete any rows where this timeour has now passed. Finally, we read the number of distinct IP addresses – this is the number of users currently online and is returned as $user_num.

    How does this work? Well, the idea is that after 90 seconds if the user hasn’t moved onto another page or refreshed the current one then they’re gone. If they do, a new row with their IP address is created and they’re counted once more as still being active. Quite simple really. Possibly not the most accurate but without using host-side JavaScript, for instance, then I’m not sure how you would.

    If nothing else it’s handy to have an idea as to how many people are online before you upgrade your site and potentially break it 😉