Skip to content

Instantly share code, notes, and snippets.

We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 15 columns, instead of 14. in line 5.
Case number,Country,Nationality,City/region,Residence,Age,Sex,Travel history,Date announced,Status,Recovery or death date,Treatment facility,Likely source of infection,CDC origin type,Notes
188,Singapore,Singapore,,,53,male,Thailand from 23 February to 1 March,2020-03-13,,,,imported case from Thailand,Travel-related,
191,Singapore,Malaysian,,,24,female,"Germany from 24 February to 28 February, Malaysia from 28 February to 3 March",2020-03-13,,,,imported case from Germany or Malaysia,Travel-related,
1,Singapore,China,,,66,male,"arrived in Singapore from Wuhan, China on 20 January",2020-01-23,discharged,,,"imported case from Wuhan, China",Travel-related,
2,Singapore,China,,,53,female,"arrived in Singapore from Wuhan, China on 20 January",2020-01-24,discharged,,,"imported case from Wuhan, China",Travel-related,
3,Singapore,China,,,37,male,son of case 1; it’s not clear if case 3 also traveled or if he was merely around case 1,2020-01-24,discharged,,,"via case 3 or imported from Wuhan, China",Travel-related or per
@riceissa
riceissa / note.md
Last active March 13, 2020 07:09
php-fpm/apache can't find extensions after ubuntu/debian upgrade

I've encountered this bug twice now, after upgrading ubuntu in january 2018 (probably to ubuntu 17.10) and when upgrading debian from stretch to buster.

here's what the bug is like. running things like php -m | grep mysqli shows that the commandline version of php can find extensions, but doing print_r(get_loaded_extensions()); in a php file and then viewing it in the browser shows that the extensions are not loaded in php-fpm/apache.

Here are some things that are suggested on stack overflow and similar sites, but they don't work:

title url
About these notes https://notes.andymatuschak.org/
§Corporate research lab practices https://notes.andymatuschak.org/%C2%A7Corporate_research_lab_practices
§Enabling environments, games, and the Primer https://notes.andymatuschak.org/%C2%A7Enabling_environments%2C_games%2C_and_the_Primer
§Inboxes and attention management https://notes.andymatuschak.org/%C2%A7Inboxes_and_attention_management
§Knowledge work as serious discipline https://notes.andymatuschak.org/%C2%A7Knowledge_work_as_serious_discipline
§Note-writing systems https://notes.andymatuschak.org/%C2%A7Note-writing_systems
§Taking knowledge work seriously (Stripe convergence talk, 2019-12-12) https://notes.andymatuschak.org/%C2%A7Taking_knowledge_work_seriously_(Stripe_convergence_talk%2C_2019-12-12)
“Better note-taking” misses the point; what matters is “better thinking” https://notes.andymatuschak.org/%E2%80%9CBetter_note-taking%E2%80%9D_misses_the_point%3B_what_matters_is_%E2%80%9Cbetter_thinking%E2%80%9D
“Chunks” in human cognition https
#!/usr/bin/env python3
import re
import requests
import datetime
import dateutil.parser
from bs4 import BeautifulSoup
# url = "http://reflectivedisequilibrium.blogspot.com/sitemap.xml"
# url = "https://terrytao.wordpress.com/sitemap.xml"
@riceissa
riceissa / file.md
Last active February 24, 2020 09:44
The Uncertain Future
@riceissa
riceissa / dump.md
Created February 19, 2020 01:38
GW bug

a

#!/usr/bin/env python3
import numpy as np
class Organism:
def __init__(self, name):
self.wealth = 30
self.name = name
self.alive = True
#!/usr/bin/env python3
import numpy as np
def flip():
return np.random.choice([0, 1])
def play(wealth, cost, max_rounds=1e5):
num_rounds = 0
while wealth > cost and num_rounds < max_rounds: