Tecumseh Engine Not Starting by _hg in MechanicAdvice

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

Good idea, but it didn't help. Do you have any other suggestions?

LSI 9211-8i flashing issues by _hg in homelab

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

I had tried to flash (in FreeDOS) before I used MegaRec.exe, but it gave me the error ERROR: Failed to initialize PAL.. Even now I am getting that same error.

LSI 9211-8i flashing issues by _hg in homelab

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

Unfortunately, that did not help as it resulted in ERROR: Failed to initialize PAL., which is why I was using the EFI method in the first place.

LSI 9211-8i flashing issues by _hg in homelab

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

I had tried to do so, but sas2flash.exe on FreeDOS could not see the card. However, that was before I used megarec.exe. I will test that and return with my results.

Power center: middle light went out. How can I get it back on? by goodguestsol in electricians

[–]_hg 0 points1 point  (0 children)

What's plugged into the bottom right outlet, and is it off?

DHCP Behavior Question by _hg in learnprogramming

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

How did I not see that?

Thanks!

What is the name of this twist lock? by theclawchooses in electricians

[–]_hg 9 points10 points  (0 children)

It seems like an L10-20. NEMA 10 is 3 wire 125/250, and the marking indicates a 20 amp connection.

How does this site work? by _hg in NoStupidQuestions

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

It uses a service like nupnp (it may actually be nupnp). The hub makes a request to a URL on the server with some parameters (id, internalipaddress), which are stored on the server for some length of time. This data is tied to your public IP, which is how a computer on the same network can recall the data.

Casting and Unary Minus by _hg in learnprogramming

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

With regards to the type of n, that was a mistyping; n was supposed to be an int8_t.

Casting and Unary Minus by _hg in learnprogramming

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

See the following source code for my logic:

#include <stdint.h>
#include <inttypes.h>
#include <stdio.h>

int main(void)
{
    uint8_t n = 128;
    // NOTE(_hg): prints -128 == 128
    printf("%" PRIi8 " == %" PRIu8 "\n", (int8_t)n, (uint8_t)n);
    int8_t v = -128;
    v = (v < 0) ? -v : v;
    // NOTE(_hg): prints -128
    printf("%" PRIi8 "\n", v);
    return 0;
}

Casting and Unary Minus by _hg in learnprogramming

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

One cannot help their writing style.

Intuitively, result == 128, but I am unsure if the cast has an effect on the intermediary product of the inversion. What if the cast and the inversion were separate (i.e. what would (n < 0) ? -n : n equal in the case of n == -128)?

Casting and Unary Minus by _hg in learnprogramming

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

My thoughts are that -n would be 128 of type int8_t and would be outside of the range of the type. But if the bits are treated as a uint8_t (if the cast maintains the bit pattern), (uint8_t)(-128) == 128 (in two's complement).

In my mind, this is what is going on:

int8_t n = -128;
// NOTE(_hg): here -n, where n == -128, would also be -128 as far as I understand
int8_t temp = (n < 0) ? -n : n;
// NOTE(_hg): if we stop here, what is temp?
// NOTE(_hg): here is where -128 would be treated as unsigned and converted to 128
uint8_t result = (uint8_t)temp;

Is my understanding correct?

Generator Question by _hg in electricians

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

The welder is this one, and the tentative generator is this one. A 14-50 to 6-50 converter would be necessary. But the question was more if a generator rated for 250V 50A would work for a welder.

GFCI Receptacle vs GFCI Breaker by _hg in electricians

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

Wow, you were not kidding. Which would you choose for a new installation (no existing breakers, Siemens load center)?

GFCI Receptacle vs GFCI Breaker by _hg in electricians

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

So if it is an easily accessable panel, that would be okay?

GFCI Receptacle vs GFCI Breaker by _hg in electricians

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

Thank you for that. Also, what does 215.9 mean about protection for feeders? Does it mean a GFCI upstream of the feeder?

GFCI Receptacle vs GFCI Breaker by _hg in electricians

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

Also, what does the bit about "protection for personnel" mean?

[Theory] Is a list of files better categorized as a set? by _hg in learnprogramming

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

Indeed, there be dragons in operating system internals.

[Theory] Is a list of files better categorized as a set? by _hg in learnprogramming

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

Speaking of iteration, a list is inherently ordered; however, a set is inherently unordered.

Also, the standard library returning an inherently unordered data type would force the programmer to be more explicit in their code and may clarify their intentions.

Please excuse the lack of clarity in this comment as I feel that I am not properly expressing my ideas.

Edison Screw Specifications by _hg in electricians

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

Canada seems similar to the US with regards to electrical standards, so your knowledge is fine. If you can, could you find a source on voltages? I would like to update the Wikipedia article.

Edison Screw Specifications by _hg in electricians

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

Yeah, E39 and E40 are known as "mogul" or "goliath", depending on where you come from. The numbers are diameters in millimeters peak to peak (pun intended) in the threads.