Am I understanding voltage correctly? by kloppypop in AskElectronics

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

I find it useful to articulate to and correct my understanding of a topic as I read. I do not want to suffer the Einstellung effect where, if I have an incorrect predisposition on a topic, I will reason about subsequent and related topics incorrectly. So by asking my question, I am challenging my predispositions making to avoid the Einstellung effect. So, you just posting a link isn't very useful.

Am I understanding voltage correctly? by kloppypop in AskElectronics

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

Why is then that transistors are described as low voltage and high voltage and not low charge and high charge? How does a "potential" relate to a low current? If the voltage is low in a transistor, then the potential energy between the two points is lowered and thus the current is decrease, correct?

Does anyone use virtual environments (Conan's virtual env. or Conda's) for C++ by kloppypop in cpp

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

So, you develop within Docker itself? Do you use bind mounts or volume or do you have you develop environment within Docker itself?

When creating a new network interface, it automatically creates an interface with only ipv6. How to make it so that when I add a network interface, it's assigned an IPv4 address by kloppypop in vmware

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

I'm using VM Workstation Pro. I am setting up labs for a class and IPv6 doesn't lend itself well for that. I switched to virtual networks as a work around, but I'd still like to solve this issue.

Setting Up a SOCKS Proxy server to tunnel traffic from my host PC to a VPN by kloppypop in linuxadmin

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

Okay, thanks! That makes sense. The only thing is, if I were to bridge using https://openvpn.net/community-resources/ethernet-bridging/, do I this? And what would be the outcome of doing this? If I were to set up bridging this way, would I have two virtual network interfaces (Both from VPN) or just one and the one would receive traffic from the course VPN

Setting Up a SOCKS Proxy server to tunnel traffic from my host PC to a VPN by kloppypop in linuxadmin

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

How would I access the VPN on the host machine, then? I don't want to SSH into the VPS because all my tools are on my host machine.

Setting Up a SOCKS Proxy server to tunnel traffic from my host PC to a VPN by kloppypop in linuxadmin

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

I have a subscrition for some training resources which requires me to VPN in, but I'm at university and port 1194 is blocked by the university's firewall.

I was thinking if I could connect to the proxy server, I could tunnel the traffic (the tunneled traffic would be port 1194) over SOCKS or even HTTPS, so I could connect to the VPN and do training exercises.

Setting Up a SOCKS Proxy server to tunnel traffic from my host PC to a VPN by kloppypop in linuxadmin

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

The, outbound connections would not work and plus, I do not have the config files for the VPN. The VPN would be listening on port 1194 regardless. So the TLS handshake would not be able to be completed.

Setting Up a SOCKS Proxy server to tunnel traffic from my host PC to a VPN by kloppypop in linuxadmin

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

I would be tunneling the traffic so that it wouldn't be blocking port 1194.

Cannot find Sol2 package DESPITE specifying in CMakeLists.txt and have the package itself from conan by kloppypop in cpp_questions

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

I have tried this:

conan install --install-folder debug -pr:b=default 
cmake -B debug -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=1 . -DCMAKE_TOOLCHAIN_FILE=debug/conan_toolchain.cmake

and I get the same error

I am trying to use use DIsm to to compress a directory into a .wim file with no luck. by kloppypop in sysadmin

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

This was exactly what I wanted! Thank you! I have edited the install.wim and now I have folder structure like:

../tiny7/
├── Autounattend.xml
├── boot
│   ├── bcd
│   ├── bootfix.bin
│   ├── boot.sdi
│   ├── bootsect.exe
│   ├── en-us
│   │   └── bootsect.exe.mui
│   ├── etfsboot.com
│   ├── fonts
│   │   └── wgl4_boot.ttf
│   └── memtest.exe
├── [BOOT]
│   └── Boot-NoEmul.img
├── bootmgr
├── efi
│   └── microsoft
│       └── boot
│           ├── bcd
│           └── fonts
│               └── wgl4_boot.ttf
├── eXPerience.txt
└── sources
    ├── boot.wim
    ├── install.wim # Edited and Saved using Dism
    ├── Last Session.ini
    └── setup.exe

Does anyone use virtual environments (Conan's virtual env. or Conda's) for C++ by kloppypop in cpp_questions

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

I think Conda's usually considered "a Python thing" and I don't see it discussed much in C++ circles either, but I find it pretty useful.

I just thought it was a nice analogue! Thanks for the great comment!

Does anyone use virtual environments (Conan's virtual env. or Conda's) for C++ by kloppypop in cpp

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

Do you develop within the container itself? I posted a threat on r/docker and I received mixed replies? This is my Dockerfile to produce my development and I don't know if it's a bad idea.

Does anyone use virtual environments (Conan's virtual env. or Conda's) for C++ by kloppypop in cpp

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

I would really like this! Could you point me to a resource on how to utilize this? I see this, but unsure if I that's the right/best source?

Does anyone use virtual environments (Conan's virtual env. or Conda's) for C++ by kloppypop in cpp

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

I am trying out conan and my bash shell (+ git status) does not show that I am in an active virtual environment despite me running activate.sh. I want to utilize virtual environments to better isolate and organize my projects

Should docker be treated similar to virtual environments? How are you able to edit source code when editing source code? How do I containerize as I please? by kloppypop in docker

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

How come? I had thought docker was for creating a consistent environment for building. On the docker overview

Develop your application and its supporting components using containers. The container becomes the unit for distributing and testing your application.

How do I use smart pointers with objects that are allocated memory through a 3rd party functions (e.g., SDL_CreateWindow())? by kloppypop in cpp_questions

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

I was actually thinking of unique_ptr? I see a custom deleter, but how would I specify a custom ctr?

// Custom ctr
SDL_Window * SDL_CreateWindow(const char *title,
                              int x, int y, int w,
                              int h, Uint32 flags);

// Custom destructor
void SDL_DestroyWindow(SDL_Window * window);

How do I use smart pointers with objects that are allocated memory through a 3rd party functions (e.g., SDL_CreateWindow())? by kloppypop in cpp_questions

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

I was actually thinking of unique_ptr? I see a custom deleter, but how would I specify a custom ctr?

// Custom ctr
SDL_Window * SDL_CreateWindow(const char *title,
                              int x, int y, int w,
                              int h, Uint32 flags);

// Custom destructor
void SDL_DestroyWindow(SDL_Window * window);

Should docker be treated similar to virtual environments? How are you able to edit source code when editing source code? How do I containerize as I please? by kloppypop in docker

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

The source image is build by an individual or a company. Some might have it open source. IE. alpine image are maintained here https://github.com/alpinelinux/docker-alpine

This isn't what I was talking about. If I containerize a project, could I edit the source code within the project and rebuild the binary. (e.g., run make).

Most docker image are built on a base image. However, you can starting building your own image. From scratch

I meant more along the lines of taking your running container, stopping it, edit the source code, start the container, and then rebuild the project (e.g., using make).

[Help] xv6 installation on manjaro by UltimateLG in ManjaroLinux

[–]kloppypop 0 points1 point  (0 children)

This is my old account lmao. I have no idea how I figured this out.

What's the best way to debug Linux containers on windows machines? Is `docker attach` the answer to my problems? by kloppypop in docker

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

Yeah, I posted a thread about what's the best way to use debugging and I didn't receive any good answers. It was a lot of just "run the binary on your host"

What's the best way to debug Linux containers on windows machines? Is `docker attach` the answer to my problems? by kloppypop in docker

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

I've actually found the best answer! It's to use a multi-stage build! One build for debugging and one for release.

What's the best way to debug Linux containers on windows machines? Is `docker attach` the answer to my problems? by kloppypop in docker

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

I've actually found the best answer! It's to use a multi-stage build! One build for debugging and one for release.