@jamescooke@fosstodon.org
@jamescooke@fosstodon.org avatar

jamescooke

@jamescooke@fosstodon.org

Python developer working with data and royalties at Mixcloud.

Lover of testing and linting. User of Linux.

Author of https://github.com/jamescooke/flake8-aaa

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

dazfuller, to DuckDuckGo
@dazfuller@mstdn.social avatar

So, with #DuckDuckGo being down, what is everyone using instead (that isn't Google)?

I'm currently looking at #StartPage which seems okay

adamchainz, to random
@adamchainz@fosstodon.org avatar

♦️ Yay, my force push blog post was featured in this week’s @pythonbytes ! πŸ₯³

https://pythonbytes.fm/episodes/show/384/force-push-lightly

yvonnezlam, to random
@yvonnezlam@mastodon.social avatar

Greetings new followers! I believe many of you got here because @kevlin (thank you!) mentioned a tweet of mine in a talk. My stance on many of the questions/discussions taking place in my mentions might be addressed by the original thread, so here it is:

Or even "we don't have guests, and the guest room bathroom is mysteriously out of toilet paper. Can whoever is using that bathroom please make sure it's restocked?" The thing with tech debt is that in order to have a useful discussion, you need to be able to talk about
@yvonnezlam - As anyone who has ever argued about housework knows, housework arguments are disturbingly specific. It's always "Who minds the most?" and "l don't use that," and "Who's going to do the work?" and (rarely) "Who's going to manage getting this done?" @yvonnezlam - Bringing some of that uncomfortable specificity to discussions of tech debt could be really useful. We need to be able to talk about who minds and why and where the work should live. @yvonnezlam - We also need to talk about how what we do affects other teams/people. Team A can decide not to worry about concurrency right now, but they might be sticking Team B with that work down the road. @yvonnezlam - Right now, with the financialization metaphor, no one cares, because we know "down the road" might never happen. But: that means we don't think "Hm. We're not going to develop in-house expertise on concurrency in a hurry. Maybe we should hire/send people to training/support ... @yvonnezlam - ... people who are interested in this kind of thing doing some study?" or any number of other things to spread the load when the time comes. We don't think about what work Team B might need to put down in order to pick up the problem that everyone knows has been brewing forever.
@yvonnezlam - We don't think "Team A took on this debt because they didn't know how to do the right thing and they had to do something. Not their fault, but...that wasn't good." @yvonnezlam - Whereas if we thought of it as more like housework, we could think "ok, the kids made this mess, now someone has to clean it up, can we get some of the kids involved since they have context for what they did, and it'd help everyone to get context for what to do next time?" @yvonnezlam -The debt conversation assumes a kind of statelessness, because that is the magic of financialization and financial metaphors. Anyone who has ever dealt with tech debt in an org knows that it's not stateless. @yvonnezlam - Mar 29, 2021 Housework is stateful. You don't get a clean slate. You often end up moving stuff from Place A to Place B so that you can clean and tidy Place A properly. And people have state (feelings) about it. O boy do they have feelings about it. @yvonnezlam - Mar 29, 2021 We picked a metaphor for "tech work that is about cleaning up old stuff instead of making new stuff" that sounds like something that would make sense to The Business, but (a) it's not clear it does, and (b) it confuses us thereby falsely constraining our options. /fin

izzy, to DataViz
@izzy@mstdn.games avatar

Absolutely gorgeous on transport in cities.

https://citiesmoving.com/visualizations/

erictleung, to opensource
@erictleung@mastodon.social avatar

food for thought when giving feedback to contributors.

the author reflects on giving feedback in OSS vs corporate.

OSS, you invest in the ppl and give lots of feedback. not in corporate.

and I like this takeaway:

> And so, I’ve learned that a person can absorb only about one piece of feedback per interaction, and then only if it’s labeled very specifically as feedback with the best intentions, and wrapped delicately in a feedback sandwich.

https://matthewrocklin.com/feedback.html

arildsen, to python
@arildsen@fosstodon.org avatar

I have used numpy.allclose to test for approximate equality in Python for years, but I recently found pytest.approx better, because it lets Pytest interpret the result. For example, with numpy.allclose:

> assert np.allclose(result, 3.061, atol=1e-3, rtol=1e-3)
E assert False
E + where False = <function allclose at 0x7f8fea7efa60>(1.4872, 3.061, atol=0.001, rtol=0.001)
E + where <function allclose at 0x7f8fea7efa60> = np.allclose

hamatti, to blogging
@hamatti@mastodon.world avatar

Combining hockey and development? Yes please.

I love building small projects to enhance community projects and this spring the NHL playoffs and IIHF World Championships have been keeping me busy with building two web projects between the games.

https://hamatti.org/posts/two-small-hockey-web-projects/

#blogging

mhoye, to random
@mhoye@mastodon.social avatar

I'm on here looking for text indexers and everything is 'lightning fast exoscale terafloops that scales to enterprise quantawarbles with polytopplic performanations' and it would be great if this industry could breathe into a bag until it remembers that one person with one computer is a constituency that matters.

nota, to random
@nota@chaos.social avatar

oh: neurotypicals should really learn to mask better. I know you want to talk about the weather but please just pretend you have a favorite lizard or something, it's not that hard

nicoespeon, to random
@nicoespeon@toot.legacycode.rocks avatar

I will attend MenderCon 2024β€”a remote conf for people who deal with legacy codebases

πŸ“… May 16
πŸ“ Remote
🎫 Pay what you want (suggested $5)

There will be open-space sessions: you can bring up a topic you want to discuss

Interested? Join us πŸ˜‰

Details & registration: https://mendercon.com/

hynek, to random
@hynek@mastodon.social avatar

I have just read a sentence that said that mocks are crucial for relevant tests and now I have a migraine.

hynek,
@hynek@mastodon.social avatar

Every. Single. Mock. Makes your tests less relevant. They have other upsides, but relevancy is not one of them.

jonty, to random
@jonty@chaos.social avatar

User: you charge me when people make unauthorised requests to an S3 bucket?

AWS: yes of course

User: but

AWS: working as intended

User: but

AWS: thank you for your money

https://medium.com/@maciej.pocwierz/how-an-empty-s3-bucket-can-make-your-aws-bill-explode-934a383cb8b1

ludicity, to random
@ludicity@mastodon.sprawl.club avatar

Just read through this very thoughtful piece from @lkanies on why large companies are painful to work at, and I highly recommend it!

https://lukekanies.com/writing/why-we-hate-working-for-big-companies/

"Even thinking about it now, my reaction is, β€œHow would they know what my goals are?”

That’s the kind of question you can only ask in an authoritarian state, not in a free market economy. My goals became my company’s goals, and the only real way to ensure people worked toward them was providing a plan."

calpaterson, to random
@calpaterson@fosstodon.org avatar

Spent a lot of this week fixing several bugs in csvbase that people found.

I've always done test-first development. csvbase apparently has 89% test coverage (I just checked) and most of that 11% is non-production stuff or experiments. The test base has caught a huge number of bugs and regressions but still - a lot of mistakes get through.

I've never understood how anyone manages to write real production code without tests. Am I doing something wrong?

calpaterson,
@calpaterson@fosstodon.org avatar

@jamescooke I had a quick look at mutmut yesterday. It got working with no config which was impressive

I ran it for about an hour or so while I did nursery run.

It ran about 500 mutations in that time. 50% passed and 50% failed. of the failures:

  1. a small minority were code i prefer not to test, like the exact contents of log messages

  2. all the rest were dead code that should be removed

so a useful exercise, and i'll carry on with it, but no bugs found yet

CC @lewiscowles1986

webology, to random
@webology@mastodon.social avatar

πŸ€” Friends, I hate to say this with fresh layoffs happening, but you are about to see how much "Big Tech ❀️s Open Source" after years of exploiting our work.

>$100 billion in cash reserves and record quarterly profits going back a decade doesn't provide even an ounce of job safety, job security, or even loyalty for the employees and projects who got them there.

If you believe otherwise and work for one of these companies, I hope you are mentally and financially ready for what is to come.

davep, to python
@davep@fosstodon.org avatar

TIL Midlothian is in a different timezone from Hampshire.

#Python #Programming #Ollama

davep,
@davep@fosstodon.org avatar

It gets even better!

jamescooke, to random
@jamescooke@fosstodon.org avatar

Here's a smell that your Big Query query ain't that big - lots of 1 row tables getting used to load config-like values, which are then used for JOINs later.

So much cruft to clean up πŸ˜₯ .

My brain says: - maybe couldda just done it in a PAndAs?! Let's definitely not learn about CTEs right?! 😬

adamchainz,
@adamchainz@fosstodon.org avatar

@jamescooke β€œGo Big or go DataFrame”

Good luck with the migration!

alper, to random
@alper@rls.social avatar

"A third truth is that we have a generation in crisis and in desperate need of the best of what science and evidence-based solutions can offer. Unfortunately, our time is being spent telling stories that are unsupported by research and that do little to support young people who need, and deserve, more."

The experts agree that kids need to be cared for better. The experts also agree that people like Haidt are grifters who do not contribute anything into that direction.

https://www.nature.com/articles/d41586-024-00902-2

faithlierheimer, to random
@faithlierheimer@data-folks.masto.host avatar
benroyce, to iran
@benroyce@mastodon.social avatar

With attacking , I'd like to point out the concept of a side channel attack in intelligence gathering

This is the Papa John's Pizzeria near the

notice something interesting about the little "busier than usual" indicator

and, why would that be, gentle reader?

allendowney, to random
@allendowney@fosstodon.org avatar

Here's the first in a series of blog posts where I use Python (and Jupyter notebooks) to answer questions from Reddit's statistics forum.

"Can you calculate a standard error for harmonic mean?"

Yes!

https://www.allendowney.com/blog/2024/04/09/data-qa/

jonty, to random
@jonty@chaos.social avatar

I made something to watch the 2024 eclipse remotely!

This is every public webcam in the path of totality, with a live-updating view of the umbra.

https://jonty.github.io/2024_eclipse_webcams/

The view from a webcam showing that it is 1:31 PM and dark.

rmoff, to random
@rmoff@data-folks.masto.host avatar

High-level post looking at Spotify's Data Platformβ€”looking forward to the deep-dives that are apparently going to follow…

https://engineering.atspotify.com/2024/04/data-platform-explained/

xahteiwi, to random
@xahteiwi@mastodon.social avatar

Tapping the sign:

You don't take meeting notes for the people in the meeting. You take them for people who aren't in the meeting.

That includes three-months-from-now-you, who also isn't in the meeting.

xahteiwi,
@xahteiwi@mastodon.social avatar

@oliver This is also a big stress reduction factor. You don't have to remember how you solved a problem when it pops up next. You just have to remember that you solved it, and a few keywords to put into your issue tracker when the time comes.

Bonus, you can also find the solutions for problems your colleagues ran into, and vice versa.

joeyh, to random
@joeyh@hachyderm.io avatar

Lasse Collin has started making some commits to #xz, interesting starting point here.

https://git.tukaani.org/?p=xz.git;a=commitdiff;h=f9cf4c05edd14dedfe63833f8ccbe41b55823b00

joeyh,
@joeyh@hachyderm.io avatar

Here's the malicious commit that disabled the Landlock sandbox. Pretty slick!

https://git.tukaani.org/?p=xz.git;a=commitdiff;h=328c52da8a2bbb81307644efdb58db2c422d9ba7

  • A compile check is done here because some systems have

  • linux/landlock.h, but do not have the syscalls defined

  • in order to actually use Linux Landlock.

That may even be true.

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