Jeudi le 26 mai 2005, 17:28:39
Classé dans :
Personnel,
École
The end of this school year approches very fast. I made up a nice list of quotes that reminds me something that appened this year. It goes like this in a disorganized order (note that some of them are in french and that some of them shouldn’t ring a bell to you because you don’t have the context) :
- Your friendship is a fog that disappear when wind redirects you — RATM
- Have you considered growing a a moustache ? — Stewie Griffin
- Y as-tu déjà goûté ? — Pis toé ? — Max
- Cet étudiant que je suis en train de détruire… — S.L.
- J’ai eu un amour essentiel causé par un manque ; j’ai eu un manque essentiel causé par un amour — Max
- Pour l’inter-opérabilité, le couplage lâche c’est LE principe qu’il faut adopter — ?
- Being different is being yourself — A jerk (imho)
- I wish I could say the way things are — An angry man
- J’ai été parresseuse [...] j’ai pas été checker — S.L.
- (this one goes with the previous one) [...] ça aurait été plus brillant! — S.L.
- Can’t stop the spirits when they need you. This life is more than just a read through — RHCP
- Vive le conformisme! Écrivons notre nom comme les autres le font — Max
- Théoriquement nécessaire, mais pratiquement pas utile. — L.A.
- J’exprime mes émotions !!! — Max
- Il a su mourir pour… le CANADA — Mononc’ Serge
Of course, since the semester ends by June the 20th, I have plenty of time to find out more quotes. I’ll edit this post if it occurs.
Enjoy!
Lundi le 23 mai 2005, 10:20:50
Classé dans :
Programmation
MySQL exists for 10 years now. It’s been quite a while since the first line of code was written and MySQL evolved a lot. For this occasion, Mike Zinner designed a mug (which is offered in normal and large size). On the front, you find the MySQL logo with the date of the anniversary and on the back, there’s the name of every employees MySQL had or have, from Aker to Zinner.
You can order your mug here through CafePress.
Enjoy and be a geek 
Vendredi le 20 mai 2005, 21:34:09
May 20th, 1980, the first referendum for a sovereign Quebec failed. I’m too young to remember that, of course, but I can express my deception. I don’t want to make a post filled with arguments against the “No”, but I just want the René Lévesque’s spirit to live again. He was a great man who came up with a great idea : a Quebec, a country. Unfortunately, this hasn’t append yet.
Things has changed since 1980, the goal isn’t the same but the action to arrive for this purpose is the same. The actual leader of the Parti Québécois, Bernard Landry, is now convinced that we will split from the rest of the Canada with the next referendum.
The debate is still there and people don’t seem to be that conscientized. This is a sad thing because if the result is “Yes”, the future of the province of Quebec would do a U-turn. All I can do is to invite you to get information for and against a sovereign Quebec.
Although I wish a winning “Yes”, I’d like you to remember that we must stand strong and together in defeat as in victory.
Vendredi le 06 mai 2005, 3:20:18
Classé dans :
Personnel,
École
Wow! It was simply amazing. Last wednesday, I had the most magical moment of my life. It all started when one of my friends invited me to do some things outside because it was not raining (since 1 week and a half). Of course, I accepted… I needed to change my mind off the school.
We went to Photo Hénault, downtown Drummondville (rock on!), because he wanted to develop his films. The salesman told us that it would take 30 minutes. So we went to eat. On our way back to the store, he decided to buy black and white sheets to develop himself his photos in the darkroom of our college. Needless to say that I encouraged him, because I wanted to see what it was like to create “from scratch” your own photos.
I spent something like a total of 4 hours developping his photos (with him, of course… it was my first time). How magical it is to set your own contrast settings, exposing time, etc. He did some great shots too (especially the one with the bridge… how wonderful). That helped. Thanks to you C-A!
So now… I have to buy a 35mm SLR camera. I NEED to repeat that experience every once in a while. Why did people switched to digital? To see the result when you take the picture?! Hah… come on! Go back where you come from people, go back! 
Mercredi le 04 mai 2005, 0:40:45
I did a page on my blog where you can see the source of my MySQL resultset class that acts like an array by implementing some (3) SPL (Standard PHP Library) interfaces. I changed the code a little bit since yesterday (now it really works, except for the count() method as it’ll be available with PHP 5.1) so for those of you who were present at the PHPQuébec meeting in Drummondville should notice some changes.
My MySQL-rs class acts a an array (as said previously) but you can’t add any data nor delete data from it as it is read-only. This is version 1.0.0 so maybe I’ll do some changes in the future to allow you to add and delete data from it, but as for v1, it won’t change.
For those of you who actually want to learn how to work with the PHP5’s SPL, you can take a look at my class as well as those documentations : 1 2.
I did this in about 30 minutes or so, so don’t look how ugly my code is.
Here’s a little example how to use it :
[php]< ?php
$query = mysql_query('SELECT * FROM my_table;');
$resultset = new mysqlrs($query);
// if I want the first result entry in my table
var_dump($resultset[0]); //var_dump because it returns an associative array where the keys are the column names of my table I fetch the data
?>[/php]
And that’s it !
Enjoy! And if you haven’t made the switch to PHP5 yet… you know what to do!
Happy coding with the SPL.
Commentaires récents