30
Apr/09
3

Custom iTunes Genre Art and Language Names

Today I decided to make a custom genre icon for all of my Hebrew music. Here’s a good tutorial on how to do it: Custom iTunes 8 Genre Art.

Of course, all my Hebrew music has the genre ‘Hebrew’. Unfortunately, no matter what I did, I couldn’t get the custom genre art to work! It would work if I used the genre ‘Israel’ or ‘Jewish’, but never ‘Hebrew’.

Then I cottoned on to something. I tried the genre ‘Italian’, and that didn’t work either. Nor did ‘French’.

In short, iTunes 8 custom genre art does not work with language name genres.

Hope that helps someone. Here’s what I ended up with.

iTunes 8 Custom Genre Art

iTunes 8 Custom Genre Art

Filed under: How To, Tech
27
Apr/09
1

How to reset your Leopard Password without the DVD

Forgotten your password? No problem, here’s a way of resetting it. The bonus of doing it this way is that it doesn’t create a root user password, so it can be repeated as long as you haven’t got one.

  1. Start up in single-user mode by holding command-s while turning on the computer (this gives you root access)
  2. Type: “fsck -fy” (without quotes – ALWAYS without quotes)
  3. Type: “mount -uw /”
  4. Type: “launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist”
  5. Type: “dscl . -passwd /Users/theUsernameWhosPasswordYouWantToChange newPassword”
  6. Type: “exit”
  7. Restart your computer

That should work. If you have any problems, let me know in the comments. If you don’t, let me know in the comments.

Filed under: How To, Tech
25
Apr/09
5

God’s Design for our lives, as a PHP Script

UPDATED: Thanks to AKX for a few corrections (he’s the PHP wiz, not me)

Here’s the gospel for programmers.

Sorry about the spacing… wordpress doesn’t like tabs. Please feel free to point out any syntax errors.

var $sin = 0;
var $pricePaid = true;
var $heaven = true;
var $alive = true;
var $deathAge = 120;

// please set this variable as a boolean
var $acceptChrist =

function eatForbiddenFruit ($temptation, $resistance) {
if ($temptation == true && $resistance = false) {
$sin = 1;
$pricePaid = false;
}
}

function jesus($sinOfChrist) {
death($sinOfChrist,true);
}

function death($amountOfSinFromLife, $programmer) {

if ($amountOfSinFromLife == 0 && $programmer == true) {
$pricePaid = true;
}
else {

if ($acceptChrist && $pricePaid) {
$amountOfSinFromLife = $sinOfChrist;
}

if (amountOfSinFromLife == 0) {
$heaven = true;
}
else {
$heaven = false;
}
}

}

eatForbiddenFruit(true,false);

jesus(0);

while ($alive) {

$sin ++;

if (rand(0,$deathAge) == $deathAge) {
$alive = false;
break;
}

$deathAge –;
}

death($sin,false);

I’m thinking about expanding on this, to include all the major events of the bible. What do you think?

21
Apr/09
2

A nice little touch…

I just redesigned my home page, and wanted to mention this nice little touch I included.

Rather than update my age in the about section every time I have a birthday, I decided to do this instead:

<?php
function birthday ($birthday){
list($year,$month,$day) = explode(”-”,$birthday);
$year_diff  = date(”Y”) – $year;
$month_diff = date(”m”) – $month;
$day_diff   = date(”d”) – $day;
if ($day_diff < 0 || $month_diff < 0)
$year_diff–;
return $year_diff;
}
?>

<p>I am a <?php echo birthday(”1987-03-06″); ?> year old web developer, based on the Sunshine Coast, Queensland.</p>

Tricky… :D You like?

Filed under: Tech