Archive Page 2

02
Jul
07

Lame Fireworks

Okay, so the fireworks were terrible.

We got there late as well, so they were half over.

Really, bad.

Advertisements
01
Jul
07

Happy Canada Day!

Wow, it’s Canada Day already. Seems like it was just a few months ago that the last Canada Day took place.

It’s usually a happy time but this year I have something to feel sad about. My friend Alex’s aunt passed this year, a few months ago. I had the pleasure of meeting her last Canada Day, and it’s really sad she’s not about to enjoy another year. 😦

Anyway, I’m going to attend the fireworks show tonight, so if anyone wants to come along, just tell me! Also, I’ll have pictures from the fireworks later tonight as well.

Enjoy it, Canadians!
Brad

27
Jun
07

The Best News Anchor Of Them All

Click To Watch Video

This is simply priceless.

25
Jun
07

Do want!

My next thing to aim for:

http://www.costco.com/Browse/Product.aspx?Prodid=11092927&whse=BC&topnav=&browse=&lang=en-US&s=1

23
Jun
07

Thanks Where It’s Due

Right now at Blabber, we’re concentrating on the comment’s system (coincidently the same time Digg is working on their new one) which features a simple “Ajaxified” reply system. I, of course, had a lot of trouble getting AJAX callbacks to work. Luckily, Will was there to request me to use SimpleJax. This is a lightweight AJAX library available for download here. I really recommend this library as it’s incredibly easy to use. Definitely helped me out a lot. Blabber will definitely use this on top of Prototype JS and Script.aculo.us.

20
Jun
07

Checking A Password Strength

Tonight I wrote something pretty nifty in PHP, and pushed it out to the /dev/ section of Blabber. I’d like to show it, and even tell you how it’s done. 🙂

I wrote a script that checks the strength of a password. This strength is ranked by the consistency of letters and/or numbers, and the use of special characters in the password. It’s a pretty neat script, and it uses regex to calculate the strength.

Here is a link to the live, working version of the script: http://www.blabbernet.org/dev/pass_strength.php.

I used a function to make it easy to call to, as well:


function passStrength($string, $strength = 0) {
$expressions = array(
'#[a-z]#', // lower-case chars. from a-z
'#[A-Z]#', // upper-case chars. from A-Z
'#[0-9]#', // numbers from 0-9
'/[¬!"£$%^&*()`{}\[\]:@~;\'#?,.\/\\-=_+\|]/' // special characters
);
foreach($expressions as $arg) {
if( preg_match( $arg, $string, $find ) ) {
$strength++;
}
}
return $strength;
}

Now, if we’re going to make a full script that checks password information from a form, and prints out its strength, we’re going to want a function to format the strength outcome, since right now it would just print out a number from 1 to 4 (1 being weak, and 4 being strong).


function formatStrength($strength) {
if($strength == 1) {
return "weak";
} elseif($strength == 2) {
return "mediocre";
} elseif($strength == 3) {
return "good";
} elseif($strength == 4) {
return "strong";
} else {
return "not found";
}
}

From there, you should be able to figure out how to get this into your registration form or what not.

That’s all for now,
Keep on Blabbering

– Brad

15
Jun
07

Summer!

After finishing my French exam today, I ran out of the school in excitement. Ahh, summer.

It begins tonight with an all-night hackathon with Tubby, which should be a load of fun. I’ve bought Red Bull for it and everything. In this hackathon I’ll probably manage to push out some new features. This will definitely speed up the process of development.

Meh, I’ve written enough all week. Hands are tired.

Keep blabbering, internet.

– Brad