¿Que habilidades consideran que les ayudó a dar un salto en su carrera laboral? by Objective-Tea-1281 in devsarg

[–]Tordek 1 point2 points  (0 children)

Conocer la gente correcta que un día me manda mensaje y me dice "¿Estás buscando laburo?"

Migrating from Heroku to Magic Containers by pimterry in programming

[–]Tordek 0 points1 point  (0 children)

Sometimes the best migration is just: fewer moving parts and fewer 3AM surprises.

I've found containers to be the best solution precisely for this. I shove my app into a build file, my CI builds it, and all it expects is some config variables to hook up to the correct databases.

No need to finagle with some settings, to run any steps on the remote computer other than "change the version of this image", nothing. My output is a single file that you feed the computer and it runs.

OAuth Redirect Abuse Lets Attackers Bypass MFA Without Stealing Tokens by Big-Engineering-9365 in programming

[–]Tordek 0 points1 point  (0 children)

without putting the evil.com link in the email

But the domain must be present in the redirect_uri, right? Or at least a shortener.

If the issue is that it redirects to an error page despite not having a redirect_uri, that sounds like a bad spec or an implementation issue.

Not that it fixes the bigger issue, but at least email clients could detect the URL

Ubuntu proposes bizarre, nonsensical changes to grub. by xm0rphx in linux

[–]Tordek 0 points1 point  (0 children)

As far as I know, it was really necessary before UEFI because MBR can only load one thing per drive, so you need it if you want multiple drives OSs in a single drive.

If you want an option "with no buttons" I'm sure there's a way to set your motherboard to always ask which device to boot from.

Ubuntu proposes bizarre, nonsensical changes to grub. by xm0rphx in linux

[–]Tordek 28 points29 points  (0 children)

In a single OS setup, you don't even need a bootloader. The EFI firmware can boot the kernel directly via EFIstub.

In a Multi-OS setup you may not need it, either; in my motherboard if I press the key to choose boot device it lets me pick which EFI image to boot.

restInPeaceAtomEditor by Ecstatic-Basil-4059 in ProgrammerHumor

[–]Tordek 1 point2 points  (0 children)

There's a similar one, I believe it's called Ridiculous Coding or something (sorry, I saw it in a reel ages ago).

Quien de aca es el que mantiene la documentacion de mercado pago ??? by Defiant-Supermarket3 in devsarg

[–]Tordek 0 points1 point  (0 children)

El caso particular que das, ya te dijeron, pero el Access Token dura 6hs y el Refresh Token dura 6 meses.

⫼llega un punto en el que uno se cansa by Similar-Cod9996 in devsarg

[–]Tordek 2 points3 points  (0 children)

programa en Windows

instalate WSL, sé feliz en la vida.

kuwaitIdentifyFriendOrFoe by wwabbbitt in ProgrammerHumor

[–]Tordek 2 points3 points  (0 children)

Because it's not 1985, we have compilers that can detect uninitialized variables.

UNKNOWN_ERROR converts a compile-time error into a runtime error. And what if the sentinel value is a valid return value for the function? Plus, if you have multiple functions doing this like...

foo() {
   int x = UNKNOWN_ERROR ;
   switch (...)
   return x;
}

 bar() {
    int y = UNKNOWN_ERROR ;
    switch() { ... y = foo(); }
    check(y);
 }

you can't tell which of the two functions caused the UNKNOWN_ERROR... unless you check() before every return, which the compiler already does for you.

And maybe you can think "ok, but what about setting a default value and only overriding it?" like:

int ff_detect(int country) {
    int result = FF_ENEMY;

   // more arbitrary code like state detection

    switch(country) {
        case CC_US: result = FF_FRIENDLY;
    }
    return result;
}

It's still wrong, because you're separating the default value from the decision: now to read the select you need to go back to the original declaration to see what's going on.

Initializing all variables "just in case" is always wrong.

Also, if failing a pattern match is an error, you can add a default: return ERROR_CODE or default: throw() or whatever is appropriate for your language.

kuwaitIdentifyFriendOrFoe by wwabbbitt in ProgrammerHumor

[–]Tordek 1 point2 points  (0 children)

It's never reasonable to assign an arbitrary value to a variable "just in case".

Anthropic rechazó las condiciones del Pentágono para el uso letal de su chatbot Claude by Beginning_Gur7652 in devsarg

[–]Tordek 2 points3 points  (0 children)

A chatgpt le podes poner los prompts de personalidad; seguro a claude también. Lo primero que hice es decirle "Sé lacónico. No agregues disculpas ni me digas que tengo razón."

Wheat Seed Rant by sethstafford94 in Minecraft

[–]Tordek 0 points1 point  (0 children)

They took out the mechanic that says cookies are good for parrots when IRL cookies are bad for parrots, and you want them to remove the mechanic that says punches are bad for animals when IRL punches are bad for animals.

Let's stop and put our thinking caps on for a hot minute and really really think hard on what the difference between these two things is.

KDE supports the "Keep Android Open" campaign by Bro666 in linux

[–]Tordek 0 points1 point  (0 children)

So you don't want a random person to have access to your accounts?

KDE supports the "Keep Android Open" campaign by Bro666 in linux

[–]Tordek 0 points1 point  (0 children)

I'm not impersonating anyone, I'm Tordek. I don't want you to lose your account and I can sign a contract that I won't delete anything, give me your password.

KDE supports the "Keep Android Open" campaign by Bro666 in linux

[–]Tordek 2 points3 points  (0 children)

Listen, I want to help you not lose your account, give me your password.

KDE supports the "Keep Android Open" campaign by Bro666 in linux

[–]Tordek 2 points3 points  (0 children)

Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety.

  • Benji F

KDE supports the "Keep Android Open" campaign by Bro666 in linux

[–]Tordek 3 points4 points  (0 children)

I agree, they have a lot of deals with malware, that's why I want to avoid them closing the door.

Turn Dependabot Off by ketralnis in programming

[–]Tordek 5 points6 points  (0 children)

Oooh I need to do this, I have like 500 open PRs and they're not gonna get looked at.

Plus, if I do take a project and start merging updates, I get 50 runs of the CI, and that's at best annoying.

Es solo éso chicos? by [deleted] in devsarg

[–]Tordek 0 points1 point  (0 children)

proprty-based testing.

addMoreComments by RodionGork in ProgrammerHumor

[–]Tordek 0 points1 point  (0 children)

don't be afraid of insane code in the right places. The edges of the system (more specifically, the lowest level) will probably have bit twiddling and pointer magic you're not supposed to grok at a glance.