I'm at the hotel & I'm joking, well Alexa isn't here. So I say, "Alexa! Play Kung Fu Fighting!"
And the kindle starts playing. Alexa is always with you.
Home
Public posts preserved on my own site.
Status- paralyzed between adding a [tool] section to pyproject.toml and creating another .settings file. If all tools used pyproject, it would rapidly become the windows registry of the python world.
On the otherhand, I'm annoyed by the HUGE list of .settings files & I'm ready to move them all to a nonstandard location like /.config/
♡ 1 ↻ 0Thought: settings.ini is a Dict[str,Dict[str,str]]. Toml is more like Dict[Any,Any]
♡ 0 ↻ 0
I'm trying to fill in contact info for StackOverflow users in a http://setup.py file... turns you that (probably) many of them could be found via github: https://github.com/paulirish/github-email
http://setup.py should have standardized on twitter
Bird rights activists let us know they are entitled to some bread https://x.com/mistersql/status/1342889374585921538/photo/1
Robot's mad at us. https://x.com/RealSexyCyborg/status/1342774549822066688
Today's pet peeve:
pypi, full of wonderful packages! yeah!
pypi, full of libraries that are really cli-only interfaces.
cf black, has cli + usable way to `import` & call()... so 20 lines of subprocess code vs 2 lines of import/call()
KATA: generate all versions of "You've heard about the elf on the shelf, but what about the {rhyme1} on the {rhyme2}"
Extra credit "what about the orange on the {rhyme2}"
Don't forget to check https://isitchristmas.com/ tomorrow & hit f12 for the console chat.
KATA: give a name to numbers from 1 to 100,000,000, eg Jane Lois Fitzgerald, and figure out a way to repeatably look up the name for 65m
Most name generators aren't repeatable & need to generate 63m names to repeatably get the 63m name.
Wife says this is no way to name a child
So this makes names like crabby_office from a number & could be reversable.
https://github.com/matthewdeanmartin/so_pip/blob/main/so_pip/parse_python/make_name.py♡ 0 ↻ 0Problems:
- I'd like a user created prefix, e.g. fizz_buzz_crabby_office
- but that would break reversability if folk picked names from the same space♡ 0 ↻ 0So I solved this and it works by mapping 10,000 random words over 10,000^2 different specific ints. Try a few dozen examples...
9008451 => video_benz
40476966=> boobs_handled
Sigh. This algorithm needs more work.♡ 0 ↻ 0
My app is now using itself to improve itself, so that is step one on the way to the singularity. Historians will say, "How did we end up with AI led technofacism? Well, it started with a joke about copy-pasting StackOverflow code"
https://github.com/matthewdeanmartin/so_pip/tree/main/so_pip_packages/find_imports
IDEA: remake of The Office, but everyone works remote.
On VHS I watched “attack ships on fire off the shoulder of Orion. I watched C-beams glitter in the dark near the Tannhäuser Gate. All those moments will be lost in time, like tears in rain. Time to remaster to DVD.” https://x.com/archivistmemes/status/1341461564411555848
If Disney owned Bladerunner, we'd have a movie about the attack ships of Orion and a TV series about the C-beans near Tannhauser Gate already. Time to sell out to Disney.
♡ 14 ↻ 0
Ah man, I wanted them to say, well, quarantine time, so this is for one person, this is how we cope. But no. https://x.com/ChefclubNetwork/status/1339291900143087619
This is so cyberpunk. This is the future where our surroundings would be a plain shell because the digital image projected into the environment would be all that mattered. https://x.com/fabianwilliams/status/1341470389151682569
Federal crowdsourced bug fixing at http://code.gov. Like participating in citizen science, but this is something I'm actually qualified to do.
https://code.gov/open-tasks?page=1&size=10
http://Code.gov - this is a cool directory. some (all?) of these repos point to http://github.com repos
#python what is your preferred way to allow for packaging, but to not use an executable http://setup.py?
main contenders are setup.cfg, pyproject.toml
https://stackoverflow.com/questions/44878600/is-setup-cfg-deprecated♡ 0 ↻ 0
Good things happening. Please unmute and clap.
The knotty list is huge this Christmas. https://x.com/FushidaHardy/status/1341216010125209600
It is amazing we have a hunk of meat that can do basic logic, but without daily practice, I find it hard to work with statements that are either True or Don't Know, or False or Don't Know. My meat-cpu wants to treat them as True-False. https://x.com/hankgreen/status/1341166514792062976
(I mean formal logic...the phrase informal logic seems to be also used for "argumentation that gets social consent" and "adherence to my flavor of partisanship/tribal customs")
♡ 0 ↻ 0
<quietly drops in the trash my diagram of my gopher on lua on azure on sqlite on an SMTP message queue> https://x.com/sevensixfive/status/1341112896533766144
Seems like I should know what is up with that vertical line... I'm guessing that there isn't any rain to speak of west of that line https://twitter.com/Valgb1961/status/1341050808608186372
Arrived at hotel with fam. So far, saw 1 staff person for <60 seconds (good!). Self check-in & bluetooth-phone-key. All set for work-from-hotel for the week.
Everyone jokes about mindless copy-pasting StackOverflow but no one is formalizing it...until now!
`so_pip` will turn a #StackOverflow question into a #python module.
Alpha phase. Will be Beta by Monday.
https://github.com/matthewdeanmartin/so_pip
Opinion- tech contracts (especially the butts-in-seats ones) should give the government the option to hire. The federal gov't will NEVER solve the 4 months to hire problem.
I'd have to turn down 4 perfectly good jobs per week, so 64 offers most of them at high pay, to wait 4 months & forego $40,000 if I was unemployed for 4 months. This will never happen.
♡ 0 ↻ 0
pedantic question- if you use StackOverflow code, do you cite the answerer, the answerer & the questioner, or both plus everyone that edited either?
"Baby it's cold outside" isn't creepy anymore if it is a zoom date.
Well, now this clown is in my topical turf. See, if you want a tech joke to land, it needs a punchline.
And timing. https://x.com/realDonaldTrump/status/1340333618691002368
11:14 on a weekend and I already have to use regex. How is your day going?
Which open api do you think will last longer? (before being retired/shutdown)
private sector - business model keeps changing
non-profit - no business model at all (except begging)
government - the org is all about fighting entropy and sometimes wins.♡ 1 ↻ 0
Everyone carping on Twitter like everyday
New record, five ignores to allow a try/except/pass.
# noinspection PyBroadException
try:
self.connection.close()
# pylint: disable=bare-except, broad-except
except Exception: # noqa # nosec
pass
Jetbrains & Microsoft, where's our tools made of cheese https://x.com/ZenOfDesign/status/1339727092133597184
It might be a (post) Hanukkah miracle! The next CR is expected to last only for 2 days, but if there is a miracle it might last 8!
Shoot, docker is a drive space hog. Prune does nothing... regain 100GB and it all comes back like weight after a diet.
---
mindsets:
- greenfield dev: you will be fired if you don't deliver a feature. You won't be fired if it is buggy.
- maintenance dev: you'll be fired if you deliver a new feature. You will be if this code isn't bulletproof.
# It's hard to switch to the other mindset.
So what's the downside to turning on dnssec? Is it primarily config complexity & dns query performance? https://x.com/colmmacc/status/1339699026162151425
I saw this movie, "War Games" ... I guess war dialing still works, eh? https://x.com/NatashaBertrand/status/1339669287846506496
Best way to run a meeting
So "The Invasion" where an alien virus shows up & the gov't in mobilizes the CDC to infect everyone with it wasn't fiction, it was just 13 years early. https://en.wikipedia.org/wiki/The_Invasion_(film) https://twitter.com/neurobashing/status/1339278518568497152