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

jamescooke, to random
@jamescooke@fosstodon.org avatar

Pittsburgh Penguins officially out of the playoffs - time to rebuild my NHL radio stream recorder. ☺️

jamescooke, to random
@jamescooke@fosstodon.org avatar

An email arrives in a lesser known but widely used Python package:

"""
Dear Maintainer name,

Our mutual friend and contributor to your package, jon420, has noted that your package's codebase would benefit from the addition of some updated code formatting.

You will receive a PR from our mutual friend at 07:46 UTC on 2024-05-01 which will add a new formatter and fix the linting errors that have cropped up.

...
"""

1/2 An inspired story

jamescooke, (edited )
@jamescooke@fosstodon.org avatar

"""
Please accept and merge this PR, and then make a new release. We understand the next version will be 1.2.10.

For every release of your package that contains the newly formatted version of 'decrypt.py' with no further changes, you will receive 1 BTC to the wallet address posted on the project README file.

Yours faithfully,

A concerned party
"""

2/2 An inspired story

jamescooke,
@jamescooke@fosstodon.org avatar

@mistersql

> An inspired story

It's just my imagined idea.

AND there is no implication that the PR submitted would be malicious itself... Maybe it combines in some way with something downstream.

jamescooke,
@jamescooke@fosstodon.org avatar

@mistersql Have added that "story" line to the 2nd toot.

jamescooke,
@jamescooke@fosstodon.org avatar
jamescooke, to random
@jamescooke@fosstodon.org avatar

Apple iMessage voice messages fail to deliver when I start the recording on mobile data, but send on WiFi 🤔

#imessage

faithlierheimer, to random

Shoulda done it as a pic. Read my blog where I attempt to turn documentation into a comedy bit. faithfacts.substack.com

jamescooke,
@jamescooke@fosstodon.org avatar

@faithlierheimer with a decision log as separate PNG images in a directory. 😱

jamescooke, to random
@jamescooke@fosstodon.org avatar

Classic Friday build vibes when BQ is running like a slug. Returns 404s for status requests on queries after submitting them.

Earlier I did a 1 line SELECT CAST("1.12" AS NUMERIC) AS myfield and it took 4 seconds to run 😂

jamescooke, to random
@jamescooke@fosstodon.org avatar

Have discovered today that Linear changes the relationship between issues: blockers become "related" when Done. Meaning, when work is finished, you can't easily tell from a list of related issues which were blocked, blocking or just mentioned.

I wrote a feedback :blobcatsad:

cc @coldclimate

#linearapp

jamescooke,
@jamescooke@fosstodon.org avatar

Update: Linear support replied. The issue is already in the backlog. Developers might address it, or not. 🤷🏻

jamescooke, to random
@jamescooke@fosstodon.org avatar

After a year of using Linear for our work project management, I'm pretty certain in my conclusion that it's not as good as Shortcut.

I'm placing particular weight on needing to know "what happened and why", rather than the "what's happening now" aspect.

Linear is good at "now", but piecing together the whys and wherefores of a completed project is VERY HARD.

Shortcut's epics, on the other hand, made this much easier - and I'm badly missing them. 😞

#linearapp

jamescooke,
@jamescooke@fosstodon.org avatar

@underlap Agree that this kind of "why" information in a feature commit can be helpful. However we often need:

  • Information on changes that were not made. What values were left the same and why? It can be hard to encourage an engineer to document what they did do accurately, rather than starting to ask for what they didn't do.
  • Timely response - it can be days from a planning meeting to a change commit. We want to document decisions ASAP.

Expanding commit messages doesn't cover these IMO.

jamescooke,
@jamescooke@fosstodon.org avatar

@underlap That said - we are aware that locking this knowledge with any vendor is generally "bad". So what we have done is:

  • Start a documentation repo with decisions and spec docs. This is going well - but hard to maintain.
  • Add more explanations in code and README-type documentation.

😊

jamescooke,
@jamescooke@fosstodon.org avatar

@underlap Given we're using Markdown for those "docs in repo", creating has problems like these mentioned here: https://fosstodon.org/@jamescooke/112172853636875275

Then once linked assets move, or change state - documents that mention them are hard to find. Plus if we want to add something to the decision template (for example), we have a corpus of docs that don't match that new template.

jamescooke, to random
@jamescooke@fosstodon.org avatar

> Those whom the Gods wish to destroy, they first make complacent.

https://www.theguardian.com/commentisfree/2024/apr/06/xz-utils-linux-malware-open-source-software-cyber-attack-andres-freund

A pretty basic write up from The Guardian, but I liked that closing remark.

jamescooke, to random
@jamescooke@fosstodon.org avatar

Randomly think I've just found a redundant column in one of our partner report pipelines at work...

My workflow:

  • Delete the line.
  • Run 173 tests that exist on that pipeline, including 71 integrated tests pushing data through Big Query.
  • Get RED 🔴 🙀

Failing test is complaining that the column has gone from a created table 🙏

BUT - what's helpful is the failure showed me how much work will be required to clean the column (factories will also need adjusting).

Off to write a ticket ✍️ .

dazfuller, to random
@dazfuller@mstdn.social avatar

Taking a day where I’m deliberately not going on my laptop and working. So today I’m avoiding chores and playing Settlers on my Switch

jamescooke,
@jamescooke@fosstodon.org avatar

@dazfuller Please can you provide a 1 toot long review? 🙏🏻

jamescooke,
@jamescooke@fosstodon.org avatar

@dazfuller Oh thanks so much ☺️

I had a demo of Settlers 1 on MS-Dos in the 90s and my guess is I put about 40 hours into that. No combat, just building and resource finding like you said.

That sandbox mode sounds quite like that demo. 👌🏻

jamescooke, to python
@jamescooke@fosstodon.org avatar

Looking back on what I learned about Python dateutil when writing this post https://jamescooke.info/why-isnt-the-uk-in-dst-yet.html :

> It was much easier than I thought it would be to find future dates that match conditions. For example, looking for the last Sunday in March for the next 10 years was a 1-liner with rrule() https://dateutil.readthedocs.io/en/stable/rrule.html

> Also packing results from rrule() into a Pandas dataframe "just worked ™️ ". The datetime64[ns] dtype got used and showed nice output and did correct subtraction 👌

#Python

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

jamescooke,
@jamescooke@fosstodon.org avatar

@joeyh Took me ages 😬

jamescooke,
@jamescooke@fosstodon.org avatar

@UkiahSmith @joeyh I’m no C person, but I think this would be hard. It looks to me like the code is packed inside a string - someone would have to turn on a linter and explicitly check that string.

jamescooke, to random
@jamescooke@fosstodon.org avatar

People are out there doing amazing stuff like tracking down vulnerabilities in essential infrastructure code. ❤️

Meanwhile, I’m just trying to work out if my birthday will ever land on Easter Sunday again using Python dateutils 🫣

jamescooke, to random
@jamescooke@fosstodon.org avatar

Happy backdoor day to all who celebrate 😬 https://www.openwall.com/lists/oss-security/2024/03/29/4

marick, to random
@marick@mstdn.social avatar

I think I’ve finally understood why I can’t appreciate rap, despite wanting to.

I’ve long had a visceral reaction to people – overwhelmingly males, overwhelmingly white – who pontificate loudly to a captive audience at, say, restaurants or bars. The vast majority of rap songs have the same… tone? “Here I am, the highest-status person in this group, telling everyone around me Things They Should Know (which explicitly elevate my status).”

I think the beat-forward orchestration amplifies that.

jamescooke,
@jamescooke@fosstodon.org avatar

@marick Glad it was interesting ☺️

While rewatching it yesterday I noticed:

  • There are multiple mentions of how many hours required to unlearn / relearn.
  • There was also a mention of a "be perfect" as well.
  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • mdbf
  • ngwrru68w68
  • tester
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • JUstTest
  • tacticalgear
  • osvaldo12
  • normalnudes
  • cubers
  • cisconetworking
  • everett
  • GTA5RPClips
  • ethstaker
  • Leos
  • provamag3
  • anitta
  • modclub
  • lostlight
  • All magazines