HNHacker News
TopNewBestAskShowJobs

ksala_

232 karma · joined October 19, 2020

hn AT mail.ksala.eu
submissionscomments
ksala_··on News Minimalist – Only significant news
That's a neat idea OP - I usually give https://www.economist.com/the-world-in-brief give a quick scroll, but I quite like sourcing from several news sites, and the summaries are good.

Where and how are you getting the ~1000 news articles you feed to GPT4? I think it would go a long way for transparency to list that somewhere on the website. Also, are you using international news agencies? Quite a lot of them publish an English feed too.

I would also love to see the difference it would make given a different geographical prompt ("in the context of China/India/Asia/Europe... How would you are this article") and political ideology prompt ("how would you rate this article for a Republican/Democrat/Libertarian/Socialist...")

ksala_··on 1Password to Add Telemetry
They send the hash of the master key password after it's been encrypted to the server. They then encrypt the hash on the sever side to auth you. They don't send the password itself.

What that article is saying (rightfully, mind you) is that an attacker can mostly ignore the server side round of encryption, because if they have a copy of your local vault, they can just perform the client side rounds and then see if they can decrypt the vault.

This is a problem mostly if you see their claims of 100000 rounds server side, and decide "oh that's fast enough, I'll drop the client side rounds to 5 so my vault is fast to open)"

ksala_··on ChatGPT in an iOS Shortcut: Smart HomeKit Voice Assistant
You can also add the Music Recognition/Shazam tile to control centre and long press on it for the history with no additional apps, but it's very hidden. I wonder why apple is not shipping Shazam or some sort of UIs by default.
ksala_··on Google removed my Yubikeys from a Google account 'just to be safe'
That page is weirdly interesting to me. It's hosted on sites.google.com which was probably one of the worst ideas google ever had, security wise (yes mom, always make sure the page says Google.com - but not sites.google.com). It's clearly one of those blog spam page types, with the same 3 bits of information repeated over and over again. It does not have any clear phishing links, in fact it tells you to open support.google.com in your browser without a link. One of the number it links it's the official adwords support number (https://support.google.com/google-ads/answer/7218750).

Only after all of this it links to another number, which from what I can tell is a scam phone center which will offer to help you with your account for some money. I really wonder if they're betting on everything else being so hopeless that a person will eventually try to call this other number after trying all the other options before.

It does tell you something about Google support if scammers can do that...

ksala_··on Ask HN: Who else is working/on call over Christmas?
I'm not working but oncall. Fingers crossed. I always volunteer (I did a few years in a row) as usually it's quiet (no deployments, people understand it's a holiday) and it's a small price to pay to not feel bad for always trying to sneak out of being oncall for new year's eve :). .

Best of luck OP and merry Christmas too!

ksala_··on The United States of America vs. Samuel Bankman-Fried Indictment [pdf]
This is an interesting way of writing a quick and dirty script, completely different than I would have written it (I would have definitely have used a lot more subshells, temporary variables, escaped the characters in the commands, "#" in sed instead of "/" and a lot less sed magic).

If anyone is curious as it took me a bit to decipher (and I consider myself quite familiar with shell scripting!):

  read X Y
Read the stdin into X and Y. I'm honestly not sure why read Y here as it's unset and re-defined on the next line?

  unset Y;Y=${X##*/};  
Unset Y, use Parameter expansion to match the regex "/" greedy and delete it from the string, assign it to Y. Also I believe that using "" here is a "bashism" so it would not work on a strict posix shell :)

  echo "$X" \
Echo X to be piped as stdin in the next command

  |sed 's/^/url=/' \
Use sed to prepend url= to the string

  |curl -4sK- \  
Connect over ipv4 (-4), don't output (-s, silent) and read the config from stdin (-K-). Apparently curl support reading what to fetch from a config file, I was not aware that curl supported that

   |tr -d '\134' \
Delete all backslashed from the input. "\<number>" is the octal ascii code of the character

   |sed -n 's/u0026/\&/g;s/.*\"application\/pdf\",\"uri\":\"//;s/\".*//;s/https:/url=&/p' \
Several substitutions, and don't echo the output automatically (-n). Replace "u0026" with "&" (u0026 is the unicode number of ampersand - not sure why but docdroid use that in their page), all occurrences. Select the line that matches '.*"application/pdf","uri":"' Match "https:" and prepend it with "url=", and print it

  curl -4o "$Y".pdf -K- 
As above, parse the config file to download the output to $Y.pdf (-o) over IPv4
ksala_··on Meta lays off 11,000 people
Yes, I agree, I don't think that $8B is a lot of money for the US, especially in the military context. I was just surprised at the number and shared some back story.
ksala_··on Meta lays off 11,000 people
Completely unrelated to the thread, but I had to google this. This seems to be the source https://www.npr.org/2011/06/25/137414737/among-the-costs-of-...

Reading the notes at the bottom, it seems like the number might be somewhat realistic, but should really be called the cost of shipping fuel and securing it to Afghanistan, some of which was probably used for aircon.

ksala_··on Meta stock price drops more than 20%
Yes. To be fair, I never tried it. But my broker (Morgan Stanley) allows you to select how you want to receive them, the default method is "sell to Cover" (sell just enough to pay taxes) but you can also select "Sell All Shares" and "Pay Cash to Cover Taxes".
ksala_··on Meta stock price drops more than 20%
Totally depends on the state. In Ireland you don't pay anything when the stocks are granted to you (you're promised X stocks in Y months), you pay income tax (PAYE) on them when they vest (you receive the stocks) and then you pay capital gain tax (CGT) on the gains (sell price - vest price) when you sell them.

Example: you're granted 1 share today to vest in 1 year. In 1 year the share is worth 100, it vests and you pay PAYE in this (it can either come from your salary, or by selling the stock). If the stock rise to 150 and you sell it after, you pay CGT on 50.

ksala_··on Show HN: I solved my New Tab page
I very much doubt they where talking about this, and where instead referring to their hosting costs.
ksala_··on Castopod – Open-source podcast hosting platform
Google could build a proprietary service on top of an AGPL Chromium. All they would have to do is either not accept external contributions (they already sponsor most if not all of the development anyway) or require contributions to sign a CLA to give them the copyright to it (they already require you to sign that anyway)
ksala_··on An X11 apologist tries Wayland
What they meant is having thumbnail instead of the icon, so that you can quickly see a preview of all the files instead of having to select them one by one. This article was somewhat recently shared and it explains the whole ordeal https://jayfax.neocities.org/mediocrity/gnome-has-no-thumbna... (contains snarky language).

It’s a small(-ish) issue but people often share it as a good example of their frustration with the way Gnome is managed - the bug report has been open for years, there has been several patches proposed, but they’ve always been either rejected or ignored with no discussion. My personal (and similar) pet peeve is that typing in the window will trigger a search instead of selecting the file matching the key like in every other OS.

ksala_··on Bitwarden raises $100M
Yep, https://contributing.bitwarden.com/contributing/#contributor...
ksala_··on Shazam turns 20
Shazam always blows my mind. It doesn't work 100% of the times, but when it does it feels like magic. On top of that they introduced (I don't know exactly when) the feature to see lyrics for the song which are automatically synched with the music. This is also mind-blowing.

Only Google has managed to top Shazam in blowing my mind, and only ~recently, by making this whole process happen completely offline and continuously in the background on a phone. It's not as broad but still incredible. Google's paper: https://arxiv.org/abs/1711.10958

ksala_··on American Airlines agrees to purchase Boom Supersonic Overture aircraft
I flew DUB-NYC-SEA recently, and honestly DUB-NYC on an a320 was a lot more comfortable than NYC-SEA on a 737…
ksala_··on Google Trying to Solve a UUID
I think I want to do the opposite of reading my mind to be honest. The default cell type is generic, so just assume everything is a string and don’t do any parsing. Maybe show a tooltip to quickly change the cell type if you detect something that might be a number or a date.

Probably it’s just different usage - when I use excel is mostly to store a table of raw data where I want to store the actual data, not what excel thing the data is. I’m using it as the equivalent of a database, but simple to update and share with other people (even not technical folks) or to open a csv and quickly hide/filter some data.

ksala_··on Google Trying to Solve a UUID
I would expect it to leave my data alone unless told so. It’s one of the little things that drive me crazy with Excel the few times I use it, and every time I need to search how to make it behave because I don’t use it nearly enough to remember.
ksala_··on Asus Zenfone 9
This, really. While screen sizes have been getting bigger, the aspect ratio has been getting taller and the bezels/body of the phones has been getting smaller. While I agree that regardless of all of this modern phones are too big, you can't just look at the screen size.

Here is a comparison between a few phones: https://phonesized.com/compare/#1784,1862,1863,365,632,126 (the Zenfone 9 is not in the database yet, but it's almost identical at the Zenfone 8).

What I find more interesting is that their website focus so much on it being compact, but it's actually just pretty much the same size as the regular iphone.

ksala_··on Photos Always Pointing at the Pointer (2012)
As for the other comment, there is an artificial 2s delay between image loads. It might be to reduce the load on the server, or just to make it seems like it's doing more work than it is.

A very hacky way to remove it (I'm sure there are better ways!) is to redefine the setTimeout function to just ignore the delay and call the function directly. Open the console and type

    setTimeout = (x => x()) 
On a fast connection with this loading it's almost immediate - it's pretty cool to just drag your cursor across the screen.

But yes, the flicker is pretty bad. This is not handled very well (as expected), it would be nice if it tried to "stick" to one image for a few ms instead of flickering between the same two while moving.

ksala_··on New MacBook Air with M2
DisplayLink*

I don't have any personal preference (I'm fine with a big single monitor/ultrawide) but from reading around and listening to other experience you're likely to hit performance/compatibility issues with that since it's a software solution.

ksala_··on Ask HN: Any certification that is worth it? Legitimately helped your career?
I cannot reply for that person, but to me a certification would mean that you know a given subject, so I could ask more in-depth questions and expect better answers than the average candidate. Sometimes this is the case (and if so then getting a certification is not harmful in my opinion), but often it just gives you a very high level, very passing understanding of the subject so candidates just end up being judged against a higher bar without the tools/skills to match it.
ksala_··on Tell HN: Banned from LinkedIn for Reporting Wickr Drug Spam
I just got my ESTA a week ago, there is a section where they ask for your social media aliases but it's optional and can be left empty. I did so and had no issues.
ksala_··on Shell to install 100K charge points in the UK by 2030
100%. Footpaths should be reserved for people. Parking (as someone pointed out), utility poles, charging points, even bike parking, etc should be put there only as an absolute last resort. Unfortunately this is almost never the case.

Others are thinking about high tech solution to this, but as a start whenever there is on street parking just reserve 10cm between some of them and put all the utilities there.

We could also do with much less signage, outside of the ones for the speed limits (we would need a lot less of them with a 30km/h speed limit in cities… but I digress), road type (one way) and hazards I struggle to think of any others that is useful.

ksala_··on Moving a macOS window by clicking anywhere on it
I also use Rectangle, the same developer also make https://hyperkey.app which works very well in tandem with it (you can also get the same features using Karabiner, but I like how polished and plug&play Hyperkey is)
ksala_··on Introducing Threads in Beta
Threads are probably a good idea, but as many people have pointed out I still have to find an app that have a good implementation of them. Most of my experience is with Slack so maybe Twist/Zulip are better at this.

* I hate threads in direct messages. Please, Slack, just give people a nice way to quote messages instead - which in my experience is mostly what people want. Right now it's a mix of copying a message and adding ">", sending a message as a thread with the "also post in the channel" flag or sharing the message and adding your reply there. I've had persons randomly pick one of my messages and then start a thread on top of that in direct messages, loosing context, but I'm not going to blame slack for that (but still, give me a way to disable threads there!)

* They work great in big channels (hundreds or thousands of people - think channels like #rust-interest or similar), but then inevitably someone will reply outside of the thread, triggering other people to comment "reply in the thread" (modern "don't reply to this email!" in a reply all) or react with that damned thread emoji. A channel should have some way to "enforce" conversation by thread - offer tooling to move messages in threads and split threads, and make it slightly harder to accidentally post outside of a thread (maybe a different button, a confirmation message, or enforcing some style in the message. I'm sure nothing will 100% work after seeing people use @here and @channel and completely ignoring all the warnings, but still).

* They are... meh in medium channels (team sized ones, thing 5 to 20 people), mostly because it's a pick and mix of people that want to use them and people that ignore them. This would at least improve if we had tooling to merge and slice threads, so that someone could at least try to enforce a style. But also from my experience it doesn't really matter too much, because not a lot of conversations will be happening there at the same time.

* Thread discoverability sucks, you get notifications but then they're tucked in a single "thread" pane. That should be collapsable and show your recent threads, with individual notifications.

* Using threads sucks too, you can either open one and lose context on everything else, or open one in a small sidebar, where posting more than 3 lines of code will fill it up and it's completely unreadable anyway. Having tabs or opening the thread in-line would be so much better.

/rant

ksala_··on Neovim 0.7 Released
Tmux has support visual mode (at least character and line), I use it all the times.

I don't remember if it's enabled by default, but I have this in my ~/.tmuxrc (where pbcopy is the excellent https://github.com/skaji/remote-pbcopy-iterm2/blob/master/pb...)

  # Enable vi mode
  setw -g mode-keys vi

  # Copy to host
  bind-key -T copy-mode-vi v send-keys -X begin-selection
  bind-key -T copy-mode-vi y send-keys -X copy-pipe "pbcopy"
  unbind -T copy-mode-vi Enter
  bind-key -T copy-mode-vi Enter send-keys -X copy-pipe "pbcopy"
It mostly work as expected, ctrl+B ] enter copy mode, then you can use / and ? to search, v to enter character visual mode, V to enter line visual mode and y/enter to copy the selection.
ksala_··on Inside the longest Atlassian outage
Personally, given the multi-day outage, I think I would just restore everything to a separate system, and then only point the affected customers to this new system. Take the hit of having two fully separated system initially, and work on reconciling them after without having to worry about the on-going outage.

I wonder if they're not doing this due to some tech limitations, to avoid taking the financial cost of running two systems, or to avoid having to reconcile the systems.

ksala_··on Parking kills businesses, not bikes or buses
Absolutely, some people will do that. I personally know some that will drive 500 meters rather than walking (even in Europe) or that will drive instead of taking public transportation even when the public transportation is faster and cheaper.

But, many do due to the lack of alternatives. Especially in the US/Canada, but also in Europe (especially anything built recently). People will drive because they don’t feel safe cycling/walking, or because their destination is too far. Or they will own several cars while they could just go on with one.

I don’t think anyone is really advocating for completely removing cars from the street or cities. I personally don’t own one (and this is a priority for me - I don’t want one), but I do take rides with friends or a cab from time to time.

What most advocates want (including me) is to stop prioritising cars in every single decision. Mixed zoning laws will remove lots of car trips if you can just walk to the shop when you need a couple of items or a coffee. Making streets car free (bar few exception) will make people come out and enjoy the street. Making people pay a fair price for parking will avoid subsidising a huge amount of land for private use. Removing parking will add lots of space on the streets for things that people enjoy. Better public transportation will favour everyone, especially poorer communities. And proper ciclying and walking infrastructure will allow more and more people to do so safely.

If after that someone still want to use private cars, then be my guest.

ksala_··on Amazon intentionally made it hard to cancel Prime subscription in secret project
I think people just have a different definition of hard. I cancelled my Prime membership several times in the past (not using it too much, changing countries etc) and it’s definitely not a single button - the process is clearly done to have some attrition and make you reconsider cancelling it. But you just have to click your way past 2-3 screens worth of reminders of how amazing your subscription is and after that you’re done. Personally I would not call it hard (hard for me would be one of those services where I have to ring support to cancel!) but it could be easier.

I was definitely amazed by the refund part, that was nice and something I didn’t expect. Iirc the refund is also based on your actual usage of prime features, not just how much longer your subscription is going to last, which is extremely consumer-friendly.

← PreviousPage 2 of 3Next →