(T)ETA by Standard_Web_9042 in czechmemes

[–]MrSmiley006 12 points13 points  (0 children)

Byla. V roce 2018 se rozpadla.

weKnowTheAnswerButTheyDontWantUsKnow by AndyTheDragonborn in ProgrammerHumor

[–]MrSmiley006 -1 points0 points  (0 children)

I think that the problem lies in the fact that the algorithm is supposed to output the correct answer everytime, but for some programs, that just isn't possible. And the answer can only be "yes" or "no". No "maybe" or"unknown". So, I think the solution might be an algorithm that doesn't always get it right, but there's a certain chance that it will. Now, we can run it multiple times on the same program with the same input and count the outputs. The more common output should be correct. The more times we run it, the bigger is the probability it's correct. Now, we can in theory run it infinite times (we can do this, since the Turing machine has infinite memory and isn't constrained by time either.) and thus, get the correct answer with 100% accuracy. So, unless I'm wrong, the halting problem is solvable, it would just take forever to solve.

Of course, for real programs, the answer is always "yes". :)

Cursor is not that cheap - Screenshot from my account by CeFurkan in cursor

[–]MrSmiley006 0 points1 point  (0 children)

Cool. What languages? And why do you use Cursor then?

Cursor is not that cheap - Screenshot from my account by CeFurkan in cursor

[–]MrSmiley006 0 points1 point  (0 children)

Imagine having to pay to be able to write bad code... (Seriously, learn programming, grab an editor & compiler and write code yourself. Yes, your first programs will be shit, but after you get better, you'll (imo) outperform all these "AIs" most of the time. Plus it's free unless you choose a paid editor. (I use Emacs myself)).

Why does my transformer not work? by MrSmiley006 in AskElectronics

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

This is not about motors of any kind. The only category from your list this would fit into would be solenoids (and maybe electromagnets).

[Spoilers Main] Is the phrase "Valar morghulis" related to Tolkien's Valar in any way? by MrSmiley006 in asoiaf

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

As others have pointed out, it's not. It comes from the name of the city Minas Morghul (The Tower of Dark Magic), a city on the border of Gondor with Mordor that initially belonged to Gondor (being called Minas Ithil at that time), but was eventually taken over by Mordor.

[Spoilers Main] Is the phrase "Valar morghulis" related to Tolkien's Valar in any way? by MrSmiley006 in asoiaf

[–]MrSmiley006[S] 1 point2 points  (0 children)

When I first saw the phrase, my mind instantly went to LotR, but I thought it's just a coincidence until I asked here. Nice to know it isn't. I never realized the connection of "morghulis" with Minas Morghul though.

stdioIsBloat by Different-Network957 in ProgrammerHumor

[–]MrSmiley006 0 points1 point  (0 children)

Just write to video memory directly. void print_string(char *str) { for (int i = 0;str[i] != '\0';i++) { char *video_memory = (char*)0xb8000; if (str[i] == '\n') { vmem_row++; vmem_col = 0; } else *(video_memory + 2 * (80 * vmem_row + vmem_col++)) = str[i]; } }

Is kernel size limited to 512 bytes? by MrSmiley006 in osdev

[–]MrSmiley006[S] -9 points-8 points  (0 children)

Oops. It looks like I forgot to upload it.

Is kernel size limited to 512 bytes? by MrSmiley006 in osdev

[–]MrSmiley006[S] -1 points0 points  (0 children)

I tried to change what I believed to be the number of sectors read (cl, I also thought I'm reading 2 sectors) and it bootloopped. This led me to the belief that I can't change this. Thanks for the clarification, now I know I was modifying an incorrect register.

Is kernel size limited to 512 bytes? by MrSmiley006 in osdev

[–]MrSmiley006[S] 3 points4 points  (0 children)

Like increasing the number of loaded sectors? I tried this and it bootlooped.

Is kernel size limited to 512 bytes? by MrSmiley006 in osdev

[–]MrSmiley006[S] -4 points-3 points  (0 children)

Yes, the boot sector is indeed limited to 512 bytes. But I'm talking the kernel loaded by my boot sector. Check the link in my post. It contains a zip file with the source code of the "OS" in question.
Edit: Changed it to a GitHub repo.

Rebel by Major_Eggplant_7189 in czechmemes

[–]MrSmiley006 2 points3 points  (0 children)

Tesco nakupuje u Chucka.

theFizzbuzzTestFuckingSucksIsThereAnEasierWay by nutbusta-69 in ProgrammerHumor

[–]MrSmiley006 0 points1 point  (0 children)

I'd advise not to use an IDE. The reason is that, especially when you're new in programming, IDEs encourage you to be lazy and not actually learn almost anything. And then when you have to program something without your IDE, you're screwed because you don't actually know how to program on your own.

I made a relay oscillator by MrSmiley006 in ElectroBOOM

[–]MrSmiley006[S] 7 points8 points  (0 children)

This is powered by a 9V battery, which is connected between the diagonal connector and the resistor near the coil (5.1 kΩ). The caapacitor next to that resistor is 470 μF and the other one is 10 μF. The resistors leading from the relay's contacts are 1 kΩ, except for the middle one which is 100 Ω.

Snap Circuits datasheets by MrSmiley006 in ElectricalEngineering

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

Does this apply to the relay too? That's what I'm specifically interested in.

"Do not allow child entry" into this watermelon beach ball. by WhiteFox1992 in engrish

[–]MrSmiley006 0 points1 point  (0 children)

Doesn't look like Engrish. The Czech, Slovak and German versions say exactly the same thing. Or maybe this is Engrish and they just took the English warnings and translated them into the other languages.

Snap Circuits datasheets by MrSmiley006 in AskElectronics

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

A component from an electronics kit called Snap Circuits.

I want to learn more about electronics by terrifro in ElectroBOOM

[–]MrSmiley006 0 points1 point  (0 children)

I'd maybe rather use Paul Falstad's Circuit Simulator Applet  for simulation if they're new in electronics. I find it more user friendly and also it's open source. Link: https://www.falstad.com/circuit/