@diazona@techhub.social avatar

diazona

@diazona@techhub.social

Software engineer, former particle physicist, occasional blogger. I support the principle of cake.

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

diazona, to random
@diazona@techhub.social avatar

It's strangely comforting to get a good old classic non-ending

Thanks for hosting @Taweret!

diazona, to random
@diazona@techhub.social avatar

Is that supposed to be a spider he drew on the airplane

Worst spider drawing ever

It looks like an amoeba

jonny, to random
@jonny@social.coop avatar

Posting from one account to reply from another account to be on the feed without polluting the local feed. others who wish to do the same but don't have an alt can reply to this as well (but untag me)

diazona,
@diazona@techhub.social avatar

@jonny What would become of with that kind of logic though

diazona,
@diazona@techhub.social avatar

@jonny Good point in general, but I do think the continuing erosion of the amount of spider-safe space the main characters had to deal with was also a pretty effective way of building tension

diazona, to python
@diazona@techhub.social avatar

I remember having a discussion about argument parsing in a while ago where someone recommended a small library that was kind of like argparse except that instead of returning an argparse.Namespace, it returns a fully typed object (which you define), a dataclass or something similar. Anyone know what I'm talking about? I wanted to try that library but I forgot what it is and I can't find the discussion.

diazona,
@diazona@techhub.social avatar

@pawamoy Yep that's the one. Thanks for finding it! I have too much in my posting history 😅

simon, to random

For several months now, I've been using an app called Due for reminders, and I think it is helping me more than any other app I've tried. It has interactive notifications that let you reschedule or complete reminders from the lock screen; Siri support; a set of really nice sounds that can be chosen per-reminder; all the usual recurring features; and best of all, customizable auto-snoowhze, which causes the reminder to repeat until you either reschedule or complete it. Its tagline is "never forget anything again", and I'm not sure the developer could have done a better job making that happen. https://apps.apple.com/ca/app/due-reminders-timers/id390017969

diazona,
@diazona@techhub.social avatar

@simon Sounds nice, I wish there were an Android equivalent

glyph, to random
@glyph@mastodon.social avatar

"not sure I have a big enough uninterrupted stretch of time to get anything big done this week" I think to myself, "I know, I'll do something 'simple' and debug an intermittent failure that occurs only in CI and only 1 out of 4 tries" and now I feel like I'm driving myself insane on purpose; starting to wonder if I secretly hate myself

diazona,
@diazona@techhub.social avatar

@glyph "simple" and "intermittent failure" in the same sentence, that's ambitious 😂

CultureDesk, to books
@CultureDesk@flipboard.social avatar

AI-generated books on Amazon now have the potential to kill people, as they've moved into the realm of mushroom foraging. Guides have popped up like, well, mushrooms, packed with information that makes no sense and could easily be dangerous, illustrated with structures that are "the mycological equivalent of a picture of a hot blond with six fingers and too many teeth," writes Vox's Constance Grady. Here's more.

https://flip.it/ekbDMe

@bookstodon

diazona,
@diazona@techhub.social avatar

@doc @CultureDesk @bookstodon Depends on jurisdiction of course, but in the US, probably not. Or, I mean, you can sue anyone for anything, but you're not going to win if the only allegation you make is that they published something that was wrong.

Maybe a good lawyer could find some way to frame it as negligence 🤷

diazona, to random
@diazona@techhub.social avatar

Side note: I'm always confused by how most people manage to finish the movie before me every week even though I watch a version without ads and start it right on the hour

Not complaining, just confused

#Monsterdon

courtcan, to books
@courtcan@mastodon.social avatar

Seen elsewhere: name 10 authors of whose books you've read more than 5:

Elizabeth Moon >5
Margaret Atwood =5
Stephen King >5
Dean Koontz >5
Jennifer Roberson >5
Anne Rice >5
CS Lewis >5
Octavia Butler =5
Susan Cooper =5
JRR Tolkien >5

Bonus:
PC Hodgell =5




diazona,
@diazona@techhub.social avatar

@courtcan I'm not even sure there are as many as 5 authors from whom I've read more than 5 books each (and in every case it's because they wrote a series of 5+ books that I liked). I bet this is a question that only a small minority of readers will be able to answer.

adamchainz, to python
@adamchainz@fosstodon.org avatar

✍️ New post covering a “diffing” unit test in , which checks copy-paste-tweaked code is in sync with the upstream library.

I used this technique recently on a upgrade and I’m curious if anyone else has done similar.

https://adamj.eu/tech/2024/04/26/python-diffing-unit-test/

diazona,
@diazona@techhub.social avatar

@adamchainz Neat, this is one of those things that seems like it should normally come with a disclaimer "for entertainment value only, do not use", but on the rare occasion that you need it....

I wonder if there's a better way to present the diff of diffs that could be built into a custom output hook? 🤔

kushal, to random
@kushal@toots.dgplug.org avatar

I am not seeing enough about what is going on US university campuses on mastodon. Maybe I am following different crowd.

diazona,
@diazona@techhub.social avatar

@kushal Yeah, some people will be posting about it (with varying frequency) and some people won't, and it makes sense that if you're not seeing as much of that content as you want to, you can change that by following (or unfollowing) people. Or hashtags of course; I've seen a few relevant ones.

I don't think an appeal that there should be more posts about the topic - in the sense that people who aren't posting about it should be - is the way to go.

grimalkina, to random
@grimalkina@mastodon.social avatar

I want to see absolutely no sensible and practical advice here. What programming language should I start vaguely and in a chill way teaching myself if I just want to experience something fun or elegant or interesting in and of itself, assuming I have no goal for using it to do anything really (outside of learning)

diazona,
@diazona@techhub.social avatar

@grimalkina Since I see Piet and APL have already made the list, let me throw in a suggestion for jq (https://jqlang.github.io/jq/) - but specifically, doing something complex in jq. Like, I've been writing little jq one-liners for ages, but it was only when I wrote a full 100-ish line program in jq that I started to appreciate its stream processing model as being something distinctly different from the typical paradigms (functional, procedural, OOP, async, all that jazz).

diazona, to academia
@diazona@techhub.social avatar

Later this week I'm giving a colloquium to my old grad school department (physics) about my experience getting out of and working as a software engineer. It'd be interesting to crowd-source this: grad students and other former grad students of Mastodon, what would you want to hear in this kind of a talk?

ottaross, (edited ) to random
@ottaross@mastodon.social avatar

Got the movie going - is the movie just on Mystery science Theatre 3000 via Tubi?

Would rather watch it without the jokey overlay. Couldn't find it as a stand alone movie.

diazona,
@diazona@techhub.social avatar

@ottaross It's on the Internet Archive and various streaming sites, I can post a link shortly

diazona,
@diazona@techhub.social avatar
diazona, to random
@diazona@techhub.social avatar

Usually the movie of the week makes a very specific promise of a monster right in the title (Godmonster, Magnetic Monster, Wasp Woman)

This week we are promised a "Shape"

hmmmm 🤔

ChrisMayLA6, to VideoGames
@ChrisMayLA6@zirk.us avatar

While its good to see that books still hold their own (in revenue generating terms) with films & music (they outperform both), the big news is that video games generated more revenue globally than books & music combined.

As someone who has never played a video game, but reads a lot of books, I'm not sure how I feel about this... but it tells us something about where the globe's creative & receptive energies seem to be spent.

#videogames #music #films
@bookstodon

diazona,
@diazona@techhub.social avatar

@ChrisMayLA6 @bookstodon Video games have much more revenue potential than any of the others, though - people can spend hundreds or thousands of dollars on a single game by buying in-game content. If this graph includes all that revenue, then I bet it's not giving an accurate impression of how many people play video games compared to reading books, and shouldn't be taken as a representation of how people's "creative & receptive energies" are spent.

OwenTyme, to writing
@OwenTyme@mastodon.social avatar

I've found another online store that respects the price I've set on print copies of my books.

Has anyone ever heard of bookshop.org? Anything good or bad to say about them?

I found my books on it recently and the site has good reviews online, so I've added bookshop.org links to the list that shows up when you click on one of my books2read links.

My books on their site: https://bookshop.org/contributors/owen-tyme

@bookstodon

diazona,
@diazona@techhub.social avatar

@OwenTyme @bookstodon I haven't heard a lot, but what I have heard has been good.

I haven't gotten the chance to use them myself since I so rarely buy physical books these days and the few times I did I couldn't find what I was looking for on bookshop.org, but I always check.

mcnees, to random
@mcnees@mastodon.social avatar

LaTeX friends!

I’m looking for a modern and native (not electron) mac OS text editor that might take the place of textmate in my latex workflow.

I'm hoping to find something with existing bundles / scripts / extensions comparable to textmate’s LaTeX bundle. The great "Watch Document" feature works so much better than “latexmk -pvc”.

Any recs? I feel like the pickings are slim. When a nice native editor has any LaTeX support it's usually just syntax highlighting and a basic build script.

diazona,
@diazona@techhub.social avatar

@mcnees As a "side-channel" suggestion, have you looked into Typst? It aims to be a LaTeX replacement which is faster and easier to use, and it natively supports incremental compilation and watching source documents and so on. It doesn't have the benefit of LaTeX's huge library of packages, but for the basic stuff it seems pretty solid.

This may or may not be a practical thing for you depending on how much you're tied to specific LaTeX classes and packages.

rochacbruno, to python
@rochacbruno@hachyderm.io avatar

It is disappointing that TypedDict doesn't support setting default values.

from typing import TypedDict

class Con(TypedDict):  
 host: str  
 port: int = 9090

data = {"host": "test.com"}  
connection = Con(**data)  

I expected it to give me "port": 9090 by default but it does not!

Looks like building the dict as instance of Con doesn't make any difference than just building a {} and that is very confusing.

diazona,
@diazona@techhub.social avatar

@cpontvieux @rochacbruno @nedbat I don't remember offhand if this works, but what about giving the TypedDict subclass a custom constructor that fills in the default values? It wouldn't be quite as convenient as the dataclass-like syntax, but for a one-off use it should do the trick.

I guess if you really wanted to you could write a metaclass that enables defaults in TypedDict. (Maybe. Again, not sure if it'd work but I can't think of a reason it wouldn't off the top of my head) It may not be worth the effort though.

diazona,
@diazona@techhub.social avatar

@rochacbruno @cpontvieux @nedbat Yes, I'm not surprised that making a dataclass that also extends TypedDict doesn't work. I'd expect the two to conflict.

Lazarou, to random
@Lazarou@mastodon.social avatar

Leaving Earth a one star review:
"Hostile, Belligerent, Racist. Avoid."

diazona,
@diazona@techhub.social avatar

@Lazarou This is going in the latest Hitchhiker's Guide I presume

cory, to tech
@cory@social.lol avatar

📝: A retrospective on a year without streaming music https://coryd.dev/posts/2024/a-retrospective-on-a-year-without-streaming-music/

diazona,
@diazona@techhub.social avatar

@tinheadned @cory The throwing away part is very much optional 😛

I mean, I know CDs take up space, it's just wild to me to think of buying a CD to use once and immediately dispose of

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