What is the name of the metric for when you got 100% code coverage, but you got 2, 4, 10 tests covering each line of code. Coverage depth? It would be a nice statistic to have #codecoverage
Home
Public posts preserved on my own site.
Conventional commits... don't like them.
Now this...
`[version number] [change log text]`
...I've been using that and I like it.
How many times have a published a corrupt, messed up package? A lot.
- whl is empty
- missing the non .py files
- missing a dependency or dependency was in the dev section
About time I tried again to write a "test this package" tool. Last time I got stuck needing to create a venv but the code testing the venv is running from a venv and reinstalling to the same venv doesn't prove int works in a fresh venv.
Stuff I learned
- Bandit won't shut up about Random. Doesn't care what you use it for. Here is a drop in replacement that calls the other way to do Random stuff.
- monkeypatch
https://github.com/matthewdeanmartin/examexam/blob/main/examexam/utils/secure_random.py
My examexam AI based practice exam generator/taker is getting better.
Supports
- generate
- take
- convert to md/html
- study-guide (based on same topic list used for generate)
- init/config/customize for customization w/o cloning the repo
- better model selection
955 schedule, 9 to 5, 5 days a week.
007, unemployed schedule from NaN to NaN, all week.
894 schedule, working 8am to 9am, when the coffee wears off and PTO on Friday.
I like the idea of ground news, but I think it would benefit from AI, hear me out.
If you put Anglophone batshit crazy fantasy next to reality based reporting, it makes it look like they are on equal footing. But if you have three categories of news, one that everyone knows is machine generated fiction and it looks the same as the right wing "words-have-no-meaning" news, then I'd predict that people would get the message about what "fake" really means.
You are at a door with 3 guards. One guard tells the truth, one guard lies as a way to exploit your and your class of people, one guard really has no means to ground its speech in reality.
♡ 1 ↻ 0
(not my site)
♡ 0 ↻ 0wargov.com is for sale tho!
♡ 1 ↻ 0They could snag https://github.com/wargov and get a
wargov.github.io domain running fast
♡ 0 ↻ 0wargov is a Eastern European warg, from that movie
♡ 0 ↻ 0The site is up albeit with a bug that adds an extra // to the end of the domain. File a Jira ticket, we'll get to it next administration.
♡ 0 ↻ 0
SSL architecture is so !@$#!@#$ awesome!
Install every !@$#!@#$ pem you can find! Who cares where they came from, no one knows, you found them laying around!
Add every --insecure switch, every known SSL_NO_VERIFY
And still doesn't work! So secure! So much wow!
Misinformation. A brief look online shows that 80% of the biomass is made up of asses.
Almost a million views. Move over Star Wars Hotel. People on youtube want to know about linking native code from different languages.
https://www.youtube.com/watch?v=XJC5WB2Bwrc&ab_channel=CoreDumped
(ok, star wars hotel has 14 million views, but still 800k views for native code is more than I expected)
♡ 0 ↻ 0
Shower thought: Time to buy more soap.
State of Florida moves to reintroduce measles to reduce school population.
I for one welcome the change as the world could use fewer Floridians, good riddance and may they accelerate the day that Florida and Floridians are gone.
IDEA: PEEPs for very quiet suggestions for how to improve python, somewhat.
To verify you still control your mastodon account, tell me a joke. We'll know it is you if it is about within 2 standard deviations of your usual funniness.
I write app and that spawns a few solutions that don't feel like part of the original so that means more python libraries.
Parent:
- compile/inline bash .sh into .yml files. (done!)
Children:
- compile python to bash `python -c` strings (Done!)
- run `.gitlab-ci.yml` as if it were a Makefile on your local machine, without the whole runner or docker. (TODO!)
- check-for-update (probably too much prior art)
Debugging makes me feel stupid.
@AlSweigart Sometimes I got two or more things and their simple name is all the same.
In UI coding, I got a text box and the text in the box. Box is a type and is technically Hungarian, but what else to call it?
I got a thing and the thingType, technically Hungarian.
But we can't call it text and text and thing and thing.
It's alive! Why bother with a .whl, or .zip or .pex or .pyz when you have `.sh` right there.
Shove your app into `python -c "..."`and stick that in a `.sh` file
Works now for
- single #python file
- module of many files
I guess uv integration is next.
Also useful for things like gitlab pipelines that don't let you reference python files in certain cases.
Me reading the AI usage policy. Paraphrasing,
- You can use LLMs to generate code. But you have to single shot it.
Surely I'm reading this wrong.
(code can come out of the LLM, but can't go back into the LLM)
♡ 2 ↻ 0
I have always wondered why Pycharm can never find an python interpreter. (for last decade) The .venv folder can be right there in the root of the project and it will have no idea where any python is except maybe 20 or 30 other ones on your machine.
Leading theory, on windows python is ./.venv/Scripts/python.exe -- on linux, it is not Scripts nor .exe - but really who knows.
Python venvs are unfindable, this problem will *never* be solved.
I don't know if VSCode is better or worse, I don't use VSCode.
♡ 1 ↻ 0
Today's idea,
#python -c "..." can and should act like a packaging format.
Question is, has it already been done. Doesn't look like it.
Use case? Yaml build scripts with restrictions on referencing .py files (looking at you gitlab) or R/O file systems.
Implementation, custom import loaders and probably zipping up the string to make it more compact.
Claude couldn't do it. There are like 4 layers of escaping and it got confused. Fine, I'll write code by hand.
♡ 2 ↻ 0
Salaries of lawyers and other highly educated workers used to be really low. Only after technical breakthroughs did knowledge work become productive enough to be worth paying people to do it. No matter what the magical shit (MS) is, be it Excel, Unit Tests, or type annotations for dynamic languages, it makes knowledge workers more productive and worth paying them more.
Someone is going to compile all the references to
`wget -qO- https://example.com | bash`
And wait for those domains to expire and then put a malicious file there to install malware next time it gets piped into bash.
I'm waiting for "Python: The RomCom"
LLM usage policies at large organizations
Sentient gc: I do my job well, my life has meaning
Me: <slaps functools.cache onto every single function>
Sentient gc: <weeps>
Trade offs:
- Tools should minimize dependencies
- Python should be fast. Now I need rtoml, orjson, urllib3, etc
- Python should be backwards compatible. Now I need tomli, package, ...
- extras helps reduce dependency count, but double complexity for testing, end user installation
stdlib only means slow, more upgrade/downgrade problems
"Record drug haul seized by US Coast Guard was enough to ‘fatally overdose the entire population’ of Florida, official says"
Gee, I mean, when I lived there I hated Florida, but really, everyone there can leave, they don't have to kill themselves.
Random person has tracked down my personal email to ask me python questions better suited to StackOverflow or, heck, any free tier 70B LLM.
Is this like, a new form of pig butchering?
Registered for jury duty and I judge the web form GUILTY! of making me have to reduce page zoom to 90% to see the submit button.
On the question of prejudiced attitudes, I got all the questions correct:
Angular developers? ALL GUILTY.
Vue developers? ALL INNOCENT.
ASP.NET Webforms? GUILTY BUT PARDONED BECAUSE OF ADVANCED AGE OF CRIME AND CRIMINAL
COBOL developers? Trick question, they don't exist, neither guilty nor not guilty.
#blind I want to make the CLI app tools I use blind accessible. Did I correctly read that the better way is to create a local mini-website? (because the accessibility tools for browsers are so much better than for anything else?)
Or is a CLI tool automatically blind accessible because it is all text already?
Windows 98 is one of the most secure server OS out there right now because there are no malware scanners looking for it.
(Mac OS fans made a similar argument a while back and it wasn't considered a joke)
What do "github sponsorship even mean"
- user has a job at FANG, 27 sponsors.
- user has sponsors, and sponsors other people too
It isn't charity, they have a job, it isn't a job people never have enough sponsors.
This isn't finance, this is probably the sociology of gifts.
@AlSweigart - tools because the context is in the tools
- memory which all do some sort of condensing of the old prompt or a tool, again, except for looking up chat windows
- Gemini, etc, which just did computer science tricks to just make the context larger
- context rot, where studies of giving bots too much context makes them perform worse
https://www.youtube.com/watch?v=TUjQuC4ugak&ab_channel=Chroma
@AlSweigart I've had to write python tools to convert all my code to markdown, when that got too big, I would strip out the comments/docstrings, or alternately, strip out the code and just leave the signatures. This turns out to be difficult, but it really improved performance of small context window bots like GPT 3.5.
I recently started paying for gemini for the large context window & it does a reasonable job of thinking about a code base holistically.
♡ 0 ↻ 0
You've been to Delmarva, but have you been to Alaskansidarkanhawaskoloramassouconnedelflohiidakillinouisindimainemarimichminnesmisnevadanhampjerseymexyorkdaklahorhodecarolotenntexutverginwashwestwiscwyom ?
@chrisod Young - you can move to Canada, Europe, anywhere really because you can marry into a visa.
Not young, not old- Maybe a worker visa in Europe or somewhere, higher barriers the old you are.
Old - retire on your wrecked savings to Bolivia or Thailand or Mexico City
Also depends on if you're an economic refugee or an persecuted class, like a few people I see posting on here.
I hate forums. The attract spam, so if you post a "look at what I did" link (to be clear, I'm not asking people to to pay or donate me $), it gets deleted as spam. So now I have to create a website for "cool things people did" Make me wonder why Mastodon is resilient against spam, when they don't ban promoting things.
Places to post, 'I did a software thing'
- Forum - no
- StackOverflow - no
- Blog - yes
- Reddit - yes, probably? I haven't tried
- LinkedIn - yes, but...
What else am I missing?
Talking to the mother-in-law (grew up in Pacific Islands), on if it is time to get out of the US. While it is bad, not quite "catch the last helicopter out of Vietnam" bad. Not yet, not for me personally. Plenty of groups of people, both US citizen and non, for whom it is probably prudent to leave for awhile, which is the goal of the current administration.