Peter Bengtsson

Results 124 issues of Peter Bengtsson

User Henri Witteveen [reports](http://www.peterbe.com/plog/django-fancy-cache#cef2e20) that his prefixer function isn't being called with the same parameters as the view is.

This project currently uses stdout to print or it writes to files in a certain directory. It would be much better to correctly integrate with properly configured logging.

I'd love to be able to do `fm.serialize(attributes, body)`. This should work: ```javascript const metadata = {foo: "bar"} const payload = "Hi there!" const combined = fm.serialize(metadata, payload) const parsed...

In TravisCI `stable` means Node 14. We ought to test in Node 12 too since it's so common.

Here's a m3u8 URL that has CORS headers on it and uses mp4 chunks https://mozillalive-a.akamaihd.net/Akamai_Public/ngrp:MTV-Commons_all/playlist.m3u8 I put this into the index.html template but when I try to load it I...

Noticed something weird in my Activity Monitor, "flow". ``` ▶ ps ax | grep flow | grep -v grep 52430 ?? Ss 0:44.20 /Users/peterbe/dev/MOZILLA/DELIVERY_DASHBOARD/delivery-dashboard/node_modules/flow-bin/flow-osx-v0.64.0/flow monitor 59390 ?? S 0:21.38 /Users/peterbe/dev/MOZILLA/DELIVERY_DASHBOARD/delivery-dashboard/node_modules/flow-bin/flow-osx-v0.64.0/flow...

This is definitely a feature that can wait but the fetch calls all assume that JSON is returned. https://github.com/mozilla/delivery-dashboard/blob/900b00ee12efe6bbd0c6ef6c4eddc0cb59860e52/src/PollbotAPI.js#L15-L34 If anything goes wrong with the request, there might not be...

About a decade ago it was shown that Cheerio is 8x faster than JSDOM. See https://habr.com/en/post/163979/ from 2012. It's a bit "hard to read" since it's written in Russian but...

## Steps to reproduce: 1. `mkdir content/en-US/html/reference/elements/button` 2. `npm run build-json` ## Expected outcome: ``` Packaged content/en-US/html/HTML.md to packaged/en-US/html.json Packaged content/en-US/html/guides/Applying_color/Applying_color.md to packaged/en-US/html/guides/Applying_color.json Packaged content/en-US/html/guides/Block-level_elements/Block-level_elements.md to packaged/en-US/html/guides/Block-level_elements.json Packaged content/en-US/html/guides/CORS_enabled_image/CORS_enabled_image.md to...

## Steps to reproduce: 1. `mkdir content/en-US/html/reference/elements/button` 2. `npm run build-json` ## Expected outcome: ``` Packaged content/en-US/html/HTML.md to packaged/en-US/html.json Packaged content/en-US/html/guides/Applying_color/Applying_color.md to packaged/en-US/html/guides/Applying_color.json Packaged content/en-US/html/guides/Block-level_elements/Block-level_elements.md to packaged/en-US/html/guides/Block-level_elements.json Packaged content/en-US/html/guides/CORS_enabled_image/CORS_enabled_image.md to...