Don't try to fool me: that's a small scale prototype for the death star superlaser
talkingpumpkin
100% powered by renewable energy
Is the supercomputer off the grid and powered by an independent renewable source?
The EU says that JUPITER “runs entirely on renewable energy” to limit its impact on the environment. Lippert says that this is achieved by paying to use only renewable energy from Germany’s national grid.
Oh, so it's greenwashing nonsense and the computer uses the same grid everybody uses, which is only in part powered by renewables. Go figure.
Russia has used the widely-banned weapons "extensively"
It must be said that neither Russia nor Ukraine signed the Convention on Cluster Munitions (nor did the US or China or Israel, in case you are wondering... basically, they are banned in roughly half the world - including western Europe, the Commonwealth, and Japan - and perfectly legal in the other half).
Of course, this is not to say that Ukraine used cluster munitions in the same amount or in the same way as the Russians did: the differences in doctrine between the two armies are great and go well beyond cluster munition (see War crimes in the Russian invasion of Ukraine on wikipedia - yes, of course crimes have been reported on the Ukrainian side too, to a much lesser scale).
I've long been torn whether we should just ignore this kind of nonsense or call it out.
For a while I believed in ignoring it but, seeing as people seem unable to learn by themselves (at least, in the small world of my acquaintances), I'm now trying calling it out. If nothing else, this will serve to make me feel like I've done something (not much more I can do, honestly).
After the inverse defense of Russia from Ukraine aggression (the kind of defense where you invade another country that is aggressing you by opposing your invasion), Putin now issues an inverse declaration of war (the kind of declaration of war where you declare someone else is at war with you). What a total buffoon.
A/C is nice, but you can live without it.
That depends on where you live.
It's now 29°C where I am (feels like 32°), and if you don't find a parking spot in the shade (quite likey, given how coveted they are) entering your car will feel like entering an oven.
Yes, I could survive without A/C (we used to in the olden days), but I am not more likely to buy a car without proper A/C than a Dane is to buy one without heating.
those moped cars [...] are too slow to not even impede the relatively slow traffic in cities
They go 45km/h... how fast do you drive inside the city? (I agree that they are slow and a PITA to encounter outside cities)
Those aren’t real cars, they have no A/C (yes, I live down south)
I had a call with Putin and he says he's really intimidated by the European response and that he will surely stop being a naughty boy from now on (BTW I talked with Nethanyahu the other day and he said the same).
Can we get a group discount if we deport ministers from other countries together with him?
the translations on the database are for entities on the db
Oh, then you could consider having one extra table per entity (one-to-many) with the translatable stuff:
create table some_entity (
id .. primary key,
-- fields for attributes that are not translated
price ..,
created_on ..,
deleted_on ..,
..
);
create table some_entity_i18n(
id .. primary key,
some_entity_id .. foreign key references some_entity(id),
locale ..,
-- one field per translatable attribute
title ..,
description ..,
..
);
IMHO putting everything in one big table will only complicate things in the long run.
INSERT INTO TextContent (OriginalText, OriginalLanguage)
VALUES ("Ciao", "it");
Shouldn't that be TextContent(TextContentId, OriginalText)
? Something like
(then you should make the id a primary key, index originaltext and make the id in the other table a foreign key)
I could drop TextContent too, and just have a Translations table with TextContentId
Sure, but the you would have to reference the text via TextContentId
in your code, which would be very annoying.
Instead you could have a function, say t("Ciao")
that kinda runs something like (of course loading all the translations in ram at startup and referencing that would be better than running a query for each and every string).
select t.translation
from textcontent tc
join translations t on t.textcontentid = tc.textcontentid
where tc.originaltext = ?
and t.language = ?
The function could also return the originaltext and log an error message if a translation is not found.
BTW 1: most frameworks/languages have i18n facilities/libraries - you may investigate one and use it instead of rolling your own.
BTW 2: why would you put the translations in a database? what's the advantage compared to files?
Which would be... more than 5% of the German GDP?
I'm too lazy to properly fact-check this, but it smells like BS (may be the article, may be a brain fart of mine)