by Heather | Mar 16, 2021 | Uncategorized
My life was recently improved by the addition of a border collie to our household. And if there’s one thing everyone knows about border collies? That they’re smart? Energetic? A bit insane? Sure, all true, but also that they rock a bandana! The really good...
by Heather | Dec 23, 2019 | Sewing
As I’m preparing for Christmas, I’ve been making some grocery bags for my family. I made one for myself as a trial and found that it was strong enough to hold 8 cans of beer, 2 pints of milk, and a bottle of rum. Impressive stuff. The aim here was to bulk...
by Heather | Oct 1, 2017 | Uncategorized
Duplicating arrays is a pretty common task for developers. Here’s 3 ways to copy $myArray to $arrayCopy: Method 1: Reference (shallow copy) In this example, $arrayCopy becomes another reference to $myArray. Updates to $myArray also update $arrayCopy. $arrayCopy...
by Heather | Nov 11, 2013 | CodeIgniter, Object-Oriented Programming, PHP
Today I found a major shortcoming of CodeIgniter. Basically, in a project I’m working on, there were a bunch of different things that a User could add to their account that would need to be approved by an AdminUser before they would appear. For fairness and ease of...
by Heather | Oct 29, 2013 | Uncategorized
If you don’t know me then this will seem to come out of nowhere. I made a thing that tells you the results of NHL games (to Brits, that’s the American/Canadian ice hockey league) without telling you the scores. Basically, I’m a fan of the Pittsburgh Penguins, but I...
by Heather | Oct 21, 2013 | Object-Oriented Programming, PHP, PHPStorm
I noticed an oddity (possibly a bug?) in PHPStorm today when working with the DOMPDF library. All the PHP classes are named as classname.cls.php – and PHPStorm, which is normally excellent at finding classes, just does not like this, so I was working with an...
by Heather | Oct 18, 2013 | CodeIgniter, MVC, Object-Oriented Programming, PHP
If you work with PHP regularly, chances are you’ve come across an MVC structure at one point or another. They are widely used in many popular frameworks and open source software like OpenCart. Using an MVC structure for your projects is a great way to separate...
by Heather | Oct 18, 2013 | JavaScript, JQuery
For a recent project, I needed an image gallery in JQuery. No sweat, there are hundreds of suitable plugins. My favourite is Cycle 2. It’s flexible, HTML5-friendly, and allows you to write the markup pretty much any way you like, so you don’t have to compromise on...
Recent Comments