Make Thunderbird E-mail Signature Appear Below Reply

For some unknown reason (and please do comment below if you know why!) Thunderbird both defaults and recommends e-mail signatures to appear at the very bottom of the e-mail – i.e. below the original e-mail you’re responding to, rather than below your reply.

This seems completely counter intuitive and barmy to me. If you’re feeling the same, then no fear, there is an option that you can change to join the “non-recommended” e-mail signature club.

When in Thunderbird, select the ‘Tools’ menu from the menu bar and select the ‘Account Settings’ option:

Tools -> Account Settings

Navigate to your account in the left hand side list and select the ‘Composition & Addressing’ option:

Account -> Composition & Addressing

Under ‘Composition’ you will notice an option – ‘and place my signature’:

Composition -> ‘and place my signature’

Here’s the ‘below the quote’ recommended option that selected. Click on the drop down to reveal the other options and select ‘below my reply (above the quote):

‘below my reply (above the quote)’ option

Once selected, hit the ‘OK’ button at the bottom of the screen and now your e-mail signature will appear below your reply rather than below the whole e-mail chain:

Composition & Addressing Preferences in Thunderbird

Can I Delete hiberfil.sys?

TL;DR

Yes.

Run command:
powercfg -h off

So, I Found This File…

I’m going to presume as you’re here it’s because either you’re wondering what hiberfil.sys is or you’ve gone ahead and tried to delete it and got a scary ‘this file is in use’ style message. Or maybe even a less helpful ‘sorry you can’t do that now’ type message.

Yes you can delete it, but deleting it via Windows Explorer isn’t going to cut it for this bad boy.

What Is It?

It’s a file used by Windows when you hibernate your computer. If you don’t ever hibernate, you don’t need it. However, Windows will maintain this fairly beefy file whilst the option to hibernate is available – and automatically delete it once disabled

What’s The Magic?

Open command prompt and run the following command:

powercfg -h off 

This will simultaneously disable hibernation mode and blast hiberfil;sys into oblivion. Do not pass Go, do not relocate via the Recycle bin.

Space may not longer be at the cost premium it once was, but you’ve likely got another couple of DVD sized chunks free on your disk – which always comes in handy.

Now, time to install that new game…

WHM – Protect Your Hosting Accounts From Spam

We all get spam. It’s very annoying, and ever increasingly time consuming. Particularly if you’re a reseller, you’ll probably have realised now that your customers depend on you to look after them and look to you for advice on how to configure their hosting accounts to best protect them.

Here’s a quick and simple way to protect your users (and yourself!) from a deluge of spam.

In WHM, head to the ‘Exim Configuration Manager’ under Service Configuration:

Then scroll down to the Apache SpamAssassin Options – here you’ll find the top option is to switch on SpamAssassin globally (without the option for users to turn it on). By default, a spam score of 5 or more (balanced between aggressive and loose spam identification scores) will result in a ‘SPAM’ heading being added to the e-mail.

This then allows an e-mail filter to be easily set up to allow users to easily dump spam in their trash without having to read it for themselves!

PHP-GTK Tutorial: Creating menus in PHP-GTK using GTK+

This article is brought to you by Ben Stones, guest editor for DPS Computing Ltd.

What is PHP-GTK?

First and foremost, what is GTK+? GTK (short for GIMP Tool Kit) is an extensive library of methods for creating cross-platform graphical user interfaces using the GTK+ library with a language of your choice. There are extensive language bindings to GTK+ – from Python, to C++, C# and much more – including PHP-GTK.

PHP-GTK is not as widely used as one would hope, but there is a community of PHP-GTK developers and the #php-gtk channel in Freenode is a good place to get help on matters concerning PHP-GTK – although sometimes you may be waiting a short while for a response – but the channel is active daily.

So with the ease and use and flexibility of the PHP programming language – one would wish it could be used to create desktop applications. And of course, with PHP-GTK, this is possible using the GTK+ library. Installing PHP-GTK is not as easy as it could be; although for Windows users, you’re in luck – there are pre-compiled binaries for you to download and use without requiring any complicated installation procedures. However, for installing on Linux distributions, it is fairly easy. If you Google “How to install PHP-GTK on Ubuntu” you’ll find a post on another forum with instructions on how to install PHP-GTK on Linux distributions, including Ubuntu.

How do I create menus in PHP-GTK?

Creating menus are not as simple as you would first imagine. But once you understand how the methods work, it will make sense. Essentially, the GtkMenuItem is not just for menu items within a menu option. They are also used to create a top-level menu item, too. Let’s take a look at some sample PHP-GTK code.

// add menu bar
$this->addMenu();

public function addMenu()
{
/* create the menu */
$file = new GtkMenuItem(“File”);
$help = new GtkMenuItem(“Help”);

// create the menubar
$menubar = new GtkMenuBar();
$menubar->append($file);
$menubar->append($help);

// append the menu options
$menu = new GtkMenu();

$menu2 = new GtkMenu();

$open = new GtkMenuItem(“Open”);
$this->menuSaveItem = new GtkMenuItem(“Save As…”);
$quit = new GtkMenuItem(“Quit”);

$about = new GtkMenuItem(“About”);

// connect the signals

$quit->connect_simple(‘activate’,array($this,’menuOptionClicked’),”quit”);
$open->connect_simple(‘activate’,array($this,’menuOptionClicked’),”open”);

$menu->append($open);
$menu->append($this->menuSaveItem);
$menu->append($quit);

$menu2->append($about);

$file->set_submenu($menu);
$help->set_submenu($menu2);

$help->set_submenu($menu2);

$this->init_vbox->pack_start($menubar,FALSE,FALSE);
}

Original publication – August 2012.

Disclaimer: DPS Computing Ltd., its employees and the author of this article disclaims all liability with respect to the accuracy, reliability and security of any application code and routines that are provided in this article, as well as in respect to the accuracy and reliability of the article itself. We cannot guarantee that the application code in this article will work as expected or not cause any damage to your operating system, any software or not cause loss of, or damage to, data. Your use of the application code and routines provided in this article is at your sole risk and responsibility.

Sky+ Box – No Signal / Won’t Switch On Fix & *KEEP* your existing recordings

SkyMany of us have Sky+ boxes of all different varieties – old ones, new ones, white ones, black ones, Amstrad, Thompson, HD, wireless etc etc.  The majority of us will also have had problems with our Sky box from time to time – I don’t think I’ve met anyone yet who has had Sky for a year or more who hasn’t had any problems.

Of course you can ring Sky – or nowadays, do a LiveChat online, but this can be a frustrating experience to say the least.

One of the most frustrating problems has to be when your Sky box won’t power up (switch on) properly, it becomes unresponsive or you get a constant ‘no signal’ message – even though there is actually a signal.

But fear not – don’t be reaching for your wallet to pay £249 for a new Sky box just quite yet – 99% of the time following the simple steps below will resolve your problem.

Symptoms

The symptoms of this kind of problem are usually:

  • Constant ‘No Signal’ message – even though you are sure there is a signal.
  • Box won’t switch on or freezes during power up
  • Box light stays on red or amber and doesn’t switch to green in response to pressing buttons (like ‘Sky’) on the remote or the box.
  • Box is on and/or powers up but it is totally unresponsive to both the remote control and the buttons located on the Sky box itself.

How to Fix (in relatively easy and definitely cheaper steps!)

First up, it’s the old favourite – unless you’ve already tried it, in which case feel free to move on.

Switch it off (at the plug, don’t place it in standby), leave it 30 seconds and switch it back on – see if the problem is resolved.  I know you’ve probably already tried this but it’s always worth mentioning just in case!

Now, I’ll presume most of you are here because that hasn’t worked – read on.

Note: Sky probably would be able to help you fix this after a possibly long, expensive and painful telephone call – but, based on reports I’ve heard, they suggest a solution that will delete all your recordings and clear your planner (i.e. any scheduled recordings) – whilst you may have to ultimately do this, don’t try this as the first option – it’s probably unnecessary!

Unfortunately, we’re going to have to turn the box off again if you already have – we need it to have a cold start.  Unplug your box from the wall (or take the power lead out of the back of the Sky box – whichever is easier for you).

Give it a minute – make a brew, feed the dog etc.

Plug the lead/socket back into the power and, whilst doing this, ensure you are holding down the ‘Backup’ button on the Sky box itself (not on the remote control – that won’t work).

Keep holding.  After a little bit of time you’ll notice that the lights on your Sky box come on.  After this you’re free to take your finger off the button.

Now leave your Sky box alone for a bit.  Depending on various factors this could be 5, 10, 15 or 20 minutes.  You’ll know when it’s done because the lights should go out on the box and eventually rest on the ‘Amber’ standby light that you normally see when you’re Sky box is plugged in but not switched on.

Press ‘Sky’ on your remote.

Hopefully, by this stage, you’re Sky box problem is well on the way to being fixed.  The light on the front of your Sky box should go green and you should see a message on screen – something like ‘Searching for Listings’.  Don’t worry, this is totally normal – we’ve performed what is known as a ‘soft’ reset – simply put, it’s reset the Sky box software but importantly it has retained your personal data – i.e. your planner and recordings!

After a couple more minutes a channel should appear on screen (probably the Sky Demo channel) and you are once again free to enjoy the wonderful delights of Sky.  Not only are you £249 better off but you’re also less stressed and have used less time than contacting Sky or buying a new box!

It Didn’t Work…

I’m sorry to hear that.  Unfortunately, at this stage, the next step would be to try – as Sky suggest – a ‘hard’ reset.  This will not only reset the software but it’ll also delete your recordings and planner.  This problem can usually be fixed using the method above but unfortunately, in a small number of cases, it’s gone past being fixed by a ‘soft’ reset.