Josh (the blog)

I’ve delivered simple, clear and easy-to-use services for 20 years, for startups, scaleups and government. I write about the nerdy bits here.


@joahua

Windows XP upgrading…

Irony is, the thing that didn’t work was something that’d been paid for. Again. That’s twice this has happened now.

Pop the disc in, over a perfectly legitimate install of Windows, to wipe and upgrade (from within the installer, so it can detect Windows first). Naturally, it doesn’t work. So I pull out a legitimate Windows disc to flash at it. Of course, it doesn’t work. On one of the installs, it wasn’t even an OEM modified disc (I’ve got a Windows ME disc here from Gateway which it also choked on, later) — but alas, it would not work.

Aharrrr! Thar be pirates lurkin’!

Eye candy. Image of pirate ship with Windows logo.

A quick sail over to them thar dangerous peer-to-peer waters quickly patched up the problem, especially when I can download an OEM disc image (~400MB) faster than Windows XP actually installs. Not that anyone ever would, of course. Yarrrrrr!

It’s now installing rather happily, just for the record. And there are separate licenses for each of the computers Windows XP is being installed on (or has been installed on), and the pirated copy of Windows 98 isn’t in use… but it sure simplified the installation process! Thank you, Gnutella!

The Dog Bunk

I’ve got no idea why there are so many dog photos at the minute, but I just have to share this — our dog has decided to employ furniture as its own bunk bed of sorts. He was asleep, but by the time I ran to get the camera he’d been woken up, and looked towards the camera as he heard the zoom go…

Our dog, on his dog bunk.

A holistic approach to accessibility

In light of the Digital Divide, what can the “web standards” community be doing to ensure most accessible practices are employed?

  • Understanding that the Digital Divide is as much about training and usability as it is about physical access and type of resources
  • Designing websites with this in mind, in terms of physical layout and usability for first-time users or users unfamiliar with technology:
    • layout of websites
    • prominence of navigation/logical structure
    • effective use of iconography/pictures/glyphs to communicate
    • content avoids use of technical jargon, or adequately explains it (i.e. IT related, not other industry specific)

Lots more could be written about this, but I thought it best to simply put the idea out there, rather than write a lengthy post on it. I may explain this at greater length at some point, but the thought just hit me as I was writing a related but not web usability oriented essay, and the distraction was too great!

A 5 line quote script in PHP

…mainly because Ben has taken too long to write his own (I don’t think he was trying, but meh… no more excuses!)

18 lines of comments, and 5 lines of code. If this is too hard to use, you shouldn’t be using PHP (or any programming language, for that matter!)

<?php #—–Simple Random Quote script——-#

Place this file somewhere servable,

and stick a file “quotes.txt” in the

same directory as it. Alternatively,

change the $quotesfile variable to

something desirable.

#

IMPORTANT: Quotes file must be

server readable. Obvious, but often

overlooked.

#

quotes.txt format is:

Quotation::Author

Use one entry per line only.

#

Output from the regex replacement is:#

<p>Quotation
Author</p>#

#————————————–#

$quotefile = “quotes.txt”; if ($quotes = file($quotefile)) { echo eregi_replace(“([^[])::([^[])”,”<p>1
2</p>”, $quotes[array_rand($quotes)]); } else{ echo ‘An error has occurred, no quotes are available at this time.’; } ?>

I hope WordPress doesn’t mess that up…

Good Friday

From Mark 15, NIV translation

Jesus Before Pilate

1Very early in the morning, the chief priests, with the elders, the teachers of the law and the whole Sanhedrin, reached a decision. They bound Jesus, led him away and handed him over to Pilate.

2“Are you the king of the Jews?” asked Pilate.

“Yes, it is as you say,” Jesus replied.

3The chief priests accused him of many things. 4So again Pilate asked him, “Aren’t you going to answer? See how many things they are accusing you of.”

5But Jesus still made no reply, and Pilate was amazed.

6Now it was the custom at the Feast to release a prisoner whom the people requested. 7A man called Barabbas was in prison with the insurrectionists who had committed murder in the uprising. 8The crowd came up and asked Pilate to do for them what he usually did.

9“Do you want me to release to you the king of the Jews?” asked Pilate, 10knowing it was out of envy that the chief priests had handed Jesus over to him. 11But the chief priests stirred up the crowd to have Pilate release Barabbas instead.

12“What shall I do, then, with the one you call the king of the Jews?” Pilate asked them.

13“Crucify him!” they shouted.

14“Why? What crime has he committed?” asked Pilate.

But they shouted all the louder, “Crucify him!”

15Wanting to satisfy the crowd, Pilate released Barabbas to them. He had Jesus flogged, and handed him over to be crucified.

The Soldiers Mock Jesus

16The soldiers led Jesus away into the palace (that is, the Praetorium) and called together the whole company of soldiers. 17They put a purple robe on him, then twisted together a crown of thorns and set it on him. 18And they began to call out to him, “Hail, king of the Jews!” 19Again and again they struck him on the head with a staff and spit on him. Falling on their knees, they paid homage to him. 20And when they had mocked him, they took off the purple robe and put his own clothes on him. Then they led him out to crucify him.

The Crucifixion

21A certain man from Cyrene, Simon, the father of Alexander and Rufus, was passing by on his way in from the country, and they forced him to carry the cross. 22They brought Jesus to the place called Golgotha (which means The Place of the Skull). 23Then they offered him wine mixed with myrrh, but he did not take it. 24And they crucified him. Dividing up his clothes, they cast lots to see what each would get.

25It was the third hour when they crucified him. 26The written notice of the charge against him read: THE KING OF THE JEWS. 27They crucified two robbers with him, one on his right and one on his left. 29Those who passed by hurled insults at him, shaking their heads and saying, “So! You who are going to destroy the temple and build it in three days, 30come down from the cross and save yourself!”

31In the same way the chief priests and the teachers of the law mocked him among themselves. “He saved others,” they said, “but he can’t save himself! 32Let this Christ, this King of Israel, come down now from the cross, that we may see and believe.” Those crucified with him also heaped insults on him.

The Death of Jesus

33At the sixth hour darkness came over the whole land until the ninth hour. 34And at the ninth hour Jesus cried out in a loud voice, “Eloi, Eloi, lama sabachthani?”–which means, “My God, my God, why have you forsaken me?”

35When some of those standing near heard this, they said, “Listen, he’s calling Elijah.”

36One man ran, filled a sponge with wine vinegar, put it on a stick, and offered it to Jesus to drink. “Now leave him alone. Let’s see if Elijah comes to take him down,” he said.

37With a loud cry, Jesus breathed his last.

38The curtain of the temple was torn in two from top to bottom. 39And when the centurion, who stood there in front of Jesus, heard his cry and saw how he died, he said, “Surely this man was the Son of God!”