Threads for icy

  1. 3

    I love this post for the tools and real world graphs shown. And it also answers my fear when using tracing on actix-web: Yes you can actually leak memory if the tracing isn’t ended after every request.

    Edit: What I’m missing though is a good frontend for tracing. I’ve seen jaeger for opentelemetry, but it doesn’t show as much info as I’d like. (How much time does function X take over multiple calls for example.)

    1. 2

      Take a look at Grafana Tempo.

    1. 6

      Nice. For a while I used DNS TXT records as an alternative to twitter, though it fell into disuse and I recently abandoned it for a honk instance.

      Also in the category of DNS-based hacks: iodine (IP-over-DNS tunnel).

      1. 1

        Hah, coincidentally, I too recently switched to a honk instance from Pleroma. Great stuff.

      1. 15

        Consider using something like beets to tag your music.

        1. 2

          Beets is fantastic. I would like to find “beets for photos”

          1. 3

            I hope whoever makes that calls it “pheets”.

        1. 3

          Huh. What even is this? Loops through bunch of hard-coded API keys and exits? I’m confused.

          1. 2

            Maybe the intent is to use this in a pre-commit hook to flag a potential problem.

            1. 1

              That should matter only if your commit or push process somehow passes environment variables to the server. In general, this is not the case. SSH does the right thing: you provide an allow list of environment variables that are safe to propagate to the server. Deny lists are absolutely the wrong way of solving a problem like this.

          1. 8

            I kind of feel that the author, intent on proving a point, himself misses the entire point of Hare as a language

            1. -2

              Well, the author is being polite. The point of Hare is to aggrandize its inventor.

              1. 26

                I have mercilessly flagged rants and sourcehut spam, as well as gotten into slapfights with Drew here. Believe me when I say, without any love or affection for the fellow, that I’m pretty sure your take here is wrong.

                1. 16

                  Oof. You’ve now convinced bunch of onlookers never to share their projects here. Aren’t we all here to learn new things via sharing?

                  1. 13

                    The point of Hare is to aggrandize its inventor.

                    I’m genuinely curious how you arrived that conclusion.

                    1. 6

                      Corbin doesn’t like Drew

                      1. 4

                        I hope ad hominem attacks don’t become the norm here.

                    2. 2

                      Working hard on something for years is the best way to aggrandize yourself. Shit posting on the other hand…

                  1. 2

                    In $PREVIOUS_JOB, cdk8s hit the right spot for us. It allowed us to build useful abstractions on top of kubernetes in a programming language we were used to, catch typos and inconsistencies at build time that could have bubbled into deployment errors, via static analysis. On top of that, we were able to never have to write the common Helm {{ $.Values.path.to.value | indent 14 | trim }} atrocity, which mangles both logic and formatting.

                    It has support for CRDs as well, which does not hurt.

                    To each their own obviously, but it really solved the issue of managing both configuration complexity and YAML format correctness at the same time.

                    1. 1

                      Oh wow, cdk8s has matured nicely! I have a bunch of mind-bending Helm charts that just yesterday were the cause of a hard-to-spot issue. I might start looking into converting some of them to cdk8s.

                      1. 1

                        Wow, cdk8s looks really nice. At work we’re currently using Jsonnet to define our manifests but Jsonnet is ugly. I might try to push for this.

                      1. 2

                        Honestly, politics aside, this just seems like wasted effort. I don’t see it being feasible to maintain so many patches to get systemd to play nicely with musl, only for it to never really see the light of day since it can’t fit in with how existing packages in main and community are built (the “no systemd” flags) — simply put, it will never graduate out of testing.

                        1. 2

                          Awesome! I’ve written a very hacky implementation of the same, and incidentally, I was just sitting down to rewrite it from scratch and get rid of all the cruft. Thanks for this post — I’ll be using it as a reference!

                          1. 10

                            I run cwm(1) on OpenBSD, on my trusty HP Envy 13. This is my desk setup — the keyboard is a Ducky One 2 SF, with some noname blank keycaps I bought off Banggood. And here’s a screenshot of my desktop. Yes, I arranged those windows by hand; no, I don’t actually use it like that.

                            1. 1

                              Nice! What’s that info program? I’m still using neofetch but I’ve seen that simpler blow fish a few times now and I’m curious.

                              1. 3

                                It’s just a quick and dirty script that I wrote a while back. Here’s the source.

                                1. 1

                                  Very cool. Thanks!

                            1. 11

                              Hiya lobsters, if anyone is interested in working on open source, we have lots of “Contributor Friendly” tagged issues: https://github.com/urllib3/urllib3/issues

                              We can even compensate for some kinds of issues! Pop into our Discord chat to discuss. :)

                              1. 13

                                Cool project but I really wish I didn’t have to use Discord.

                                1. 12

                                  Maintaining a big open source project is hard enough as it is, this is the sweet spot for us right now. We’ve changed several chat platforms over the years (we used Gitter for a while, for example), who knows what will be next!

                                  1. 2

                                    Just out of curiosity, why is that?

                                    1. 11

                                      Drew here has pretty much summed up my sentiments on this: https://drewdevault.com/2021/12/28/Dont-use-Discord-for-FOSS.html

                                      1. 1

                                        Thanks!

                                1. 1

                                  Looking at the author’s old post about Signal, I’m curious what the issues are with using Session for this…

                                  1. 13

                                    Author here. The reason is simple, and one that plagues every alternative messenger out there: crowd adoption. If your friends aren’t on it — what’s the point?

                                    As it stands, getting “on” Session is somewhat harder for the layman than Signal, owing to its use of alphanumeric “hashes” to identify people. My mom will be thoroughly confused if I ask her to “copy that string, paste it in Session and then start messaging me”. On Signal, it’s simply “search for my contact name and message me”.

                                    Until named addresses come about, Signal is where it’s at. And even then, I don’t think I want to go about convincing everyone I text to move to Session. It was hard enough to do once, heh.

                                    1. 3

                                      I don’t think I want to go about convincing everyone I text to move to Session. It was hard enough to do once, heh.

                                      Which is why you shouldn’t do it for Signal. Wait for something worth sticking with.

                                      1. 6

                                        Indeed. This is the reason I have never installed signal, or any other silo’d messaging app. No matter how good it seems, I don’t want to be trapped there.

                                        1. 3

                                          Too late.

                                          It’s still massively better than what came before it.

                                          1. 4

                                            WhatsApp was massively better than SMS as well, look where that got us.

                                            1. 2

                                              The vast majority of people still use the default messaging apps on their phones (or WeChat). If the goal is mass adoption, it’s not too late to change course at all.

                                              In fact the existence of countries that are U.S. adversaries means Signal will never be truly universal the way SMS, MMS, XMPP, and email are.

                                            2. 2

                                              The problem with “waiting” is I stick to WhatsApp, which is a hard no for me.

                                              1. 1

                                                That’s fair, I just use SMS with my carrier’s web texting interface. Signal and Telegram are both better than WhatsApp if you ignore adoption; Telegram has more adoption than Signal if the goal is to avoid bugging people to install an app.

                                                DeltaChat is also great I would honestly just use that, unless it’s harder to set up or something (don’t know, could be even easier).

                                            3. 2

                                              IIRC session does have named addresses but it’s based on the naming system lokinet uses, which means buying their crypto coins to set it up.

                                              1. 3

                                                I was wondering about this; had a suspicion there was an eye-rolling solution and sure enough…

                                                I guess people could mine for addresses, as Facebook did for their TOR onion address (see Wikipedia). But it’s probably hard to do on a smartphone.

                                              2. 2

                                                First tip, never use the word ‘string’ when talking to a non programmer, there are plenty of better words like: ‘phone number’, ‘id’, ‘unique code’

                                                1. 1

                                                  Nice! Thanks for sharing.

                                              1. 3

                                                phillbush has written a whole bunch of exciting X11 tools; my favourites being xnotify (daemonless notifications) and xprompt. Bunch more here.

                                                1. 1

                                                  If you like daemon less notifications then you should also try Herbe:

                                                  https://vermaden.wordpress.com/2021/04/18/freebsd-desktop-part-23-configuration-herbe-notifications/

                                                1. 7

                                                  Lobster should know better than platform bigots like the author of this piece.

                                                  1. 7

                                                    Let’s judge the article and not the person, shall we?

                                                    1. 8

                                                      Why just the article tho, why exclude all the links on that same page leading to godawful places.

                                                      1. 1

                                                        What have the links got to do with the article?

                                                  1. 2

                                                    I remember this being a /g/ project way back when, but it seems like Matrix ate their lunch at a certain point. Good to see it’s still in development!

                                                    1. 3

                                                      Matrix is not a replacement for Tox.

                                                      • Tox has no home-servers. Identities are generated locally.

                                                      • Encryption is built into the protocol. It is not bolted on later or optional.

                                                      • It is peer-to-peer instead of federated.

                                                      • Calls actually work much more often than they do with Matrix (anecdotal)

                                                      • Tox has several clients not written in Javascript.

                                                      1. 3

                                                        I’m pleasantly surprised a /g/ project made it past the “I’ll make the logo” phase into something actually usable.

                                                      1. 8

                                                        Flying back to the Netherlands tomorrow (from Indonesia). These kind of long flights are already … fun, not looking forward spending all this time with a mask too. But if I stay here any longer I’ll go properly crazy so will have to suck it up.

                                                        I will miss my cat :-( Actually, that’s a big reason I stayed here as long as I did, which sounds kinda silly but I’ve gotten quite attached to her.

                                                        Looking forward to being back home though. Found a place to stay in the countryside (well, as “countryside” as you get in NL) for two weeks and have to see where to go after that. Maybe stay in NL or maybe back to Ireland.

                                                        1. 3

                                                          How did you like your time in Indonesia? I’m in India, and I’d really like to visit Indonesia once they open up again.

                                                          1. 3

                                                            For visiting? It’s nice. For living? Not for me. I could never get use to the climate, cultural/language barrier is fairly significant, and as a white person you’ll always be seen as a foreigner by a significant chunk and you’ll never truly be a “local”.

                                                          2. 2

                                                            oh, sad to read that you’ll have to depart from your companion cat :(

                                                            is there no chance to bring her back with you to the Netherlands? i’ve seen people flying with pets on a transatlantic flight a couple of weeks ago

                                                            1. 7

                                                              It’s possible but very difficult. First, you need all the vaccinations, tests, quarantine, etc. Her vaccinations just expired so I need to get that renewed and wait 3 months, then have her tested (there are no EU-approved labs for the tests in Indonesia, so that might be hard). It’s going to take months and months with no guarantee of success. I happen to know some people at the local vet (my ex-girlfriend works there) and asked them, and they didn’t really know either.

                                                              Then you arrive in NL: then what? I will need to find a place which allows pets, which is significantly harder (and more expensive!) I can’t just rent some cheap small apartment somewhere. Cats don’t deal well with change so I have time to find something else (maybe in NL, maybe somewhere else), but with a cat I really need something permanent pretty much from the get-go.

                                                              In short, it’s all going to cost a lot of money that I don’t really have, will be stressful in ways I don’t think I can deal with right now, and will seriously limit things in ways that would be hard to accommodate in my current situation.

                                                              1. 1

                                                                An interesting look into the difficulties moving internationally with pets, thank you for writing this down!

                                                                1. 2

                                                                  It’s definitely doable, but just hard. When I lived in New Zealand my American girlfriend there moved her dog from the states to NZ. This was before we met, but from what I gathered it was a long and expensive process. Dogs are probably easier, since they’re less skittish than cats.

                                                          1. 4

                                                            adb push […]

                                                            You can simplify this by using TWRP’s sideload mode (Advanced > ADB Sideload), and sideload zips using

                                                            adb sideload rom.zip
                                                            

                                                            directly from your computer.

                                                            I initially made the mistake of trying to install Magisk by just flashing their zip file to the system partition via TWRP. Do not do this or else your phone will enter a boot loop.

                                                            Not sure why this happened to you — I’ve been flashing Magisk via TWRP for years.


                                                            I’ve been flashing ROMs ever since the Galaxy Ace days (2012?). I never ran stock. Always either Lineage/OmniROM without GApps. But that changed about two weeks ago, after I upgraded my OnePlus 6T to the latest firmware, and tried flashing TWRP, resulting in a brick — my phone was stuck in some Qualcomm debug mode thing. Wasted an entire day trying to get it working (this was on a Sunday, and I needed the phone working the next day). I had to use some MSMDownloadTool and put my phone in EDL mode to flash stock firmware — resulting in a hard wipe and a locked bootloader. Turns out the firmware upgrade resulted in some incompatibilities, and the only “solution” was to flash some “patched” boot.img some rando on XDA posted. No thanks.

                                                            I’m currently running the OnePlus stock ROM, with all the Google stuff disabled, waiting for my iPhone 13 mini to arrive. It’ll be my first ever iPhone but at this point, I just want something that works without having to mess around with it. Hopefully it can last me another 5 years or so, and by then the Linux/BSD mobile ecosystem would’ve developed enough to be daily-driveable.

                                                            1. 1

                                                              iPhone has reached a state where it’s almost completely sane and usable, except it lacks native WebM support. Until then I’ll be using MIUI on Xiaomi phones, which is probably the sanest Android experience I’ve had to date, the first time I didn’t even feel the need to root and flash something different. ROM flashing, for all it’s history, is a painful and annoying experience to me, with custom ROMs always buggy in some aspect different from the last.

                                                              1. 1

                                                                Does Xiaomi still ship ads in their apps? I can’t stand their bootleg iOS UI plus the insane amount of telemetry. Then again, I last used MIUI in 2016 or so? I suppose things have changed since, at least visually.

                                                                1. 1

                                                                  Yes, but they’re disabled by default in EU and Global versions of the ROM with opt-in pop-ups at inital setup.

                                                              2. 1

                                                                I’ve been flashing Magisk via TWRP for years

                                                                Seems like this has been deprecated somewhat recently.

                                                                https://topjohnwu.github.io/Magisk/install.html#custom-recovery

                                                              1. 2

                                                                Few things!

                                                                1. Preparing onboarding materials for new engineers

                                                                We’re doubling the engineering team in the next month which is obviously very exciting, but daunting. Trying to strike a balance of giving relevant info (tech stack resources, business overview, code layout etc) but not being overwhelming.

                                                                1. Building on-call rotation for alerts

                                                                Avenue’s (the company I work for) main product is an alerting tool, and we’re building in tagging to an “on-call”, so I’m starting to think about how to model that internally. Calendaring (or things that are calendar-adjacent) seem to start out so benign and always get complex. Hoping to start with a decent foundation, so my time should be split on data modeling and coding this out.

                                                                1. More interviews!

                                                                Being an introvert, this is always a slog, but hey! It’s an exciting time overall.

                                                                — Bonus —

                                                                If I have time I may redo my personal site a bit – Add a blog section, pare back the design to be more minimal etc.

                                                                1. 3

                                                                  As an SRE, this looks awesome. Congrats on your seed round! Do you have a careers page that I can look at (if you’re still hiring, that is)?

                                                                  If I have time I may redo my personal site […]

                                                                  I think that link needs a https://; turns into a relative URL otherwise.

                                                                1. 1

                                                                  For pure information websites, stick to textual diagrams and art: http://len.falken.ink/philosophy/is-privacy-in-all-our-interests.txt

                                                                  It gets the point across.

                                                                  Otherwise I agree: compress and dither the hell out of images appropriately.

                                                                  1. 13

                                                                    The image is unreadable on my phone

                                                                    1. 6

                                                                      Ironically, this is what it renders like in my browser (Firefox 92 on macOS): https://x.icyphox.sh/DHcX6.png

                                                                      1. 1

                                                                        Yep, browsers suck at plain text. It’s pretty sad state of affairs.

                                                                        1. 10

                                                                          So bleeding-edge Unicode good, 1990s graphics codecs bad?

                                                                          Also, that non-ASCII art is really going to mess with screen readers. It’s non-semantic as heck.

                                                                          1. 3

                                                                            Now I wonder why there’s no semantic element for ASCII art in HTML5. RFCs are full of ASCII diagrams, for example.

                                                                          2. 9

                                                                            Or, an alternative reading: that “plain text” is composed of graphic characters that were only added to unicode last year, and is going to look just as broken in any other application on the same system without a suitable font, so perhaps graphics should be transferred/presented using an actual graphics format.

                                                                            1. 1

                                                                              My UTF-8 compatible terminal gives pretty much the same output. Find an example that doesn’t use ancient/outdated character sets.

                                                                        1. 3

                                                                          Looks like someone discovered markdown.