User's banner
Avatar

JRaccoon

JRaccoon@discuss.tchncs.de
Joined
1 posts • 38 comments

Howdy! 👋

I’m level 27 web dev from 🇫🇮 Finland. Full stack developer by trade but more into server side and sysadmin stuff.

A furry or something. Why be yourself when you can be fluffy raccoon on the internet?

I’m also on Mastodon: @jakeRaccoon@mastodon.social

Direct message

Yes, very much this. I find it kinda funny that once the press discovered this huge disagreement (not really) between them it was talked about in every singe debate even though absolutely nobody is wanting to give us nukes

permalink
report
parent
reply

It’s still unclear if he’s allowed to use the logo and such. The national broadcaster Yle (which itself has a strict policy against advertising) allowed it in the national show and argued that (quote) “Windows 95 is no longer a protected trademark today. The product is hardly used by anyone anymore. Thus the name and the costume are allowed”

But EBU might have a different stance ofc

permalink
report
parent
reply

I don’t remember the exact article I was reading but doing a quick google search yields this one for example. And here’s the actual research paper: https://www.miyashita.com/researches/1hFnR7TlUO4OXNpQFeuN30

permalink
report
parent
reply

I remember reading an article about how we’re already able to simulate basic tastes, like sweetness and sourness, digitally. So just you wait, we might have lickable HTML elements in the future

permalink
report
reply

Hieman yllätys kyllä. Kellään tän vuoden artisteista ei ole realistisia mahdollisuuksia menestyä viisuissa, joten meemiarvoltaan parhaan artistin lähettäminen saattaa olla jopa järkevin vaihtoehto.

permalink
report
reply

So nice to be able to play more Portal after all these years

permalink
report
reply

TypeScript

GitHub link

It’s nice to have a quick easy one for a change

Code
import fs from "fs";

const rows = fs.readFileSync("./09/input.txt", "utf-8")
    .split(/[\r\n]+/)
    .map(row => row.trim())
    .filter(Boolean)
    .map(row => row.split(/\s+/).map(number => parseInt(number)));

console.info("Part 1: " + solve(structuredClone(rows)));
console.info("Part 2: " + solve(structuredClone(rows), true));

function solve(rows: number[][], part2 = false): number {
    let total = 0;
    for (const row of rows) {
        const sequences: number[][] = [row];
        while (sequences[sequences.length - 1].some(number => number !== 0)) { // Loop until all are zero
            const lastSequence = sequences[sequences.length - 1];
            const newSequence: number[] = [];
            for (let i = 0; i < lastSequence.length; i++) {
                if (lastSequence[i + 1] !== undefined) {
                    newSequence.push(lastSequence[i + 1] - lastSequence[i]);
                }
            }
            sequences.push(newSequence);
        }

        // For part two just reverse the sequences
        if (part2) {
            sequences.forEach(sequence => sequence.reverse());
        }

        // Add the first zero manually and loop the rest
        sequences[sequences.length - 1].push(0);
        for (let i = sequences.length - 2; i >= 0; i--) {
            sequences[i].push(part2
                ? sequences[i][sequences[i].length - 1] - sequences[i + 1][sequences[i + 1].length - 1]
                : sequences[i][sequences[i].length - 1] + sequences[i + 1][sequences[i + 1].length - 1]
            );
        }
    
        total += sequences[0].reverse()[0];
    }

    return total;
}
permalink
report
reply

Nokia E71 with the full QWERTY keyboard. Loved it, even though the keys were too small to comfortable use. I guess technically speaking that’s still a smartphone so before that I had some Samsung flip phone, can’t remember the exact model

permalink
report
reply

Oma innostus ko. peliä kohtaan loppui kun kahden tunnin jälkeen peli kaatui ja kävi ilmi, että automaattitallennus ei ole oletuksena päällä…

permalink
report
reply

Good luck, because last time they tried to replace the Start menu with a new UI went so well…

permalink
report
reply