@ghickman@mastodon.social avatar

ghickman

@ghickman@mastodon.social

Python, engineering best practices, D&D chat, all things Sci-Fi/Fantasy. Hash tag farm lyfe.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

ehmatthes, to python
@ehmatthes@fosstodon.org avatar

TIL how to use itertools.dropwhile() to get all lines from a file after a specific line. I always used to write my own loop to solve this problem.

I'm curious, have you heard of dropwhile()? Have you used it?

ghickman,
@ghickman@mastodon.social avatar

@ehmatthes yes! That and takewhile are chefs kiss for any task needing only some lines from an iterator. Love me some itertools 😁

bitprophet, to random
@bitprophet@social.coop avatar

Finally done with precautionary post- isolation. Tested negative✌🏻

ghickman,
@ghickman@mastodon.social avatar

@bitprophet props for thinking about some else’s newborn 🤗

But tbh, kids get exposed to so much stuff. Like, awww baby timmy found the cats tail! Ok it’s in his mouth now, oh yep now up his nose.

ghickman, to random
@ghickman@mastodon.social avatar

The return jet lag is very real after PyCon this year. Second afternoon I’ve dozed off.

ghickman,
@ghickman@mastodon.social avatar

@carlton 🔥 🖕 😂

danjac, to random
@danjac@masto.ai avatar

If the current British government were deep cover Russian chaos agents, or just plain corrupt and incompetent, would there be any real difference?

ghickman,
@ghickman@mastodon.social avatar

@danjac why not both 🤷‍♂️

webology, to random
@webology@mastodon.social avatar

⌨️ My writing workflow or what works for me: https://micro.webology.dev/2024/05/24/my-writing-workflow.html

ghickman,
@ghickman@mastodon.social avatar

@webology do you ever use Grammarly inside Obsidian?

bitprophet, to random
@bitprophet@social.coop avatar

ME: “lol, who the heck goes out and drives all over the middle of the continent just to look at (severe) weather???”

ALSO ME: drove round-trip equivalent to 1/3 of the way across the continent, just to look at weather* the other month

  • ok, astronomical event, but still
ghickman,
@ghickman@mastodon.social avatar

@bitprophet space weather!

ghickman, to random
@ghickman@mastodon.social avatar

The survey only allowing me to choose one option for travel method is… vexing.

mkennedy, to random
@mkennedy@fosstodon.org avatar

had 2,551 in-person attendees and was "sold out”

had 3,393 (Checked-in people).

Anyone know why the tickets were restricted to 1,234 fewer in 2024? The venue seemed massive so should have had room.

I'm genuinely curious what the difference was. 48% more seats in 2019 is a big difference.

Ref [location history]: https://en.wikipedia.org/wiki/Python_Conference

ghickman,
@ghickman@mastodon.social avatar

@mkennedy @glyph this might have worked for Pittsburgh this year. But you never know when an unexpected boy band tour will roll around, and suddenly, your local capacity will be gone. Booking things far out, like PyCon US does, is a huge benefit here.

Source: PyCon UK has seen some stuff 😂

tylerdave, to random
@tylerdave@mastodon.social avatar

Left from about 33 hrs ago. Had a scratchy throat this morning w/ a negative test and just now have a positive test.

I went out with various groups, unmasked, throughout the weekend. This was a risk I was willing to take. Still, I'm glad I was wearing a mask in the convention center around folks who did not choose to take that same risk.

I'm gonna go rest now.

ghickman,
@ghickman@mastodon.social avatar

@tylerdave oh no! Here’s hoping it’s mild and swift 😊

ghickman, to random
@ghickman@mastodon.social avatar

Well that’s me wrapped for another year, so long and thanks for all the snakes !

ehmatthes, to random
@ehmatthes@fosstodon.org avatar

I will admit to spending the first half hour of today's sprints figuring out why my tests weren't running, only to realize I had pytest installed system-wide on my laptop. 🤦‍♂️

ghickman,
@ghickman@mastodon.social avatar

@ehmatthes have you seen the pip option to disable global installs by default?

ghickman,
@ghickman@mastodon.social avatar

@ehmatthes I do a similar thing with all my Python installs, sometimes you just need your python(s) to have a few extras 😁 https://github.com/ghickman/dotfiles/blob/main/requirements.txt

ghickman,
@ghickman@mastodon.social avatar

@pythonbynight @ehmatthes oh I love pipx! But I also need some libraries installed globally, eg for neovim

ghickman,
@ghickman@mastodon.social avatar

@ehmatthes just for each Python version. I should review them tbh! The main one was having neovim support available.

ghickman,
@ghickman@mastodon.social avatar

@ehmatthes yeah 😢

ghickman,
@ghickman@mastodon.social avatar

@tartley @pythonbynight @ehmatthes yeah, I’ve never liked having it installed globally. Venv just for it is a great idea, will have to try that out, thank you!

ghickman, to random
@ghickman@mastodon.social avatar

OH: why are you like that?

ghickman, to random
@ghickman@mastodon.social avatar

OH: I care because my face is not going to get any better

adamchainz, to random
@adamchainz@fosstodon.org avatar

♦️ There is a safer alternative to 'git push --force'!

🫸 Use --force-with-lease and --force-if-includes to restrict force pushes so that they don’t unintentionally overwrite commits pushed by others.

Explained in my post: https://adamj.eu/tech/2023/10/31/git-force-push-safely/

ghickman,
@ghickman@mastodon.social avatar

@hjwp @adamchainz until you push they’ll still be in the local tracking branch

Floppy, to selfhosted
@Floppy@mastodon.me.uk avatar

Looking for advice: Thinking of binning my home-made Ansible setup of various docker containers in favour of something more off the shelf.

Any recommendations for user-friendly orchestration systems that work well across multiple nodes so that I can cluster my various raspberries pi?

I think Portainer can do it, are there others?

ghickman,
@ghickman@mastodon.social avatar

@Floppy I’m not sure about clustering support but I see Proxmox mentioned a lot these days

ghickman, to random
@ghickman@mastodon.social avatar

@bshaurette how long are you around for today? I’d love to say hi, it’s been years!

SebastianM6L, to jenkins
@SebastianM6L@mastodon.social avatar

Anyone had an issue with from django.test import Client causing a high memory usage in a docker container?

I run the tests in a pipeline using a agent in .

When this test runs:

def test_login_user(self):  
 c = Client()  
 response = c.post('/user/login/', {'email': 'test1@test.de', 'password': 'test123'})  
self.assertEqual(response.status_code, 302)  

The memory usage goes thru the roof. Literally using up all memory until it crashes.

ghickman,
@ghickman@mastodon.social avatar

@SebastianM6L I’m on mobile atm so can’t check but IIRC pytest-django is doing some config for you, setting the settings var, etc. but I didnt think there were any auto run fixtures by default 🤔 could you be using different settings between the two test runners?

ghickman,
@ghickman@mastodon.social avatar

@SebastianM6L could be 🤔 I’d certainly want to copy the CI env as closely as possible! Can you check env vars in CI vs your local setup too?

ghickman,
@ghickman@mastodon.social avatar

@SebastianM6L ooh something changed with coverage in 3.12 IIRC, possibly something to do with how it collects data? You could also try running coverage without the Pytest plugin, to see if the wrapper is involved?

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