paulgorman.org

< ^ txt

Fri Jul 24 06:00:01 EDT 2020 ======================================== Slept from eleven to seven. Mostly sunny. Highs in the lower 80s. Northeast winds up to 5 mph. Twenty-minute walk in the morning. Pleasantly cool. Heard a mourning dove and saw a blue jay. Said "good morning" to a couple people. Realized the other day that I play this weird game with myself when I cross paths with people of only waving or saying hi if they greet me or make eye contact first. Decided just to loudly and clearly greet everyone preemptively from now on. Work ---------------------------------------- - Work on lockbox utility Done. - 2:30 PM weekly Entrata call Done. - PO details for Entrata migration? Done. - Order two (3–6′?) Ethernet cables for Oak Park (and a UPS) Done. - Call Lindsay at Yardi to escalate. Who can I talk to? Keep Lindsay on our side. Left voicmail. - Call/email Julie and Heidi to let them know if I made any progress with Yardi Done. - Send work log to Jamie Done. VS Code has a double-backtick shortcut that switches tabs(?), apparently the same as Ctrl-Tab. It overrides the Vim (plugin) back-to-previous-jump-locations shortcut. No, it might not be VS Code; the Vim plugin might have something messed up with marks and jumps. Annoying. Meditated for ten minutes during lunch. Home ---------------------------------------- - Grocery delivery 11 AM – 1 PM Done. - Update Go `errors` notes Done. - Website or pixel art stuff or D&D? Done. The Whole Foods deliveries are so much lower-drama than Instacart — fewer things out of stock, delivery drivers who can always find the address. Vacuumed. Played with a little D&D stuff. Added an entry to Ning's Cyclopean Bulwark. https://teenage.engineering/ ``` 🐚 fortean ~ $ swaymsg input "2:7:SynPS/2_Synaptics_TouchPad" events disabled 🐚 fortean ~ $ swaymsg input "2:7:SynPS/2_Synaptics_TouchPad" events enabled ``` Scaling up pixel art for the web? https://developer.mozilla.org/en-US/docs/Web/CSS/image-rendering ``` <img style="image-rendering:crisp-edges;width:600px;" src="test.gif" /> ``` > Note: Although crisp-edges is supposed to use a pixel-art scaler like in the specification example, in practice no browsers (as of January 2020) does so. In Firefox, pixelated is interpreted as nearest-neighbor, while auto and crisp-edges are interpolated as trilinear or linear. - In Firefox, upscaled pixel art looks fine with `crisp-edges` but blurry with `pixelated`. - In Chrome, the opposite is true. Sigh. Sigh. It's probably better to scale the image, and not leave it to the browser. ``` 🐚 fortean ~ $ convert -sample 640x640 test.gif testx10sample.gif 🐚 fortean ~ $ convert -sample 6400x6400 test.gif test-100xsample.gif 🐚 fortean ~ $ convert -scale 6400x6400 test.gif test-100xscal.gif 🐚 fortean ~ $ ls -lh test* -rw-r--r-- 1 paulgorman paulgorman 93K Jul 23 21:29 test-100xsample.gif -rw-r--r-- 1 paulgorman paulgorman 88K Jul 23 21:32 test-100xscal.gif -rw-r--r-- 1 paulgorman paulgorman 1.2K Jul 23 21:24 test.gif -rw-r--r-- 1 paulgorman paulgorman 5.7K Jul 23 21:28 testx10sample.gif 🐚 fortean ~ $ identify test.gif test.gif GIF 64x64 64x64+0+0 8-bit sRGB 256c 1191B 0.000u 0:00.000 🐚 fortean ~ $ identify test-100xscal.gif test-100xscal.gif GIF 6400x6400 6400x6400+0+0 8-bit sRGB 8c 89539B 0.000u 0:00.000 🐚 fortean ~ $ identify test-100xsample.gif test-100xsample.gif GIF 6400x6400 6400x6400+0+0 8-bit sRGB 256c 94338B 0.000u 0:00.000``` 🐚 fortean ~/img-scale-test $ convert -resize 640x640 -filter point test.gif test-resize-point-640.gif 🐚 fortean ~/img-scale-test $ convert -resize 1280x1280 -filter point test.gif test-resize-point-1280.gif 🐚 fortean ~/img-scale-test $ ll total 224K 96K -rw-r--r-- 1 paulgorman paulgorman 93K Jul 23 21:29 test-100xsample.gif 88K -rw-r--r-- 1 paulgorman paulgorman 88K Jul 23 21:32 test-100xscal.gif 4.0K -rw-r--r-- 1 paulgorman paulgorman 1.2K Jul 23 21:24 test.gif 4.0K -rw-r--r-- 1 paulgorman paulgorman 339 Jul 23 22:09 test.html 16K -rw-r--r-- 1 paulgorman paulgorman 13K Jul 23 22:22 test-resize-point-1280.gif 8.0K -rw-r--r-- 1 paulgorman paulgorman 5.7K Jul 23 22:20 test-resize-point-640.gif 8.0K -rw-r--r-- 1 paulgorman paulgorman 5.7K Jul 23 21:28 testx10sample.gif 🐚 fortean ~/img-scale-test $ identify test-resize-point-1280.gif test-resize-point-1280.gif GIF 1280x1280 1280x1280+0+0 8-bit sRGB 256c 12514B 0.000u 0:00.000 ``` So, probably ImageMagick's `convert -resize 2000% -filter point` for good quality at good file size. US tests / positive results (higher is better, ideally dozens): 12 10 12 12 12 12 12 11 12 12 13 12 11 11 (today) 3-day avg: US new deaths: 854 → 757 → 476 → 327 → 736 → 855 → 977 → 951 → 872 → 523 → 365 → 1024 → 1126 → 1039 → (today) 3-day avg: MI tests / positive results (higher is better, ideally dozens): 37 40 54 41 31 33 29 40 41 54 42 34 45 39 (today) 3-day avg: MI new deaths: 14 → 28 → 1 → 7 → 5 → 4 → 18 → 7 → 9 → 2 → 7 → 9 → 6 → 7 → (today) 3-day avg: Oakland county new deaths: 0 → 0 → 3 → 1 → 0 → 0 → 2 → 0 → 2 → 0 → 0 → 0 → 1 → 1 → (today) 3-day avg: Beaumont 06/18: COVID-19 patients: 117; COVID-19 ICU patients: 57; all patients bed occupancy: 72% Beaumont 06/22: COVID-19 patients: 122; COVID-19 ICU patients: 56; all patients bed occupancy: 64% Beaumont 06/25: COVID-19 patients: 123; COVID-19 ICU patients: 51; all patients bed occupancy: 71% Beaumont 06/29: COVID-19 patients: 121; COVID-19 ICU patients: 49; all patients bed occupancy: 66% Beaumont 07/02: COVID-19 patients: 137; COVID-19 ICU patients: 61; all patients bed occupancy: 72% Beaumont 07/06: COVID-19 patients: 115; COVID-19 ICU patients: 45; all patients bed occupancy: 61% Beaumont 07/13: COVID-19 patients: 139; COVID-19 ICU patients: 49; all patients bed occupancy: 68% Beaumont 07/16: COVID-19 patients: 179; COVID-19 ICU patients: 56; all patients bed occupancy: 71% Beaumont 07/20: COVID-19 patients: 174; COVID-19 ICU patients: 53; all patients bed occupancy: 60% HCC Region 2 North 07/07: in critical 43, on ventilators 32, inpatients 82 HCC Region 2 North 07/09: in critical 36, on ventilators 33, inpatients 96 HCC Region 2 North 07/13: in critical 38, on ventilators 39, inpatients 119 HCC Region 2 North 07/15: in critical 44, on ventilators 31, inpatients 132 HCC Region 2 North 07/17: in critical 45, on ventilators 31, inpatients 126 HCC Region 2 North 07/20: in critical 45, on ventilators 42, inpatients 135 HCC Region 2 North 07/21: in critical 55, on ventilators 45, inpatients 151 HCC Region 2 North 07/22: in critical 49, on ventilators 41, inpatients 144 HCC Region 2 North 07/24: in critical 46, on ventilators 41, inpatients 154 Servings: grains 7/6, fruit 1/4, vegetables 3/4, dairy 2/2, meat 2/3, nuts 0/0.5 Brunch: carrots, cucumber, orange, coffee Lunch: egg and tomato wrap Dinner: cookies, Cheetos

< ^ txt