copacetic

joined 3 years ago
MODERATOR OF
[–] copacetic@discuss.tchncs.de 35 points 2 days ago

Puh, this took me a while to understand, so I'll try to summarize:

  1. Big Tech likes to use cookie banners to annoy people to consent to tracking
  2. EU proposals says they must accept a machine-readable opt-out as well
  3. Google lobbies via countries to remove that part from the proposal
  4. It's up to the EU parliament now
[–] copacetic@discuss.tchncs.de 19 points 3 days ago

"I have five pounds. Is that enough?"

"No."

"It costs more than five pounds?"

"No."

"How much do I have to pay?"

"This is NaN pounds."

"That means it costs more than five pounds?"

"No."

"It costs less than five pounds?"

"No."

"Exactly five pounds?"

"No."

leaves the shop

(Remember, comparison with NaN is always false)

[–] copacetic@discuss.tchncs.de 15 points 6 days ago

Wikipedia says "Participation in the contest is primarily open to all broadcasters with active EBU membership", so I would think so.

[–] copacetic@discuss.tchncs.de 2 points 1 week ago (2 children)

The usually converts a lot of mindsets from "let's build the future" into "fight for dwindling resources" and results in a quite toxic community.

[–] copacetic@discuss.tchncs.de 17 points 1 week ago

Looks like a normal branch where someone debugs some GitHub workflow.

[–] copacetic@discuss.tchncs.de 6 points 2 weeks ago

Sounds like Iran won the war the US started.

[–] copacetic@discuss.tchncs.de 5 points 3 weeks ago (1 children)

Germany sells tanks to Israel?

I find that Germany sells air defense systems, communication equipment, anti-tank weapons, and ammunition. Also, a license for a V12 engine used in Israel's Merkava tank.

[–] copacetic@discuss.tchncs.de 4 points 3 weeks ago

Quite a while ago, I wrote this to document my understanding what OOP actually is.

This sentence at the end is interesting:

On the other hand it sounds unlikely that there will be a popular language without object-oriented influences some day, so at least minimal syntax-level support is desirable.

Rust was published like one year later and it can be considered popular by now. Does Rust support OOP via traits? Kind of yes, but so does Haskell with typeclasses.

[–] copacetic@discuss.tchncs.de 31 points 3 weeks ago (5 children)

Most C++ devs blame themselves and not the language though. So it still gets used a lot.

[–] copacetic@discuss.tchncs.de 18 points 3 weeks ago

To be clear, the language itself is usually not the big part. You also have to learn the eco-system, libraries, packaging, debugging, etc.

(C++ is still a very "comprehensive" language though)

[–] copacetic@discuss.tchncs.de 20 points 1 month ago* (last edited 1 month ago)

If you use the SQLite C API like this

    char query[256];
    snprintf(query, sizeof(query),
             "SELECT * FROM users WHERE username = '%s'", username);
    int rc = sqlite3_exec(db, query, NULL, NULL, &err_msg);

and someone enters Robert'; DROP Table Students;-- as username, it deletes the table Students.

    const char *sql = "SELECT * FROM users WHERE username = ?";
    int rc = sqlite3_prepare_v2(db, sql, -1, &stmt, NULL);
    if (rc != SQLITE_OK) {
        fprintf(stderr, "Failed to prepare statement\n");
        return;
    }
    sqlite3_bind_text(stmt, 1, username, -1, SQLITE_STATIC);

Using this "prepared statement" and "bind", your code is secured against such SQL injection attacks.

 

As part of changing laws in Europe, Meta now offers the option for you to chat with others using third-party messaging apps that have integrated with WhatsApp and that you choose to turn on.

Note: Chats with third-party apps are only available in select regions and may not be available to you.

I feel sorry for all in the wrong region.

 

Statement by President Macron of France, Chancellor Merz of Germany, Prime Minister Meloni of Italy, Prime Minister Tusk of Poland, Prime Minister Sánchez of Spain, Prime Minister Starmer of the United Kingdom and Prime Minister Frederiksen of Denmark on Greenland.

Arctic security remains a key priority for Europe and it is critical for international and transatlantic security.

NATO has made clear that the Arctic region is a priority and European Allies are stepping up. We and many other Allies have increased our presence, activities and investments, to keep the Arctic safe and to deter adversaries. The Kingdom of Denmark – including Greenland – is part of NATO.

Security in the Arctic must therefore be achieved collectively, in conjunction with NATO allies including the United States, by upholding the principles of the UN Charter, including sovereignty, territorial integrity and the inviolability of borders. These are universal principles, and we will not stop defending them.

The United States is an essential partner in this endeavour, as a NATO ally and through the defence agreement between the Kingdom of Denmark and the United States of 1951.

Greenland belongs to its people. It is for Denmark and Greenland, and them only, to decide on matters concerning Denmark and Greenland.

view more: next ›