Vacuum advance hose fix with WD40 nozzle

Problem: On a trip home from North Wales, the vacuum hose in my GT6 came loose and fell on the exhaust, melting and fusing it. Nasty sluggish acceleration  resulted.

Solution: I had no tools besides a knife and no spare hose, but DID have a small can of WD40 in the boot.  Continue reading “Vacuum advance hose fix with WD40 nozzle”

Get terminal / bash prompt to show useful info

Problem: Well it’s more of an irritation. My new hosting provider does allow SSH access, but when logged in the bash prompt looks like this, regardless of which account  I’m logged-in as, or where I am:

-bash-4.2$

What I want is for it to show something like:

username@server:/current/path$

Solution: The bash prompt can be customised via a profile script, ideally anything that loads when you log in like ‘.bash_profile’, ‘.bashrc’ or ‘.profile’. If one of these files doesn’t already exist in your home directory (check with ls -la ~ to list the contents) then create one. Here is an example of creating, editing and loading a login script to show a better prompt.

Continue reading “Get terminal / bash prompt to show useful info”

Homemade 6v Conlog type alarm fob battery.

Problem: A few old 90’s alarm key fobs use 6 volt batteries made up of 4 separate 1.5v button cells. Last year I needed one quick-like – same day – for the Golf Mk3 I’d just bought. There are plenty online, eBay etc, for about £5 to £10 but I couldn’t wait 2 days for one.

Solution: Nipped down to the Pound Shop and bought an assorted selection of hearing-aid button cell batteries for a quid! Taping four AG3’s together with Sellotape or Electrical Tape didn’t make a good enough electrical connection between the cells. Turns out a piece of Heat Shrink tubing, placed over all 4, then gently shrank (shrunk?) with a lighter forces the cells together nicely! After this is done, trim the top and bottom of the tubing to make sure the battery contacts are able to make connection. Continue reading “Homemade 6v Conlog type alarm fob battery.”

Bower update failed with ‘ERR! error rolling back’

Problem: I just tried to update Bower with:

$ npm update -g bower

Which resulted in failure, and Bower wasn’t able to roll back so the install was fudged. Here’s some output of the errors:

$ npm ERR! error rolling back Error: EACCES, unlink '/usr/local/lib/node_modules/bower/.editorconfig'
$ npm ERR! error rolling back  bower@1.2.8 { [Error: EACCES, unlink '/usr/local/lib/node_modules/bower/.editorconfig']
$ npm ERR! error rolling back   errno: 3,

Solution: Firstly I stopped being a dork and remembered I’d need to add ‘sudo’ (the ‘Error: EACCES’ gives it away)… Continue reading “Bower update failed with ‘ERR! error rolling back’”

Golf MK3 Boot / Tailgate ‘grip molding’ fixing missing

Vehicle: 1996 Golf Mk3 VR6 Highline.

Problem: One of the 4 machine screws attaching the trim surrounding the hatchback / tailgate / boot lid lock mechanism was missing. This resulted in rattling, which is an irritation, but more seriously the trim bent every time the boot was opened. The original fixings are Torx headed with an integral washer.

Solution: The original fixing’s part number is N90626201 but it’s no longer available. Taking measurements from an existing fixing shows that the size is M5 x 14mm (standard 0.8 mm pitch), and fixings of this size are available all over the place. Be careful with the length, this fixing screws into a closed-head Rivet Nut welded into the panel. Continue reading “Golf MK3 Boot / Tailgate ‘grip molding’ fixing missing”

Can’t activate Spotify Premium account on VodaFone 4G Red contract.

Problem: Just bought a new VodaFone contract that includes Spotify Premium (or Sky Sports something or other), and we website / in-store / 191 support don’t seem to know how I should actually activate it.

Solution: Send a text with the word ‘Entertainment’ to 97613. You’ll get a reply from VodaFone with a link and instructions. This worked at time of posting, 5s’s are new, 4G-ready contracts are new. Expect this to change.

wp_get_attachment_image_src() is NOT working, broken, failed, blaa…

Problem: No matter WHAT I do, wp_get_attachment_image_src() is NOT working. I JUST want the featured image source of this $post->ID.

Solution: Yes is probably is working… but stupidly I’m trying to pass it the POST ID and not the ATTACHMENT ID like I should be. The Attachment ID can be found with the get_post_thumbnail_id() function, and then passed like this:

1
2
$thisimg = wp_get_attachment_image_src(get_post_thumbnail_id($arr->ID),full);
print_r($thisimg); //shows the Array of bits you need.

Duh… me.

Warning: the CA certificate does not sign the certificate – Plesk 10 and GeoTrust Certs

Problem: After requesting a renewal QuickSSL Premium cert from GeoTrust, and uploading the Cert and CA Intermediates to the Plesk 10 interface, I’m warned that: “Warning: the CA certificate does not sign the certificate”.

Solution: Don’t worry about it! No idea why it happens. If you’re confident that you’ve added the correct Intermediate files, then go ahead and use one or two SSL Checkers like www.geocerts.com/ssl_checker and http://www.sslshopper.com/ssl-checker.html to confirm it’s all ok.

Notes: If there is a problem with the CA intermediate certs, it’s worth attempting to get them straight from the horses mouth. Sometimes the Intermediate cert you are sent along with your SSL Cert order isn’t enough. For all the current GeoTrust Intermediate certs, have a look here: https://knowledge.geotrust.com/support/knowledge-base/index?page=content&actp=CROSSLINK&id=SO15690

cPanel Monthly Licensing in the UK for Rackspace Cloud Server

Problem: Ok not really a problem, but I’m trying to create a server set comprising as much UK based kit/software/support as possible. The server is on Rackspace’s UK Cloud arm.

Fix: After searching about it looks like LicensePal is a UK company.

Help me: If you found this link useful, and you’re about to order, please visit License Pal via my Affiliate link (you’ll get one also as soon as you buy anything from them): – Cheers!