Sunday, 21 September 2014

Drying clothes = price + running costs (when will it pay off)

Running cost per year= price per kWH * kWH per cycle * 365 / 2 (i recon we'll run it once every other day)
price per kWH = 13.7p
362 / 2 * 13.7p /100 (convert to pounds) = 25

Tumble dryers:

A++ energy rating
Cost = £599
Running cost = £46

A+ Rating
Cost = £479
Running cost = £73.75

B Rating
Cost = £299
Running cost = £85

C Rating
Cost = £150
Running cost = £91

You could work out how many years the more economic will start paying off over the other by doing some algebra:

A++ energy rating cost + (running cost * years) = C energy rating cost + (running cost * years)

a + (b * x) = c + (d * x)

a - c = dx - bx
a - c = (d-b)x
(a-c)/(d-b) = x

A++ compared with C
(599-150)/(91-46) = 9.99 years

A+ compared with C
(479-150)/(91-73.75)= 20.1 years

B (other) compared with C
(299-150)/(91-85) = 24.8 years

A+ compared with B
(479-299)/(85-73.75) = 17.6 years

So, it looks like C rating is better then all of the above up until 9 years. How long will we have it for? I guess the washing machine has lasted 10 years so far and it's still going strong.

Of course if you double the amount of time you use it, you half the number of years. So after 5 years A++ will be paying off better.

Lets compare to some interesting inventions:

JML Dri Buddi
Cost = £45
running cost = (1.2kW * 3 hours = 3.6kwh) * 25 = £90

Lets compare with C rating:
(150-45)/(91-90) = 105 years

Compared with A++
(599-45)/(90-46) = 12.6 years

It's basically the same running costs as the C energy rating, but 1/4 the initial cost. Probably double up as a heater. Must be noted that it probably isn't as good as a tumble dryer though.

Because of the price difference, I think it doesn't hurt to try the Dri Buddi first. If it's rubbish, I've only really lost £70 inc running cost at most.

Another problem is the humidity problem, and we get very bad damp problems. With a dryer it gets dealt with by either vent or internally condenses it. An idea I've had is to put the JML Dri Buddi in the greenhouse. The humidity will escape through the many gaps in the greenhouse. The only problem is that it'll be colder in the winter, what will happen is the clothes will be warmer then the surroundings, and the main points are that the humidity will be low, and the surroundings will want to 'steal' the warmth via evaporating the water. Still worth giving it a go.

Final path should besites/all/libraries/infobubble/src/infobubble-compiled.js error in drupal 7

So I'm just looking through the logs and found this error in the status report:

You need to download the infobubble plugin and extract the entire contents of the archive into the sites/all/libraries directory on your server. Only the src folder is required. Final path should besites/all/libraries/infobubble/src/infobubble-compiled.js

the Link takes you to here. I'm basically going to do exactly what it says here. Sounds simple enough:

Create the file path
download infobubble-compiled.js
put in folder

Easy. Here's what happened.

Saturday, 20 September 2014

Drupal Backup and Migrate - how to (in progress)

So, I have a drupal website. I'd like to write down the process of backing up and then restoring upon a complete failure.

So, to backup just use the default backup and set to download. Save these somewhere safe. Just to be safe I also did the same for Public Files Directory and Private Files Directory.

I guess thats the easy part. For the next part I've found it hard to find any documentation on restoring from a complete failure. Here's what I have found:

Both are related to drush which is a command line shell and scripting interface for Drupal.

My best guess for restore is to install drupal, install drush and run the restore command line.

If you also lose files, then you have to make sure you have backup of all files as well.

I think what I'd really like is the backup utility used with Joomla, Akeeba. This is much easier. I don't even think you need to install Joomla to reinstall. And it backs up all files. There must be a reason it isn't as easy. Oh well.

Wednesday, 10 September 2014

Mavericks "The software for the printer was installed incorrectly" error

After reimaging a computer suite with Mavericks and installing a networked printer via "Profile Manager" mobileconfig files, the printer had an exclamation mark next to it in the print dialogue box. When a print was sent to the queue, the print queue would load up and prompt the error:

"The software for the printer was installed incorrectly.
Would you like it to be repaired?"

After clicking "Repair" you are prompted with an Administrator Username and Password dialogue box.

I needed to find a way of "repairing" all these machines via ARD or Profile Manager. Looking in console, I found that the error was due to:
"/Library/Printers/hp/filter/hpPostProcessing.bundle/Contents/MacOS/hpPostProcessing" has insecure permissions (0100775/uid=0/gid=80)"

I found this forum which mentions the fix which is to change owner and permissions.

I ran a few commands to first change the owner, which needs to be Wheel, and the permissions with need to be 755. After doing so, I needed to reboot to see if it had fixed it, only to come up with more errors due to insecure permissions of the containing folders. After continuously doing this it finally fixed it.

I ended up running a command which changed the permissions for the whole /Library/Printers folder recursively:

chmod -R g-w /Library/Printers/
chown -R root:wheel /Library/Printers/

This needs to be run as root, which is an option in ARD, or you can put "sudo" before each line.