Pricing for delivered-to-your-door groceries is weird. No one wants to pay the $20 delivery costs, so it gets buried in
- all prices raised ~10%-instacart
- some prices raised- my restaurant wholesaler Delta Produce
- annual sub-Whole Foods - annual sub + $5 delivery fee
- tips
Home
Public posts preserved on my own site.
~100% unit test code coverage discourages defensive programming.
1) guards. if f=x: raise
2) early returns. if f=x: return.
3) except block. Can't trigger an error? remove the catch!
1)&2) may or may not be a common case, but there might be many, many of these in a code base.
But high code coverage isn't bad. It's just that 80-90% is as far as you can get before you need tail wag the dog tricks to get coverage on the last uncovered lines.
♡ 0 ↻ 0
Literate programming tells a story of drama, lies & deceit.
if self.leader[9] == "a" or force_utf8:
# data = data.decode("utf-8", utf8_handling)
data = decode_anything_probably_utf_8(data)
else:
# data = data.decode(encoding)
data = decode_anything_who_knows(data)
I want to subscribe to the WashingtonGet, WashingtonPut, WashingtonPatch and WashingtonDelete.
when linters can't tell when a python line continues or not
requests.put( # noqa # nosec
url, # noqa # nosec
auth=awsauth, # noqa # nosec
json=payload, # noqa # nosec
headers=headers, # noqa # nosec
verify=False, # noqa # nosec
) # noqa # nosec
T-mobile's network fell over and convinced the internet there was a DDOS attack of a size never seen before. https://x.com/eastdakota/status/1272678168638500864
So the immunity period for known coronaviruses is ~ 2 years. If the infection mortality rate for your age bracket is 1%, then your odds off covid death are 10% in 20 years. (more because it goes up w/age)
This global DDOS may take down major internet sites, but it will never take down my org's VPN.
That is video conferencing's job. https://x.com/JDaley/status/1272643998432350208
How to freeze up an ssh session to an ec2 machine.
while True:
print("This ssh session will be unresponsive to control-c soon")
I haven't figured out a way to get out of this other than reboot
This broken code use to work a month ago. Likely theories:
A. I have moved into an alternative universe via quantum mechanics with memories of my previous universe
B. it never worked & no one noticed
Not B, therefor A.
I'm announcing my candidacy for the office of president. I will be running under the Dinner Party. My platform & slogan is "I'd like a house with a chef, so vote for me"
#python -- untyped, unannotated my ass, that just means you have to store in your brain that thing is Dict[str, List[Dict[str, Union[str, List[str]]]]] -- leaving off the annotation just shifts a typing burden to a cognitive burden
Stroke & heart attack are the 2 diseases that amateurs must know how to diagnose to get the patient to the hospital on time. Doctors like to say never try to diagnose yourself because you're stupid & didn't go to med school, but if you don't, that stroke or heart attack will kill
Oh, just go when you feel bad? Lots of people wave off heart attack and stroke victims are often not in a state to realize they're stroking out & a bystander has to realize what is going on.
♡ 2 ↻ 0
What is confusing is stepping thru-code and forgetting that it is multithreaded and each resume, resumes a different thread.
AWS Solution Architect on the job market, move fast to get 'em on your team. Well, move at least as fast as a crawl. https://x.com/trinertech/status/1271859963493855233
Vocab list
------------
quarantine pod
streatery
MIS-C
stonks
quantitative diseasing
OK, I just made up that last one.
Planned scrum workflow:
get jira ticket, work it, repeat.
Actual workflow:
Run linter & mypy, modify everything. Fix code coverage, modify everything. Repeat until jira tickets all are done at about the same time.
Where is the social media website to find members for your quarantine pod?
Dow down 7%, S&P down 6%, the news story is that there is so much other news that this isn't front page news on WaPo or nytimes
If you have to explain it, it isn't funny. But if it needs a bibliography, the bibliography should make it funny.
So Java, Swift Javasript have Emoji variable names, but I really *need* meme comments, so I can properly document
def do_it(self) -> str:
# meme https://x.com/mistersql/status/1271176395956379648/photo/1
The recovery will be wwww______q shaped
My brain is 1% civil liberties compliant. My facial recognition is bad enough that it only works 99% of the time. Celebrities are the worst, I'm the last to learn their faces.
Did Microsoft sabotage Skype for Business? 7 IT pros on my team are all suffering trying to install and log in. Does it work anymore for anyone in the world?
Deloitte botched FL's system, but did the same system for MA-- and MA had 60% of unemployed successfully applying. So client sabotage matters. https://x.com/mistersql/status/1270702468972806148
Wasn't expecting to see a YSOD on Vox https://x.com/mistersql/status/1270702468972806148
Bad government software in red states is the goal, not an accident, e.g. Florida's unemployment completely broken website, only 10% of unemployed could successfully file. https://www.youtube.com/watch?v=ualUPur6iks
META: Everyone has been tweeting to the entire user base and I haven't seen once a chain of "will everyone please stop tweeting to everyone!" and "unsubscribe me!"
# My code has a surprised monkey at the end.
indicator1s: Tuple[str, ...] = ()
The point of misunderstanding a slogan is to show contempt for the people behind the slogan, not so much to convey an evaluation of the policy.
nonce- used 1x
twonce- used 2x
n-nonce- used n times
constonce- used forever https://x.com/vcsjones/status/1270022161114247170
And right in the middle of they day Walmart suspends NextDay for excess demand. Weird, because I don't care what day it arrives, I just want free delivery to my door. https://x.com/mistersql/status/1269393003543695360
Take up gardening they said.
Now you need a telemedicine appointment to see if that circular rash is lyme they said.
http://Jet.com disappeared and has been replaced by a shipping policy on http://walmart.com (NextDay free for over $35)-- now I gotta learn how to search a different website. Sigh.
But if they decided not to obey the law, there are no consequences. Heck cops can even kill people with no consequences, so what the judicial or executive branch says is just, like, their opinion, man. https://x.com/allisonsherry/status/1269112367398350848
Turns out there were 2+ mistaken identity before the arrest & I retweeted one of 'em. Oops. https://www.washingtonian.com/2020/06/05/arrest-made-in-bethesda-bike-assault/
Powershell 7's startup is pretty fast (<400ms? 5 takes 2000ms)
Give it another 14 years it will start as fast as bash.
Found in my Amazon box, a lost 10 pack of Biscoff. If they are yours reply with serial number as proof of ownership of the remaining cookies. (Dairy & egg free, so I can find a home for them in my belly if not claimed) https://x.com/mistersql/status/1268678457455783937/photo/1
Live every day like yesterday was your last.
I'm a ghooooooost! A ghooooooooost!
Timely- I got 3 social groups that all of sudden either have or need Discord in the mix https://twitter.com/froidotdev/status/1268654093293236225