@aburka@hachyderm.io
@aburka@hachyderm.io avatar

aburka

@aburka@hachyderm.io

Engineer (robotics, embedded), contra dancer, nerd

Black lives matter | Trans rights are human rights | VOTE

I toot/boost stuff about robots, space, science{, fiction}, programming, US pol, etc. Also puns/memes. (Most deleted after 2 years.)

Follow to DM!

Toots w/o boosts: https://justmytoots.com/@aburka?public_only=true

:arch_linux: :rust: :cxx: :vim: :blobfoxcomputer: :blobfoxastronout: 😷💉
#NoAI #NoCrypto

Nivenly member

Avatar: lego robot
Banner: silhouetted human + robot

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

molly0xfff, to web

If you've ever found yourself missing the "good old days" of the , what is it that you miss? (Interpret "it" broadly: specific websites? types of activities? feelings? etc.) And approximately when were those good old days?

No wrong answers — I'm working on an article and wanted to get some outside thoughts.

aburka,
@aburka@hachyderm.io avatar

@molly0xfff in the 2000s I had a geocities website listing my favorite online flash games. I wrote it by hand after learning HTML from davesite.com and it had sparklies following your cursor around. Is that the good old days?

ricci, to random
@ricci@discuss.systems avatar

I just created a figure in LaTeX by typing everything from memory instead of cutting and pasting from an old document, AMA

aburka,
@aburka@hachyderm.io avatar

@pmonson @ricci I created an overlay keyboard layout basically for this reason (latex-induced pinky RSI) so \ is capslock+j on my keyboard

aburka,
@aburka@hachyderm.io avatar

@ricci @elb @pmonson and here I am scraping by with my Kinesis Freestyle and custom Xmodmap, like a chump

aburka,
@aburka@hachyderm.io avatar

@ricci @elb @pmonson I keep meaning to switch to something that I don't have to reapply every time udev runs

veronica, to programming
@veronica@mastodon.online avatar

Over the last three weeks I've been tinkering with adding a footnotes feature to @novelwriter. It was non-trivial, as I had to come up with a syntax for it, make the indexer handle it, and add build support into HTML, markdown and Open Document. The latter took a fair bit of tinkering too.

But it is done, and merged! The final diff was +2,181 −1,338. Quite a lot, although I took the opportunity to clean up and extend some tests. Coverage's now at 99.61% 😁

aburka,
@aburka@hachyderm.io avatar

@veronica > footnotes are so rarely used in fiction

Jonathan Stroud would like a word 😂

aburka, to random
@aburka@hachyderm.io avatar

🤵‍♂️ We've updated our terms of service--

👉 ToS update or forced arbitration clause again?

... forced arbitration clause again.

aburka,
@aburka@hachyderm.io avatar

Anyone know what the image macro template for this meme is called? I couldn't come up with any good search terms

foone, to random
@foone@digipres.club avatar

I just tried to order a pizza and it wanted my credit card expiration date, so I entered "05/28" (example date only)

it then came back with a "your card is expired" error. Uh, no it isn't? that date is still several years in the future.

did... did this site just take my date and assume I mean May of the year AD 28? That is indeed very expired! that's what I get for trying to use Jesus's card.

aburka,
@aburka@hachyderm.io avatar

@foone could be old Y2K-fixed code with a cutoff somewhere between 2000-2028 that rolled you back to 1928. Apparently Excel 95 rolls over at 2019

simontatham, to random
@simontatham@hachyderm.io avatar

In bash, writing ${var?} instead of just ${var} or $var means if var isn't defined then bash will throw an error and not execute your command, instead of expanding it to "" and carrying on.

mv file1 file2 $subdir # oops, I overwrote file2
mv file1 file2 ${subdir?} # error message instead of disaster

My favourite use of this is for example commands in documentation, with placeholders for the user to fill in. Then it's OK if a user accidentally copy-pastes it without filling them in!

aburka,
@aburka@hachyderm.io avatar

@simontatham this gets real confusing at $dayjob because in our custom YAML extensions (don't ask) the syntax ${var?} means to substitute var, unless it's undefined in which case leave it out. We do have syntax that does the same as this bash feature, but it's ${var!} instead

Viss, to random
@Viss@mastodon.social avatar

okay, yes, this could be awesome.
it would be pretty great to not have multi-hour hold times, and then having to explain to someone who barely speaks english how the basics of icmp or tcp work in order to speak to the next tier of support, or to help book complex international flights

aburka,
@aburka@hachyderm.io avatar

@Viss struggling to understand how it's better to talk to a chatbot that will just make up a plausible-sounding wrong answer

aburka,
@aburka@hachyderm.io avatar

@Viss of course but replacing them with a bot seems like a lateral move at best, since at least a human could in theory be provided with training/resources that would help

aburka,
@aburka@hachyderm.io avatar

@Viss bad assumption, as it's already happened and they did not do that https://www.washingtonpost.com/travel/2024/02/18/air-canada-airline-chatbot-ruling/

mhoye, to random
@mhoye@mastodon.social avatar

Earlier this week:

https://mastodon.social/@mhoye/112289590075359399

Yesterday:

https://github.com/rabbitscam/rabbitr1

I'm not short of love for interesting hardware and novel interfaces efforts, but not if they're a thin wrapper around a scam. I hope this doesn't sink Teenage Engineering by association.

aburka,
@aburka@hachyderm.io avatar

@glyph @mhoye I think that's the point

aburka, to random
@aburka@hachyderm.io avatar

This is the Messenger app. So... this was previously a search bar. I used it to get to chats by searching a friend's name or something they said. How do I do that now? Who asked for this? Even if I didn't hate genAI on principle, how is this an upgrade? Honest question.

thisismissem, to random
@thisismissem@hachyderm.io avatar
aburka,
@aburka@hachyderm.io avatar

@thisismissem yikes, they are innovating heretofore unknown shades of red for their flags

> Ravikant argues that AirChat should function like a dinner party — you won’t kick someone out of your house for partaking in a civil debate. But if they start violently screaming at you, it would be wise to intervene.

> “We don’t want to moderate for content, but we will moderate for tone,” Ravikant said.

brooke, to random
@brooke@bikeshed.vibber.net avatar

Literally the only reason to use fahrenheit

aburka,
@aburka@hachyderm.io avatar

@skyfaller @brooke it's an ok temp for a CPU or hard drive, not too hot for most hardware

aburka,
@aburka@hachyderm.io avatar

@skyfaller @brooke maybe it only has a granularity of 2 degrees, just to troll you

danderson, to random
@danderson@hachyderm.io avatar

Hmm, right, the irreducible nub of why the borrow checker is mad at me: I make a Box into local var b, move the box into an enum value and mem::replace it into an array, then try to keep using b. Textbook crime, no contest.

... But how do I get out of this? I have a &mut on the array, so I can legally get at a &mut Box... but peeling it out of the various layers is going to be ugly repetitive code.

Is there some pattern for "give this thing away but give me a &mut back to it" ? Guessing no...

aburka,
@aburka@hachyderm.io avatar
aburka,
@aburka@hachyderm.io avatar

@danderson yeah I see the problem, having to repeat the enum variant to assert that it is set to what is was just obviously set to!

aburka,
@aburka@hachyderm.io avatar

@danderson there's an assert_matches macro, but who knows when that'll be stabilized...

aburka,
@aburka@hachyderm.io avatar

@danderson @raggi yeah, I mean, I'm sure your real enum is more complicated, but as it is it's quite similar to Option<Box<Table>>, and Option has that helper https://doc.rust-lang.org/stable/std/option/enum.Option.html#method.insert

aburka,
@aburka@hachyderm.io avatar

@danderson @raggi yes, I'm quite sure the optimizer can remove that unreachable!() though

danderson, to random
@danderson@hachyderm.io avatar

Hmm, what's the Yeet trait called in rust? I have an Box with a thing in it, and I want to move the thing into a new Box elsewhere, consuming the old Box but not triggering destruction. I assume there's a trait for this kind of "safely hand off a raw pointer between smart bois", but Box's docs are long and full of unstable things that make it hard to read :(

aburka,
@aburka@hachyderm.io avatar

@danderson why are you not moving the box itself?

aburka,
@aburka@hachyderm.io avatar

@danderson if you have ownership of the box you should be able to move it

aburka,
@aburka@hachyderm.io avatar

@danderson grumble grumble, making a reference in the bindings used to require syntax so you'd know it's happening, but "match ergonomics" made it magic so you can fall into this </old man rant>

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