Apr/093
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.
Apr/091
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.
- Start up in single-user mode by holding command-s while turning on the computer (this gives you root access)
- Type: “fsck -fy” (without quotes – ALWAYS without quotes)
- Type: “mount -uw /”
- Type: “launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist”
- Type: “dscl . -passwd /Users/theUsernameWhosPasswordYouWantToChange newPassword”
- Type: “exit”
- 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.
Apr/095
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?
Apr/092
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…
You like?
