Skip to content

Instantly share code, notes, and snippets.

Issa Rice riceissa

Block or report user

Report or block riceissa

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
riceissa /
Last active Mar 29, 2020
breeder's index
#!/usr/bin/env python3
import requests
import math
from bs4 import BeautifulSoup
import pdb
def breeder_index(sons, daughters, wives):
return (1.1 * sons + math.log(1 + daughters)) / (1 + 0.3 * wives) - (1/4 if wives > 0 else 0)
View cases.csv
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 /
Last active Mar 13, 2020
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:

View urls.tsv
title url
About these notes
§Corporate research lab practices
§Enabling environments, games, and the Primer
§Inboxes and attention management
§Knowledge work as serious discipline
§Note-writing systems
§Taking knowledge work seriously (Stripe convergence talk, 2019-12-12)
“Better note-taking” misses the point; what matters is “better thinking”
“Chunks” in human cognition https
#!/usr/bin/env python3
import re
import requests
import datetime
import dateutil.parser
from bs4 import BeautifulSoup
# url = ""
# url = ""
riceissa /
Last active Feb 24, 2020
The Uncertain Future
#!/usr/bin/env python3
import numpy as np
class Organism:
def __init__(self, name):
self.wealth = 30 = name
self.alive = True
You can’t perform that action at this time.