- Welcome...
- About Me
- About
- Privacy
- Copyrights
This is just priceless...
Categories:
Life
Ok, I can't stop laughing now...
What is love...
Categories:
Projects, Web Dev
No matter how down or pissed off I feel, this always makes me laugh:
Fun with Spry: Fluent panels
Categories:
Projects, Web Dev
The beauty of Spry is it's simplicity when dealing with data. But it also provides great visual effects that one can implement in a web site in order to keep a consistent look across pages.
One of the widgets included in Spry that I probably use the most is the CollapsiblePanel. Since it is, just like every other Spry component, a javascript object, you can manipulate it as if it was a simple set of Javascript variables.
Click here to see a demo of three panels that fluently open. This is done by calling the three open() methods at the same time while having each panel declared with a slightly different duration.
Don't forget to check out the source code to really see Spry's simplicity!
Fun with Spry: Sorting multiple columns
Categories:
Life, Web Dev
At work, I have to display tables of sortable data. This data can be sorted by:
- Type (what happened)
- Date (when it happened)
- Record number
Naturally, my headers have the name of their respective columns as a sort parameter (ie: spry:sort="Date"). Which works fine, except when a series of related events take place at the same time. When that happens, sorting the data by date will work, but the important order in which the events took place can sometimes be put to the side. When analyzing a customer's problematic Internet session, for example, it can be bothersome that the authentication happens first, but is shown after the session has started and ended. The solution?
When displayed inside an HTML table, for example, Spry datasets can be sorted by clicking on the element that contains the sort parameter inside the tag. In my case, it's the table header, so it would look like this:
<th spry:sort="Date">Date</th>
This is where the problem comes from. When sorting using "Date", the other fields, as expected, are not taken into consideration. The fix in my case is to always use the order in which the events happened, for example the Record Number, as a secondary sort field. To do so, I changed the code to look like:
<th spry:sort="Date RecordNumber">Date</th>
With this, the records for which the date is identical will be sorted using the RecordNumber field.
Today's NHL
Categories:
Senators, Rants, Life
The Montreal Canadiens won, and are moving to round 2. My Ottawa Senators didn't. People now start to talk to me about it. Here's the issue: I don't actually care!
Yes, I am a fan of hockey. And yes, I am also a fan of the Senators. But am I a fan of the NHL? Definitely not. So to all those who think I actually give a damn who wins the Stanley Cup: I don't, unless it's my team.
The QMJHL playoffs are happening, and it's the finals! GO MONCTON!
I am Martin Lefebvre, open source programmer/enthusiast and web developer looking to make my place in the world of PHP development. I have extensive experience in customer relations, having worked in customer service since 1999, while developing web sites and experiencing with different web technologies as a hobby.
My interest in both Linux/Open Source and web development led me to be passionated about open source web technologies, such as Apache, PHP and MySQL, all those being my primary work tools, and something that I have always had a great amount of interest studying.
I specialize in web management application design, the type of utilities used to administer user accounts, create trouble tickets or manage online databases.
My experience with Unix operating systems covers FreeBSD, Solaris, Linux, NetBSD and OpenBSD. I am familiar with most Linux distributions, including Slackware, Ubuntu, Fedora, Debian and Red Hat.
This site provides access to my online resume, an overview of my web development work, ways to contact me, as well as pages on my other interests, such as music, reading and the Slackware Linux operating system.
Finally, if you are interested in my services as a PHP developer, or would like to hire me as a Unix/Linux consultant, please see my resume, or you can can contact me.
This website is the everchanging product of the new technologies
and experience I discover everyday. Some of the technologies currently
used by this site include:
- PHP
- MySQL
- Adobe's Spry Framework
This website and its owner will never divulge any information regarding its visitors to third parties.
However, please note that to ensure the best browsing experience when
visiting this website, some data is gathered when you visit. The purpose
of this is to generate statistical information regarding the demography of
the site's visitors, and is limited to:
- Operating System name and version
- Web browser name and version
- IP range (not your actual IP address>
- Search keywords used to reach the site
The content of this website is covered by the Creative Commons Licence and allows for fair use.
Please note that the above paragraph does not cover the images and pictures contained within the gallery section of the site, and that the content of MartinLefebvre.com's Gallery is copyrighted and cannot be reproduced without permission of the owner.
This work is licensed under a
Creative Commons Attribution-Noncommercial-Share Alike 2.5 Canada License .