News for hackers. Stuff that matters.

cocok

Re:Thunderbird for Android Now Available on Wednesday October 30, 2024 @01:10PM (#41997650)
> 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.

Re:Could you pass this 8th grade test from 1912? on Monday October 28, 2024 @01:36AM (#41968109)
> 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 :-)

Re:Could you pass this 8th grade test from 1912? on Sunday October 27, 2024 @11:49PM (#41967696)
The teachers misspelled Serbia and Romania, but expect little American kids to know where these are.
Re:Becoming physically immune to brute-force attacks (2021) on Sunday October 27, 2024 @09:44PM (#41967124)
There are a couple of other worthy jokes in the text, BTW.
Re:Shrunked JavaScript monorepo Git size by 94% on Sunday October 27, 2024 @06:11AM (#41961290)
filter-repo is the recommended way these days:

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

> 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.

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, it makes it easier for his drunkard customers to drive right to it with zero walking involved.

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.
Re:Breaking Down OnlyFans' Economics on Friday September 13, 2024 @11:38PM (#41537296)
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.

Re:Show HN: Ki Editor - the multicursor syntactical editor on Wednesday September 11, 2024 @01:12AM (#41508202)
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.

Re:Just for Fun. No on Tuesday September 10, 2024 @03:37AM (#41498182)
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.
Re:Mushroom learns to crawl after being given robot body on Sunday September 08, 2024 @03:43AM (#41478844)
NSA are not ready with the backdoor yet. Once done, NIST will include MRNG in the next standard.
Re:Glue and Coprocessor Architectures on Thursday September 05, 2024 @01:41AM (#41453860)
Feels like I'm reading this classic, but with cryptography examples.

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

Re:An Ottoman Winter in Toulon on Monday September 02, 2024 @07:49AM (#41424641)
> 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

Re:Telegram founder Pavel Durov arrested at French airport on Sunday August 25, 2024 @04:52AM (#41345677)
> 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.

"We all began as something else."
Re:How I Program in 2024 on Monday August 05, 2024 @03:20AM (#41158853)
I'm stealing this for all my future code reviews.
Taking a gulp or two from the bottle should be enough of a differentiator, IMO.

Are there edible explosives?

> 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.

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.

> 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.

Re:Russ Cox is stepping down as the Go tech lead on Saturday August 03, 2024 @03:22AM (#41145175)
Thanks a lot for taking the time to explain!
Re:Russ Cox is stepping down as the Go tech lead on Friday August 02, 2024 @02:32AM (#41136599)
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.