I am working on a small Application in Qt with C++.
(This Application is meant to run on Windows)
I am sending a few https requests in this App and recieving answers from an API.
This works fine. But on Vm with Windows 10 Enterprise 21H1 Image I cant get a connection to the Api. Installing Open SSL on the VM is not an option.
What else could I do, to get it working on the VM?
Related
I have an webRTC (native c++ -> node.js) app which allows screensharing. I've tried to make a windows service from it for easy permissions elevation as well as simple auto-start. I've managed to rewrite it as service but to simplify my example I'll skip that. Let's just say I've used nssm service wrapper to run my app as service.
Whether I run service as local system or my own user, when it gets to the point where I request system for video sources, webRTC return nullptr.
SourceList* sources;
captureScreen = webrtc::DesktopCapturer::CreateScreenCapturer(options);
captureScreen->GetSourceList(&sources); //Return nullptr!
Exception thrown: read access violation.
sources._Mypair._Myval2._Myfirst was nullptr. occurred
When capturing camera instead of screen everything works fine according to this guy and only relevant thread in whole internet I found.
Is there a bug in webRTC/win10? Is there some kind of workaround I can use in order for this to work?
If you are making web based WebRTC app then i think everthing should work fine.
I don't thing there is bug in either WebRTC and Windows while screen sharing.
Make sure you are using Google Chrome for development. (Just an advice)
Your webapp app has permission for capturing windows.
If your are using Google Chrome then make sure you are running the chrome with command line flag "--enable-usermedia-screen-capturing" e.g. on Windows "Chrome.exe --enable-usermedia-screen-capturing"
Screensharing web app using WebRTC - https://www.webrtc-experiment.com/Pluginfree-Screen-Sharing/
Checkout WebRTC projects on GitHub - https://github.com/muaz-khan/WebRTC-Experiment
:)
I am testing out the load tester from shiny and I am having trouble recording a session. From this youtube video from Rstudio https://resources.rstudio.com/webinars/load-testing-shiny-alan-dipert , the instructor mentions grabbing the url of the deployed application. I have tried both the url from my server/browser application and the url from my deployed application on shinyapps io. I have also tried running it on Rstudio Cloud and I am redirected to a login which then shoots me to a 404 error. I have tried getting the URL from Mozzila, Microsoft Edge, and Chrome without luck.
library(shinyloadtest)
#server application
record_session("http://127.0.0.1:3793/")
Error in curl::curl_fetch_memory(appUrl, handle = h) :
Failed to connect to 127.0.0.1 port 3793: Connection refused
#deployed shiny app
record_session(" https://finance.shinyapps.io/PrivateApp/")#this is not the real url
Error in .subset2(public_bind_env, "initialize")(...) :
Recording shinyapps.io apps is not supported
I am looking to find the right url to add to record_session so I can begin load testing my application. Thank you.
From the package's vigentte and on the GitHub thread the author was clear that you cannot benchmark against a Shiny app hosted on shinyapps.io:
Under Deployment Limitations it says:
1. WebSockets are required: On RStudio Connect and Shiny Server Pro, SockJS is used instead of plain WebSockets in order to support browsers and load balancers that don’t support WebSockets. Even though Shiny works in the absence of WebSocket support, shinyloadtest does not.
2. shinyapps.io unsupported: Applications deployed on http://www.shinyapps.io/ can’t be recorded or load tested.
Instead, the documentation suggested that you should install the package on your development machine.
Otherwise, shinyloadtest works perfectly fine (tested on multiple versions of R 3.5 and above). The function record_session() takes the URL of the deployed application as an argument:
shinyloadtest::record_session('https://your-deployed-shinyapp.com/')
Taken from the documentation:
Running the function will open a browser displaying the app. Once open, interact with the application as a normal user would and then close the browser. After closing the browser window or tab, a file will be created that contains a recording of the session. This recording, written to recording.log by default, will serve as the basis for the load test.
On our development server and test linux boxes, we have been using Google SQL with Cloud Proxy for connections. Everything is working just fine.
However, I need to setup a couple users with WAMP. (Windows 10 64bit Apache, PHP 7). I am not very familiar with WAMP. We have everything working except Cloud Proxy.
On our Linux boxes we have the socket setup in its own folder (under root) /cloudsql.
What is the equivalent location on WAMP? (We don't want to have to maintain different configuration files just for one or two WAMP boxes).
On Windows, you must use TCP sockets. The documentation can be found here:
https://cloud.google.com/sql/docs/mysql/connect-external-app#6_start_the_proxy
Specifically you must tell the proxy the instance name and the local port on which to listen for connections for that instance:
cloud_sql_proxy.exe -instances=<INSTANCE_CONNECTION_NAME>=tcp:3306
I'm attempting to run ColdFusion Builder 2016's built-in Security Analyzer. It's not working.
Here's my setup
I installed ColdFusion Builder 2016 along with ColdFusion Server 2016, by using the CF Builder installer on Windows 10. I have a valid registration serial for Builder, so this is not a demo version.
I set up ColdFusion 2016 as a Windows service so that it starts up with Windows on my dev machine, and I connected it to the locally running IIS web server. I added a second registration for a ColdFusion server in my CF Builder servers panel so that I could manage the Windows service from Builder. Both of the servers (one marked as a Windows service, one not) show as running in Builder's "CF Servers" panel.
I've run the Security Analyzer before, and had no errors with it. I don't know why it doesn't work today.
Duplicating the error
When I right-click on my project, a directory, or a file, then navigate to Security Analyzer, and try to run the security analyzer, I receive this message in an alert window:
Server error: Security Code Analyzer is not available in this edition of the ColdFusion Server.
Here's what I've tried
I edited my project properties to choose the service, then to choose the non-service. Both of them produced the same error.
I noticed that CF Builder's server registrations did not have "2016" as the version number. One was blank, the other was set to "11". I changed them both to 2016 and restarted CF Builder. I switched my project to each server, back and forth, with a combination of restarting Eclipse between tests. Same error.
I also tried changing the server's port from 8600 to 80 for the Windows service, but that resulted in an expected 404 error.
I restarted my local ColdFusion server and retried the above items. Same error.
Thought
At first I thought this might be that CF Builder thinks this is a server version error. At this point, I'm wondering if the Security Analyzer does not run on the development CF Server, even though I've had it running locally before. I can't connect it to any other CF2016 servers because we have a very, very large installation of CF11 enterprise servers, and have not begun to make a server infrastructure move to CF2016 yet.
The ColdFusion 2016 Code Securiy Analyzer is only available with an Enterprise edition license. However, the EULA for ColdFusion 2016 appears to allow you to use the same license key from a production server to activate a "development" server, so you should still be able to run the Security Analyzer on your development machine.
I am working on a Windows version of a server application that communicates with a web application. The web application originally worked with a Linux server, and would SSH into Linux to execute commands on the server. My plan is to build a C++ server using Qt to receive commands from the web application, and process them to do the windows version of what those commands are.
So for example, if the web application originally sent "echo $HOME" and received back the home directory, I want to receive that same SSH command on my Windows server, then process it so if the server was configured for the home directory to be C:\Example\, then it would send back C:\Example\. My goal is to make as little change to the web application, and instead have the Windows server process the Linux SSH commands to do the Windows equivalent.
I've never worked with libssh before, but from some searching I found it and read that it could be used as an SSH2 server. Basically my question here, is how would I use libss2 to create a server in my Qt project to allow this web application to SSH in and send commands.
If you think there is a better way then libssh please let me know, this is just what I have found through searching.
UPDATE: I found this code of a server example. https://github.com/substack/libssh/blob/master/examples/samplesshd-tty.c
Honestly, I'm very confused by it. I'll probably be able to break it down and understand what's happening after a few hours of Googling and working through the code. But If anyone would be willing to walk me through main explaining what's happening at each step, that would be appreciated.