Recall These Thoughts
Inanity from Scott Lougheed, PhD

I’ve created a workflow to easily rename PDF files on iOS in the following pattern:

author year - title.pdf

Download the Workflow application for iOS

Download my PDF Namer workflow

The Basics

I love reading academic journal articles on my iPad. But what about finding those articles and saving the PDFs of those articles in an appropriate location with a nice title? Often, while reading, I’ll come across a citation to an article I want to track down. Ideally I’d be able to download and rename the file without switching devices (because lets face it, if I don’t do it right this moment, I’ll never do it). This can be somewhat cumbersome on an iPad, particularly if you don’t have your external keyboard deployed. It can be tricky to rename a file, while viewing that file, in iOS. You got to keep, in your frail human working memory, all the details such as the title and authors that you want to include in the name.

This was the perfect sort of problem to be solved by the very powerful iOS app called Workflow. If you aren’t familiar with Workflow on iOS, Workflow allows users to automate certain repetitive or complex tasks using a straightforward drag-and-drop interface ( it’s a bit like Automator on the Mac).

For a primer on Workflow, check out the great guide put together at iMore, and all the detailed articles put together by Federico Viticci at MacStories

I’ve written a workflow that walks users through the process of renaming a file stored in iCloud Drive, Dropbox, or Box. Once you install the Workflow app (if you don’t already have it installed), you can simply download my workflow to include it in your collection.

Once installed, all you have to do is run the workflow (either from the Today widget, or from within the Workflow application itself) and you’ll be walked through the process of renaming the file. Here’s how that should go:

  1. A dialogue box will prompt you to select the PDF you want from iCloud Drive
  2. Once selected, it will show you a preview of the PDF and ask you to copy the title to the clipboard and click “Done” in the top right.
  3. You’ll be presented with a text box containing the clipboard contents for you to confirm that you’ve got the title right.
  4. You’ll be shown a preview of the PDF again and prompted to copy the publication year to the clipboard and tap “done”. If there’s no easily-copiable year, you can just click Done and manually enter it in the next step.
  5. You’ll once again be presented with a text box filled with the date you selected. This allows you to confirm the correct year was selected, or manually enter the year if you didn’t copy it to the clipboard in step 4.
  6. You’ll be prompted to indicate the number of authors on the article.
  7. For each author (up to 3) you’ll go through the preview-copy-done routine we’ve been through several times. If you indicate that the article has more than three authors, the workflow will only ask you for the first author’s name and append “et al”. If there are superscript numerals attached to authors’ names, don’t worry about trying to avoid copying those, the workflow will remove them for you.
  8. You’ll be presented with a text box containing all the author names for you to verify or enter manually.
  9. Workflow will then delete the original file and prompt you to chose a location to save the newly renamed file.

Typically what I’ll do is save the PDF from Safari to the root directory (the bare /iCloud Drive or /Dropbox folder) and run the workflow from the Today widget. At the end of the workflow, I save the renamed file in the proper location (whichever folder matches the subject matter of the article) and the workflow simply deletes un-named file in the root directory.

Nitty Gritty

This seems like a lot of steps, but the beauty of this workflow is that you can go through the renaming process without having to touch the keyboard at all.

Now for some more technical details for those who want to get into the weeds a bit.

For such a simple task – renaming a file and saving it back to the location you choose – it looks somewhat complicated. I’ve included a number of conditionals and error-correcting steps to try account for as many contingencies as possible.

  1. Not all PDFs contain selectable text, or the actual text layer is corrupt. This is why you are prompted to verify the clipboard contents: if there are errors this allows you to correct it, if the text isn’t selectable, you can enter it manually. This adds an extra step to each part of the title, but it means that this workflow is still usable in most cases even for old or edge-case PDFs.
  2. I deal with strange capitalizations and strip special or unwanted characters like trailing spaces at each step. In many cases, journals will use superscript numerals to denote author affiliations. I’ve noticed that using the iOS text selectors, it can be hard to avoid these numerals, so in the Author selection stage, I use a REGEX query to find numerals and delete them. A similar issue exists with journal titles that span across a line. In some cases, this may actually result in a line-break being copied to the clipboard. Again, a REGEX query finds these and replaces them with a space.
  3. If there are more than three authors, I want to append an “et al” rather than have the user copy and paste a dozen author names. This required me to set up several nested conditionals for one author, between 1 and 4 authors, and 4 or more authors.

Customizations

My default the workflow prompts you to select a file from iCloud Drive, which is my file sync of choice. If you want to have it prompt you to select files from Dropbox or Box, simply make the appropriate change to “Get File” and “Save File” actions at the beginning and end of the Workflow.

Unfortunately, if you would like to have the filename contain different information or ordered differently, that would require some extensive reconfiguring of the workflow. Feel free to dive in to try and do it yourself if you’d like, or reach out to me and I’ll see what I can do.

Reach out to me on Twitter and let me know how it goes!


I have a new publication with Myra Hird in the Journal of Crime, Law, and Social Change titled “Food Security and Secure Food in the Anthropocene”

Modes of Governing Abstract


Myself and my collaborators have a new publication in the Journal of Environmental Policy and Planning titled “Modes of Governing Canadian Waste Management: a case study of Metro Vancouver’s energy-from-waste controversy”

Modes of Governing Abstract


What it does

iMessageR is a small and simple package for the R statistics package that allows a user to send iMessages to any phone number or email address registered with iMessage service.

I know that there are a number of similar ways that this can be done, such as making a system call to mail, but this requires that postfix be properly configured on the system, and this is not always the case. Even when this is properly configured, mail would send to conventional email addresses without issue, but receiving messages sent to carrier-provided SMS email addresses (e.g., 5551234567@txt.att.net) was unreliable. This was not ideal.

There are also a number of packages for sending messages from R using gmail. This is great but also requires some amount of additional configuration in R in order to function. I figured iMessages was the lowest friction option for Mac and iOS users.

I suspect this will be especially helpful for R users who run lengthy analyses and would like an alert to their phone (or any other iMessage capable device) indicating when the analysis is complete.

Since you can use this function any number of times and customize the message, you could even take things one step further and use iMessageR to help with debugging. For example, you could insert calls to this function at different locations in your script to indicate progress through your program. Alternatively you could insert it into a trycatch() or some other exception-handling system to alert you of an error.

No iPhone?

Since iMessages is available to any user with a Mac, whether or not that user has an iPhone, iMessageR could be used by a Mac user regardless of the type of phone they use. Without an iPhone, the user would, of course, only be able to receive notifications on their Mac (or any other Mac also configured with that iMessage email address or phone number). So while an iPhone (or iPod Touch) is ideal in order to receive the most benefit, even Mac users without an iOS device will likely find some utility here.

Installation

The iMessageR package can be downloaded directly from cran or can be installed from within R:

install.packages("iMessager")
library(iMessager)

This will give you access to the function

send.imessage(recipient: STRING, message: STRING)

Known Issues

  • If the message string contains single or double quotes, the function will fail.
  • If the email address or phone number is incorrect or unrecognized, there is no notice to the user.

The future

I’d like to try to make this package more accessible to different platforms. I hope to add support for a wider range of platforms by adding options for different services. Presently I am thinking of Pushbullet or WhatsApp but this will depend on the level of API integration those services expose.

I should note that I am neither a computer programmer nor a habitual R user, so this is very new territory for me in a number of ways! As such I will try and address issues and add enhancements in my spare time, as my nascent skills allow.

Connect with me

Connect with me on github where you can submit an issue or fork away!

Or reach out to me on twitter: @scottisloud.


The CBC’s Marketplace is focusing on retail food waste this week. Yesterday we heard from a former Walmart contractor that a ‘heartbreaking’ amount of food is trashed every day. Today, Marketplace reveals its findings from 12 days of sifting through Walmart dumpsters.
This is a great scoop for the CBC and I think this kind of coverage is just what is needed to bring light to a shameful problem. Food retail accounts for 10% of the food wasted in Canada. This is a small slice of the pie, but in absolute terms, it’s a substantial amount of food (it is, after all, a very big pie). These CBC stories can stand on their own, but I wanted to add some additional commentary and nuance based on some of my experience and research on food waste.

Marketplace found cartons of milk days ahead of their best-before date, and Parmesan cheese with months left before it needed to be thrown away.

Assuming these products are not contaminated or otherwise unsafe, this is troubling. Best-before dates on both of these products are largely unrelated to safety. A solid piece of Parmesan cheese can be safely stored for a very long time. Barring any cross-contamination in a retailer’s or consumer’s fridge, the worst that will happen is the growth of some mould, which is a quality, not a safety, issue, and will not cause someone harm.

Mevawala, formerly with one of the company’s Edmonton stores, says if a piece of fruit or vegetable didn’t look perfect, it had to be thrown in the trash.

Moreover, cosmetic imperfections are a reflection of arbitrary quality standards that are a large reason food is disposed of at the retail level. Retailers will claim that these arbitrary quality standards are the fault of consumers, but this is untrue. This is a marketing failure. There is demand for these products, they just need to be marketed correctly. Loblaws is beginning to dip their toe into this market segment with imperfect apples marketed under their No Name brand. This is also failure of retailers to capitalize on their own value-added departments. These cosmetically imperfect produce items, if not sold to consumers directly, should become part of value-added products in-store. Fruit salads, vegetable trays, pre-chopped vegetables, etc. could all be made from imperfect products.

Over the course of more than 12 visits to the stores, Marketplace staff repeatedly found produce, baked goods, frozen foods, meat and dairy products. Most of the food was still in its packaging, rather than separated for composting.

This quote highlights a significant issue with how retail food waste is often handled. In many cases retailers want to get ‘unsaleable’ goods (however they define that) off their shelves and our of their warehouse as quickly as possible. Typically this means disposing of it directly into their dumpsters or compactors. The above quote draws attention to several problems: all that organic material ends up in landfill where it is a significant source of methane; all that packaging is, to the dismay of brand owners, in-tact and visible to anyone willing to dip their nose into a dumpster or landfill; and that packaging, the majority of which is recyclable, also ends up in landfill.

Retailers regularly fail to take advantage of the services of depackagers. Depackagers, as the name implies, remove food from its packaging. They then send the food to anaerobic digestion, rendering, or some other destination where it is at least marginally more valuable and less environmentally harmful than landfill. They also shred and recycling the packaging, which conveniently obscures the branding (not that that is needed, as most depackagers are very security conscious and discreet, unlike the dumpster!). There is unused depackaging capacity in southern Ontario, and most retailers are not taking advantage of these services because:

  • It is disruptive – they are at the mercy of the depackager to pick up products which may not be as fast as the retailer would like. It’s hard to beat the convenience of tossing unsaleable goods directly and immediately into the dumpster or compactor.
  • It’s another contract to juggle in addition to standard waste collection.
  • It may not be available at 100% of a retail chain’s locations which makes uniform policy and best practice for store managers more difficult.
  • For some retailers it just isn’t even a priority, it’s not even on the agenda.

This needs to change. While we need to reduce food waste generation upstream, there will always be some amount of downstream waste. That downstream waste could be handled better, and there’s possibility for that to happen today.

Also in the garbage: bottles of water, frozen cherries that were still cold and tubs of margarine. In a statement, Walmart said it believes the food Marketplace found was unsafe for consumption. In many cases, however, the food was well before its best-before date and appeared to be fresh. Or, if it needed refrigeration or freezing, the food found was still cold.

I have to take issue with the CBC commentary here. Coldness, best-before dates, and appearance are all terrible indicators of safety. None of the indicators listed in the quote provide any particularly useful data to make a decent risk management decision. Best-before dates are often arbitrary, typically refer to quality (at their best) and not safety, and can’t account for variability in storage temperature and handling. Further to this point, just because something that is meant to be cold is cold, doesn’t mean it is safe. There’s simply not enough information for a gleaner to know how long the product has been at a given temperature or if there’s a hazard that can’t be seen.

Our senses are pretty good judges of quality: we can taste soured milk, which is perfectly safe to eat, if perhaps a bit unpleasant. But we can’t taste Hepatitis in still-frozen berries, or an undeclared allergen in a baked good that might result in illness or death if consumed unknowingly by a gleaner or someone that gleaner feeds, or a fresh apple contaminated with Listeria.The reality is, the majority of things that are going to make us sick cannot be seen, smelled, felt, or tasted. Our eyes, fingers, noses, and tongues are bad judges of food safety.

Dumpster-divers, gleaners, freegans, are doing good work recovering perfectly edible food, but it is really risky business unless you take great care (and even then, still risky). There are ways to reduce risks, such as keeping an eye on recall notices before gleaning and becoming familiar with which products are lower risk than others when temperature history and handling are unknowns.

But the reality is, in instances like this, products that look perfectly good may be perfectly bad. Products that are perfectly good may come into contact with harmful products and show no signs of that contact, resulting in cross-contamination. Again, these are things we cannot detect with our own senses. As long as legitimately good food and food recalled for posing a health threat are intermingled in the same bins, it’s impossible to, with any degree of certainty, separate the two.

But even the people in charge don’t necessarily know the difference between quality and safety:

“On some occasions, food which has not passed its best-before date is deemed unsafe for consumption,” Walmart said in its statement. “As a rule we don’t place fresh food items on display for sale if the quality is not acceptable.”

Here, the Walmart spokesperson is dangerously conflating safety and quality. There is a grand canyon that separates what counts as “safe food” and food that possesses “acceptable quality”. A statement like this erroneously reproduces the notion that quality is a safety issue, which is is not (though they may, in some cases be related). It also further occludes the rationale that underlies Walmart’s disposal practice: Is the food in the dumpster dangerous, or does it merely fail to meet some perceived quality expectation? Dangerous food should never be made, and if it is, shouldn’t be sold to consumers. Food that deviates from quality expectations but is safe should be sold and consumed by humans.

Marketplace staff looked for food waste at all the major retailers, including Costco, Metro, Sobeys, Loblaws and Walmart. While staffers found bins full of food at some Walmart locations, other chains had compactors making it impossible to see what they throw out.

This is some seriously bad practice from Walmart. No brand owner wants their products on display to anyone who walks to the back of a store. Retailers also generally “field destroy” recalled products, that is, when there is a product recall, they dispose of it on-site rather than send it back up through the supply chain. Compactors offer security from both a brand and public health perspective inasmuch as dangerous products are destroyed and inaccessible (though, of course, the use of a depackaging service is also secure and environmentally superior, but not typically used by retailers when handling recalled products). An unfortunate side-effect of compactors is that they prohibit informal recovery by gleaners and freegans, but the tradeoff is marginally improved brand and public health security. Walmart needs to prioritize security and switch to compactors. They’re playing a dangerous game with open dumpsters (though, as the CBC story notes, they’ve now started locking those dumpsters at least).

Food waste is a pernicious problem. We waste way too much food. What we can do today is reduce the impact of that waste. However, what is really needed is upstream solutions that reduce the overall generation of food waste. This means reducing contamination and safety problems that lead to product recalls. This means reducing over-production. This means reducing knee-jerk price-hikes that result in surpluses and subsequent blow-outs or disposal. It means disrupting the reproduction of arbitrary quality standards. We have a long way to go towards reducing food waste across the value chain, but what CBC is showing us with these stories is that there are some immediate steps that can be taken to reduce food waste and the attending environmental harm.


The September 1st deadline for public comments on proposed legislation that would allow firms to irradiate beef draws near. While the previous effort to bring irradiation to the beef industry in 2002 failed, there is hope that the events of the intervening 14 years might have shifted public attitudes. However criticisms of the potential plan are already emerging and not just from consumers. While it might be intuitive to assume that the beef industry in Canada is united in their support for this move – it was industry stakeholders who pushed for the first consult in 2002, and again this year – the beef industry itself is divided.

The National Farmers Union (NFU), representing family-owned farms including cattle farms in Canada, has submitted a letter to Health Canada objecting to the potential changes. Their primary concerns are economic. The NFU are concerned that irradiation equipment would be too expensive for smaller beef packers, thus driving them out of business, while JBS and Cargill will easily distribute the capital outlays for irradiation equipment across their sprawling businesses. The ensuing consolidation of an already heavily consolidated industry would further establish Cargill and JBS, who already process 90% of the federally registered beef in Canada, as the only buyers of beef to whom farmers may sell their cattle. Such oligopolistic conditions, they argue, will ultimately produce downward price pressure. This would mean less money per head for farmers. It will limit the number packers to whom cattle ranchers could sell to and thus limit competition, and would further reduce already rather limited consumer choice.

Another concern is that the proposed change would allow for the importing of irradiated beef from the United States where beef processors have been permitted to irradiate beef for over a decade. Not only would this contribute to further downward price pressure on farmers to compete with cheap imported beef, it would displace domestically slaughtered beef and swaths slaughter and packing jobs. The NFU states that because the proposed Canadian regulation is nearly identical to that in the US that “it would effectively erase the Canadian border in regard to ground beef”.

While I am sympathetic to these concerns and I am an enthusiastic proponent of local, small-scale agriculture and family farms, there are some important considerations to make here. The first is that the proposed legislation allows beef processors to irradiate beef should they choose to, it does not require that beef producers irradiate their product. The new legislation isn’t going to suddenly put small firms out of compliance with the law. This is only a problem if irradiated beef is met with massive consumer demand and by not irradiating smaller processors would be severely disadvantaged.

With respect to imports, the majority of beef in the United States currently is not irradiated and thus would not be precluded from import anyway. Harmonizing legislation between Canada and the United States would pertain to the very small percent of US beef that is irradiated, very likely a drop in the bucket overall and not likely to pose an immediate threat to Canadian firms.

It might then be argued that while the proposed legislation doesn’t require irradiation, market demand will serve as an sort of proxy whereby if any firm that wants to compete they must irradiate. This seems to assume widespread, maybe even pent up demand for irradiated beef. The evidence from the United States, however, suggests demand is limited. Irradiated beef is available only under a hand full of brand names at a small number of retailers and restaurants. As I argue in a past post there are also unanswered question regarding what the market impacts are of irradiated beef. Will there be an “irradiated ghetto” off in the corner of the meat case touched by consumers only when the the grocer is out of the non-irradiated cut the consumer desires? Will brands begin competing on the premise of their beef being “non-irradiated” or vice-versa? Will it not matter and will consumers simply ignore the label because they don’t care, grabbing whichever tray of beef they need for tonight’s dinner regardless of the presence of a radura logo?

Given all of this, I can’t help but see the economic concerns of the NFU as a strawman. As I said before, beef producers and the government agencies that support them have an uphill battle. In over a decade in the US, irradiated beef is not a blockbuster, and I don’t think it will be in Canada either.

The NFU also raised concerns that eaters in institutional settings are not positioned to know whether the beef they are served is irradiated or not. Those who prepare the food would know – they’d see the labels on the boxes of course – but those labels won’t leave the kitchen. This is only a problem for human health or food safety if the considerable evidence indicating that irradiation of food does not pose a threat to consumers’ health is ignored. Even if there is a remote chance of human health impacts, there’s a very immediate and potentially fatal threat from fecal pathogens. This does point to a shortcoming with the labelling requirements in that in an institutional setting the labels are largely obscured from institutional eaters. This is something that should be addressed (most likely this will be in the hands of institutions themselves) in the interest of maximizing transparency for all consumers, but it is not an issue of public health or food safety. I imagine poor food handling practices at these retirement homes and schools are a far larger and far more immediate threat to the vulnerable populations that dine in those institutions than any possible threat posed by irradiation. Moreover, I suspect the majority of those institutional eaters have been consuming irradiated spices and onions for years without harm. If we are really concerned about allowing institutional eaters to make better risk management decisions, perhaps we should start posting food safety inspection scores on the doors of restaurants and institutions.

I am, however, sympathetic to the other concerns articulated by the NFU related to food safety. The NFUS are concerned that irradiation may “be used as a final control point to kill some (but not necessarily all) pathogens…that occurs when processing high volumes at high speeds without adequate inspection of lines”. I too am concerned about the possibility of irradiation becoming a food safety crutch. There are commentators who claim “we have run out of regulatory power”, and that it is a necessity to deal with ubiquitous pathogens in the context of a regulatory system that has exhausted all possible options. I couldn’t disagree more with this idea that we’ve run out of regulatory power. The XL Foods recall didn’t take place because we’re at the end of our regulatory rope; it happened because both the CFIA and XL Foods dropped the ball. There is room to improve food safety regulation, the decision is whether that is something that the government wants to do. Claims that we’ve run out of regulatory power is really a disguised claim to shunt responsibility for food safety away from government.

Further to my point, recent changes made by Walmart to reduce the presence of Salmonella and Campylobacter on their chicken have been fairly effective. There is room to improve food safety without irradiation, and Walmart has done it on its own – not in order to comply with direct government regulations. This isn’t to suggest we forbid irradiation, just that there is room to improve food safety upstream given the will to do so, and such improvements can limit how heavily we lean on irradiation as a final kill step. The NFU also point out that while irradiation is permitted in the United States, there have nevertheless been no shortage of outbreaks attributed to pathogen-contaminated beef. Were it to become a crutch it may not be the most reliable.

If Canada’s food safety system hasn’t shown itself to be so easily fallible, and if industry didn’t seem to capable of flouting their commitment to it, I might feel differently. As it stands we are clearly not at the end of the regulatory rope. When Canada’s largest beef processor fails to comply to existing food safety requirements and persistently fails to address corrective action requests from the CFIA who then does nothing to intervene, the idea of irradiation becoming a crutch doesn’t seem too far fetched.

What I do think is that irradiation should be available as a tool in a company’s food safety toolbox. If irradiation can contribute to the reduction of foodborne illness outbreaks and wasteful food recalls, then I think the benefits outweigh the costs. That said, my support is qualified. Any allowance of irradiation needs to coincide with more robust regulation, monitoring, and enforcement. It behooves regulators to demonstrate they can compel those they regulate to make improvements. Walmart has shown that companies have room to improve without relying on radiation, and regulators need to push the rest of the industry to follow suit. (For a similar sentiment, see Coral Beach’s recent article on Food Safety news)

Overall, I don’t think that irradiation poses the economic threat that the NFU assumes it will. Strawman. While I advocate for consumer transparency, I think the NFU’s concerns about the safety of institutional eaters is overblown. However, I share the NFU’s fear of a lack of effort on the part of industry and its regulators to maximize the effectiveness of existing options. Industry has demonstrated how much more can be done to improve food safety. There are a lot of unanswered questions about what irradiation might mean for the beef industry, but I don’t believe it is the threat it is being made out to be. In fact, I suspect any impact, positive or negative, will be disappointingly modest.


Stericycle this month published their Q2 report on product recalls in the United States, which they’ve called “Tainted Table”. I love these quarterly reports from Stericycle, and I think this one has some interesting bits worth highlighting.

In Q2 there were over 80 times more FDA recalls (measured in “units”) and 45 times more USDA recalls (measured in pounds) compared to Q1. The USDA recalled 1.1 million pounds in Q1, and a whopping 53.3 million pounds in Q2. (I always appreciated the USDA’s use of mass compared to the FDA’s reliance on “units”).

Of the FDA recalls, there were more pathogen-related recalls than in any of the past two years. This could likely be a result of increased testing and a large number of recalls linked to past outbreaks thanks to whole genome sequencing.

The report also highlights the role played by the “multiplier effect”, which I have written about here. Their example of the sunflower seed recalls that resulted in over 600,000 units of product being recalled highlights this multiplier effect well. Not only were many brands of plain-ol’ sunflower seeds affected, so were cereals, granola bars, and store-prepared salads. It was a mess. It shows one of the consequences of the immense consolidation and centralization of certain aspects of the food industry as well as just how serious “ingredient” recalls can be.

More recently, and not covered by the report, the recent E. coli contaminated flour recalls (see here, here, here, here, and here, and the original recall here) demonstrates this phenomenon well. The spread of this recall across so many different brands and products is quite remarkable. The original recall took place on July 1, and here we are 6 weeks later and we are still seeing recalls related to this flour.

It’s shaping up to be an interesting year for recalls in the United States. Looking forward to Q3!


A spat of spice recalls have taken place over the last few weeks in the United States.

The JM recall seems to be small, affecting only small amount of product from a Georgia farmers’ market. The Gel recall expanded considerably over time, from a single lot to several different brand labels and lots. The Oriental Packing Company has recalled a whopping 188.5 tons of the stuff. While there doesn’t appear to be any official statement to suggest a link between the two turmeric recalls, nor between the turmeric and the curry powder, it seems likely to me that there is a single common source for all of them. Turmeric frequently appears in large quantities in curry powder, in part because it’s a traditional ingredient in many Indian spice blends, but also because it is relatively cheap compared to other common Indian spices and can bulk up a curry powder nicely.

There are a couple of possible explanations for these elevated lead levels. Since most spices are sold wholesale by mass, the addition of a substance like lead oxide could be a way to add bulk and thus increase margins. This is similar to a comment made in a blog post at The Acheson Group (which has subsequently been removed) suggesting the possibility that the spat of spice recalls in 2014-2015 due to the presence of peanut powder was also economically motivated food fraud. Peanut powder and ground cumin look awfully similar after all. The addition of lead oxide is, in fact, an old habit of less-than-scrupulous spice millers for a good long time. If this turns out to be the cause of the current contamination, it’s a reminder that old food habits die hard.

Another possible explanation is that turmeric, which is a rhizome like ginger, could have taken up lead that had (naturally or unnaturally) been present in the soil. The ability for plants to take up lead has been documented by the University of Minnesota.

Either way, a couple tons of turmeric and cumin powder are headed towards destruction. I wouldn’t be surprised if we see a recall in Canada for turmeric or turmeric-based products in the coming weeks, similar to the sprawl of the nut-allergen cumin last year.



Lidl has recalled some of its yoghurt and peanuts because the packets don’t warn customers that they contain milk and nuts.

Allergen labels are immensely important in ensuring the safety of customers with allergies. No doubt there needs to be close monitoring to ensure that consumers with allergies can shop with confidence. Customers with allergies aren’t dummies. This recall is borderline insulting.

Either that or it’s a scary sign of just how far processed food has come and that consumers have now been trained to know that just because the label says the product is “nuts and yogurt” doesn’t mean it contains either of those things.



All of the recalled ground beef was produced on July 26. They all have the establishment number “EST. 337” printed inside the USDA mark or on the product packaging seam.

Note that this 30 tons of beef in a single day of production. I have always been curious about the impact of production scale on the size of food recalls. Being able to narrow down the affected product to a specific day of production – or detect an issue and resolve it within a day – is fairly remarkable. However, if a single day of production is 30 tons of product, perhaps we need to narrow this window even further. Food processors are stunningly efficient at making massive quantities of product very quickly. It seems to me that there is a need to step up detection and traceability to keep pace.



Regarding the recent signing of the DARK act:

In fact, according to Obama’s own Food and Drug Administration (FDA), if enacted, the bill would exempt most current GMO foods from being labeled at all. The FDA further commented that it “may be difficult” for any GMO food to qualify for labeling under the bill. And even for any GE foods that might be covered, the bill allows for food to be “labeled” through a digital system of QR codes that can only be accessed if the consumer has a smart phone and reliable internet connectivity.

Center for Food Safety

This is a shame. Regardless of how you feel about GMOs, denying choice and transparency is a bad move. When it comes down to it, no regulation is sometimes better than bad regulation, as it stands this flaccid new regulation just consumes resources with no returns.


My regular reader will have noticed recent change to the appearance of Recall These Thoughts. For the second time in one year I’ve changed blog platforms. You, dear reader, will likely remember the move away from Squarespace over to Wordpress. This was motivated as both a cost-saving measure and a way to gain a bit of additional flexibility. I love Squarespace, but a big part of having a blog for me is having a little toy to tinker with. Wordpress offered a bit more of that type of freedom.

But Wordpress has its downsides. For one, it was very difficult to modify templates. The CSS was was already condensed and extremely complex – thus largely inscrutable. This made some template modifications difficult to make. Moreover, if you neglected to make a child template prior to making all of your changes (as I did) and an update is issued to your template, you’re in for a world of hurt.

I also found the backend to be “weighty”. There was a lot of stuff back there, a lot of things I didn’t need. The editor was a bit fussy, it didn’t always handle markdown very well, and it really just offered more than I needed.

Overall Wordpress was just too much and not really that fun to play with. It is a powerful and popular platform, but it didn’t offer me the type of tinkering I really yearned for. I wanted something a little simpler, a little faster, a little more fun to play with for this amateur coder.

I had tried to install Jekyll about a year ago. Jekyll is a Ruby and Liquid based static website generator. Having no familiarity with Ruby and only the most basic competence with the command line, I got hung up and frustrated with Jekyll.

Fast forward about a year. During an evening of being unable to sleep I poked around and worked on installing Jekyll once more. Sure enough I was able to get it installed, located a template that would make a good foundation for my site, and off I went learning and tweaking. At this point things moved quickly. While unfamiliar with SASS as a styling language, it’s a lot like CSS with which I am extremely familiar. I found my way around the single CSS file quickly and learned with little trouble the classes that were used in the various layout files.

I also got the hang of the Liquid variables that Jekyll uses, making theme modification even easier. I even went ahead and created a few conditional loops to auto-detect when I make a “linked list” style post and have it format that correctly and offer a permalink.

I used Ben Balter’s Jekyll Exporter Wordpress plugin to export my posts from Wordpress, which it did with amazing accuracy. There were a few things that needed tidying that got a bit messed up converting from HTML to markdown, but most of that could be accomplished using find and replace. Beyond that I had all my old posts locked and loaded, my theme thoroughly customized, and was ready to pull the trigger. I synced the built site from my development directory to my host, and the new site launched with only a couple hitches.

So what is the payoff? The biggest payoff is, perhaps, that the site loads about 4X faster and is about 1/8th the size. This is important for me because I have extremely cheap hosting, and I value the experience of my one regular reader.

The other payoff is portability. My posts are written in markdown and live in a directory on my computer. They are not in an SQL database with a bunch of auto-generated HTML. While there are ways to write and backup posts for Wordpress, Jekyll’s workflow has easy writing, local storage, and portability built into the process.

There is still work to be done, for sure. I have to migrate some more content over, fix a few posts that broke way back during the Squarespace migration, and I have a lot of little styling tweaks. But overall I’m very pleased with Jekyll and I look forward to making lots more content to enjoy.


In a letter sent directly to the president the renowned civil rights activist called attention to the “serious inequities [in the] GMO labeling legislation.” The bill would allow companies to use QR codes in place of on-package labeling to disclose product information. In the letter Jackson points out the discriminatory nature of such a labeling system;

“100,000,000 Americans, most of them poor, people of color and elderly either do not own a smart phone or an iPhone to scan the QR code or live in an area of poor internet connectivity….There are serious questions of discrimination presented here and unresolved matters of equal protection of the law. I am asking you to veto this bill and to send it back to Congress with instructions to correct this fatal flaw.”

Jesse Jackson, Centre for Food Safety

There are so many issues with using QR codes to convey something a logo can do in the same space. The obvious classism, racism, and ageism are just the start. I’m a young, white, educated iPhone owner and I can’t be troubled to pull my phone out and scan every QR code on the shelf.

I think the emerging technology around QR codes on products to facilitate supply chain transparency, country of origin, and other detailed information about the product is a valuable pursuit and is very different from GMO disclosure. In most cases the information provided to the consumer by scanning these QR codes is considerably more detailed, including, as is the case of VG Meats sold at Longos in Toronto, measures of tenderness, recipes, and information about the specific cut of meat. This information is valuable to interested consumers and far exceeds what can be put on a table.

A GMO label, in contrast, is intended to allow the consumer to know whether that product contains GMO ingredients or not, just like the irradiation labelling that is mandatory on all irradiated products.

Yes, GMO and irradiation are complex, and the nuance can’t easily or accurately be conveyed by a mere indicator label. The reality is many people have already formed strong opinions about GMOs and even the well-crafted marketing that would inevitably be linked to by those QR codes is unlikely to change a consumer’s mind.

Of course, the real issue is a fear among manufacturers that explicit GMO labels will deter consumers from purchasing those products, opting instead for those without GMO labels (where an non-GMO alternative exists). This is a very real concern, but I don’t think hiding behind QR codes is the right approach No matter how you slice it this is a weasel tactic that is deceitful and ultimately undermines everything GMO labeling is supposed to facilitate. Just label it properly.


Health Canada recently announced a regulatory initiative which would allow beef processors to sell irradiated ground beef. I was invited to speak to Calgary’s Kingkade and Breakenridge on NewsTalk 770 about what this initiative might mean. The interview went well, and Rob and Roger are both thoughtful and insightful radio hosts, but there was a lot that didn’t get covered. I’ll expand on some of those thoughts here.

In 2002 Health Canada (not for the first time) put forward an initiative to allow for the sale of irradiated ground beef, but that was abandoned as a result of resounding negative feedback (from consumers, the public, or “activists” depending on your perspective). Between then and now, a considerable amount has changed. Landmark food safety events such as the deadly Maple Leaf Listeriosis outbreak in 2008 and XL Foods E. coli beef recall in 2012, which remains Canada’s largest – among numerous other high-profile recalls and outbreaks – have coincided with a growing public awareness of food safety and other issues related to food safety and provenance. More than ever, consumers want to know about where their food comes from, how it’s made, and most importantly that it is safe (e.g., Lockie 2002; Busa and Garder 2014). Indeed, the Canadian Cattlemen’s Association is confident that the public (or at least those outspoken members of the public) have changed course. Regardless of the changes in the last 15 years, there is doubt about whether or not Health Canada’s proposal will be successful. Putting aside the perceived risks, the court of public opinion is often a hard sell, and understandably so. The circumstances in which we encounter radiation are almost universally negative: cancer treatment, x-rays, air travel, nuclear disasters, and World War II to name a few.

Despite what critics say, the scientific evidence suggests that nutrient loss and toxics production is limited or non-existent, which is considerably less than what cooking itself would introduce. Moreover, consumers also seem to forget that their pre-washed salads, sprouts, and peeled carrots are treated with chlorine, while other products are treated with ammonia (let’s also not forget the many instances in which lye is used in very traditional foods like hominy, bagels, and pretzels).

Even if we accept that there is a small health risk associated with consuming irradiated beef, as many have pointed out, the risk from foodborne pathogens is far greater and far more immediate. As I said in my interview, if you want to avoid toxins and carcinogens, you’d best stop eating cooked meat altogether.

Health Canada will require beef producers to label irradiated products. I think this is a critical part of the proposal that is non-optional. Absolutely consumers should have the ability to identify irradiated food, and anything that enhances transparency in the food system more generally should be pursued. However, this will be hard for industry who have to convince consumers to buy the meat with the irradiated label, which may well be sitting next to a tray of meat that was not irradiated. It’s a difficult set of choices from a consumer’s standpoint: did something happen to the meat that required it to be irradiated? The non-irradiated stuff is fine as long as I cook it correctly (where’s my meat thermometer again?). Evidence of this consumer ambivalence is demonstrated by Costco in the US, where irradiated beef has not sold well. As Craig Wilson, Costco Food Safety Chief suggests of irradiated beef: “Mom wouldn’t buy it”, even if the risk from foodborne illness is in fact higher, and more dire.

Ultimately, while industry is one of the primary supporters of irradiation, I am not sure how quickly it will be taken up without a coordinated, industry-wide effort. Who in industry will have the guts to be the first on the shelf with the new irradiation label? How will industry and the Canadian government ensure there isn’t an “irradiated ghetto”? How do we prevent competition and marketing based on (non-)irradiation, such as the development of a premium niche of non-irradiated beef? I suspect we’ll see either an irradiated ghetto as demonstrated by Costco in the US, or a non-irradiated premium niche. Either way the beef industry has a marketing challenge on its hands here, should irradiation be permitted in Canada.

The industry challenges aside, I look critically, though not dismissively, on the prospect of irradiation. Numerous commentators, including Rick Holley, food scientist at University of Winnipeg suggests that we’ve run out of regulatory power and that because “pathogen contamination in processing plants cannot be prevented…if we really want to prevent outbreaks, we have to look at expanded use of irradiation”. However, he also suggests that irradiation will not protect against industry incompetence. I don’t entirely disagree with Holley and other commentators who seem to suggest that XL Foods is a shining example of why we need irradiation, that it might have prevented or limited the (already rather small) outbreak, but there’s a lapse in logic. A major contributing factor to the XL Foods recall was a “weak food safety culture” and that ultimately “it was all preventable”. The company failed to clean its equipment, maintain its plant, respond to CFIA corrective action requests, and actively practice its recall plan.

The conclusion of the independent reviewers of the XL Foods incident runs contrary to many commentators’ primary arguments in favour of radiation, using precisely the same case as evidence. I don’t buy the idea that we’ve run out of regulatory tricks to reduce foodborne pathogens upstream. The XL Foods recall didn’t take place because we’re at the end of our regulatory rope; it happened because both the CFIA and XL Foods dropped the ball. Based on the commentary from supporters like Holley, irradiation would have either done nothing at all (being incapable of overcoming industry incompetence, as he argues), or it would have allowed one or both to get away with a (rather protracted) moment of weakness, potentially leaving the profligate issues at the XL Foods plant to remain unresolved.

I hesitate to outright reject irradiation of ground beef and other products. Foodborne illness is a significant burden on the public health system of Canada and can profoundly impact the lives of victims. In line with my own research on food waste, it is also a non-trivial source of food waste. XL Foods alone resulted in over 5.5 million kilograms of beef being landfilled, which is equivalent to approximately 12,000 cattle. Just this week, General Mills announced that it is recalling over 10 million pounds of flour in the US due to potential E. coli contamination. There are over 300 recalls per year in Canada and over 1000 per year in the United States. If irradiation could prevent even a few of these recalls, it would be a significant improvement in terms of public health and food waste. For example, as Holley suggests (alas, we do not disagree on everything!), irradiating poultry alone would reduce foodborne illness in Canada by 25% and an inestimable quantity of recalled food from being destroyed.

Taken together, I don’t buy the popular criticisms of irradiation, but I think we need proceed with caution. I think irradiation is a reasonable compliment to a holistic farm to fork food safety system that includes regulators with teeth and clout working with competent food producers and processors who feel those teeth when they step out of line. It was the absence of this dynamic that contributed to the XL Foods recall, which has become the poster child for supporters of irradiation. As Health Canada moves forward with the public consultation over irradiating ground beef, let’s take a reasoned and critical approach without knee-jerk reactions that dismiss science, or conversely dismiss the concerns of the public (or activists therein). Most importantly, let’s take this as an opportunity to examine how irradiation can fit in to a comprehensive food safety system while we make the system as a whole stronger, because there’s plenty of room to improve.


Okay, so perhaps not precisely the month of May, but starting in late April there’s been a spat of recalls attributable to Listeria in Canada and the United States. Looking at the CFIA recall listings for the first 10 days of May:

And if we look into the last week of April we also get:

Needless to say, for the last two weeks Listeria has had a field day in Canada. The United States is not exempt! In what Juska et al (2003) refer to as the “amplification” of food safety threats, or what Stericycle call the “multiplier effect”, listeria contamination from SunOpta Inc., a sunflower seed supplier has resulted in a massive cascade of recalls across the United States.

This series of recalls includes Sunflower Seed Snacks, trail mix, protein bars, Brown and Haley Chocolate snacks, and perhaps most stunningly 17 tons of Trader Joe’s salad.

Similarly, frozen vegetables from CRF Foods in Pasco Washington were recalled on April 23rd and subsequently expanded on May 2 to include over 42 brands and 358 products (notably, just in time for Listeria Month!)

It is rather stunning how far an error at a single supplier can reach in the contemporary food system. It almost seems as if we are reaching a level of consolidation and concentration in which the industry is too big to fail. The last two weeks has seen tens of tons of food pulled from the market and destroyed as a result of mistakes made by only a few companies… and this is only the beginning of Listeria Month!