HNHacker News
TopNewBestAskShowJobs

cocok

26 karma · joined August 2, 2024

submissionscomments
cocok··on Thunderbird for Android Now Available
> Is there any way to get push notifications instead of polling?

Push support has been there for a long time now. You can enable it on a per-folder basis, check in Manage folders.

cocok··on Could you pass this 8th grade test from 1912?
> Remember that big hot war in the 90s?

Ah, when the Servians shot down the invisible airplane, because they didn't see it. I remember :-)

cocok··on Could you pass this 8th grade test from 1912?
The teachers misspelled Serbia and Romania, but expect little American kids to know where these are.
cocok··on Becoming physically immune to brute-force attacks (2021)
There are a couple of other worthy jokes in the text, BTW.
cocok··on You-get: Dumb downloader that scrapes the web
For Firefox:

https://github.com/mozilla/video-bg-play

cocok··on We shrunk our Javascript monorepo git size
filter-repo is the recommended way these days:

https://github.com/newren/git-filter-repo

cocok··on Australian coal plant in 'extraordinary' survival experiment
> Poland imports slightly more from Germany than it exports to it

Why do they import/export the same product between each other?

Honest question. In general, not just about Poland and Germany.

cocok··on WiFi4EU initiative provides free Wi-Fi in public spaces across Europe
I saw an asphalted road on the mountain ridge, along the E-3 hiking route, in a national reserve territory, with a EU funding sign saying that it was built "for the benefit of the local species".

The road leads to a chalet, and the only one who it benefits is the chalet's owner, making it easier for his drunkard customers to drive right to it on the weekends, with zero walking involved.

cocok··on [dead]
The mass surveillance in question will likely lead not to an "everyone knows everyone" society like that in your story, but to a "the government and the big corporations know everyone" one.
cocok··on Breaking Down OnlyFans' Economics
I don't know, quality of modern life degrades after 30 for many of us. After living with chronic diseases for a decade or two, I kinda envy the hunter-gatherers.

Die quickly at 30, with 10 children and some grandchildren even. Sounds like mission accomplished to me.

cocok··on Show HN: Ki Editor – Multicursor syntactical editor
I wouldn't say either is better "usually", it really depends on the situation.

If the next five words begin with the same prefix (happens to me), searching will be wasteful. Just spamming "w" is easier.

But when there's something really distinctive (often, punctuation) near the position I'm aiming for, I'll definitely use search.

That's one of the reasons I prefer BRE over ERE/PCRE when editing text interactively - I can search for punctuation in code without having to backslash-escape it.

cocok··on Just for Fun (2022)
i programmed things for fun for months on end without having an internet connection. never had the need to share. occasionally I needed connection to download papers on the subject.
cocok··on Mushroom learns to crawl after being given robot body
NSA are not ready with the backdoor yet. Once done, NIST will include MRNG in the next standard.
cocok··on Glue and Coprocessor Architectures
Feels like I'm reading this classic, but with cryptography examples.

https://www.tcl-lang.org/doc/scripting.html

cocok··on An Ottoman Winter in Toulon
> You mean brought up to be Muslims. No one is born with religious beliefs or faith.

In Islam, it is common belief that all people are born Muslim, then their parents may choose to lead them away into another religion.

That's why for people who convert to Islam later in life (muallaf) it is sometimes said that they reverted.

> Every child is born with the fitrah, but his parents make him a Jew, Christian or a Zoroastrian. ~Al-Bukhari

cocok··on Telegram founder Pavel Durov arrested at French airport
> My pet tinfoil-hat theory is that he decided that staying in a French prison is safer for him than being out in the open

People do that.

Recently, the Bulgarian drug lord nicknamed Brendo not only surrendered, but somehow bribed border control to let him in the country so he can show up directly in front of Sofia Central Prison, with a duffel bag, ready to be taken in. He wanted to skip the bureaucracy and go behind bars ASAP.

cocok··on 17-year-old student exposes Germany's 'secret' pirate site blocklist
"We all began as something else."
cocok··on How I Program in 2024
I'm stealing this for all my future code reviews.
cocok··on Passengers at EU Airports Not Allowed over 100ml of Liquids on Cabin Luggage
Taking a gulp or two from the bottle should be enough of a differentiator, IMO.

Are there edible explosives?

cocok··on Rhombus: Macro-extensible language with conventional syntax built on Racket
> Why would you ever do that? What's the point?

Performance, mostly. If you have to re-parse part of the code many times a second, in a text editor. For [pseudo]structural editing or syntax highlighting, for example.

cocok··on Rhombus: Macro-extensible language with conventional syntax built on Racket
I stopped at 1.1 Notation. Full of arbitrary-looking decisions on which characters can be used for what.

It's 2024, and we still don't have a string notation that doesn't use the same character for opening and closing delimiter. If I start parsing from an arbitrary offset in the code, I can't say whether a double quote I read is the beginning of a string, or the end of one. I have to either resort to heuristics, or parse from the beginning of the file (at least once; and then cache offsets known to be outside a string). Something like "() would be nice. Still the familiar double quote, but the grouping is defined in a grammatically-superior way.

Also, still no identifiers that can start with a digit. Most of the mainstream languages have such complex grammars, probably requiring hand-coded parsers, but I can't have a "52cards" identifier. Is this really that hard compared to everything else?

Now, I'm self-taught and all. Maybe I'm missing something and the professors are right.

cocok··on Robin Warren, pathologist who rewrote the science on ulcers, has died
> Why would a doctor not first test and treat the common things, rather than do an invasive procedure?

For the money he/she would get for doing the invasive procedure. This happens even in developed countries.

cocok··on Russ Cox is stepping down as the Go tech lead
Thanks a lot for taking the time to explain!
cocok··on Russ Cox is stepping down as the Go tech lead
Can anyone familiar with Go explain why not

  return sayThanks(thanksStr)
I've seen this "if err != nil" pattern before, but I can't help thinking that it's not necessary.

"return ret, nil" ignores err's value, which is nil anyway.

"return nil, err" ignores ret's value, but why? If the caller checks for err before doing anything with ret, it doesn't hurt having ret always passed up.

4 extra lines only to lose the value of ret in case of error.