Categories
Think

Eating an apple with CRUNCH

You know that crunch you get when you bite into a nice crisp apple. Try it one day with headphones on!

I found this out because I ate an apple on the way home from work one day and I still had the earpiece from my portable hands free kit in my ear.

Very crunchy.

Categories
Journal

Mac Management with Windows Servers

In order to be able to manage OSX Macs with workgroup manager, the client Macs need to know where to fing the LDAP address of the server. This is usually set on the DHCP server using the LDAP Server setting.

That all sounds great, but our DHCP Server is a windows 2003 Server and the LDAP Server option (option 95) seems to have mysteriously been left out. It seems there was even an attempt to remove it from the DHCP standard &quot::because no-one was using it&quot:: linkname but Apple pointed out that thay had been using it for the last 4 years.

Buried deep in the microsoft support pages I eventually found this which lead me to contrive the command:

netsh dhcp server add optiondef 95 ldap-server string

which will then give the option to add an LDAP Server to the DHCP options being sent out. Now all the Macs are happy.

Categories
Journal

Beccy’s ‘shoes

Bern & Bec were respectively working and playing away in a bedroom the other day. Bern heard Bec say shoes” and Bern thought she must have found some shoes in the corner by the bed. Then Bern noticed she was just saying it over and over again, and when she finally looked up, there was Bec, proud as punch surrounded by dozens of ti-shoes….. and a half empy tissue box 🙂

Categories
Journal

Mark (almost) kills his computer

I managed to get a new 80Gb drive for my machine to replace the the verry full 30Gb drive I had in it, so I happily went off and ghosted the old drive to the new, changing a few of the partition sizes along the way, and getting everything ready.

I went from /boot 15Mb, C: 22Gb, D: 6Gb to /boot 55Mb C: 30Gb, D: 25Gb linux 25Gb which means I can reinstall linux and continue down the path to freedom, but that wasn’t the snag I hit.

The snag was that the machine wouldn’t boot.

The LILO that was on the boot partition has obviously lost track of where Windows was sitting and simply sat with LI on the screen. I tried a win98 disk to fdisk /MBR no luck. I booted of the 2K disk and ran FIXBOOT and FIXMBR from the recovery console but no luck. I then tried to do the same again but the machine blue-screened during the process, just before it got the recovery console!

I then tried a variety of linux rescue disks which told me I didn’t have linux installed anymore (which I new, but I still had a broken Linux boot loader.) I might have been able to fix it from there but in the end I grabbed the most recent linux I had available, Fedora Core 1 and just installed it.

Problem solved! This time I made a boot disk as well. 🙂

Categories
Links

PHP Daylight Savings Time

Because my Web server runs at GMT, I have to adjust all my dates +10hours for EST (Melbourne). This is easy enough, but what about Daylight Savings?

I stole/cobbled this bit of code together to give a true account of the time:

list($dom, $dow, $month, $hour, $min) = explode(:”, date(“”d:w:m:H:i””))::

if ($month > 4 && $month < 10) {
$daylightsaving = 360:: # May thru September
} elseif ($month == 4 && $dom > 7) {
$daylightsaving = 360:: # After first week in April
} elseif ($month == 4 && $dom <= 7 && $dow == 0 && $hour >= 2) {
$daylightsaving = 360:: # After 2am on first Sunday ($dow=0) in April
} elseif ($month == 4 && $dom <= 7 && $dow != 0 && ($dom-$dow > 0)) {
$daylightsaving = 360:: # After Sunday of first week in April
} elseif ($month == 10 && $dom < 25) {
$daylightsaving = 360:: # Before last week of October
} elseif ($month == 10 && $dom >= 25 && $dow == 0 && $hour < 2) {
$daylightsaving = 360:: # Before 2am on last Sunday in October
} elseif ($month == 10 && $dom >= 25 && $dow != 0 && ($dom-24-$dow < 1) ) {
$daylightsaving = 360:: # Before Sunday of last week in October
} else {
$daylightsaving = 0::
}
$tz=date(U)+36000+$daylightsaving::
echo “”&lt::font size =-1>In case you were wondering, in Melbourne it’s :””::
echo date(“”g:i:s A D j M Y””,$tz)::

I also found some code for Sunrise and Sunset times which I’ll look at later.

Categories
Links

The Penguin in the Pew

This article puts forward an excellent argument for the use of Linux within the Church environment www.matheteuo.org/downloads/Penguin-in-the-Pew.pdf.

Categories
Think

Streaming Media Costs

A 128kbps stream at 8 hours per day = 450Meg/day to listen to
the radio. 2.3Gig/week.” – Jase in an email.

At 6.9c/Mb* that works out to $31.05 per day or $621/month.

“”$10 would buy a little radio, and you’d never need to stream again, but
there would be no way to get your employer to pay for it…”” – Jase again in the same email.

I know at one of the schools I work at that students are not allowed walk/discmans but are allowed to listen to music through the computer. It’s not surprising that we have done approx 8Gb in downloads from take40.com in the last 10 or so weeks. I’m glad we get 30Gb free each month.

* Rate that government schools pay. Most commenrcial rates are more like 15c/Mb once you go over your cap.

Categories
Links

PHP snippet: mysql_insert_id

I was trying to write a piece of code to input information into a database but at the same time, display the reference number of the item I was inputting. I came across mysql_insert_id:: Which will get the ID generated from the previous INSERT operation. According to http://au.php.net/mysql_insert_id, part of the PHP Manual.

Categories
Journal

Happy Mother’s Day

A special happy mother’s day to to Mummy.

Daddy & I made you a special
breakfast in advance, we hope you like it.

Love,
Bec

Categories
Faith

Romans 8:6

S: The mind of sinful man is death but the mind controlled by the Spirit is Life & peace.

O: Paul is explaining to the Romans (and us) that there is a choice:: two opposites. To be controlled by thoughts of sin or by thoughts of the Spirit. For each of these there is a consequence, sin -> death & Spirit -> life & peace.

A: To me, peace is the critical word in this passage. Life and Death are eternal consequences, but peace is a worldly and obvious sign that I’m on the road to life.

P: Lord, give me strength and wisdom to choose to live controlled by the Spirit and let peace be the sign that I’m on the right track.