General

CSS3 Validation

0

After all the modifications I’ve been making to my website, I figured I had better make sure that it’s all still W3C valid. XHTML, yes, CSS, no.

Apparently the CSS element which I used to round the borders on tables, border-radius, isn’t included in the CSS2 specification. So apparently CSS3 is the way to go.

Unfortunately the link on the banner they give you only refers to the CSS2 specification. I can’t remember the specific website I found this link on, but a quick Google will found it: http://jigsaw.w3.org/css-validator/check/referer?profile=css3

So basically all you need is to add ?profile=css3 to the end of the normal URL they give you.

 

Derryn.

Send files via PHP

0

So for no reason other than ‘I can’ I decided to chuck a few ‘Trance in Motion‘ sets onto my server. Soon after I realised how dangerous that could be for my bandwidth so I set off to look for a hot-link protection solution.

I searched the web for hours and I just couldn’t find the right keywords to get it (honestly I tried everything).

After much failed attempts, I finally found a useful PHP script that allowed me to send files not normally accessible by the public and also doesnt require much to set up.

Zubrag’s Download Script.

http://www.zubrag.com/scripts/download.php

The only thing I really needed to change was the directory where the files are stored and also I had to add the MIME information for .rar files (incidently its application/x-rar if you were interested) because for some reason he limited the file types to a select few. Now I think about it, that’s actually a good idea since there could be, for example; a .htaccess file.

I should also note that despite there being multiple ways of getting apache to process PHP inside HTML, I never got it to work properly. So I ended up changing all of my site over to .php files.

I thought the W3 validation might fail after I did that, but it seems to be perfectly fine with it.

Anyway, now all my downloads are processed by http://downloads.derrynjones.com/download.php.

Now unfortunately this doesnt stop direct downloads, but it’s a step in the right direction. I think.

Actually, it also has the ability to restrict downloads to a specific address. So you can have it only allow downloads from downloads.derrynjones.com for example. Cool stuff.

Derryn,

 

 

Bodge jobs

0

Today I had a job where someone had a computer that wouldn’t turn on. Naturally my first thought is that this gonna be a problem with the power supply or at worst, motherboard failure.

Anyway I packed up a spare PSU and brought along my PSU tester and went off to see the problem machine.

First off I checked the actual power button, which did absolutely nothing. Then I checked the power supply which made the nice sparking when plugged in (which is a good thing) so there was definitely power flowing.

So then the next thing is I looked at is the power button and its connections. The clicker seemed alright, and the cable was plugged into the correct location. I completed the power button circuit by bridging both pins with a pair of pliers and bam, it fired up. Therefore the problem was traced down to either the power button, or the cable/plug on the other end.

Getting at the button was a little annoying (the case was really small and held together with plastic clips) but in the end we (my old man helped out) got there and found no apparent problems with the button itself. Something internally must’ve gone bust so to test the cable, we snipped the wires and bridged the circuit causing the computer to boot, thus proving that the switch was at fault.

From there there aren’t too many options; it’s an older machine, and I would highly doubt the exact button would be found at Dick Smith or Jaycar for that matter.

Another option is to replace the case for about $50 or so, which isn’t too bad, though it may not work out considering the current case seems to be made for the hardware.

Dodgy option #1: get a new switch that doesn’t actually match but drill a hole or something into the case and wire it through.

Now dodgy option #2 is what I went for, and to be completely honest, I really think I’ve outdone myself this time; I realised when you plug in the power to the power supply, the fans spin up and turn off. This gave me an ingenious idea, I went into the BIOS and luckily it had the setting that enables the computer to turn on in the event of a power outage.

So basically I told the owner, pull the plug and plug it back in after a few seconds (so the capacitors drain) thus the BIOS thinks a power outage has occurred and on it goes; I’m amazed that I thought of it actually.

Anyway, its only temporary, but hopefully it will work until they get a new computer or maybe we find a replacement switch.

 

Derryn

 

Go to Top