So for tonight I decide to rewrite the leibniz algorithm from #python to #BASIC - in particular #Commodore64 - we had been talking about #Retro earlier...
Cut iterations to 1000 and blew the dust off my brain.
The team behind it is obviously extraordinarily talented.
And while I completely understand the reasons for keeping it closed initially, it is a little disappointing that there is no timeframe or licensing guidance on an eventual open-source state (as hinted to in their FAQs).
Going to have to keep it on the back burner until then.
hey guys. is there a way to write a condition like variable == 1 or variable == 2 shorter in #python? in plain words something like "if this variable is this or this"
#LearnInPublic So, remeber I'm that odd person that teaches introductory programming while not being a professional developer...
I have this hacky #Python script to download data from a site (it's hackmd.io, because they use imgur image hosting and it is going to break all my notes soon, long story for later, but it could be something else) and I don't want to commit the API access-token in the code that I share on GitHub.
I'm on Linux, where should I store these API secret strings and how to get/fetch them on my script?
I read about environment variables and gnome keyring, and nothing makes sense. Can someone please enlighten me?
So with the review turntable out of the way, its time to look into Set Dressing.
First step, write some python code that takes the SRTs written to a .json from Maya and read them into Houdini creating and positioning them via an Asset Reference node, writing that out to a usd file we can use in Set Dressing.
Es tut mir leid, aber ich wurde noch nie Zeuge eines so grottenschlechten Kurses.
Wirklich schlecht geschriebene Beispiele, Code als Screenshots verteilt, nach 2 Monaten fast überhaupt keine Fortschritte, offenbar keine brauchbare Begleitung des Kurses.
I've been working on something lately (PyHAT: a hypermedia web app pattern).
While this pattern is pretty robust in the Django space (which is great!), I'm trying to take a micro approach.
What are the bare essentials for this design paradigm?
Might be nice to have some opinions on things (packages, project structure, some tooling), but flexibility in others (what ORM/ODM to use, some flexibility on structure, etc...)
I also do electronic #musicproduction in #Reaper. I intend to finish my first album sometime this year. We'll see if I can throw some music up on the internet anytime soon.
Played with the Leibniz program tonight to see how #python would react to some modifications to the algorithm.
I know numPy would fix the speed, but I wanted to see if it would respond to some old tricks.
It did - getting rid of exponentiation of the top term and using bitwise multiply of the bottom term made it run 100000000 iterations in 16 seconds instead of 24 seconds.
Day 64 of #100DaysOfCode - Learned about the glob#python module today, and put it to use to recursively retrieve all the keymaps in /usr/share/kbd/keymaps and save to a list. In my script, if a keymap is entered that is not found in that list, an error message is displayed. glob.glob() for the win!
Ik kan je bericht niet meer vinden op je FAQ bot, maar volgens mij is dit een #python library die je zoekt (op basis van de readme in ieder geval): https://pypi.org/project/mastobot/
> Use Mastobot when:
> Your bot replies to or interacts with certain posts on its home timeline; or
>Your bot answers some questions people ask it; or
> Your bot keeps track of some users it's following. #mastobot
Tired of waiting to get lint results from your #Python program in CI (or on your computer)? Ruff is a new, super-fast linter for Python that can help you catch real-world bugs.
Due to various gaps in APIs, SDKs, CLIs, etc., I still have some significant cloud service lifecycle management that happens through #bash or #python scripts that run on a cron (or whenever someone remembers to run them). Like 99% of stuff is automated via Terraform, Ansible, Jenkins, etc., but there is some severe jank around the edges of absolutely everything on the internet. #devops
Tech hive mind: In my #software development class, I used to demonstrate the deployment pipeline by deploying a super-simple Flask app to Heroku, and then having students do something similar in a homework assignment. Now that Heroku has nuked the free tiers, does anyone have suggestions for alternative platforms we could use?
Some requirements: must be able to run #Python apps, must have a free tier, and it must not require students to provide a credit card (btw, Heroku does have a "for students" plan, but students would have to apply for it and would still need to provide a credit card, so that's a no-go for us)
I should probably also do a couple of follow-ups here to note the two bits of new open source software that I announced for the first time during this talk. The first is PINPal, a spaced-repetition tool for securely generating, memorizing, and rotating the passwords you actually need to remember in your brain: phone PIN, master passphrase for your password manager, etc: https://github.com/glyph/pinpal