NateNate60

joined 11 months ago
[–] NateNate60@lemmy.world 3 points 1 hour ago* (last edited 1 hour ago) (4 children)

That's because the word "first" in first() uses one-based indexing. In true programmer fashion it would have been called zeroth() but that is wholly unintuitive to most humans.

I maintain that the element with the lowest index is called the "zeroth" element in zero-based indexing and "first" in one-based indexing. The element with index N is the Nth element.

[–] NateNate60@lemmy.world 2 points 1 hour ago* (last edited 1 hour ago) (7 children)

Bullshit.

Every programmer knows that 'A' in ['A', 'B', 'C', 'D'] would be the 0th item; the first item is 'B'

[–] NateNate60@lemmy.world 1 points 1 hour ago

Rulers measure cardinal quantities and not ordinal ones. There is no cardinal numbering scheme that starts at 1, all of them "start" at 0. For ordinal numbering schemes, the symbols are arbitrary anyway and you can start with whatever you want. It's equally valid to start with 1, 0, -1, A, or "aardvark". The only benefit to picking 1 as the start is to make it easier to count with your fingers while picking 0 lets you easily convert an ordinal quantity to a cardinal one.

[–] NateNate60@lemmy.world 12 points 1 day ago (1 children)

No

Most countries are like that. The past is full of nasties wherever you look. That's why it's important that topics like these are discussed and studied, so that future generations do not repeat the mistakes of the past.

[–] NateNate60@lemmy.world 32 points 1 day ago (2 children)

The AITAH people are nothing if not weirdly observant of what happens on that sub. This would be caught immediately

[–] NateNate60@lemmy.world 25 points 1 day ago (1 children)

It is a war crime to intentionally attack non-combatants.

[–] NateNate60@lemmy.world 12 points 1 day ago (3 children)

Lipton tea bags are the only cost-effective way to reproduce the flavour of cheap milk tea purchased on the streets of Yau Ma Tei in Hong Kong.

[–] NateNate60@lemmy.world 1 points 3 days ago* (last edited 3 days ago) (1 children)

Frankly, most communist parties around the world that try to fight the government and take over violently get brutally crushed.

You cannot launch a violent revolution without popular support, and the reality is that absent extreme circumstances, the population as a whole at any given time will view the policies proposed by most communist parties as extreme. That is why it is so exceedingly rare for communist parties to be able to win power democratically, because the truth of the matter is that communist policies are usually deeply unpopular.

I do not care whatever your intentions may be; if you try to impose your ideology on the population against their will by violence, I equate you to the fascists. And indeed, many of the so-called socialist regimes that have popped up after these "worker's revolutions" have been tinpot dictatorships with the socialist decorations, while extinguishing personal liberties and badly mismanaging the state economy. And the promise of equality is totally betrayed as the party leadership becomes the new bourgeoisie, living in luxury off others' labour while the workers' living standards remain much lower.

Simply put, just because a hammer and sickle was installed atop the state buildings, the flag drenched in red, and the Evil Bourgeoise Government renamed to the People's Evil Bourgeoise Government doesn't make it any better.

I am a socialist and also Chinese, and I believe fellow socialist George Orwell's Animal Farm is shockingly illustrative of the situation.

[–] NateNate60@lemmy.world 19 points 3 days ago

I have $10 in a wager that Trump won't launch a coin before the election and I feel like every passing day that is an increasingly worse bet to have made

[–] NateNate60@lemmy.world 124 points 3 days ago (22 children)

I don't have a problem with snaps as a technology. If you want to use them, then who am I to judge?

But what I do have a problem with is when I don't have a choice and I am being forced to use what the distro maintainers think is good for me. That is what finally made me quit Ubuntu and switch to Fedora.

[–] NateNate60@lemmy.world 2 points 4 days ago* (last edited 3 days ago) (3 children)

No, I would not. In an ideal world, Corbyn would still be the leader of the Labour Party while Starmer would head a moderate centre-left or centrist liberal party, and after the 2024 election, it would be Corbyn and Starmer governing together in coalition, resulting in a government that is slightly more to the left than what it is now.

But the UK's system of elections is flawed and definitely not perfect, which prevents this.

[–] NateNate60@lemmy.world 6 points 4 days ago* (last edited 4 days ago) (5 children)

Then let it be. A liberal or conservative society is nonetheless better than fascism. What you have described is merely a situation where socialist and social-democratic politics have been electorally defeated by conservative ones.

The KPD chose to pout and fight to the bitter end rather than recognising that because they lacked the necessary amount of influence in the Reichstag to control the government, they could not get what they wanted, nor anything near it, and could only, at best, get an extremely watered-down version of the policies they want, or even settle for the status quo to prevent regressive policies from being enacted. Or even accept a mildly regressive policy to prevent a fascist one from being enacted. This is what democracy is meant to do. You give a little, and they give a little, and hopefully, we can both get a little bit of what we want or at least reduce the amount of the stuff we hate. If all of your positions are rigidly uncompromisable, you will find that a well-designed democratic system will keep you out of government and relegated to the sidelines unless you actually hold the popular mandate.

If the choice is to saw off your left foot or saw off your head, you must choose the lesser of the two. Refusing to choose does nothing to help you, and the KPD refused to choose.

Rather than accepting this reality, the. KPD decided it wouldn't go down without a fight. Ultimately, they failed, and wouldn't get the chance to govern (or even exist in public) for another two decades. Only after finding external help in the form of the Soviet Union and its Red Army did the KPD finally get what it wanted, subjugating the SPD. The new SED was ushered into government, will of the electorate be damned.

In the end, both the KPD and the Nazi Party wanted to destroy the Weimar Republic because they knew they could not get what they wanted by playing by its rules. The key historical difference is that the Nazis succeeded.

I don't fault the KPD's leaders for what they did. After all, we here in 2024 have the power of hindsight that was not available to them. But in the end, we must recognise that the KPD's stubbornness certainly didn't help with the collapse of the Weimar Republic and accelerated Hitler's rise to power.

It is an uncomfortable position to be in when you are forced to criticise the decisions of those whose values you respect and agree with. But it must be done if the goal is to learn from history and not merely flaunt it.

 

At least 40 were killed after missiles struck a tent camp in Khan Younis, Gaza Civil Defense officials said. The Israeli military said it was targeting Hamas operatives.

(Washington Post gift article, no paywall)

 

"Giving people more viable alternatives to driving means more people will choose not to drive, so there will be fewer cars on the road, reducing traffic for drivers."

Concise, easy to understand, and accurate. I have used it at least a dozen times and it is remarkable how well it works.

Also—

"A bus is about twice as long as a car so it only needs to have four to six passengers on board to be more efficient than two cars."

9
Map (lemmy.world)
 
 

This image is from Google Maps and depicts Maritime Square on Tsing Yi, the island where my grandmother lives. I chose it because I think it is the embodiment of the new millennium Hong Kong urban development.

The entire development is built by the MTR Corporation, a Government-owned publicly traded company that is primarily known for running the Hong Kong metro system of the same name.

The primary attraction of this development is the eponymous Maritime Square Mall, a large five-storey indoor shopping arcade. It is attached to Tsing Yi Station, a metro station on the overground Tung Chung Line and there is a small bus interchange on the ground floor.

The mall has shops including a grocery store, around a dozen restaurants, a Marks & Spencer, bakeries, clothing retailers, electronics stores, a few banks, and some miscellaneous other stores. Notably NOT in the building is a school, otherwise, you might even be able to spend your whole life without leaving it.

There are several towers extending out of the main mall complex which contain hundreds of units of (unaffordable) housing. I think there is a botanical garden on the roof, too. The entrance to these towers is inside the mall, where there's just a lift lobby where you'd expect a shop to be. The lift lobby is closed to the public; a keycard or code is required to enter.

I think it's a similar concept to a 15-minute city, but more like a 15-minute building.

 

The Pentagon has provided Ukraine with thousands of Iranian-made weapons seized before they could reach Houthi militants in Yemen, U.S. officials said Tuesday. It’s the Biden administration’s latest infusion of emergency military support for Kyiv while a multibillion-dollar aid package remains stalled in the Republican-led House.

The weapons include 5,000 Kalashnikov rifles, machine guns, sniper rifles and rocket-propelled grenades, along with a half-million rounds of ammunition. They were seized from four “stateless vessels” between 2021 and 2023 and made available for transfer to Ukraine through a Justice Department civil forfeiture program targeting Iran’s Islamic Revolutionary Guard Corps, according to U.S. Central Command, which oversees military operations in the Middle East.

Officials said Iran intended to supply the weapons to the Houthis, who have staged a months-long assault on commercial and military vessels transiting off the Arabian Peninsula. Central Command said the cache is enough to supply rifles to an entire Ukrainian brigade, which vary in size but typically include a few thousand soldiers.

 

The Pentagon has provided Ukraine with thousands of Iranian-made weapons seized before they could reach Houthi militants in Yemen, U.S. officials said Tuesday. It’s the Biden administration’s latest infusion of emergency military support for Kyiv while a multibillion-dollar aid package remains stalled in the Republican-led House.

The weapons include 5,000 Kalashnikov rifles, machine guns, sniper rifles and rocket-propelled grenades, along with a half-million rounds of ammunition. They were seized from four “stateless vessels” between 2021 and 2023 and made available for transfer to Ukraine through a Justice Department civil forfeiture program targeting Iran’s Islamic Revolutionary Guard Corps, according to U.S. Central Command, which oversees military operations in the Middle East.

Officials said Iran intended to supply the weapons to the Houthis, who have staged a months-long assault on commercial and military vessels transiting off the Arabian Peninsula. Central Command said the cache is enough to supply rifles to an entire Ukrainian brigade, which vary in size but typically include a few thousand soldiers.

 

Google eats 30% of in-app purchases so I'd like to donate directly if possible.

If there is a way to do this, perhaps add it to the community's sidebar?

 

and every fifth digit is just put in an odd place

 

tl;dr After local news aired the story, Tesla has paid the pie shop $2,000, the cost of ingredients for the cancelled order.

 

The jump in distro versions, say, from Fedora 38 to Fedora 39, is not the same as the jump from Windows 10 to Windows 11. It's more like the jump from version 23H2 to 24H2.

Now, I'm sure even most Windows users among those reading will ask "wtf are 23H2 and 24H2"? The answer is that those version numbers are the Windows analogue to the "23.10" at the end of "Ubuntu 23.10". But the difference is that this distinction is invisible to Windows users.

Why?

Linux distros present these as "operating system upgrades", which makes it seem like you're moving from two different and incompatible operating systems. Windows calls them "feature updates". They're presented as a big deal in Linux, whereas on Windows, it's just an unusually large update.

This has the effect of making it seem like Linux is constantly breaking software and that you need to move to a completely different OS every six to nine months, which is completely false. While that might've been true in the past, it is increasingly true today that anything that will run on, say, Ubuntu 22.04 can also run without modification (except maybe for hardcoded version checks/repository names) on Ubuntu 23.10, and will still probably work on Ubuntu 24.04. It's not guaranteed, but neither is it on Windows, and the odds are very good either way.

I will end on the remark that for many distros, a version upgrade is implemented as nothing more than changing the repositories and then downloading the new versions of all the packages present and running a few scripts. The only relevant changes (from the user's perspective) is usually the implementation of new features and maybe a few changes to the UI. In other words, "feature update" describes it perfectly.

view more: next ›