HNHacker News
TopNewBestAskShowJobs

lillesvin

692 karma · joined April 9, 2016

Linguist, security guy, developer and such.
submissionscomments
lillesvin··on A Tale of Two AI Failures: Debugging a Simple Bug with LLMs
Given that you can't infer the error from simply looking at the signature string, I don't see how having the expected string rather than a simple "OK" or "mismatched signature" (as you get now) would make a difference?
lillesvin··on A Tale of Two AI Failures: Debugging a Simple Bug with LLMs
I know it's kinda besides the point and I don't know what language this was being done in, but I don't personally know any language where

    String signature = "POST" + "\n" + "/api/v1/..."
and

    String signature = "POST\n/api/v1/..."
don't result in identical variables, so I'm a bit puzzled why that would result in an error.

However, there's a quoting error in the failing example where the double quotes in the JSON body aren't properly escaped:

    String signature = "POST" + "\n" + "/api/v1/query" + "\n" + token + "\n" + timestamp + "\n" + "{"body":"content"}"
It may just be the example that's not correctly formatted, but the other (working) example does in fact escape the double quotes in the JSON. I guess, depending on how forgiving the used language is with quoting, that could also be the source of the error?
lillesvin··on Unofficial Microsoft Teams client for Linux
I use screen sharing from the official web client in Firefox on both Debian and Fedora without any issues. What issue(s) do you encounter?
lillesvin··on AI is Dunning-Kruger as a service
Sure, in competent hands. Problem is that most people don't seem to realize that in order to use AI for something, you have to be pretty good at that thing already.
lillesvin··on AI is Dunning-Kruger as a service
I've always seen AI as Brandolini's Law as a Service. I'm spending an unreasonable amount of time debunking false claims and crap research from colleagues who aren't experts in my field but suddenly feel like they need to give all those good ideas and solutions, that ChatGPT and friends gave them, to management. Then I suddenly have 2-4 people that demand to know why X, Y and Z are bad ideas and won't make our team more efficient or our security better.

It's very much like that article from Daniel Stenberg (curl developer): The I in LLM Stands for Intelligence: https://daniel.haxx.se/blog/2024/01/02/the-i-in-llm-stands-f...

lillesvin··on Scripts I wrote that I use all the time
Obviously, to each their own, but to me, this is an overwhelming amount of commands to remember on top of all the ones they are composed of that you will likely need to know anyway — regardless if all the custom ones exist.

Like, I'd have to remember both `prettypath` and `sed`, and given that there's hardly any chance I'll not need `sed` in other situations, I now need to remember two commands instead of one.

On top of that `prettypath` only does s/:/\\n/ on my path, not on other strings, making its use extremely narrow. But generally doing search and replace in a string is incredibly useful, so I'd personally rather just use `sed` directly and become more comfortable with it. (Or `perl`, but the point is the same.)

As I said, that's obviously just my opinion, if loads of custom scripts/commands works for you, all the more power to you!

lillesvin··on I almost got hacked by a 'job interview'
Yeah, I'm having trouble spotting the "nasty". I'm not saying it's not there, but if someone more knowledgeable about malicious Javascript/Node could explain a bit that would be much appreciated.

Pretty convenient that the source was taken down before the blog was posted and it doesn't seem like we can get a hold of it.

Edit: MalwareBazaar doesn't seem to have a sample either.

lillesvin··on I almost got hacked by a 'job interview'
Yeah, Windows Sandbox is available on Win 10/11 Pro and Enterprise and it's actually pretty neat. I used to use it in a previous job where I was forced to run Windows.

However, I think OP might be using WSL and I'm not sure that's available in Sandbox.

lillesvin··on YAML document from hell (2023)
The argument was that most of the mentioned problems could be solved by quoting the values. I don't have a problem with avoiding "on" as a key, and I apparently haven't used it ever, because I've never run into this particular problem in my 15+ years using YAML.

So, sure, if you want to play it super safe, quote keys as well. But I'm personally fine with the trade-off in not quoting keys.

lillesvin··on YAML document from hell (2023)
> Almost all of this is solved by basically putting quotes around strings.

Yeah, that was my first thought as well. I personally don't mind YAML, but I've also made a habit out of quoting strings. And, I mean, you're quoting both keys and strings in JSON, so you're still saving approx. 2 double quotes per key/value pair in YAML if that's a metric that's important to you.

lillesvin··on I have left Branch and am no longer involved with Nova Launcher
Hey, man! Thanks for the awesome launcher. It's made my phone so much more useful to me. It finally feels like the tool it is.

Is there any way to support the development — financially or otherwise?

lillesvin··on I have left Branch and am no longer involved with Nova Launcher
I appreciate it. But it sounds kinda weird to say "better fork" when you aren't sure of the actual differences and tell people to go figure it out for themselves.

Could also be that 0launcher has changed over the past four or five years.

lillesvin··on I have left Branch and am no longer involved with Nova Launcher
That looks neat. I don't remember ever seeing any ads in the original though, so I'm a bit confused about what they removed. Regardless, having the choice is always good.
lillesvin··on I have left Branch and am no longer involved with Nova Launcher
I've been using the super minimalistic 0launcher (https://play.google.com/store/apps/details?id=app.olauncher&...) for about a year now.

Besides being a good, very simple, minimalistic launcher, it's also Open Source (https://github.com/tanujnotes/Olauncher), ad-free, and collects and shares no data.

lillesvin··on Are people's bosses making them use AI tools?
Where I work it's a solution looking for a problem, and we're heavily encouraged to implement it even if there's no real problem for it to solve, because "we're obligated to give it a try".

I'm not sure why we have that obligation.

lillesvin··on Micro keypad to do your regular Git push/pull/add/commit actions
I'm assuming it's a simple MCU that registers as a USB keyboard and types out the commands followed by Enter.

If it's supposed to do commit + push in one press, then I wonder how it handles commit messages?

lillesvin··on Qutebrowser: A keyboard-driven, Vim-like browser
Been using Vimium for years too and it's great, but it's really not the same. The late, great Vimperator extension was more comparable to QuteBrowser but it stopped functioning (on Firefox) when they switched from XUL to web extensions.

Vimium mainly gives you keyboard navigation, but QuteBrowser removes the address, tab and bookmark bars and instead gives you keyboard access to everything via the very Vim-like status bar at the bottom. Incidentally this also frees up quite a bit of vertical screen real estate, which is a big deal to me. Browser settings, scripts, etc. are also all accessible via the keyboard — Vim style.

Edit: The lack of a solid Bitwarden integration in QuteBrowser is kind of hurting though.

lillesvin··on Put your usernames and passwords in your will, advises Japan's government
Many password managers allow you to set up emergency access (as it's named in Bitwarden) that'll let a contact access your vault by request after a certain wait time during which you can either manually accept or decline the request.
lillesvin··on They don't make 'em like that any more: the 3.5mm headphone jack socket
I agree. Making it OSS would definitely fit the spirit of their business, IMO, but the best we can do for now is to suggest that they open source it and hope.
lillesvin··on They don't make 'em like that any more: the 3.5mm headphone jack socket
I got a set of Fairbuds XL at work because it made sense to buy something that could last a long time and be repaired and I really wanted to support Fairphone's basic premise — repairable gadgets with long support. Here's my experience with them that nobody asked for.

First of all, the sound is fine. Nothing exceptional but certainly not bad. I'd say they compare pretty well to my Beyerdynamic DT 770 Pro (80 Ohm) or my old Sennheiser Urbanite XL. They also sit pretty well on my head for extended periods of time, which is nice, but will obviously vary from person to person. They don't have any fancy Teams-integration, which is a plus for me but a deal-breaker to others. They hold battery very well. I haven't tested it in depth but I've used them for maybe 3 full workdays without charging them, so maybe around 24 hours of active use and they still had some juice left.

But the firmware... What a disappointment. The headphones have 3 settings, ANC, ambient and "normal". I personally prefer "normal" but the headphones don't remember the setting across restarts, so every time I turn them on I have to sit through the boot sound (because system sounds can't be interrupted), wait for the audio feedback to finish saying "connected", and if a second device is connected, "second device connected", then click a physical button, wait for it to finish saying "ambient sounds", and finally click a third time to hear it say: "noise cancelling off", and _then_ I can start using them. It's OK the first 5-10 times but then it just gets really, really annoying.

I went to their forums about a year ago to suggest it as a feature but learned that Fairphone actually don't interact with the forums, it's just user-to-user interaction, so suggestions don't really make it further from there. That's fair, so I contacted their support about it instead. They suggested that I contact the store that my workplace bought the headphones from. (I didn't think that was really going to solve the issue, so I chose to just ignore that.) They've released 2 firmware updates since then, but no storing mode across reboots. They did however manage to glitch out the boot sound in one firmware update, so it played 2/3 of the audio only to interrupt itself and play the second half of the sound again. The last firmware update fixed that at least.

And before someone suggests that there might be no place to store aforementioned setting, they can store bluetooth pairings and EQ presets on the headphones. The noise cancellation preference could be stored in less than a byte. Unfortunately the firmware isn't OSS so I can't even fix it myself.

/rant

lillesvin··on Better Living Through Algorithms (2023)
I'm currently reading Kyle Chayka's Filterworld: How Algorithms Flattened Culture, and even though "algorithm" means something slightly different in the two ("actual algorithm" vs "algorithm-meaning-AI"), it almost feels like Naomi Kritzer's short story is the optimistic (but fictional) version of the more capitalist-driven, bland, and less human- and culture-focused reality described by Kyle Chayka.
lillesvin··on I’m a microbiologist and here’s what (and where) I never eat
According to Harold McGee's On Food and Cooking, rice turns bad pretty fast at room temperature. Here's from "Keeping Rice Safe" (p. 475):

"Cooked rice turns out to be a potential source of food poisoning. Raw rice almost always carries dormant spores of the bacterium Bacillus cereus, which produces powerful gastrointestinal toxins. The spores can tolerate high temperatures, and some survive cooking. If cooked rice is left for a few hours at room temperature, the spores germinate, bacteria multiply and toxins accumulate. Ordinary cooked rice should therefore be served promptly, and leftovers refrigerated or frozen to prevent bacterial growth."

I've always taken that to mean that it's fine to reheat rice as long as it hasn't been standing around for too long before refrigerating the first time around.

lillesvin··on Bram Moolenaar has died
Yay, PayPal let me through. I just had to turn off uBlock Origin and Privacy Badger... But for Bram, I'm ok with it.
lillesvin··on Bram Moolenaar has died
This is a great idea. Bram has made a huge positive impact on the world, even if most people aren't aware of it. I'd love to help make it even bigger.

Edit: Hmm... PayPal seems to throw error after error at me when I try to donate. I'll keep trying.

lillesvin··on Reddit.com appears to be having an outage
I would imagine that a normal visit generates more backend traffic, given that it needs to fetch posts, thumbnails, etc. whereas a visit to a private sub wouldn't need to check more than authorization.

I could easily be wrong though, I haven't done web development for years.

lillesvin··on Juan Tamariz, the godfather of close-up card magic
Sure, but rattling off a bunch of names doesn't really say anything about what they've contributed and what impact it had. This piece is specifically celebrating Juan Tamariz and his contributions to close-up card magic.

I don't see why we can't celebrate someone for doing something without having to mention everyone else who's also done something. No one is diminishing their contributions but they're not the topic of the article. If you want to write an article about them, I'm sure someone would be happy to publish it.

lillesvin··on Juan Tamariz, the godfather of close-up card magic
Even though the phrase "the godfather of ..." suggests otherwise, it's really not a competition or an attempt to determine the exact origin of "close-up card magic", it's just acknowledging the fact that Juan Tamariz has contributed a lot to the art form.

That, however, doesn't diminish Dai Vernon's or Erdnase's contributions, but yeah, not a competition.

lillesvin··on Modern PHP
Is Ruby Gems a first party thing now? I remember, back in the day, being tangentially involved with creating a Ruby package manager before Gems had become the de facto standard.
lillesvin··on Adding a “duress” password with PAM Duress (2021)
This kind of reminds me of the Travel Mode of 1Password: https://support.1password.com/travel-mode/ and I imagine it'd be most useful in similar situations.

Obviously the usefulness of measures like this is likely pretty low if your dealing with tech-savvy adversaries, but if some random border guard or police officer forces you to log into your computer and — I don't know, I'm not very well-versed in these scenarios — show your Facebook messages or your password vault, you could use your duress password to clear cookies and other stuff to show that you don't have a Facebook account or a password manager ... or whatever, you get the general idea.

Or you could use it to not change anything but simply log in and additionally alert your work place that you're under duress and they can cut off your access to critical systems. Provided that you have some sort of internet access of course...

lillesvin··on Facebook Shadow Profiles [pdf]
It doesn't prevent much in this particular case though. I closed my Facebook account some 12-13 years ago and I recently contacted them and asked to see what data they had on me (under the GDPR, because of shadow profiles). They absolutely refused to neither confirm or deny that they were building shadow profiles but kept repeating that if I didn't have an account, they didn't hold any data on me and then followed up by answering that if someone let Facebook rummage through their contacts and I was among them, then they'd of course hold that data until that someone decided to delete it... So, yeah...
← PreviousPage 2 of 9Next →