home.social

Search

460 results for “diazona”

  1. @diazona Same. Far from pro level player, but I do enjoy playing in some competitive rec leagues and the likes! I hear you on club games. I love the UFA though for the ease of keeping up with teams and streaming and such. Can follow it like I would baseball or football, ya know? And the added visibility it brings the sport from the occasional ESPN coverage is pretty cool. #UltimateFrisbee

  2. @diazona I see the tagline for #PyInfra is "Think ansible but Python instead of YAML, and up to 10x faster."

    Sounds nice, though I imagine it has much smaller ecosystem of pre-build idempotent roles and lookup modules than #Ansible does

  3. @diazona @nazokiyoubinbou @RamenCatholic @Taweret I was just thinking "they should make a 70s bad trashy space opera but with modern special effects" but that's Rebel Moon and I'm not interested in that.
    It's not camp enough from what I can see

    #Monsterdon #RebelMoon

  4. @diazona @RomanOnARiver

    One brief note: when David says the "new way" is to use Python virtual environments, that's extremely relative. It has been best practice (and the only way to save your sanity because of dependency hell in any nontrivial project) in the Python community for, I dunno, 20 years? But Python's been around for >30, so it is the "new" way. Long before the `virtualenv` tool I was accomplishing the same thing with symlink trees to isolate interpreters.

    There are lots of opinions on where you should keep your venvs, i.e. what the path to them should be. I personally like putting them in the project directory, typically `<project>/.venv`, but others like to stash them away someplace, like in ~/.local/share. Project tools that handle virtualenv management (e.g. poetry, uv, etc) will generally give you a way to control where they create the venvs.

    #DependencyHell #import #circular #conflict

  5. @diazona @2ck

    I've spent the last couple of hours trying to set up an abandonware project that is purely setup.py-based. I don't miss these at all.

    #pyproject

  6. @diazona @j

    >>> def t(*args):
    ... return tuple(args)
    ...
    >>> x = t(3)
    >>> x
    (3,)

    (half in jest)

    I think the comma making the tuple is one of those things that you trip over when you're brand-new to Python, and then you get it and it's not an issue much after that.

    #tuple #comma #syntax

  7. @diazona @joranelias
    It's in PEP 8:

    Always surround these binary operators with a single space on either side, assignment (=)...

    Don’t use spaces around the = sign when used to indicate a keyword argument, or when used to indicate a default value for an unannotated function parameter...

    When combining an argument annotation with a default value, however, do use spaces around the = sign...

    peps.python.org/pep-0008/#othe

    PEP 8 is for the stdlib, you can ignore for your code.

    #Python #PEP8 #style

  8. @jmsdnns @diazona

    I should publish a package on PyPI named "src". The carnage might compare to the NPM `leftpad` debacle.

    #debacle

  9. @gflewell @diazona

    In a #nutshell, what you're #locking is your #dependency #graph. i.e. your project says you need the `requests` package v.1.2.3 or later, plus the `pandas` package version 2 (not 3, you haven't upgraded your code yet).

    Those each drag in a bunch of other dependencies, each with their own #version #requirements. One of them might say "I need pandas > 2.3.4". Multiple ones might all need `requests` as well, but specify different version constraints.

    1/x

  10. @tshirtman @diazona @jackwilliambell

    Fair enough. I resisted pipenv for quite a while, switched to it for a year or two, and have moved on to poetry with no regrets.

    I only use it for projects, though. Personal or work. If I just want to install a Python tool for local use, `pipx` is still just the ticket for it.

    #pipx #pipenv #poetry

  11. Calendar software update...

    @neil @diazona @hyc @woof @mementomori @avoca @xanderekpl @samuel

    Thanks all, I went and did a bit of reading based on your recommendations, and I have a much better sense now of the calendar territory. (and SuperProductivity, not exactly a calendar but interesting)

    And then... When I was imagining the different options in use, I realised that _none_ of them was exactly what I wanted, because of the frustrating smallness of a laptop screen when I want to look at the whole year! What I was actually craving was a physical year-planner display which can be hung on a wall. Non-electronic solution :-)

    Thinking it over, I also remembered I can supplement that with reminders from Remind. I use that for recurring things already, like "renew library books" or "put bins out", but there's nothing to stop me putting in a few one-off events as well if it would be useful.

    So thanks for the food for thought assisting my thought-experiments, and I shall bookmark this thread in case I do need one of the other ones later :-)

    #calendars #CalendarSoftware

  12. Looking at it first time today. (svg so responds to [ Ctrl + '+' ] didnt think to zoom it before)

    Wow! percentages on everything.

    I'm amazed! Astounded truly. 140 lines to achieve all of that? And I'm sure I'm doing it all sorts of wrong. But that's a genuine task solved w/ Python in basically a day, but i've been tweeking around w/ the filesystem stuff.

    On the data-science bandwagon of course.
    Thought I'd re-do my ⇨ *OLD* ⇦ php static cms (did i meantion it's old?) as a python app to learn from that perspective.
    see:
    statecollegeguitarlessons.com/

    I dunno why i want to start by learning how to mess with the filesystem. probably some kind of psychosis. someone has a name for that.

    traverse the dirs w/ tuple os.walk i think at that time, abandoned for pathlib - thought, okay: this is pretty easy w/ python! let's try counting file-types, etc. clearly abandoning the cms idea by that time. Also, i see Jupyter Notebook is basically already the thing. so. ha!

    #Python #Amazed #Pandas #Plotly #pathlib #newb

    @python_discussions
    @diazona
    @ketmorco

  13. Looking at it first time today. (svg so responds to [ Ctrl + '+' ] didnt think to zoom it before)

    Wow! percentages on everything.

    I'm amazed! Astounded truly. 140 lines to achieve all of that? And I'm sure I'm doing it all sorts of wrong. But that's a genuine task solved w/ Python in basically a day, but i've been tweeking around w/ the filesystem stuff.

    On the data-science bandwagon of course.
    Thought I'd re-do my ⇨ *OLD* ⇦ php static cms (did i meantion it's old?) as a python app to learn from that perspective.
    see:
    statecollegeguitarlessons.com/

    I dunno why i want to start by learning how to mess with the filesystem. probably some kind of psychosis. someone has a name for that.

    traverse the dirs w/ tuple os.walk i think at that time, abandoned for pathlib - thought, okay: this is pretty easy w/ python! let's try counting file-types, etc. clearly abandoning the cms idea by that time. Also, i see Jupyter Notebook is basically already the thing. so. ha!

    #Python #Amazed #Pandas #Plotly #pathlib #newb

    @python_discussions
    @diazona
    @ketmorco

  14. Looking at it first time today. (svg so responds to [ Ctrl + '+' ] didnt think to zoom it before)

    Wow! percentages on everything.

    I'm amazed! Astounded truly. 140 lines to achieve all of that? And I'm sure I'm doing it all sorts of wrong. But that's a genuine task solved w/ Python in basically a day, but i've been tweeking around w/ the filesystem stuff.

    On the data-science bandwagon of course.
    Thought I'd re-do my ⇨ *OLD* ⇦ php static cms (did i meantion it's old?) as a python app to learn from that perspective.
    see:
    statecollegeguitarlessons.com/

    I dunno why i want to start by learning how to mess with the filesystem. probably some kind of psychosis. someone has a name for that.

    traverse the dirs w/ tuple os.walk i think at that time, abandoned for pathlib - thought, okay: this is pretty easy w/ python! let's try counting file-types, etc. clearly abandoning the cms idea by that time. Also, i see Jupyter Notebook is basically already the thing. so. ha!

    #Python #Amazed #Pandas #Plotly #pathlib #newb

    @python_discussions
    @diazona
    @ketmorco

  15. Looking at it first time today. (svg so responds to [ Ctrl + '+' ] didnt think to zoom it before)

    Wow! percentages on everything.

    I'm amazed! Astounded truly. 140 lines to achieve all of that? And I'm sure I'm doing it all sorts of wrong. But that's a genuine task solved w/ Python in basically a day, but i've been tweeking around w/ the filesystem stuff.

    On the data-science bandwagon of course.
    Thought I'd re-do my ⇨ *OLD* ⇦ php static cms (did i meantion it's old?) as a python app to learn from that perspective.
    see:
    statecollegeguitarlessons.com/

    I dunno why i want to start by learning how to mess with the filesystem. probably some kind of psychosis. someone has a name for that.

    traverse the dirs w/ tuple os.walk i think at that time, abandoned for pathlib - thought, okay: this is pretty easy w/ python! let's try counting file-types, etc. clearly abandoning the cms idea by that time. Also, i see Jupyter Notebook is basically already the thing. so. ha!

    #Python #Amazed #Pandas #Plotly #pathlib #newb

    @python_discussions
    @diazona
    @ketmorco

  16. Looking at it first time today. (svg so responds to [ Ctrl + '+' ] didnt think to zoom it before)

    Wow! percentages on everything.

    I'm amazed! Astounded truly. 140 lines to achieve all of that? And I'm sure I'm doing it all sorts of wrong. But that's a genuine task solved w/ Python in basically a day, but i've been tweeking around w/ the filesystem stuff.

    On the data-science bandwagon of course.
    Thought I'd re-do my ⇨ *OLD* ⇦ php static cms (did i meantion it's old?) as a python app to learn from that perspective.
    see:
    statecollegeguitarlessons.com/

    I dunno why i want to start by learning how to mess with the filesystem. probably some kind of psychosis. someone has a name for that.

    traverse the dirs w/ tuple os.walk i think at that time, abandoned for pathlib - thought, okay: this is pretty easy w/ python! let's try counting file-types, etc. clearly abandoning the cms idea by that time. Also, i see Jupyter Notebook is basically already the thing. so. ha!

    #Python #Amazed #Pandas #Plotly #pathlib #newb

    @python_discussions
    @diazona
    @ketmorco

  17. CW: List of things to be improved on Masto

    Hey all, still as part of the #MoveToMasto Movement, and because we’re a bunch of honest people, let’s list all the things we think could be improved here on #Mastodon:
    (I’ll start - in no specific order. I've also added workarounds when I knew about them)
    (See this other post for the positive aspects)

    [1] No feedback on your boosts: do people like them? boost them? 🤷​
    [2] You can’t easily see all the answers to someone else’s post
    [unless you go to their instance's website]
    [3] Some great-looking accounts haven’t actually been active for a long time
    [but you can see "last active date" on your "follows and followers" Settings]
    [4] you can't easily quote posts
    [except with some apps, also this is coming soon in Masto!]
    [5] You can easily miss very relevant content
    [a customizable algo might be coming at some point on our instance!]
    [6] (very specific to me) there are not enough #BehaviouralNeuroscience or #NeuroEthology people
    [if you know any, tell them to come here!]
    [7] the new search is great but doesn’t search ALL of Mastodon’s public posts
    [you can always do a search from outside, say with DuckDuckGo]
    [8] you can't easily see only the posts of a profile
    [but you can use justmytoots.com/ for this]
    [9] …?

    Please do add your own!

    Edit: I updated the list, thanks to contributions of @diazona, @thefalcon 🙏​

  18. @ryan Hmm, well in this particular frame the stuff that was cropped off seems completely irrelevant and I wouldn't mind it being missing. But will that go for the whole movie...? 🤷 (I guess if you go with the Tubi version it's a moot point)

    #Monsterdon

  19. And now back to your regularly scheduled plot development that has nothing to do with kaiju 😢

    Good movie though! Certainly wayyy better than the 1999 remake. Thanks as always @ryan for hosting and everybody for posting! See you next week!

    #Monsterdon #MonsterdonDoubleFeature #Yongary1967

  20. And now back to your regularly scheduled plot development that has nothing to do with kaiju 😢

    Good movie though! Certainly wayyy better than the 1999 remake. Thanks as always @ryan for hosting and everybody for posting! See you next week!

    #Monsterdon #MonsterdonDoubleFeature #Yongary1967

  21. And now back to your regularly scheduled plot development that has nothing to do with kaiju 😢

    Good movie though! Certainly wayyy better than the 1999 remake. Thanks as always @ryan for hosting and everybody for posting! See you next week!

    #Monsterdon #MonsterdonDoubleFeature #Yongary1967

  22. And now back to your regularly scheduled plot development that has nothing to do with kaiju 😢

    Good movie though! Certainly wayyy better than the 1999 remake. Thanks as always @ryan for hosting and everybody for posting! See you next week!

    #Monsterdon #MonsterdonDoubleFeature #Yongary1967