@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,
@diazona@techhub.social avatar

@then_three_more @itsnotits I don't see how "its a new feature" is grammatical, because we don't use "a" along with a possessive. "Its new feature" would be perfectly normal but I think "its a new feature" doesn't make sense.

jason_w_karpf, to StarTrek
@jason_w_karpf@mastodonbooks.net avatar

New Study Achieves Breakthrough in Warp Drive Design - Press Release

A warp drive concept that works within known physics. At last!

@bookstodon @religion https://apple.news/AZ2WX4m78Qnq0LETaaeToJg

diazona,
@diazona@techhub.social avatar

@jason_w_karpf @bookstodon @religion Huh, well it'll be interesting to see what additional research happens along these lines. It sounds interesting but the press release sounds very promotional, so I'm reserving judgment.

(I wonder what the religion group's interest in this is? 🤷)

dickrubin716, to bookstodon
@dickrubin716@bookstodon.com avatar

I would love to get your thoughts and feedback on my from my latest book, The Challenges of Being Me. Do you like it? Does it capture your attention? Without knowing anything about the book, what genre would you say this cover best fits? @bookstodon

diazona,
@diazona@techhub.social avatar

@negative12dollarbill @dickrubin716 @bookstodon Interesting, I kind of had the opposite guesses: the title makes me think of self-help, but the image suggests something else (possibly YA)

brettcannon, to random
@brettcannon@fosstodon.org avatar

Looking for a Bash one-liner to tell by exit code whether your Git checkout is dirty?

if [ -n "$(git status --porcelain)" ]; then (exit 1); fi

I sought this out for GitHub Actions so that I could set up a formatting command for a project and then check in CI if it would change anything instead of having a second command just for the check (e.g. black followed by this in CI instead of having a separate, dedicated black --check just for CI). Basically trying up the DRY on maintenance stuff

diazona,
@diazona@techhub.social avatar

@brettcannon There's also git diff --quiet HEAD, which is what I often see used in Git scripts (e.g. the Git bash prompt uses a slightly more robust version of this)

git diff --quiet or git diff --staged --quiet if you want to check for only unstaged or only staged changes respectively

diazona,
@diazona@techhub.social avatar

@brettcannon Ah no it doesn't. Are you in the market for something to show untracked files as well? If so, it's probably worth noting the caveat that git status only reports untracked files if status.showUntrackedFiles is set to true (I keep it at false and TBH I can never really understand the mindset that makes some people set it to true, but to each their own 🙂), or if you pass the -u option to git status (or whatever its long form is, I don't remember offhand).

diazona,
@diazona@techhub.social avatar

@brettcannon haha no worries, well if I remember correctly --porcelain only affects how the information is displayed, it doesn't affect what information is collected and reported (like which files are considered). But don't take my word for it, I'm going by memory here.

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

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 🤔

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
  • anitta
  • kavyap
  • thenastyranch
  • khanakhh
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • Youngstown
  • everett
  • slotface
  • ngwrru68w68
  • cubers
  • Durango
  • rosin
  • megavids
  • cisconetworking
  • mdbf
  • osvaldo12
  • tester
  • ethstaker
  • vwfavf
  • modclub
  • GTA5RPClips
  • Leos
  • provamag3
  • tacticalgear
  • normalnudes
  • JUstTest
  • All magazines