Pears are the Tamagotchi of the fruit world.
Home
Public posts preserved on my own site.
setuptools, http://MANIFEST.in, setup.cfg, bdist_wheel -- they're all bean dad*, we just didn't have a name for them.
* a problem hard because someone is refusing to make it easy, like flit or poetry does.
#python
Some linguist is going to write code to try to parse that tweet with no context and that parser is going to be like, wha?
♡ 1 ↻ 0
IDEA: VotingClassifier algorithm, but it takes 1 year, the alternate functions run TV ads, the voters don't look at the outputs or TV ads but instead choose by some a priori classification of the alternate functions.
ref: https://machinelearningmastery.com/voting-ensembles-with-python/
IDEA: make a list of all the questions everyone asks about each programming language (how to comment it out, etc). When a new programming language appears on the scene, ask all those questions all at once. They all become the canonical Q with +6000 votes each. Easiest rep ever.
---
mini-libraries. We joke about left-pad & pypi is full of unfinished crap but a small lib:
-doesn't need a long term maintainer
-doesn't have enough code to be buggy
-keeps non-domain code out of your codebase
-papers over things that "should" be in the standardlib
#python
Also, .net has solutions and projects. Python world doesn't really have any such concept, except libs in pypi, which encourages putting your 4 part app into 4 libs into pypi
♡ 0 ↻ 0Yeah you could have one package with multiple modules, but if they're separate packages, you guarantee there is no leaking of concerns of one lib into the other.
♡ 0 ↻ 0
#python poetry. So if you use git-bash as your main shell, but have #wsl on your machine, poetry will only launch and install dependencies into wsl. Because wsl 1 & 2 have broken IO, it take a billion years. But it can still package, unlike setuptools.
Okay, I was trying to use the setup.cfg only technique for packaging. Instead, I'm going to try out having no setup.cfg and no http://setup.py at all. This is the motivation I needed to try out poetry. I hope it doesn't use the same broken crap in the background
#python
Only malice can explain how bad the UX is for setuptools, find_packages() & http://MANIFEST.in #Python
License on a random public Github gists? Revocable, unspecified OS license. Revocable unless you fork. (at which point you can dual license it?) A weird-ass license created through the Github ToS.
https://docs.github.com/en/free-pro-team@latest/github/site-policy/github-terms-of-service
Reading python SO questions. Question after question is roughly, "I pip installed something, I can't import it." Folk have no idea what environment is active when running pip, nor when running their code in console, nor IDE.
before and after running pip:
$ which python
$ pip install package
$ pip freeze
$ pip freeze | grep package
As for the IDE, there should be a script.♡ 2 ↻ 0
I need a list of all the naughty words. I guess I could call the library.
(My list of 10,000 words has a bunch of naughty words on it)
https://www.gocomics.com/calvinandhobbes/1992/03/27
It is for this code: https://github.com/matthewdeanmartin/so_pip/blob/main/so_pip/parse_python/make_name.py
♡ 0 ↻ 0
Calling it "mailing it in" disparages the effort it takes to walk to the mailbox when it comes to describing the effort some people put into their StackOverflow questions.
I'm reading about software license compatibility. Odds that any modest complex has all compatible licenses & explicit license for all parts, 0%.
Only the high expense of lawyers & low stakes has kept "CC BY SA for software" litigation out of the courts.
I wonder if there is a 2nd, informal license for anything with low stakes & high transaction costs:
"Anyone can do anything they'd like with this code because no one can stop anyone"♡ 0 ↻ 0It is like "CC BY SA" for software is social norms, except in the cloths of legal licensing/law. People will follow them, but for social reasons, like general goodwill & so you don't get snubbed at parties, not for any threat of legal enforcement.
♡ 0 ↻ 0What a mess. People copying code-of-unknown-license they don't own to SO, so that people who think it is CC BY SA will use it- https://stackoverflow.com/a/5310215/33264
♡ 0 ↻ 0More CC BY SA pedantry... so if I use an SO answer, the writer, editors, commentators probably all need mention. Does the original question writer need similar citation, to fairly use the answer? ¯\_(ツ)_/¯
♡ 1 ↻ 0So the gnu AUTHORS file assumes every contributor will have a publicly available email address, on stackoverflow, they explicitly designed the system to hide email. So contact is either checking bio for email, or chasing down contact via twitter/github/personal website.
♡ 0 ↻ 0The AUTHORS format imagines none of this, so at best, I list user name, maybe an email & up to 4 URLs for contact info. I should go read CC BY SA to see if anywhere it implies that the name should let you contact the author.
♡ 0 ↻ 0
---
I resolve this year to:
- finish this coffee
- finish this tweet
- execute yaml on your brain
I've been on twitter all year. I should diversify my activities, eh.
For people who don't check timestamps, I've been on twitter for 27 minutes.
♡ 1 ↻ 0
META: Twitter needs to allow for citations & bibilographies.
Beginners should start with several bags of rocks and using set theory, build up representations of binary numbers, operations, and mechanical turk assembly commands. https://x.com/jdidion/status/1344634634391474176
UK is going to need a free trade agreement. I think we could make the UK the 51st state, in the deal the US gets access to Lasagne sandwiches. https://x.com/haircut_hippie/status/1344442044509528065
My son does "mechanical turk" scripting in minecraft. He tells me to sign a book in minecraft to get in game goodies, then he runs over to his machine to make it happen.
#python Trying to add StackOverflow links to source code comments and they don't fit in 80 chars.
What is best in life? To crush the bugs, to see them test driven before you, and to hear the lamentations of their source code.
You need to do a merge of both usually, I will add that to my TODO list to automate that in my "install from stackoverflow" tool
https://github.com/matthewdeanmartin/so_pip https://x.com/CarlaNotarobot/status/1344339592250617859
IDEA: buyMeACoffee, except it is buyMeAHouse
Real takeaway is about 400 people are happy every day that it is not Ted Danson's birthday. https://x.com/TedDansonBDay/status/1343955392364068864
IDEA: instead of the "...loading..." animation, offer to live-tweet the installation script. Visual Studio installer needed something like that baaaad. https://x.com/nathaniel_avery/status/1344308428303458306
These are some impressive looking senior techie jobs for USDS work
https://stackoverflow.com/jobs/companies/united-states-digital-service
vi/vim is so bad there is huge question with answer for people looking for alternatives to it, such as nano, slap, xo, mcedit and a suggestion with 0 votes to use vi anyhow. I want to earn 125 rep points so I can vote it down.
https://askubuntu.com/questions/920147/what-editor-can-i-use-as-a-simple-vi-vim-alternative
I once make a MS Word resume that showed a button that had a VBA script to use the TAPI (telephone API) to dial my number. (And then everyone would have to pickup their landline to talk) https://x.com/olafurw/status/1344136360043704320
It was either genius show-offery or a security vulnerability.
♡ 1 ↻ 0
I bet you all are half sick of me making Zeno's paradox jokes.
Promise: I will automate all these builds, I will have so much free time.
Reality: I have to read the output of all these builds and do something about all of them.
TIL, the convention of adding AUTHORS, LICENSE, CHANGELOG, etc to a project started with Gnu: https://www.gnu.org/prep/standards/standards.html#Documentation
They could have made a package format, but didn't so now there is a constellation of generators/parsers for AUTHORS, CHANGELOG, etc all different.
Bit rot is real. https://x.com/CarlaNotarobot/status/1343902147361058816
A #Stackoverflow question has up to 4 different licenses, with a different license for the question, answer, each revision. Metadata sites like Github, Pypi support only 1 LICENSE file/license field.
The "hey, could you just post a URL back to the answer/post" papers over that the intellectual property claims are really complicated. Props for them trying to track it at all though.
♡ 0 ↻ 0
pylint annoyance- all days I want to be fixing syntax errors. Only on some days do I want to fix size & complexity (too many boolean expressions, too many lines of code, etc)
The former should break the build, the latter is a periodic report.
waitress: Cafe or decaf?
me: D2651
Everyone is talking about this tweet, but no one is doing anything about it. It is time to train lions to weave antelope-catching nets. https://x.com/RichardDawkins/status/1343498930072514561
What sign language is this?
🙅♂️ = no (not ASL?)
🙆♂️= ok (not ASL?)
🤟 = ASL I Love you/Airplane
🙋♂️= ASL Loser?
We're all working Tuesday unless you're on PTO/vacay https://x.com/mistersql/status/1343318524924751872
#python Thinking about vendorizing & how it has a lot in common with creating virtual environments.
https://stackoverflow.com/questions/62070316/vendoring-python-packages-for-a-published-package/65470764#65470764
me: "oh no!"
<me on the inside>: 3 weeks of no government client meetings!
(yes, I'll get lonely after that) https://x.com/MEPFuller/status/1343313332317650945