KATA: write a custom List/Collection/etc that is indexible with a user settable starting point and distance between indexes, i.e.
l = CompromiseList()
l.start = 0.5
l.increment = lambda x : x^2
i.add(7)
i.add(12)
print(i[0.5])
> 7
print(i[0.25])
> 12
Flexibility FTW! https://x.com/CodeWisdom/status/1040942560896851969
Home
Public posts preserved on my own site.
High speed trains could move people from Appalachia to places where there are jobs fast enough that they wouldn't have to move to the city. Senators & representatives just west of the Acela corridor should be pouring money into high speed rail.
https://www.youtube.com/watch?v=yc8SlAiyneg
Best way to do personal social engineering:
My thinking- Toyota, et al, builds car in AL to bust unions. Ford builds cars in MX to stay in business, but since it is 1 market, should it matter same as if it were NM or Toronto?
Everyone report to work! It is just a little weather. https://x.com/mistersql/status/1040683451865804800/photo/1
me: API, tell me how you don't care what type I give you
API: I want a Union[str, None, Tuple[str, Optional[str], str]]. See I really don't care what type I get.
You put the waffle on the griddle, wait 5 minutes, then pour the waffle onto the customer's plate. https://x.com/MaryKMcKenzie/status/1040643787200946176
Waffle House has the Waffle House Index to gauge how bad a Hurricane is. But you can also check the Hilton Index- the next day on Myrtle Beach Hilton's willing to book, which is about Monday.
Hotel availability encodes displacement & if hotels are closed due to storms.
Duck typing
from typing import Dict
Duck = Dict
def quack(bird:Duck):
bird["Quack"] = "Quack"
return bird
(Can we rule out that people weren't thinking Dict Typing? If it quicks like a dict, wilks like a dict, it is a dict.)
Get ready folk
Buy a case of LaCroix
Buy a pack of star stickers and print out your twitter newsfeed
Can't think of anything else we need to do.
KATA: Write "hello world", but electronically deliver a message to each person in the world.
I saw the movie "Her", I think that cell phone is hitting on me. https://x.com/mistersql/status/1040273124225437697/photo/1
Reading "Fear": What we out to fear is Russia- they're an existential threat & we have a Russian puppet & traitor in the White House, whose sole qualification is he can disparage the people who work in the government & military in soundbites that Fox viewers love.
Django + mypy
def hello_world(request: ¯\_(ツ)_/¯ ) -> ¯\_(ツ)_/¯ :
return HttpResponse()
Attributes just magically appear on HttpRequest and HttpResponse & short of running the app, no tool can figure out why.
I'm not ready for a hurricane, I only remember a little of my ASL.
How we getting audible feedback for signaling a script finished?
AWS s3 Security UI is so bad, folk ought to think of it as a form of pastebin that can be private if you're an advanced user.
https://github.com/nagwww/s3-leaks
IDEA: If developers wrote all their code on trains, they'd write code that was bulletproof with respect to network latency and dropped connections.
Like WeWork coworking space but on trains-- a ticket to nowhere and back that takes 8 hours a day.
Looks like we're going to be hammered by a communist sickle
☭ https://x.com/capitalweather/status/1039648677818720257
Buying food & they suggested tips were $1, $2, $5, none near 15%. So I try to type in $3, hit too many zeros. ($30) Clerk pushes the approve button for me(!!!) & then the UI has no way to undo the transaction w/o calling some remote office worker.
Today is Fear-day! The Woodward book is out.
https://smile.amazon.com/gp/product/B075RV48W3/?ref=spkl_4_1_d5b8f335-df55-414c-81e1-8f2a97b0e6b1&qid=1536674349&pf_rd_p=d5b8f335-df55-414c-81e1-8f2a97b0e6b1&pf_rd_m=ATVPDKIKX0DER&pf_rd_t=301&pf_rd_s=desktop-auto-sparkle&pf_rd_r=NQA9YQ0X7N8JE8VHA0N5&pf_rd_i=fear
This is what I'm reading on the train back home today.
What is a Break-Fix? Here is a visual.
I have no idea if the jargon "break-fix"exists outside of a certain gov't IT department in DC. https://x.com/Scott_Thomas/status/1039497900336787456
Amtraking in the rain. I'm not complaining, beats Amtraking in an outdoor oven any day.
Kumon costs $3.22 day + 18 cent surcharge for odd months Jan to Jul & even moths Aug to Dec. The rest of the months have $3.40 surcharge. You need to pass your level D's to calculate the cost of February.
Actually it is $120-$160/mo nowadays. Inflation & all.
♡ 0 ↻ 0
So my son decided that the main use of SUVs is for camping specifically sleeping in the back
So I'm planning a camping trip using @DriveMaven-GM's zipcar-like car rental service. A Cadillac XT5 costs about as much as hotel per night
I just need to pick a campground to go to https://x.com/mistersql/status/1038413174423339008/photo/1
Flood! Head to the higher floors. You can survive for days on office coffee and vending machine chips.
Twitter is backup Slack.
This is the boundary of a free speech absolutist. "Everyone is free to engage in abusive speech against others, but not against *me*." https://x.com/danielwbond/status/1037808581540765696
In a 100 years, pypi will be a literal graveyard
"This is a Python library for finding links feeds on a website. It is based on feedfinder - originally written by Mark Pilgrim and subsequently maintained by Aaron Swartz until his untimely death."
https://pypi.org/project/feedfinder2/
Password fields that don't show you what characters you type or if you typed anything... it isn't enough.
The computer should ROAR at 500 decibels. The room should fill full of smoke. The keyboard should discharge 200 volts just in case. The screen should flash black and white..
Why? SOMEONE might be looking over your shoulder.
As you type, alerts should be sent to all your phones, all your contacts, and a USPS envelope sent to your mother. SOMEONE ELSE might be typing your password.
The computer should then flood the room, a fan turns on and blows...♡ 0 ↻ 0shit all over the walls. Why? Security? No, this time just because we hate the f'k'ng user.
Anyhow, pypi's twine password field is $#!+ and there is nothing anyone can do about it.♡ 2 ↻ 0
Thing I've learned driving my Malibu Hybrid:
1) You get better MPG if you change your driving habits
2) Cruise control helps MPG, it isn't just a novelty
3) Think of transmission as semi-automatic, you get better scores by switching back and forth from L to D
Highest score: 75MPG
(small print: 75MPG was for a 5 minute time window, last 100 miles average is something closer to 40)
♡ 0 ↻ 0
A cool local conference- Campaign Tech - https://campaigntecheast.com/
Nike made the right choice.
(You ever wonder why I post this brand/PR stuff? I happen to work at a firm that does brand/PR stuff.)
https://www.youtube.com/watch?v=qLXzPDteFks
Lodestar was the name of a game that Elon Musk worked on as a Jr developer - Wikipedia says so, gotta be true. https://en.wikipedia.org/wiki/Loadstar:_The_Legend_of_Tully_Bodine#Development
Sorry Loadstar
♡ 1 ↻ 0
I'm going to guess you could solve with with sk-learn in an afternoon if you had enough writing samples from the likely resistors. I'd predict the word choices that give them away wouldn't be dull words. https://x.com/poniewozik/status/1037512865245265921
Booked my trip to PyGotham!
Drool over this talk schedule: https://2018.pygotham.org/talks/schedule/
This was a great read- highly recommended for anyone who likes pop-science or pop-math. https://x.com/JSEllenberg/status/1036991847216885761
FEMA phone app needs notification levels:
Send notif only if
- You're lonely or I'm lonely <-- current default level
- Weather is happening
- People are dying
- Remember the movie 2012? Worse than that
All my #python code is strongly typed to Dict[str, Any]
I think that vertical line is also a rain line- the 100th meridian. https://x.com/gundographics/status/1037009337372180480
Article on 100th Meridian - https://www.earthmagazine.org/article/dividing-line-past-present-and-future-100th-meridian
♡ 0 ↻ 0