Grilled Cheese

ExploreLog inSign up

Jens von Bergmann

@jensvb.bsky.social

623 Following9.9k Followers

Data, analysis, visualization, #CensusMapper, transportation cyclist. 📍Vancouver, BC

PostsRepliesMedia
@jensvb.bsky.socialDec 5, 2026, 7:46 PM

Another CensusMapper timeline story: The rise of No Religion.
Watch how people declaring no religious affiliation rise from 7.4% in 1981 to 35% in 2021. censusmapper.ca/maps/3602?z=...

@jensvb.bsky.socialDec 4, 2026, 6:22 PM

Reminder that {canpumf} makes it ridiculously easy to work with the LFS pumf and keep it up to date. And query data fast and efficiently, this code chunk runs in sub-second time. Easy to apply filters and cross-tabs on the fly.

library(tidyverse)
library(canpumf)

lfs_particpation <- get_pumf("LFS_TIMELINE",refresh = "auto") |>
  filter(AGE_12 %in% c(
    "20 to 24 years", "25 to 29 years", "30 to 34 years", "35 to 39 years", 
    "40 to 44 years", "45 to 49 years", "50 to 54 years", "55 to 59 years", 
    "60 to 64 years"
  )) |>
  mutate(in_labour_force=LFSSTAT != "Not in labour force") |>
  add_lfs_columns("SURVDATE") |>
  summarize(Value=sum(FINALWT), .by=c(SURVDATE, GENDER_SEX, in_labour_force, AGE_12)) |>
  mutate(rate=Value/sum(Value),.by=c(SURVDATE, GENDER_SEX, AGE_12)) |>
  filter(in_labour_force ) |>
  collect()

ggplot(lfs_particpation, aes(x = SURVDATE, y = rate, colour = GENDER_SEX)) +
  geom_line(alpha = 0.3) +
  geom_smooth(method = "loess", formula = y~x, span = 0.05, se = FALSE, linewidth = 0.8) +
  geom_vline(xintercept = as.Date("2006-01-01"), linetype = "dashed") +
  scale_y_continuous(labels = scales::percent) +
  facet_wrap(~AGE_12, scales="free_y") +
  labs(title = "Labour force participation rate by age and gender/sex, 1976 onward",
       subtitle = "Monthly, not seasonally adjusted; dashed line: LFS_HIST to LFS",
       x = NULL, y = "Paricipation rate", colour = NULL,
       caption = "StatCan LFS PUMF (1976-2005 via Borealis/ODESI)")
@jensvb.bsky.socialDec 4, 2026, 4:17 PM

I imagine teaching comes with additional challenges after being caught with major academic misconduct.

@jensvb.bsky.socialDec 4, 2026, 4:09 AM

What are the odds that students will start showing up to her class with typewriters to take notes… (clack-clack-clack-bing … zzzippp-clunk)

@jensvb.bsky.socialDec 3, 2026, 5:44 PM

Super interesting episode! Homesharing is mostly a coping mechanism in the face of out of reach rents, most people prefer living on their own. That said, this coping mechanism is important and there is significant search friction to find shared accommodation. Reducing these barriers is good.

SShane Phillips@shanedphillips.bsky.socialDec 2, 2026, 6:55 PM

This week on UCLA Housing Voice we're joined by Atticus LeBlanc of PadSplit, the largest homesharing marketplace in the US. As a practice-oriented follow-up to our previous episode on minimal household units, we talk about homesharing as a solution to empty bedrooms. lewis.ucla.edu/2026/12/02/1...

Photo, no description
@jensvb.bsky.socialDec 3, 2026, 3:22 PM

It feels like there are so few examples where the world community got together and actually got things done to make the world a better place. Smallpox. Montreal Protocol. Maybe leaded gasoline? Rinderpest? What else?

SSaloni@scientificdiscovery.devDec 3, 2026, 2:40 PM

Big new piece by me! Wiping out smallpox cost under two billion dollars in today’s money, roughly the cost of building one large bridge. But most people didn’t believe it could be eradicated until a few years before it happened. This is how the most ambitious project in history succeeded.

worksinprogress.coHow the world wiped out smallpox for under two billion dollars - Works in Progress MagazineEradicating smallpox cost the price of a dozen miles of highway. But it almost didn’t happen at all.
@jensvb.bsky.socialDec 3, 2026, 6:20 AM

Checkin in on my favourite government server.... "This server does not support PQC (Post-Quantum Cryptography) key exchange." Also no TLS 1.3? In 2026?

Photo, no description
@jensvb.bsky.socialDec 3, 2026, 6:17 AM

Running some tests, as one does... The line I was looking for: "This server supports PQC (Post-Quantum Cryptography) key exchange."

Photo, no description
@jensvb.bsky.socialDec 3, 2026, 6:03 AM

“Show that P=NP You should do a breakthrough and give a constructive equivalence”

@jensvb.bsky.socialDec 3, 2026, 12:00 AM

{safeconduct} adds more robust error handling, handling of redirects (there is a staggering number of redirects on StatCan webpages), more robust loading of webpages for data discovery, more informative error message, and more robust navigation across hostile web and data territory.

mountainmath.github.ioFetch Files Through a Real Browser When a Plain Request is RefusedSome servers refuse any request that does not come from a web browser, with a browser check or a block page instead of the file, Cloudflare being the common case. This package opens a real Chrome with...
@jensvb.bsky.socialDec 3, 2026, 12:00 AM

... automatic handling of non-unique labels where statcan assigns duplicate labels to different values in the same column, onboarding of new PUMF files into the registry, faster bootstrap weights generation, bilingual label switching for easier multi-lingual reports, and more.

@jensvb.bsky.socialDec 3, 2026, 12:00 AM

{canpumf} got a bunch of other upgrades. Consolidated IVT inventory/discovery listing via `list_pumf_catalogue`, new `get_pumf("LFS_TIMELINE")` that reconciles pre-2006 and modern LFS pumf, new `pumf_sidecar` for secondary tables with more details on sentinel values, labels as column attributes, ...

mountainmath.github.ioParse StatCan PUMF FilesFacilitate working with Statistics Canada (StatCan) Public Use Microdata Files (PUMF). Enables downloading of available PUMF data, parsing of metadata from command files or other sources to infer the ...
@jensvb.bsky.socialDec 3, 2026, 12:00 AM

{canpumf} v0.7.0 is now on CRAN. Together with {safeconduct} v0.1.1 this mediates data access issues introduced by StatCan increasingly blocking access. Installing both updates will bypass the blocks in interactive sessions, fully automated data pipelines will still fail until StatCan fixes this.

canpumf and safeconduct R packages
@jensvb.bsky.socialDec 1, 2026, 4:04 PM

Same, I am already over-committed on projects this holiday season and will only do the occasional AoC here or there as I stumble into a “free” evening.

@jensvb.bsky.socialDec 1, 2026, 2:55 PM

Advent of Code always had a retro feel to it, nowadays it almost feels like an act of resistance. Or maybe just a last-ditch effort of self-validation… Strange times.

A@alexwarrior.bsky.socialDec 1, 2026, 5:04 AM

Time for Advent of Code 2026 adventofcode.com

Photo, no description
@jensvb.bsky.socialDec 1, 2026, 5:41 AM

I see this madness and raise you four independent layers of land use regulation. Zoning (same colour represents multiple zones, the blue polygons are basically each their own zone), subdivision (minimum lot sizes) ODPs (maximum you might get rezoned to) and view cones.

Zoning, same colour represents multiple zonesSubdivision overlay, sets minimum lot sizes and frontagesODP overlay, specifies the maximum one might be able to get a parcel rezoned toView cones, only 2D shadows are publicly available, the city refuses to share their 3D view cone specifications
PPeter Tulip@petertulip.bsky.socialDec 1, 2026, 5:22 AM

Defenders of zoning say that it is intended to "separate incompatible uses". Hard to reconcile with this zoning map of Carlton, 3km north of central Melbourne.

Photo, no description
@jensvb.bsky.socialDec 1, 2026, 4:57 AM

I implemented a bunch of models (next to regular Goodman regression) and tested them on maps where we also have data on ground truth. For some I don’t have useful diagnostic tests, for others there are some to help guide interpretation. But this is way too complex for average CensusMapper viewers.

Photo, no description
@jensvb.bsky.socialDec 1, 2026, 4:52 AM

Testing a new feature, dynamic ecological inference models in CensusMapper. I am torn, on the one hand we already have scatterplots widgets that can mislead people toward the ecological fallacy. On the other hand, simplistic 2x2 EI models aren’t generally much better on real world data.

Photo, no description
@uytaelee.bsky.socialNov 30, 2026, 8:02 PMReposted by @jensvb.bsky.social

NEW VIDEO: Could this replace the single family house?

For generations, a detached house with a yard represented the quintessential image of a family home - the Canadian dream. But as that dream becomes a pipe dream in cities like Vancouver and Toronto, what comes next?

youtu.be/uv0i86Icv6M

youtu.beIs this Canada's Next Family Home?YouTube video by About Here
@jensvb.bsky.socialNov 30, 2026, 3:50 AM

I'll gladly hand the baton to you. (Happy to share my code if that speeds things up.)

Older posts
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-12-03 22:42:33 EST