Posts by diego@ap.diegoveralli.net
 (DIR) Post #AhoU4BP7xmWzC7uIU4 by diego@ap.diegoveralli.net
       2023-02-15T22:05:42.562556Z
       
       0 likes, 0 repeats
       
       Today I put an end to the practice of copying profile URLs into #pleroma search. This small bookmarklet does all of the work:javascript: (() => {  let newUrl = "https://ap.diegoveralli.net/search?query=" + encodeURIComponent(document.URL);  document.location.href = newUrl;})();I set the Keyword for the bookmark to “fedi”, so now when I’m on a profile or thread on a different instance, I activate the address bar, type fedi + enter, and I’m taken to the search results on my instance. Pleroma generally knows whether to pick the “Statuses” or “People” tab of the search results, depending on what the URL is.#feditip
       
 (DIR) Post #Ahow7kAjx0O6bvfDJA by diego@ap.diegoveralli.net
       2023-07-05T17:09:57.367810Z
       
       0 likes, 0 repeats
       
       @b0rk my dotfiles repo starts in 2009, and I’m sure when I committed that there were some files in there that I had been copying from machine to machine since the late 90s.I like that I’ve been able to gradually update my desktop’s configuration without any big breaking migrations, for many years. Over the years that repo went from just holding dotfiles, to a sort of crappy version of Nix home manager, so it now installs packages, builds some things from source, assembles configs from templates, etc… but it’s all been small gradual changes, always with a working system.
       
 (DIR) Post #AhqVZIVi55fMTuJ3B2 by diego@ap.diegoveralli.net
       2023-11-02T17:13:32.991800Z
       
       0 likes, 0 repeats
       
       Not really satire, but some of the comments in this Hackernews thread really look like it, and they made me laugh out loud:https://news.ycombinator.com/item?id=38111483 (comments for “EU data regulator bans personalised advertising on Facebook and Instagram”)I don’t want to call out any individual comments. If you are someone who has been exposed to this ideology for too long and now find it humorous, take a look at that post, you’ll get a laugh.To be fair, some of the pro-government arguments are not very nuanced either, but the anti-government comments are just incredible.
       
 (DIR) Post #AhrWV3gdY1V8Sav560 by diego@ap.diegoveralli.net
       2022-12-06T10:54:23.854248Z
       
       0 likes, 0 repeats
       
       @louis There's a GitHub issue, though no reply yet: https://github.com/melpa/melpa/issues/8311
       
 (DIR) Post #AhwEjccVdUhpTRaEN6 by diego@ap.diegoveralli.net
       2023-12-02T10:54:54.420328Z
       
       0 likes, 0 repeats
       
       I've finally read a post in the "Useless Ruby sugar" series that I've been seeing around, and it's quite interesting: https://zverok.space/blog/2023-12-01-syntax-sugar5-endless-methods.htmlI can't imagine a context in which the trade-off shown in the article (a small piece of syntactic sugar introduces a terrible parsing footgun) is worth it. I see that it can improve readability in some cases, eg. methods that pin parameters of more generic methods like  def some_method = other_method "bar" but the associated parsing footgun is too easy to trigger and based on that I see this feature as a big risk with too little of a reward for any #ruby codebase.On the one hand I want to say I'm glad I'm not using #ruby and I never want to get close to it again, on the other hand I want to pick it up again and see what a community with priorities so different than mine is doing, and how they're turning that different set of principles into productive workflows...
       
 (DIR) Post #Ai1bCHJT6UnYZSXvyy by diego@ap.diegoveralli.net
       2023-01-10T17:31:42.085021Z
       
       0 likes, 0 repeats
       
       I’m running a single user instance, which means I can experiment with the data a bit, so yesterday I decided to query the database for the top 5 posts by amount of likes / retoots during the past week.The top 5:Outrage at Adobe for taking user images from Lightroom to train its ML models, without explicit consentFunny dunking on crypto currenciesSlightly angry criticism of crypto currenciesA recommendation for journalists to leave TwitterHollywood actor Mark Ruffalo confirming he’s in the FediverseI only counted interactions from people I follow directly.I’m happy that these posts are in my feed, and it’s clear why they create more engagement. But I wouldn’t want to assign them any priority over other posts. If my feed made this type of posts more visible, it would shift the balance of what I see in a way that I wouldn’t be happy about. It seems likes and retoots don’t make it any more or less likely that I’ll find the post interesting. It’s probably not a metric worth building an algorithmic feed around.I’ll keep checking this regularly, and for the next experiment I’ll look at threads, and the amount of conversation a post generates.
       
 (DIR) Post #Ai3PCWnmhpAHTX005Q by diego@ap.diegoveralli.net
       2022-12-15T11:18:29.844278Z
       
       0 likes, 0 repeats
       
       Programming tip: if a language has macros, never forget the most important rule:- When something is confusing, assume macro shenanigansYesterday I spent 30 minutes looking for a #rust impl to understand what was going on at a call site. At some point I even thought there were conversion rules I didn't know about, so I went digging through Rust RFCs. I got cargo-show-asm to spit out MIR to see if it would reveal the supposed implicit magic, but it didn't.It turned out the impl was very close to where I was looking, slightly obfuscated inside a large macro.More useful rules when a language has macros, that I keep forgetting:- Don't trust syntactic and semantic tools completely. Use some grep- When applying Ockham's razor, carefully consider what is the simplest explanation; it's not always obvious