@b0rk@jvns.ca avatar

b0rk

@b0rk@jvns.ca

programming and exclamation marks

I have DMs muted from people I don’t follow.

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

b0rk, to random
@b0rk@jvns.ca avatar

the submission deadline for the last-ever @bangbangcon is next week! (May 29) https://bangbangcon.com/give-a-talk.html

it's a celebration of the joy, excitement, and surprise of computing! Talks are 10 minutes! !!Con can pay for your travel! The only rule is that your talk has to have an exclamation mark in the title!

b0rk, (edited ) to random
@b0rk@jvns.ca avatar

in git, what ways are there to "lose" a commit in a way that you CAN'T recover using the reflog (so that you need to iterate over every single commit in the repository if you want to find it?

The only ways I know (using git's normal tools) are:

  • using git stash drop or git stash pop to drop a stashed commit
  • waiting 90+ days to try to recover the commit (so that it expires from the reflog)
  • explicitly deleting the reflog in some way (rm -rf .git, git reflog expire, etc)
b0rk, (edited )
@b0rk@jvns.ca avatar

also: have you even run into a situation where git completely deleted a commit that you needed? (where it wasn't recoverable with the reflog or with git fsck)

only interested in things that have actually happened to you, not "this could theoretically happen if…”

I'm trying to think about whether there's any normal way for that to happen except if you completely delete your git repository.

b0rk,
@b0rk@jvns.ca avatar

@DerPumu those should be recoverable with the reflog I think? If they're not I'd be interested to know why not!

b0rk,
@b0rk@jvns.ca avatar

@bnut has that ever happened to you? i'm very aware of git gc but what I'm curious about is whether anyone has ever had a commit deleted by git gc that they cared about

b0rk,
@b0rk@jvns.ca avatar

@gwadej thanks this is a great (and terrifying) example

b0rk,
@b0rk@jvns.ca avatar

@bnut thank you!

b0rk,
@b0rk@jvns.ca avatar

@christianmlong thanks!

b0rk,
@b0rk@jvns.ca avatar

@pointlessone has that happened to you?

b0rk,
@b0rk@jvns.ca avatar

@pointlessone thanks!

b0rk, to random
@b0rk@jvns.ca avatar

pretty happy with how the table of contents for "How Git Works" is looking

(if you want to get an email when the zine comes out, you can sign up here: https://wizardzines.com/zine-announcements/)

b0rk,
@b0rk@jvns.ca avatar

@MartyFouts @airfive it’s for people who have been using git for a while but are still confused by it

b0rk, to random
@b0rk@jvns.ca avatar

I think a lot about how

  1. a lot of command line UIs are kind of bad
  2. building better UIs is great
  3. but taking the time to get comfortable with a bad UI has often really paid off for me
  4. I'll often keep using an older tool with a worse UI because it's more stable, or more actively maintained, or has more features, or has more examples available, or my friends use it
  5. it's still important to acknowledge that the UI is in fact bad even if I'm pretty comfortable with it now
b0rk,
@b0rk@jvns.ca avatar

@dvogel i'm not sure if I enjoy the process of learning them! i spent many years avoiding using tcpdump because I was intimidated by its UI

b0rk,
@b0rk@jvns.ca avatar

anyway i've been trying to summarize my relationship with git (which I love) in a single panel and this is where I landed today

b0rk,
@b0rk@jvns.ca avatar

@Scmbradley the rust compiler? it’s a project that needs to communicate a lot of very complex information and i think does a good job

also I think tools like grep and sort are good, they’re relatively simple and don’t have a lot of gotchas that I can think of

b0rk, to random
@b0rk@jvns.ca avatar

should we include stickers of this little Why Guy with print copies of the git zine?

b0rk,
@b0rk@jvns.ca avatar

@rcriii haha which one is that from?

twiggywan, to random

hi @b0rk , i contact you cuz ilike your blog.

I'm trying to investigate a kubectl port-forward issue going bad with firefox but working with chromium.
The pod i debug has a ssh daemon, and when using ssh portforward instead it works good with both browsers.

I tried asking on kubernetes slack but so far no response (https://kubernetes.slack.com/archives/C09NXKJKA/p1715347467541609)

Because it involves the browser, kubernetes,containerd i'm really lost where I should look for help. Could you pls give me pointers?

thanks

b0rk,
@b0rk@jvns.ca avatar

@twiggywan I'm pretty out of touch with kubernetes these days but I might try tcpdump (+ wireshark) to see how the firefox connections are different from the chromium ones

b0rk,
@b0rk@jvns.ca avatar

@twiggywan oh good point! what I'd try is to get the http request in the network tab with "copy as curl" in both browsers and replay them both on the command line

if one succeeds and one fails, then i'd put each one in a shell script and start removing headers until i can find the culprit

in theory they should be using the same tcp/ip implementation because that’s the OS's job, not the browser's job

b0rk,
@b0rk@jvns.ca avatar

@twiggywan amazing I'm so glad to hear that!

b0rk, (edited ) to random
@b0rk@jvns.ca avatar

if you’ve written code to interact with a USB device (in userspace, not in the kernel), what tools/learning resources did you use?

right now I’m thinking gousb (and Wireshark to spy on USB traffic) but I’ve never done this before

the USB device in question is a USB-to-Ethernet adapter on a Mac

b0rk,
@b0rk@jvns.ca avatar

@raggi interesting! the one I have is using NCM with my OS (according to Wireshark)

b0rk, to random
@b0rk@jvns.ca avatar

looking forward to @mwl's book "Run Your Own Mail Server" coming out https://www.kickstarter.com/projects/mwlucas/run-your-own-mail-server

I'm much too afraid to run my own mail server but I've always enjoyed his writing about networking (his “networking for system administrators” helped me a ton when I read it) and I think it's going to be a nice way for me to learn more about how email works

b0rk,
@b0rk@jvns.ca avatar

just backed @mwl's “Run Your Own Mail Server" kickstarter https://www.kickstarter.com/projects/mwlucas/run-your-own-mail-server

I'm way too lazy to run my own email infrastructure (I don't even run my own webservers!) but I'm looking forward to learning about what's involved in running an email server anyway

b0rk,
@b0rk@jvns.ca avatar

in general my approach to things like webservers and email is

a) own my domain names
b) pick companies to run my email/website/mastodon/etc
c) switch whenever I want

I really appreciate the convenience of using services like fastmail/gmail/fly/netlify/github/nearlyfreespeech/etc, and I know that if things go downhill I can always switch

b0rk,
@b0rk@jvns.ca avatar

@ShadSterling fastmail has a really good import from gmail

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