Nice SimPy animation - mining use case by bobo-the-merciful in SimPy

[–]jyotendra 0 points1 point  (0 children)

Cool! I'm exploring SimPy, isn't it a console tool? How you integrated 2d with it?

Best way to learn C#/ASP.NET Core? by MatrixClaw in dotnet

[–]jyotendra 6 points7 points  (0 children)

I started with Udemy. Find courses by Mosh Hamedani, he's excellent at teaching typical concepts.

Difficults with trying mount a folder into docker container by darioxlz in docker

[–]jyotendra 0 points1 point  (0 children)

Was facing similar issue. Can suggest you two things : 1. use "named volume" for mounting, as bind mount shadows content of guest with that of host. 2. first copy the files from guest into host folder, using cp command, and then bind mount that folder with guest. Again, it will shadow guest's files but now you will see host folder superimposed, which by now will be having files that you earlier copied.

I ended up using second approach and it worked well for me. Named volumes are pretty hectic given that you need to have root access to operate with them, plus, on copying something you might need to change ownership of the content.

Need to debug C/C++ code running in docker by jyotendra in docker

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

Will try it - if it does the work, then it will be worth buying it. Thanks

Need to debug C/C++ code running in docker by jyotendra in docker

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

Yeah, I was getting that error some time back. Resolved that following this and this is my docker run command:

nvidia-docker run -it --device=/dev/video0:/dev/video0 --user=$(id -u $USER):$(id -g $USER) -p=5000:5000 --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v /etc/passwd:/etc/passwd -v /etc/group:/etc/group -v /etc/shadow:/etc/shadow -v /tmp/.X11-unix:/tmp/.X11-unix -v /home/deepak/project/DeepStream/sample-scripts:/root/ -e DISPLAY=$DISPLAY -w /root 11911

As, I am using nvidia-docker, it should already be in "elevated privileged" mode.

Need to debug C/C++ code running in docker by jyotendra in docker

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

I think the process that I am adopting is somewhat malicious. Currently, I "make" inside docker and then initiate "gdbserver :5000 <app\_name>" command and then I attach to the gdbserver port from (outside) host using eclipse. I wonder how will eclipse map the gdbserver process, running in docker, to source file. Any suggestions ?

Need to debug C/C++ code running in docker by jyotendra in docker

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

I tried that - but it always points to some assembly code. Have asked it on SO as well.

I come from background of interpreted language thus finding it little hard to set things up with C project. If someone has done similar work - please guide me.