Tag Archives: Software

Like the number 10 bus, one doesn’t come along at once. No, just days after a new release of +Extract, another version has been launched. This was to fix 2 niggly bugs in the previous release…

  1. Byte remaining counter wasn’t counting down properly.
  2. Small empty recordings were created (if selected to extract) if the extraction was cancelled. If ‘delete incomplete extracted files’ was checked in options then they would have been tidied up anyway. Files are no longer created now.

And two additional changes have been made…

  1. A menu option to link to the authors blog.
  2. Added an estimated time remaining for the extraction process. Use as a guide only.

+Extract is a great piece of software that will extract free-to-air programmes from a Sky HD to your PC.

The author wasn’t planning on any further releases but changed his mind so that it could support drives over 500GB in size (which is possible, thanks to Copy+). And, whilst he was at it, he fixed some bugs, made some performance enhancements and gave the GUI a spruce-up.

Not bad for free software… but please donate if you like it.

As standard, Windows will poll USB devices once every 1ms. However, this can cause the issue of laptops unable to enter the C3 processor power-saving state. By increasing the USB polling interval from 1ms to 5ms the processor can enter a C3 power-saving state during its inactivity.

There are also suggestions that decreasing the polling rate will also save energy generally. I’m not sure.

But, anyway, until I hear that all of this is some kind of urban myth, I’m willing to give it a try.

Here’s a couple of scripts (save them with .reg extensions and run them as required) that I rattled off to activate the “idle” (5ms) and also to return to “normal” (1ms)…

Activate Idle Polling Interval…

REGEDIT4
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Class\
{36FC9E60-C465-11CF-8056-444553540000}\0000]
"IdleEnable"=dword:00000001

Deactivate Idle Polling Interval…

REGEDIT4
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Class\
{36FC9E60-C465-11CF-8056-444553540000}\0000]
"IdleEnable"=-

Or download them from here.

At the moment I’m juggling 3 MySQL databases. It could very easily be more.

I usually use phpMyAdmin for backing them up but restrictions on port forwarding has meant I can’t do this whilst at work1. So, I wrote myself a script to do this. And optimize the tables as well.

An extract of the script is below… mine allows me to choose the database and compression type and then populates the appropriate database fields (username, password, etc) but for generic usage purposes, the script below should be fine for other people to use and build upon.

if ($compression=="None") {$comp_cmd=""; $comp_ext="sql";}
if ($compression=="Gzip") {$comp_cmd=" | gzip"; $comp_ext="gzip";}
if ($compression=="Zip") {$comp_cmd=" | zip"; $comp_ext="zip";}
mysql_connect($host,$user,$password);
mysql_select_db($database);
$query="SHOW TABLE STATUS FROM ".$database;
$result=mysql_query($query);
$num=mysql_numrows($result);
$compressed=0;
$i=0;
while ($i < $num) {
   $table=mysql_result($result,$i,"Name");
   $gain=mysql_result($result,$i,"Data_free");
   if ($gain!=0) {
       if ($compressed==0) {echo "<br/>Compressing tables...<br/><br/>\n";}
       echo "Table ".$table." - ".$gain." bytes gained<br>\n";
       $query="OPTIMIZE TABLE ".$table;
       $optimise=mysql_query($query);
       $compressed=$compressed+$gain;
   }
   $i++;
}
if ($compressed!=0) {
   echo "<br/>".$compressed." bytes gained in total<br/>";
} else {
   echo "<br/>No tables were optimised.<br/>";
}
$backupFile = "backup/".$name."_".date("Ymd").'.'.$comp_ext;
$command = "mysqldump --opt --extended-insert --complete-insert --hex-blob
--host=".$host." --user=".$user." --password='".$password."' ".$database.
$comp_cmd." > $backupFile";
exec($command, $ret_arr, $ret_code);
if ($ret_code==0) {
   echo "<br/>Database backed up: <a href=\"".$backupFile."\">download</a>.\n";
} else {
   echo "<br/>The database could not be backed up - the return code was ".
$ret_code.".\n";
};

Before running the above, you need to populate the following fields…

$database – your MySQL database $user – your MySQL username $password – your MySQL password $host – your MySQL host name $name – used to name your backup $compression – this is the type of compression you wish to apply and should be either None, Zip or Gzip.

When run any tables that require optimizing will be, well, optimized and the details output. Finally a backup is made of the database and a link displayed so that you can download it.

Downloads are placed in a folder named /download, so make sure you add write permissions for this folder. The filename will be xxx_yymmdd, where xxx is the name you specified in $name and yymmdd is the date. Obviously the extension will be based on the type of compression you requested.

Whilst trying to write this code I came across various scripts and resources which did something similar but often didn’t work (grrr) for one reason or another. In particular, often the backup files are create empty if you have the MySQLdump parameters wrong. One thing you might spot that I’ve worked around – and here’s my tip for the day – is that I’ve placed single quotes around the password. This was because one of my passwords had an ampersand in it and, well, MySQLdump doesn’t like it.

Enjoy, play and let me know how you get on!

  1. and I have a tendency to forget if I leave it until the evening at home []

Disk partitioning is, I have to say, not something I do. However, it’s useful, at the very least, to have access to software that will assist with this.

Symantic’s Partition Magic is probably the King of the partitioning software, but the new spritely Prince is EASEUS Partition Master. Whereas ‘Magic is $70, ‘Master is absolutely free for home use.

EASEUS Partition Master

EASEUS Partition Master

The download of Partition Magic is a little under 8MB and, once installed, takes around 33MB of disk space. It’s compatible with XP and Vista 32-bit. Once running it has an interface designed to look like a standard Windows system application, with the exception of oversized icons on the toolbar and strangely compressed menu options above.

If you’ve not used a partitioning tool before I’d recommend reading through the site and the applications help tool first, however, as it’s not obvious what to do – for once a Wizard would be welcome1.

But it does what it says, and has a few extras, such as partition copying.

The gripes… that awful font on the main window for a start. Bleurgh. Secondly, the help file is lacking – there’s plenty of pages, but for the beginner often its not explained that simple things that you wish to know (for example, what does it mean by partition copying?). But that’s probably about it.

Summary of EASEUS Partition Master

It’s free and it does its job. If I needed a partitioning tool, I’d certainly plump for EASEUS’ tool, rather than think about spending $70 with Symantic.
Star Star Star Star Star


Reviewed by David Artiss on 10th March 2009.

  1. some wizards are available but not for the basic task of creating or editing partitions []

Top
%d bloggers like this: