how to implement mount function in c/c++ [closed] - c++

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I,m suppose to write a client/server program which mount a directory from the server into client hierarchy. What I have to do is, instead of using linux mount function, implement a method in c.c++ that works like mount function. I did a lot of googling on the net but can't find any good tutorial or document that could help. I will be very grateful if you help me and give me some advice, suggestion or introduce a tutorial/document as a starting point.

Your question is a bit vague. If this is an assignment, it could be about several things:
Implementing a filesystem (FUSE would probably be the simplest place to start).
Just emulating the calls, and defining your own e.g. ls, cd etc. for educational purposes, and bringing in the data from the server.
Implementing a tool like mount, possibly using the mount() system call.

Related

How to run multiple simulations inside containers programmatically? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I am developing a website that runs a simulation given a user-submitted script. I tried to follow some Online Judge architectures, but in my case, I need to send user input and receive the output in realtime, like a simulation.
I tried Kubernetes Jobs, but isn't seems so easy to communicate with the container, especially if I need a Kubernetes client on the language that I am working.
So, my question is: Given this scenario, what is the best approach to orchestrate multiple containers with interactive I/O programmatically?
*Obs.: I am not worrying about security yet.
Please take a look at the design of the spark operator:
https://github.com/GoogleCloudPlatform/spark-on-k8s-operator
That has a somewhat similar design to what you’re targeting. Similarly, Argo Workflow is another example:
https://github.com/argoproj/argo

How to write a build script [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I want to write a build script which can compile the code, run the unit tests and produce a nuget package.
Can anyone please help or point me to the right direction.
Thanks.
Since you mentioned nuget, I presume you use C#. I had the best experience with Cake for build scripts.
Cake - Home
But seriously, any build system would do, goole is your friend for this. I would also advise against using powershell for this sort of job.

OpenCV (or similar library) in Go [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I intend to use OpenCV for a project in which I've already built the server in Go. However, OpenCV doesn't have a Go API, so what's the best solution? Call a c++ program with .exec, use swig, find another library to do computer vision?
Thanks.
Edit: I want to maximize performance, and I'm ok with C++.
SWIG is certainly a viable option.
You can also search for a Go binding to OpenCV. For example: https://github.com/lazywei/go-opencv

What are my options for cross program communication? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
A while ago i made a database framework in c++ and have been using it in various places, even made a wrapper for it for vb.net.
Now i have a new project that would require multiple programs accessing a single database and it would be wasteful to load up the database multiple times for every one of them not to mention the syncing horrors.
So I figured i would turn the framework into a standalone application and access to the data would be done in some xx magical way from those other programs. From what I've seen php and mysql do something like this..?
Problem is, I have no clue where to start. The only kind of cross program communication i've done is one program reading and writing directly into the other ones memory, seems kinda hacky though and I'm not sure if that sort of thing is going to fly with managed languages (I want to make it accessible in vb.net too).
Tips?
The most portable way to do IPC (inter-process communication) is probably going to be Sockets.
What about D-Bus? There ist a port for Windows.

If I wanted to create a GUI for wget in c++.. where would I start? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
Question is the title.
I'm sorry, I suppose I need to specify.
I'm not sure what commands or what code to use to actually link wget to a gui.
I have two weeks until classes start and I just want to Create something.
Maybe here and here. There are numerous widget toolkits for C++.
Since wget is not a HTTP library, but an application, calling this using system() or similar calls is disrecommended.
I advise you to use a HTTP C/C++ library.