HN user

Lex-2008

375 karma

http://alexey.shpakovsky.ru/

Posts0
Comments192
View on HN
No posts found.
I love email (2023) 5 months ago

not OP, but my current solution is to have a link which says "click to show email", with javascript handler that changes that link's href (and text) to email address, which is somehow computed. For example, by taking page URL and performing some regexp on it. It both avoids storing email in page source in plain text and requires human interaction, so feels good enough.

Another way I've seen elsewhere is to use a human-language explanation of how to build email address, something like this: "To get my email address, combine my first name (John) with my birth year (2000), separated by dash (-), and add email provider (@gmail.com)".

not OP, but for some it might be availability of latest versions packages (say, you've heard about new major version of Bash or Vim being released today, and wondering how soon it might be available in your distro packages), and, as someone else mentioned, less update stress due to lack of "major version bumps" - just remember to subscribe to https://archlinux.org/news/ and watch out for entries requiring "manual intervention".

interesting, but can't you use "Index On Expression" <https://sqlite.org/expridx.html>?

i.e. something like this: CREATE INDEX idx_events_type ON events(json_extract(data, '$.type'))?

i guess caveat here is that slight change in json path syntax (can't think of any right now) can cause SQLite to not use this index, while in case of explicitly specified Virtual Generated Columns you're guaranteed to use the index.

re: SSH - I once heard that in China they can throttle SSH speed so it's usable for terminal work, but not for copying files or browsing web.

I believe pressing + should open "Select files" dialog prefilled to select all files (and dirs), pressing Enter confirms it.

My Midnight Commander 4.8.33, however, remember previously entered mask, and if no mask was entered - then it defaults to selecting nothing :(

Let's start with an extreme example: each day more people die in traffic accidents, than by falling from a 10-story building. But still, we all can agree that driving a car is safer than falling from a building.

Why? Because driving a car you get more chance to get to your destination safely than falling from a building. ChatGPT estimates 0.01% chance to die in car accident per year, when driving every day, and 90-99% to die when falling from a building, once.

However, since there are many millions of people who drive a car every day, multiplying very little chance to die in car crash by millions of people, we get thousands of traffic-related death per day. Compare that to single-digit number of people falling from buildings, even if all of them die from it.

Back to Covid, let's imagine a village with simple numbers like this:

10 people were NOT vaccinated, 100 people WERE vaccinated.

Of 10 people who were NOT vaccinated, all 10 got hospitalized.

Of 100 people who WERE vaccinated, 20 got hospitalized.

_Correct_ way to look at this village would be:

ALL people who were NOT vaccinated, got hospitalized - 100% hospitalization rate.

But among those who WERE vaccinated, only 20% got hospitalized.

Hence, it's better to be vaccinated - this way you'll get 80% chance of not being hospitalized :)

I'm not a real statistician, and don't have actual numbers on hand, but situation with real world numbers is similar: among people who were vaccinated, less percent were hospitalized than among those who were not. It's just that we had so many many vaccinated people, that their small hospitalization rate, when multiplied by total number of vaccinated people, outweighs number of not-vaccinated and hospitalized people.

I like your comparison with self-built storage, but comparing $20/TB/month with other CLOUD offerings, we see:

* hetzner storage box starts from $4/month for 1TB, and then goes down to $2.4/TB/month if you rent a 10TB box.

* mega starts from €10/month for 2TB, and goes down to €2/TB/month if you get a 16TB plan

* backblaze costs (starts from?) $6/TB/month

I was looking for a cheap cloud storage recently, so have a a list of these numbers :)

Moreover, these are not even the cheapest one. The cheapest one I found had prices starting from $6.5 for 5TB, going down to $0.64/TB/month for plans starting with 25TB (called uloz, but I haven't tested them yet).

Also, looking at lowendbox you can find a VPS in Canada with 2TB storage for $5/month and run whatever you want there.

How all that compares to $20/TB/month?!

Please feel free to correct me if i'm comparing apples to oranges, though. But I can't believe all of these offers are scam or so-called "promotional" offers which cost companies more than you pay for it.

Just now it was 4th on HN fromt page, and now it's gone...

Interesting how it works - I was expecting it would use Volume Shadow Copy, but no, it's something different:

By using WindowsNT Driver technology, Snapshot chains itself between the file system and the disk driver so that it will see any request to the disk. When any WRITE request is detected, before the data are saved, the data are read first from the disk and saved, before the WRITE request is allowed to proceed.

From the article:

Servers store passwords in the form of hashes, so even if a hacker steals the database, they see the hashes, not the actual password.

So as I understand it, the article assumes that someone hacked a website where you had an account, and want to get your password (for the hacked website), in order to try using the same (username and) password to get access to your account on other websites.

Or, as other comments mentioned, they might intercept wifi authentication packets (which contain hash of the wifi password), and try to get wifi password from it.

"server side rendering" with a GPU instead of sending more JavaScript

Some 7~10 years ago I remember I saw somewhere (maybe here on HN) a website which did exactly this: you gave it an URL - it downloaded a webpage with all its resources, rendered and screenshot'ed it (probably in headless Chrome or something), and compared size of png screenshot versus size of webpage with all its resources.

For many popular websites, png screenshot of a page indeed was several times less than webpage itself!

I was bitten by too-short commit messages few times already, when someone asks me "why is it done this way?" - I check git history to find my own 3-year-old commit with message "it should be done this way"... Since then I try to write my commit messages so at least future me would get a hint why a change was necessary.

Communications between country leaders were fast and reliable

Maybe they were fast enough by 1939 standards, but it seems that in 1960s communication between Moscow and Washington was considered to be "not fast enough". Quoting Wikipedia article on Moscow–Washington hotline[1]:

During the [1962 Cuban Missile Crisis], official diplomatic messages typically took six hours to deliver; unofficial channels, such as via television network correspondents, had to be used too as they were quicker. The experience of the crisis convinced both sides of the need for better communications.

During the crisis, the United States took nearly twelve hours to receive and decode Nikita Khrushchev's 3,000-word-initial settlement message – a dangerously long time. By the time Washington had drafted a reply, a tougher message from Moscow had been received...

[1] https://en.wikipedia.org/wiki/Moscow%E2%80%93Washington_hotl...

some of these companies after success in China are working to sell and be competitive in the US and Europe.

Just out of curiosity: can't these companies be sued by the IP holding company when they try to sell outside of China, and be forbidden to sell their products in US and Europe?