walkerb, to programming

So for tonight I decide to rewrite the leibniz algorithm from to - in particular - we had been talking about earlier...

Cut iterations to 1000 and blew the dust off my brain.

After several revisions ... it worked 😂

Commodore 64 running the Leibniz approximation for Pi to 1000 steps, it takes 17 seconds to complete

cjerrington, to linux
@cjerrington@mstdn.social avatar

Some thoughts on Ubuntu's change with Python support in the upcoming release. What to expect, what I like and some dislikes as well.

https://claytonerrington.com/blog/ubuntus-change-with-python-support/

(30)

adamjcook, to programming

So... the language looks really cool!

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.

https://www.modular.com/mojo

sethmlarson, to programming
@sethmlarson@fosstodon.org avatar

New JSON APIs making a cameo in @pamelafox's presentation slides! 🤩

https://pamelafox.github.io/my-py-talks/pyday-apis/#/9

snacktraces, to programming

I have been holding off on posting an post until I felt comfortable in this new-ish medium.

during the day to support my STEM and music habits. I talk a bunch about helping those new to programming and software dev.

No patience for folks being uncool to others that look or live different than they.

I spend a lot of time with and

Always interested in meeting cool people!

drakonic, to programming

hey guys. is there a way to write a condition like variable == 1 or variable == 2 shorter in ? in plain words something like "if this variable is this or this"

walkerb, to programming

Last night I made some algorithm changes to the Leibniz test program in that brought a 33% speed increase.

https://infosec.exchange/@walkerb/110296865636164972

I thought I'd try the same changes in the version to see.

HOLY COW - it went from 5s runtime to 0.7s

500%!

northbaypython, to programming

We're still accepting talk proposal ideas for North Bay Python!

If you've done something the Python community might like to know of, why not submit a talk? Submissions close May 19th.

All the details, and a link to our form are at: https://2023.northbaypython.org/speak

mackuba, to programming
@mackuba@martianbase.net avatar

New -like type-safe language for from Chris Lattner and team at Modular: https://www.modular.com/mojo 🤔

davidism, to programming
@davidism@mas.to avatar

Turns out Flask still has a test for .egg files??? Python 3.12 and virtualenv are removing setuptools, time to remove those tests.

andypiper, to programming
@andypiper@macaw.social avatar

Heading towards Oxford, for this evening’s meetup, hoping to avoid the worst of the traffic if I can get to the city early.

villares, to programming
@villares@ciberlandia.pt avatar

So, remeber I'm that odd person that teaches introductory programming while not being a professional developer...

I have this hacky 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?

pybites, to programming
@pybites@fosstodon.org avatar

Maybe relevant for y'all here ... in our latest YouTube video we show you how you can backup your Mastodon posts using Python + GitHub Actions:

https://youtu.be/NvGiPifbtl4

nima, to programming
@nima@mstdn.social avatar

I'm learning Django, but I can't afford pycharm pro, and pycharm community doesn't support Django, and vscode is a whole other mess to use...

What IDE should I use?




flipsideza, to programming
@flipsideza@fosstodon.org avatar

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.

Natureshadow, to programming German

Ein Jugendlicher aus dem Teckids-Umfeld macht seit Anfang März online einen -Kurs beim @Hasso_Plattner_Institute und...

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.

1/ (Beispiel kommt)

pythonbynight, (edited ) to programming
@pythonbynight@fosstodon.org avatar

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...)

Working something out in the open:

https://github.com/tataraba/pyhat-fastapi

drosophiliac, to programming

Hey, I go by the penname DROSOPHILIAC—you call me Dros or Drossy if you want. I'm 24 and am .

I'm a busy student. I code in but intend on learning #R and .

I also do electronic in . 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.

Beyond that, I write and make for fun and self-expression. I'm and generally quite .

Thanks for reading.

walkerb, to programming

Played with the Leibniz program tonight to see how 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.

33% for two one line mods. Fun stuff.

dwarmstrong, (edited ) to programming
@dwarmstrong@fosstodon.org avatar

Day 64 of - Learned about the glob 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!

remco, to programming

@redegelde

Ik kan je bericht niet meer vinden op je FAQ bot, maar volgens mij is dit een 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.

itamarst, to programming
@itamarst@hachyderm.io avatar

Tired of waiting to get lint results from your program in CI (or on your computer)? Ruff is a new, super-fast linter for Python that can help you catch real-world bugs.

https://pythonspeed.com/articles/pylint-flake8-ruff/

vwbusguy, to programming
@vwbusguy@mastodon.online avatar

Due to various gaps in APIs, SDKs, CLIs, etc., I still have some significant cloud service lifecycle management that happens through or 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.

borja, to programming

Tech hive mind: In my 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 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)

glyph, to PyConUS
@glyph@mastodon.social avatar

Post-conference notes from my experience at PyCon 2023. I think I am squeaking under the wire for these to still be relevant…

https://blog.glyph.im/2023/04/post-pycon-us-2023-notes.html

@PyConUS

glyph,
@glyph@mastodon.social avatar

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

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • thenastyranch
  • magazineikmin
  • ethstaker
  • khanakhh
  • rosin
  • Youngstown
  • everett
  • slotface
  • ngwrru68w68
  • mdbf
  • GTA5RPClips
  • kavyap
  • DreamBathrooms
  • provamag3
  • cisconetworking
  • cubers
  • Leos
  • InstantRegret
  • Durango
  • tacticalgear
  • tester
  • osvaldo12
  • normalnudes
  • anitta
  • modclub
  • megavids
  • lostlight
  • All magazines