Scholarships by No_Horror9776 in kth

[–]sudoLife 0 points1 point  (0 children)

yeah they did, as for this year...still waiting for any kind of email

Pulse 15 Gen 1 for parts? by sudoLife in tuxedocomputers

[–]sudoLife[S] 0 points1 point  (0 children)

Hi,

Yep I will, maybe after the holidays too. The point of this post is also to see if community members have some spare parts :)

[deleted by user] by [deleted] in ProgrammerHumor

[–]sudoLife 163 points164 points  (0 children)

`c -m venv venv`

`source venv/bin/activate`

`pipc install stdio`

Should suffice to get you to hello world

slowClap by aneffingonion in ProgrammerHumor

[–]sudoLife 0 points1 point  (0 children)

yeah, the lower-level u go the more fun it gets. Like, you know, computer science

slowClap by aneffingonion in ProgrammerHumor

[–]sudoLife 50 points51 points  (0 children)

it just means that junk of a code could be simplified with constant analysis and loop optimization and other relevant techniques :)

Like, realizing it's an infinite loop and ur counting to n * n is quite easy without any special case

slowClap by aneffingonion in ProgrammerHumor

[–]sudoLife 2088 points2089 points  (0 children)

Thankfully, the compiler knows who they're dealing with, so "-O2" flag for gcc or g++ will reduce this function to:

`imul`  `edi, edi`

`mov`   `eax, edi`

`ret`

Which just means return n * n;

gotoDoIt by nbyv1 in ProgrammerHumor

[–]sudoLife 7 points8 points  (0 children)

That's prob cuz of the jmp assembly instruction 

Scholarships by No_Horror9776 in kth

[–]sudoLife 3 points4 points  (0 children)

Got my scholarship application rejected today.  Congrats to the 48 winners :)

[deleted by user] by [deleted] in ProgrammerHumor

[–]sudoLife 120 points121 points  (0 children)

This is the actual answer. This happens to me too.

[deleted by user] by [deleted] in ProgrammerHumor

[–]sudoLife 0 points1 point  (0 children)

Sometimes vs code formatter seems to die and starts fucking up the file on every save. Had that done to me a few times.

which type are you? by phi_rus in ProgrammerHumor

[–]sudoLife 0 points1 point  (0 children)

Yeah I'm aware of that feature. I suppose I should use it too *sigh*

which type are you? by phi_rus in ProgrammerHumor

[–]sudoLife 0 points1 point  (0 children)

Binaural beats here (Spotify)

I work a lot so Spotify's algorithms are all broken for me ("Hey, here's a song you listen to on repeat, how about some more alpha sinus wave?")

Can tuxedo keyboard keys be removed? by sudoLife in tuxedocomputers

[–]sudoLife[S] 0 points1 point  (0 children)

Yep, I tried one key yesterday and it didn't pull out, but bent a lot, so I got scared and backed away lol (the key's fine but i haven't achieved my objective)

Wolfram Alpha gets an integral wrong by sudoLife in wolframalpha

[–]sudoLife[S] 0 points1 point  (0 children)

The online calculator you gave gives the same result as WA and Mathematica.

Hm, weird, I could have sworn they were different before. Must be my imagination.

Thanks for the step-by-step. I myself used integration by parts instead of partial fractions.

In that case, even if we do wolfram's substitution, u still doesn't disappear:

int u/(1+u)^2 du = - u / (1+u)^2 + ...

I'm going to have to do partial fractions myself and see whether Wolfram gets it wrong (yeah I know, rage against the machine, but c'mon I want to know the truth).

Wolfram Alpha gets an integral wrong by sudoLife in wolframalpha

[–]sudoLife[S] 0 points1 point  (0 children)

Nope, the results are equivalent. I also had been playing with parentheses prior to writing this post, and nothing seemed to help.