port

Configure Virtual Printer Port Redirection

大憨熊 提交于 2019-12-18 13:49:09
问题 I need to configure a virtual printer port to redirect it to a external program(.exe file) through c# code. Right now I am able to install a virtual port with some customization(thanks to bghh code). The attached picture illustrates the requirement. Any help will be highly appreciated. 回答1: I found out solution to the above problem. All the printer ports registered on the system are listed in registry under the key " SYSTEM\ControlSet001\Control\Print\Monitors\Redirected Port\Ports " Values

Technical Hurdles for Win32 rsync port

↘锁芯ラ 提交于 2019-12-18 13:37:09
问题 Despite primarily being a windows user, I am a huge fan of rsync. Now, I don't want to argue the virtues of rsync vs any other tool...this is not my point. The only way I've ever found of running rsync on windows is via a version that is built to run on top of Cygwin, and as Cygwin has issues with Unicode, so does rsync. Is anyone familiar enough with the workings of rsync to say if there are any real technical programming hurdles to porting rsync to a native Win32 binary? Or is it maybe that

Impossible to run web application in debug mode with intelliJ on ubuntu with glassfish server

一曲冷凌霜 提交于 2019-12-18 13:30:28
问题 In intelliJ 12.0 on ubuntu 12.04 with glassfish 3.1.2.2, I'm trying to launch my web application in debug mode but I've got this error message: Error starting domain domain1. The server exited prematurely with exit code 134. Before it died, it produced the following output: FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197) ERROR: transport error 202: bind failed: Address already in use ERROR: JDWP Transport dt_socket failed to initialize,

Change Jenkins port on macOS

元气小坏坏 提交于 2019-12-18 10:05:38
问题 I was wondering how one could change Jenkins' default port 8080. Using linux or windows, this is simply done with the configuration file. But the Mac config file of Jenkins looks completely different from the other ones. Of course one could pass the --httpPort parameter when starting the server, but I want to do this within a config file. Is there an option for that? PS: Passing the Jenkins instance through apache would kinda solve the problem, but I want to change the Jenkins port. Thanks!

Get console user input as typed, char by char

谁说我不能喝 提交于 2019-12-18 07:36:15
问题 I have a console application in Elixir. I need to interpret user’s input on by keypress basis. For instance, I need to treat “q” as a command to end the session, without user to explicitly press ⏎ a.k.a. “carriage return.” IO.getn/2 surprisingly waits for the ⏎ to be pressed, buffering an input (I am nearly sure, that this buffering is done by console itself, but man stty does not provide any help/flag to turn buffering off.) Mix.Utils use the infinite loop to hide user input (basically

Relative Path, but for Port?

别说谁变了你拦得住时间么 提交于 2019-12-18 07:28:07
问题 We are all familiar with relative paths: A relative path to ./images/hello.jpg from http://www.domain.com/hey links to http://www.domain.com/hey/images/hello.jpg . Problem: How do you state a relative path to http://www.domain.com:1234 when you are at http://www.domain.com/hey ? 回答1: This can be achieved using JavaScript by setting the window.location.port property. <a href="#" onclick="javascript:window.location.port=8080">go</a> 回答2: You cannot change any part of the authority (i.e. the

Why does JMX connection to Amazon EC2 fail?

非 Y 不嫁゛ 提交于 2019-12-18 06:17:29
问题 I set up JMX on one of services running on Amazon EC2 instance but it doesn't work properly. I'm using VisualVM to connect and after short period of pending it fails with timeout. Looks like it fails because of missing response data or lags. I checked that JMX port is enabled in security group and also tried with different port with no JMX enabled and also with port not enabled in security group settings and both fails immediately, so it looks different. My EC2 instance and desktop both have

Find gsm modem port in c#

两盒软妹~` 提交于 2019-12-18 03:39:56
问题 I want to loop through the available ports: System.IO.Ports.SerialPort.GetPortNames() to find if a port is used by a gsm modem. Any idea please. 回答1: What I did in my application for one similar task: To check that a modem is connected to particular port you can send AT command into this port. This function below returns true if we found a modem on the current COM port: private bool CheckExistingModemOnComPort(SerialPort serialPort) { if ((serialPort == null) || !serialPort.IsOpen) return

XAMPP Ports Change On its Own

怎甘沉沦 提交于 2019-12-18 01:42:53
问题 My Apache Ports are set to: 80 and 443 Looking at the XAMPP control panel a few hours later, I noticed the Ports had changed to: 05 and 59895 Would XAMPP switch to these Ports automatically for some reason after several hours? Is there a danger in using/opening these Ports? 回答1: Same problem was answered in this post by one of XAMPP developers. Assuming this is real (quote): In short, that is normal. Apache listens for and accepts requests on ports 80 and 443 but it does not service requests

XAMPP Ports Change On its Own

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-18 01:42:45
问题 My Apache Ports are set to: 80 and 443 Looking at the XAMPP control panel a few hours later, I noticed the Ports had changed to: 05 and 59895 Would XAMPP switch to these Ports automatically for some reason after several hours? Is there a danger in using/opening these Ports? 回答1: Same problem was answered in this post by one of XAMPP developers. Assuming this is real (quote): In short, that is normal. Apache listens for and accepts requests on ports 80 and 443 but it does not service requests