skysight-inc/HackerNews huggingface dataset:
I like (most of) this list! Note, however, that most of these are more for writing Python code, whereas my article was specifically about designing Python APIs -- that is, the public-facing stuff.

A few specific comments on your points:

> If a loop can be expressed by a comprehension then it should be.

Not sure about this one. I prefer comprehensions if you're filtering or transforming without side effects (other than creating a new list). But I prefer a regular for loop over things like [os.remove(p) for p in paths if p.endswith('.pyc')], otherwise the side effect (the important bit) kind of gets lost, and it's harder to handle errors.

> Inheritance and multiple inheritance in Python is fantastic. Prefer it over composition.

Oooh, that one's up for debate. I won't enter into the fray here though. :-)

> Remove the word lambda from your vocabulary.

Mostly agreed, apart from tiny sort key functions and the like.

> One file one class is for Java people, in Python pack it all in one file.

Agreed, thanks for saying it!

> from package import Thing is preferred unless the module in question is just a collection of functions.

This is okay if you're importing from a module made to be used this way. But I disagree that it's better! See my rationale under https://benhoyt.com/writings/python-api-design/#module-and-p...
In Spain at least there is a difference between estacionar (to stop with the engine running) and aparcar (to stop and leave). In Mexico the two things are more or less merged, and if you say estacionar or parquear depends on how much English influence there is on your idiolect... Or how close to the border you are o/~ y sus troconas del año, que afuera tenian parqueadas o/~
Transportation is much faster now, thus peoples are much closer to each other, so they are united at much larger scale. Few hundreds years ago, two town with few thousands were separate countries. Today European Union acts almost like single 0.5B country. In few hundred years, whole Globe will be united. In transition to Global State, whole continents, or hemispheres will be united first by geographic location, race, or religion.
On the topic of AI history, I would like to set up a demo of old AI and/or general CS research on late 90s/early 00s Sun Ultra machines.

Does anyone have suggestions (and links to code!) for what would be a cool demo? I’m thinking of a haar classifier to show some object recognition/face detection, but would appreciate more options!
If the attack is an application layer (Plex) exploit, then yes, I'll still have a problem. But, having a reverse proxy which handles TLS handshakes does provide extra security against a lot of attacks. I trust nginx to be better hardened than the Plex server.

Also, all traffic is tunneled through wireguard and my home IP has no ports open. Since I'm behind CGNAT, my home is really hard to DDoS now. If I'm ever attacked, I'll just turn off the VPS.

Ultimately, I had the choice between paying €2/month for a fixed IPv4 at my ISP, or spend a little more (€5) on a Hetzner VPS that would also give me space for hosting some websites with a great uplink. So I went with the latter.

I will likely add CrowdSec soon which will give additional protection. To my knowledge, it's not available for Plex without a reverse proxy.

I've also contemplated using Cloudflare Zero Trust (Cloudflare Access) instead, and might yet switch to it - I just refrained from it for now because I read on Reddit that running Plex through that might be a ToS violation (streaming). I've to check the ToS and see if that's true. Also, I run a Minecraft server for my kids and their friends, which isn't compatible with Cloudflare ZT, so - I need the reverse proxy anyway.
But all rights are made up – they're simply things that we think are really important to provide each other. I can only assume that when a person says "housing is a human right", they mean "housing is something important enough that I think we should guarantee access to it".

If someone says something that seems ridiculous, but they're speaking seriously, sincerely, or about a matter they've given some thought, then there might be a chance you're simply misunderstanding them.

Tangentially: "an inalienable right to the property and labor of another person" is not that ridiculous of an idea. You already have a right to the labor of other people in nearly every society on earth. If the people where you live pay taxes, and even if you didn't avail yourself of public roads and whatnot, you still enjoy having a court system and law enforcement to uphold your rights, you enjoy a military to defend your country, you may enjoy the stability of a currency, and so on, and (if you are a native citizen) you get all of this merely for having been born. [And people don't get to opt out – people have to pay taxes even if they want to live alone in the wilderness, and to be relieved of that burden, in the United States we have to pay a fee to renounce our citizenship, even assuming we have the means to emigrate.] If you think at only a slightly larger scale, you might view us all as being stuck on Earth together and all members of a global society, unable to avoid participating to at least some degree.

[To be clear, I personally don't like the idea of owing anyone anything, especially when I presumably didn't choose to be born, but life is inherently unfair to begin with and also very difficult, so I can understand someone arguing that it's worth giving up the fight for a particular fairness in exchange for a better life overall. Also, other people may not have the same notions of fairness as me; I can imagine someone arguing that guaranteed access to housing makes the world more fair.]

I'd agree that it would be ridiculous to claim housing is a "natural right" as opposed to a potential "legal right", since it's a contradiction almost definitionally. Although not everyone agrees that natural rights exist, or what they are precisely.
Agreed, custom context types don’t work for libraries.

But, i am finding them useful in building a pipeline composer similar to https://www.reddit.com/r/RedditEng/comments/z137m3/from_serv...
Is “West” a country?

Can US blame China for another two hundred years for Pearl Harbor because both China and Japan are the East?

The duration between the last US-UK war and Opium wars is much shorter than the Opium wars and the present. During this time, US helped China by opening up its market asymmetrically and being on its side during WW2 and even gave China aid.

> President Roosevelt approved $25 million in military aid to China on 19 December 1940, permitting the Chinese to purchase one hundred P 40 pursuit aircraft. By late spring 1941, the United States had also earmarked over $145 million in lend-lease funds for China to acquire both ground and air equipment.

https://www.history.army.mil/brochures/72-38/72-38.htm#:~:te....

The aid continues even now:
https://www.usaid.gov/china
> They are delusional that Apple will somehow open up the NFC

It's hard to tell who's expectations are more delusional here.
Azerty
> Those are deliberate choices made by people with low impulse control, and China has nothing to do with that.

Not only this is counterproductive, it would be definitely something those hypothetical Chinese agents would say! This sentiment is what you call "the dumbest part of America" - one of personal responsibility when facing dangers that are by design above most people's threshold of self-control. If there is one thing that's likely to destabilize and destroy the western society, it's marketing and advertising industry - it's your own companies that rely on and encourage people blaming failures on themselves, because it lets them use psychological tricks to move wares.

Also:

> Who is being forced to (...) listen to extremist propaganda?

These days, everyone consuming the Internet and western mass media? There are (at least) two extremes in the US politics and culture, and while listening to one may be a choice, it's partly because the other extreme won the meme spreading battle.
Thanks. Will give it a try :)
I think market should decide if it's useless, not government rule. I would never buy a car without trying it first. Italian dealers may take care of your old car, if you have one and don't want to sell it by yourself.
Back in the day the "privacy tool" of choice were anonymous proxies.

I wrote an article in 2013 about why free proxies are free [1] and got so much feedback from people who had never thought about that.

This was back in the HTTP only days (very shortly before the Snowden leaks) and it was a good way to make money because your proxy could just replace all ads on all sites with your Google ads and you could see all communication. Insane from today's view

In 2015 I did a followup post where I analyzed the existing proxies for any manipulation of the original site and found that 80% of the free proxies did in fact change something [2]

[1] https://blog.haschek.at/2013/05/why-free-proxies-are-free-js...

[2] https://blog.haschek.at/2015-analyzing-443-free-proxies/
The Chinese developer community is absolutely overrun with borderline addiction over ChatGPT. I am not Chinese but I do frequent sites like Juejin and Qiita, and for the last 6 months - it’s nothing but ChatGPT on the front page.

I wonder how much love there is going to be for ByteDance model if they end up having to severely limit it because of reasons.

I’m also curious are there any existing models from that region that are picking up pace? Haven’t seen chatter about it in the Western media at all, or even here on HN.
Let's discuss one instance of human sensitivity with abstract chemistry.

When a person orders a pieces of meat in a restaurant and tells the waiter the temperature, rare or medium, they are not specifying a subjective state of the meat at serving time, they are specifying the max internal temperature of a piece of meat during the cooking process. For the rare piece of meat, the max internal temperature is between 125 and 130 F for beef or lamb. For the medium piece of meat, the max internal temperature is between 140 and 150 F for beef or lamb. There is a relationship between the color and texture of the meat and the max internal temperature. [0]

One way to tell if the meat is at a certain temperature is to cut it open and look at the color. In this case visual perception can determine and make an association to the max internal temperature of a piece of meat. This is discouraged like sticking a thermometer into the piece of meat as the contracted proteins in the hot meat will push out liquid. Ideally, after the piece of meat reaches the max internal temperature it should rest at a warm temperature so that proteins have a chance to relax. In order to prevent puncturing the meat to determine the max internal temperature, chefs will use a light thumb or finger press making the association between tactile pressure and the internal max temperature. Moreover, there have been several chefs who can simultaneously roast several pieces of meat in an oven and determine the max internal temperature by sound of the roasting juices sizzle on the roasting pan.

This isn't extra sensory or any such thing. It is deterministic. It is simply the human mind is capable with practice to associate color with a temperature, tactical touch with a temperature, and the cadence of roasting juices hitting a pan with a temperature.

All I'm saying is that the motivating force for a chef to learn these associations between color, pressure, and sound is to not piss off the patron with an incorrect cooked piece of meat. The power relationship is important to the learning process.

[0] https://en.wikipedia.org/wiki/Myoglobin#Role_in_cuisine
I would respectfully suggest you are mixing cause and effect here.

Given that the religion of the US is individualism, of might-makes-right, of look-out-for-number-one, I'm not sure you can blame this on the belief of existence of God.

Indeed the -actions- of many religious Americans seems completely at odds with the tenants of their pronounced beliefs. They elected a thrice-married, self-confessed sexual-predator as president, and would like to do so again. They are anti welfare, pro gun, pro white,and so on.

By contrast, those "heathen" European states have care for the sick, care for the poor, respect for society as central pillars. They are countries (very imperfectly) following religious ideals while not having particularly religious people.

Personally I think American Christianity is an embarrassment to Christians elsewhere. Their disconect between professed beliefs, and actions is the very hypocrisy Christians are often accused of.

In the US religion and politics are tied together, which is unfortunate. There are plenty of religious Democrats, and plenty of non-hypocritical Republicans, but their voices are drowned by those with political intentions.

But make no mistake, the primary religion in the US, as evidenced by actions (not words) is money.
That kinda prove the whole point: even for the same author, 90% is crap.
Pretty sure Singapore isn't the best place for more developer-centric, radical talks to take place given it's makeup of foreign workers afraid to rock the boat.

Have your speakers given a talk that's considered radical at your conferences?
The whole game looks just like tons of other mobile games, that come for free. The style reminds of the "Hero Wars" scam that was profusely advertized on Facebook about 4-5 years ago.

The trailer is just incomprehensible. I played a lot of PC games, but here I see the same drama like in pompous movie trailers, just 10x faster, and I still didn't get, whom on the screen I'm supposed to play for.
Indeed it wasn’t for the longest time, but it has been for the last few years (I think with the generation of keyboards after the bad “butterfly” hinges). But the symbol on the key always matched with where it was mentioned on screen, in menus and such.
which other language does syntactically use repeating spaces? i can only think of print statements where sth like that would be found.
The trick is to find a university (or college, or technical college, etc) that has A/V and cafeteria but doesn't really have departments dedicated to those.
The opium war wasn't bad for china because Chinese domestic opium use went up.
The war was bad for China because a foreign nation managed to force China to change domestic policy, and then managed to set chinese trade policy to allow the British to exploit China.

It was a war about power and sovereignty. Losing those is bad. It's only related to opium because the inciting incident was British worry over an opium law.
My macOS Accessibility Setup
I wonder if it's something related to the sense of isolation that might be felt in this group of Cubans in South Florida. My ex was from Miami, and both her and her family felt they were largely on their own, both nationally and internationally. Case in point, whenever she travelled overseas, and mentioned her Cuban heritage, there was usually something complementary said about the Cuban revolution or revolutionary leaders there - which upset her and her family and kind of led to them feeling like they were overlooked.
> Not sure about this one. I prefer comprehensions if you're filtering or transforming without side effects.

That's what I was trying to drive at with if it can be replaced but you said it a million times clearer.
National Intelligence Law of the People's Republic of China
> Article 7: All organizations and citizens shall support, assist, and cooperate with national intelligence efforts in accordance with law, and shall protect national intelligence work secrets they are aware of.

How does a non-Chinese company deal with this? Does one just ban all Chinese citizens as a hire? That seems problematic at the very least.
Sovereign Tech Fund: Three Challenges to Contribute Back to Open Source
tl;dr: Live to 99, greatly increases chances of living to 100.
It's nice that whatever may be going on in life, at least we've always got an exciting new C++ release to look forward to every 3 years. I'm particularly excited that C++23 is finally getting std::flat_map and flat_set, more memory-friendly data structures with much nicer latency characteristics than the old non-flat variants.
This is bit similar to Infinigen released last week, except AI. Both can generate large 3D landscapes.

I predict that Minecraft style quality open sandbox but with AI art & rules will be released in next five years.
The current startup is using notion and GitHub. Github is a POS when it comes to bug tracking. Notion is pretty good. It's somehow different and more annoying than Confluence, but faster.

Jira/Confluence IMO is pretty good, but people have a love/hate relationship with it. If you actually use them they're great.

Notion becomes a disorganized pile of crap, just like Confluence. Confluence allows you to link stuff to Jira and back.

Excel is pretty much required for interacting with clients. You send them an Excel spreadsheet, they send it back. Sheets just sort of sucks in all kinds of small ways because it isn't Excel.
No. Why would they? The reason HTML apps don’t suffer from the uncanny valley problem is because they don’t try to look native at all, it's just something totally different.

When they suck it's not because it looks "almost but not quite there".

But there are exceptions: when Cordova/Ionic tries to imitate the look of iOS/Android's native controls. Then we have an uncanny valley problem.
The explanation seems pretty straightforward to me. This does not appear to be a 'war' so much as a 'compliance' issue, and a specific one that they hold. They have recognized a shortcoming in Apple Pay and are calling it out, and their long term view is kind of explained.

It would have been more convenient if they accepted all payments and also pursued the EU competition authorities (or perhaps they've considered it and assumed it's futile).

That said... I'm having a look at Vipps reviews and they appear to be somewhat questionable - are they really putting adverts in a banking app?
Goato Temple
Here we are talking about trust. And a company (Mozilla) that talks a lot about trust and ideals and privacy and then sneaks in tracking by default with a innocent sounding name (studies) is simply not trustworthy to me.
They are hiding bad behavior in nice sounding words.

We technical folks get it and can deactivate it.

Every non technical person I know, who still uses firefox does not know and has all the defaults activated, until I change it for them.

So sure, they are still better than google and microsoft, where I just assume that they track everything, but that is a really low standard.
It was clear to everybody in Eastern Europe. See:

> Poland's Lech Kaczyński in August 2008 traveled to Tbilisi together with the presidents of Ukraine, Lithuania, Latvia and Estonia to show solidarity with Georgia in the face of Russia's invasion of that country, according to accounts by officials.

> He said at the time: "Today Georgia, tomorrow Ukraine, the day after tomorrow the Baltic states, and then, perhaps, the time will come for my country, Poland."

https://www.polskieradio.pl/395/7785/artykul/2353833,11-year...
Why does income inequality matter? Why does it matter that some people are way, way richer than the other. This correlates with poorer quality of life, sure, but income inequality itself is not really that important. Calling the modern middle-class human a peasant is quite misguided imo. It is important to acknowledge that we have fared much better than our ancestors.

Is it a problem, say, if we all achieved nirvana but some achieved better nirvana? Must we rebel against them too?
Then that would put their skills more in demand
> I wonder if it could be brought to macos (would be a huge undertaking though since there are SO many differences between Linux and modern macs).

That sounds like trying to recreate what Microsoft did with WSL1*, which is an emulation layer for Linux on Windows. They realised that was a mistake (things like cgroups and container support are complex and slightly different implementations led to subtle bugs). Now WSL2 is a whole Linux kernel running in virtualisation.

The "clever" bits are now the glue (file sharing, even if that has performance limitations) and some things like WSLg, which sadly they still keep as their own fork and haven't upstreamed yet.

*: As touched on in other threads, despite the version number of 1.3.10, most of the features they are talking about, such as actually using a real Linux kernel are for "WSL2".
Open Source scheduling System
A friend needs a web system for his business with an online schedule for customers to create an appointment. The customer selects a free time slot of any predefined time period and makes a business appointment with it.

The best would be a UI for web and also for smartphone sizes.

Do you have any advice of an existing open source system?
It could be worse, it could be Java 2 Standard Edition 5.0 1.5.0 release 22!
I am confident my bottleneck is thermals and hardware related. I had the same speed when comparing koboldcpp and llamacpp a few versions ago. I am running it on a laptop on a full windows 10 install. It's a 10th gen i7 hex, 16g ddr4, and 2070 maxq mobile. In that context, I consider it remarkably fast.
I use ProtonVPN and I guess they aren't that stupid to mess up the future of their company by abusing the customers of the service that started the company in the first place. I guess other VPN services offered by prestigious companies, like BitDefender are quite safe from this standpoint. Yes, the free VPN services have always a large risk associated with.
The Sovereign Tech Fund with Fiona Krakenbürger [audio]
You're right that esquire comes from squire, but "esquire" isn't a legal term of any kind. It's literally the title for someone who doesn't have any other noble title (Sir, Lord, etc) and it's entirely up to the choice of the person whether or not to have that as part of their form of address[1].

The idea that "esquire" has some legal significance is a "sovereign citizen" myth.

[1] http://news.bbc.co.uk/1/hi/magazine/8160778.stm
A new Sovereign Tech Fund program [audio]
Nah. If anything a lot of these trends are directly anti-agile, e.g. avoiding labels and using icons so that it's easier to translate your app, even though the icons take longer initially and you're never actually going to translate your app.
Looks really good. The order in which the participants are shown feels really strange. The text could be shorter, full of repetitions.
The short answer is always, always have your own lawyer review these things.

The lawyer preparing the corporate documents is the corporation’s lawyer. That person cannot also be your lawyer. Every founder should have their own lawyer review and advise them on the paperwork.
> If anyone could have been at the forefront of this wave, it could've been him.

Why does DOOM and clever programming on a NeXT imply what you assert?