Login »

Bluetrait

Search Posts

Categories

Bluetrait
    Coding
        WordPress
            Plugins
        PHP
        Bluetrait (Program)
    Geek
        Cisco
        IBM N2200 8363
        PCs
        Spam
        IPv6
        Apple
        NetScreen
        Internet
    General
        Uni

Popular posts

Click here if you are looking for Bluetrait, the weblog software.


Login

Username:

Password:

ROFL

Posted by Michael Dale on Sun, 31 Oct 2004 3:14 PM

I just got this in an email.

For those who don't know. This is our HSC Stimulus booklet that we needed to study in year 12 2004.

Thanks Kylie/Lexi :D


The internet should be made to print :(

Posted by Michael Dale on Sun, 31 Oct 2004 3:06 PM

When you print something off the internet or publish something on to the internet it just feels weird. Using print CSS helps (http://blog.dalegroup.net/archive/blog/newsid/127) but when you have typed a few thousand word thing and put it online it feels as though it is only a page or something.

It's just so depressing.

Printed stuff rules. I don't like really any large amount of text on a screen, I'll always print it. Books are even better than printed pieces of paper. That it why I want to purchase the FreeBSD handbook (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/index.html). Not print it or read it off the screen. Books > printed sheets of paper > screen.

Speaking of print. Print design, such as business cards or brochures are cool. I wish I had some graphical creative skill.

On another topic. In about 1 hour we're getting a billet from France who speaks no English and is 12 years old. Should be interesting...

...and now I've run out of paper for my printer.


Message In A Bottle

Posted by Michael Dale on Sat, 30 Oct 2004 4:08 PM

Just a castaway, an island lost at sea, oh
Another lonely day, with no one here but me, oh
More loneliness than any man could bear
Rescue me before I fall into despair, oh

I’ll send an s.o.s. to the world
I’ll send an s.o.s. to the world
I hope that someone gets my
I hope that someone gets my
I hope that someone gets my
Message in a bottle, yeah
Message in a bottle, yeah

A year has passed since I wrote my note
But I should have known this right from the start
Only hope can keep me together
Love can mend your life but
Love can break your heart
I’ll send an s.o.s. to the world
I’ll send an s.o.s. to the world
I hope that someone gets my
I hope that someone gets my
I hope that someone gets my
Message in a bottle, yeah
Message in a bottle, yeah
Message in a bottle, yeah
Message in a bottle, yeah

Walked out this morning, don’t believe what I saw
Hundred billion bottles washed up on the shore
Seems I’m not alone at being alone
Hundred billion castaways, looking for a home
I’ll send an s.o.s. to the world
I’ll send an s.o.s. to the world
I hope that someone gets my
I hope that someone gets my
I hope that someone gets my
Message in a bottle, yeah
Message in a bottle, yeah
Message in a bottle, yeah
Message in a bottle, yeah
Sending out at an s.o.s.
Sending out at an s.o.s.
Sending out at an s.o.s.
Sending out at an s.o.s.
Sending out at an s.o.s.
Sending out at an s.o.s...

[b]Sting & The Police - Message In A Bottle[/b]


Video killed the radio star.

Posted by Michael Dale on Sat, 30 Oct 2004 4:07 PM

I heard you on the wireless back in Fifty Two
Lying awake intent at tuning in on you.
If I was young it didn't stop you coming through.
Oh-a oh

They took the credit for your second symphony.
Rewritten by machine and new technology,
and now I understand the problems you can see.

Oh-a oh
I met your children
Oh-a oh
What did you tell them?

Video killed the radio star.
Video killed the radio star.
Pictures came and broke your heart.

Oh-a-a-a oh

And now we meet in an abandoned studio.
We hear the playback and it seems so long ago.
And you remember the jingles used to go.

Oh-a oh
You were the first one.
Oh-a oh
You were the last one.

Video killed the radio star.
Video killed the radio star.
In my mind and in my car, we can't rewind we've gone to far
Oh-a-aho oh,
Oh-a-aho oh

Video killed the radio star.
Video killed the radio star.

In my mind and in my car, we can't rewind we've gone to far.
Pictures came and broke your heart, put the blame on VTR.

You are a radio star.
You are a radio star.
Video killed the radio star.
Video killed the radio star.
Video killed the radio star.

[b]Buggles - Video Killed The Radio Star[/b]


Source code. Public release of mysql class.

Posted by Michael Dale on Fri, 29 Oct 2004 10:15 PM

I've decided to release the source code for the mysql class I use on this site.

http://blog.dalegroup.net/source/mysql.phps

Feel free to leech and use. I plan on adding more to my source collection in the future.

This is only a very basic class compared to others I've seen but it works well.


For future reference

Posted by Michael Dale on Fri, 29 Oct 2004 8:37 PM

SELECT news.*, COUNT(comments.newsid) AS count FROM news
LEFT JOIN comments ON news.id=comments.newsid
GROUP BY news.id ORDER BY Id DESC

...don't mind me.

EDIT: Excellent down to 0.16 from 0.26 seconds. And down to 1 query from a shocking 162 on my little test. Very very good.


Spam + htaccess + queries

Posted by Michael Dale on Fri, 29 Oct 2004 11:10 AM

I've got 6 minutes to talk about three things. Lets go!

Stuart (http://smkz.is-a-geek.net/) just got comment spammed on his website. Spammers target wordpress, movable type a lot because they are very popular and widely used. The comments submit form is standard across multiple sites meaning bots can target these. Course of action? Do what josh did, http://www.joahua.com/blog/2004/09/22/my-new-blacklist

htaccess. If you want to protect a folder from directory listing in apache add [b]Options -Indexes[/b] to your .htaccess file. Better than a blank index file any day :p

Queries counter can now be found at the bottom of this page. Need to talk about that later...


Please don't visit this site in IE

Posted by Michael Dale on Thu, 28 Oct 2004 3:55 PM

Although this site doesn't look great at the best of times, viewing it in IE will be even worse.

http://blog.dalegroup.net/archive/blog/images/ie-vs-firefox.jpg

That is only the front page too. The comment area looks more messed up. The comment box is too far to the left, the labels don't highlight when you click them and sometimes text goes missing! Bah go get a real browser.

http://www.mozilla.org/products/firefox/


RSS Formatting

Posted by Michael Dale on Thu, 28 Oct 2004 3:38 PM

My RSS was a touch dodgy (well it still is dodgy but it is better), it never used to format things, like new lines and urls etc.

Simple fix needed to wrap the content around . So yeah, formatted RSS. Funky. ;)


The glove compartment is inaccurately named

Posted by Michael Dale on Wed, 27 Oct 2004 10:54 AM

The glove compartment is inaccurately named
and everybody knows it
so I'm proposing a swift, orderly change
'cause behind its door there's nothing to keep my fingers warm
and all I find are souvenirs from better times
before the gleam of your tail lights fading east
to find yourself a better life

I was searching for some legal document
as the rain beat down on the hood

when I stumbled upon pictures I tried to forget
and that's how this idea was drilled into my head
'cause it's too important to stay the way it's been
but there's no blame for how our love did slowly fade
and now that it's gone, it's like it wasn't there at all
and here I rest where disappointment and regret collide
lying awake at night

but there's no blame for how our love did slowly fade
and now that it's gone just like it wasn't there at all
and here I rest: where disappointment and regret collide
lying awake at night; all night, when I'm lying awake at night

[b]Death Cab For Cutie - Title And Registration[/b]