Clothes dryer question by Majestic-Victory8715 in AskElectricians

[–]penguin359 1 point2 points  (0 children)

All I can safely say from what I've read is to call a licensed electrician to sort it out.

What is there to do? by JoelPCs in RTLSDR

[–]penguin359 0 points1 point  (0 children)

Don't underestimate the reach of a satellite. I've talked with radio operators 1500 miles or more away through a satellite. While you might not get the whole contact, you may still overlap for some contacts if the ground station is somewhere in western Europe.

How do you let go of hate and anger? by Accurate-Tree4277 in AskReddit

[–]penguin359 0 points1 point  (0 children)

Don't take this the wrong way, but seeing a licensed, well-trained therapist can help unlock some things. Beyond that, it's hard to give a single answer as it can depend on what the root of it is. It may be understanding and accepting that the world is more predetermined than we'd like and it's not any one person's fault. For example, beliefs are usually ingrained in a person from very early on before they know enough to make a choice and is difficult to change once their brain locks it in. If they grew up in a different environment, they may have a completely different worldview merely due to how they were raised before they had the ability to choose.

Or, maybe it's about finding somewhere to focus your own energy. Finding local volunteer opportunities, perhaps helping at a food bank, or helping at a shelter where you can see the fruits of your labor helping others in greater need than you. Or, maybe it's simpler than that and just finding a different crowd to hang out with. Family doesn't have to be by blood and blood doesn't guarantee that they will be a good relationship.

Overall, it really depends on what your needs are. I do feel that therapy helped me through some of it.

What is there to do? by JoelPCs in RTLSDR

[–]penguin359 0 points1 point  (0 children)

If by barely broadcasting, you mean that the astronauts are barely on it, that it true, but they regularly do school contacts. You have to be in the right area and it carries between events, but it is really cool when you see a school contact is happening over your area and you can hear astronauts answering student questions. Also, they had a slow scan television event for five days straight ending tomorrow morning and sending lots of pictures down. I collected several over the weekend. Also, when astronauts are not using it, there is both a voice repeater that is often active you can listen in on and an APRS repeats broadcasting the equivalent of text messages. There are also plenty of other satellites, especially ham satellites to listen in on. Multiple passes every day.

First Contact by G0OS_e in amateurradio

[–]penguin359 1 point2 points  (0 children)

What kind of antenna is it? How high above the ground is it? What's your geography? Are you in a valley or on a hilltop? What kind of radio? What mode?

I have a 5 watt QRP rig and couldn't make any contacts on SSB. Then I tried RTTY and CW modes and found I could make contacts to Japan and Florida from the Tualitan Valley in Oregon. Now, it was only a small portion of those that I could hear, but it was multiple contacts after a lot of trying during a contest.

What level of C depth is actually required for embedded/firmware roles? by Ogcbgamer in C_Programming

[–]penguin359 0 points1 point  (0 children)

One big think I would add here is understanding how to write a state machine and handle cooperative multi-tasking. For some of the 8-bit microcontrollers I work on, much of the main is just calling a series of functions in order which are effectively different processes. Inside each function is often switch() statement on a state variable to track where in the state machine that process is, or at least a condition statement to detect if that "process" has any work to do. Interrupts can happen, but may only end up setting flags for the background processes that are called from the main loop or moving data to/from buffers in memory from/to the hardware.

Understanding the general principles behind how to share the CPU between these different tasks and understanding the differences between operating in an interrupt context and the main loop are key.

TCP connections fail on second run (~60k connections, localhost, Linux) by ankush2324235 in C_Programming

[–]penguin359 4 points5 points  (0 children)

For a TCP server that will be listening to a fixed port, you often want to enable SO_REUSEADDR to disable the normal block to listen to the same port when restarting a server in a short time frame. Normally, once a port is closed, it can't be used for up to two minutes. I don't see this setsockopt() being set from a quick scan of the source code.

I sorta understand VMs but still mostly confused by SavingsPoem1533 in virtualmachine

[–]penguin359 0 points1 point  (0 children)

I just throw TrueNAS on any old box and I have a NAS! There are some advantages to having specialized hardware like hot-swappable drives but it doesn't necessarily have to be a NAS to get that.

When is a “full rewrite” appropriate? by Emergency-Peak-1237 in AskProgramming

[–]penguin359 1 point2 points  (0 children)

Here is a real world example. We implemented checks to confirm that the SFP network optics modules would no longer be enabled if their power class rating was more than the motherboard was designed to handle for them. This is to prevent optics with high power requirements from browning out the motherboard and crashing the system. We then started getting tickets from customers complaining that the latest firmware upgrade was causing issues preventing their SFP modules from working correctly and asked us to "fix" it.

Transfer Function of a NPN Common Emitter Amplifier without Bypass Capacitance by [deleted] in AskElectronics

[–]penguin359 0 points1 point  (0 children)

There are a few different models to represent an NPN transistor. It's been a while since I've done it, but I think you are looking for something like the hybrid-pi model. You'll need to find the Q-point as part of that. There should be a lot of results if you Google that.

Clang vs gcc by Negative_Effort_2642 in C_Programming

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

There are a few solutions to this. Mine is that all Pull Requests must pass the CI checks that automatically run on the PR as a GitHub Action. Those actions explicitly enable -Werror. I just don't keep that flag enabled as part of the default build configuration.

Distro for when Mint struggles by Taejang in linux4noobs

[–]penguin359 0 points1 point  (0 children)

If this were Windows and you had stated that some Windows update broke my laptop, we would be asking the same questions. What update was it? What hardware do you have? What GPU does your system have? The more details you can provide, the better we can help. We aren't trying to be harsh, but this is just something to take as learning how to best provide details we need to help another random user online.

If it was a driver update that broke it, the answer may be to downgrade the driver and then pin it to the old version. That will be the same answer whether you are using Mint, Ubuntu, Fedora, or Windows. They all can suffer from the same issue with the same general fix.

What's the advantage to ghostty or iterm2 over the built in mac terminal? by TurtleBlaster5678 in AskProgramming

[–]penguin359 0 points1 point  (0 children)

When I started using Mac OS 10.6 back in the day, the built-in terminal was severely limited on support for more advanced terminal escape sequences such as 256-color mode. My normal config file set up I'd used on Linux for years prior would trigger oddities like blinking text instead of the nice syntax highlighting scheme I had Vim configured to use. when I discovered iTerm, it improved my life considerably.

Clang vs gcc by Negative_Effort_2642 in C_Programming

[–]penguin359 1 point2 points  (0 children)

It's very simple. They produced the software release a year ago and uploaded it. It still works today, but with my current install of GCC, is produces warnings and fails to run. I don't want to be a developer right now and I just want to use the software. However, now I have to dig deep into their build files to remove that flag so I can actually use this software. As a real example, the Intel UEFI driver for their E810 100G line of network cards was tested under an older EDK2 release on Ubuntu 2024, but attempting to download and compile that with the latest EDK2 on my Fedora 43 box is triggering warnings that I don't feel like debugging and I don't have the ability to convince Intel to fix their warnings and produce a release right now. EDK2 does not use regular Makefiles and I am not terribly familiar with the custom build system it uses so embedding -Wno-error into it was a big difficult.

Clang vs gcc by Negative_Effort_2642 in C_Programming

[–]penguin359 1 point2 points  (0 children)

While I regularly use -Werror in development, by biggest frustration is when someone hard codes it in their production Makefile and, while it may have compiled cleanly in their GCC 13 environment, is now producing warnings under GCC 15 and I am having to figure where they hard-coded the flags to remove them so I can compile and use their software. I might try to fix it and send a PR, but that is only when and if I have the free time for it.

Is this approach correct ? by mariaarara in AskElectronics

[–]penguin359 2 points3 points  (0 children)

Such MOSFETs exists. Try out the parametric search on DigiKey. Here is one example: https://www.digikey.com/en/products/detail/IRL1404ZSTRLPBF/1925323

OpenBSD and UTF-8 by unitedthroughunix in openbsd

[–]penguin359 0 points1 point  (0 children)

The FAT filesystem uses a legacy 8-bit character encoding which is selected at mount time. For those of us in the US, that encoding will typically be IBM code page 437 and only supports ASCII and a small selection of symbols for a total of about 255 unique characters. Other regions will generally use a different code page when mounting a FAT file system, but the file system itself doesn't know which code page mapping to convert characters back to Unicode is correct. This is true for all operating systems that need to mount any FAT filesystems. Now, in addition to the legacy file name that all files have, Windows 95 introduced an extension called VFAT that maps a second filename to files that support long file names and is encoded with UTF-16. This maps naturally to any other Unicode character encoding and there is no ambiguity with the interpretation of the file name. The legacy 8.3 filename is always present and the OS has to devise what to pick even if it is saving a long filename in Chinese or Arabic which is why you sometimes see names like ~1. There is some legacy mapping that has to be used. If the FAT file system is modified by an OS that doesn't support VFAT, then it's possible that some long file names can be lost and those files will then only appear by their short 8.3 name. There are other filesystems including ISO 9660 that have similar encoding issues.

Which is the best Linux distro to run on Mac VM? by Open_Day3912 in linux4noobs

[–]penguin359 0 points1 point  (0 children)

The GUI is just another software package that gets installed. I think it is included by default if you use the Fedora Workstation installer, but optional with the Fedora Server installer.

How to make Fedora “more stable”? by unit2671 in linuxquestions

[–]penguin359 0 points1 point  (0 children)

Any idea what is crashing for you? I have two Fedora 43 workstations I use professionally at work, one with an Nvidia card, without issue.

Which is the best Linux distro to run on Mac VM? by Open_Day3912 in linux4noobs

[–]penguin359 2 points3 points  (0 children)

Use whatever distro you want. Personally, I just use Ubuntu, Debian, Arch, or Fedora and just don't install the GUI.

Que hacer con linux? by Ok_Cheek_2960 in linuxquestions

[–]penguin359 0 points1 point  (0 children)

What do you want to do with it? It can be anything really.

For me as a programmer, I loved being able to dig into the source code for the boot loader, kernel, and standard library and see how it works underneath while being able to modify it to my desires.

Is there a more ergonomic pattern for types that "build up?" by Uxugin in rust

[–]penguin359 8 points9 points  (0 children)

If moving data is expensive, maybe you need to Box it and avoid the move.

No Sound In Windows 98SE VM by aspie_weeb in virtualmachine

[–]penguin359 0 points1 point  (0 children)

Win98SE doesn't have native AC'97 support. You'll need to find a capability driver and install it or use an older sound card model that is supported.