We are all biased

If you think that you are special and not biased, you’re not. We are all biased in some way. Before we talk about bias, let’s talk about inference and prejudice. Why does prejudice exist? When we are children, everything is new. We don’t have the experience to decide whether something is good or bad, so we don’t…

Read More

Experience With Immigration Fraud

As you may know, I organize a conference that gets many international speakers and attendees. Although many of them have no issue travelling to Canada, some require a travel visa, which means that the Canadian embassy in their country will grant them permission for a temporary stay. Citizens of some countries have an extra step…

Read More

Fixing Doctrine Segfaults

I had a tricky segfault when trying to save a very simple Doctrine object. Here’s my debugging process and solution. Context I was using the sabre/vobject package to parse and save some iCal data. The parsed data was assigned to properties of a Doctrine entity and then persisted. The segmentation fault was happening every single time I called the…

Read More

Testing Methods That Make Static Calls

I had trouble testing a particularly painful codebase. It had static calls and implicit dependencies all over the place, to name just a few problems. One of the things that it often did was to call static methods that would increment counters in the database and cache stuff. Example: Record::incrementViews() It was making things difficult. To avoid messing with the…

Read More

Better Link Previews on Social Media

There’s a protocol called Open Graph that allows you to specify metadata for social media sites. Add some these tags to your <head>:

Now when you link to this page on a social media site, you’ll get the preview you want. Provided of course that the social media site reads the Open Graph metadata…

Read More