console

ERR_INTERNET_DISCONNECTED when Chrome console is open

ε祈祈猫儿з 提交于 2019-12-24 14:01:04
问题 This problem has appeared a few days ago with this message into the console: GET http://any_url net::ERR_INTERNET_DISCONNECTED Pages work fine as soon the console is closed Thx in advance 回答1: I had the same problem. Open the console, select the "Network" and choose "not throttling" instead "offline". 来源: https://stackoverflow.com/questions/33063539/err-internet-disconnected-when-chrome-console-is-open

Vanilla JavaScript code works in console but not from a (greasemonkey) script

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 13:32:31
问题 I use Windows10 home with latest Firefox and Greasemonkey. I created an account in livedns.co.il, which is an Israeli domain register. I then logged in. After logging in to the personal overview area , I tried to move myself to the domains management area , via this code: window.location.href = "https://domains.livedns.co.il/DomainsList.aspx"; It worked in console but not from a greasemonkey script. I thought I might need setTimeout() in the script: setTimeout(()=>{ window.location.href =

How do you access the console of a GCE VM instance?

自古美人都是妖i 提交于 2019-12-24 13:14:47
问题 How can I access the console of a Google Compute Engine VM instance? 回答1: To see the console output (read-only), you can use any of the following methods: Web UI via Developers Console – on the instance detail page, scroll to the bottom of the page and expand the console output view CLI via gcloud compute instances get-serial-port-output API via getSerialPortOutput To get read/write (interactive) access, follow instructions on this page: gcloud compute instances add-metadata [INSTANCE_NAME] \

Is there a way for a windows-subsystem application to offer optional console output?

余生长醉 提交于 2019-12-24 12:42:20
问题 I have a Windows application application that is normally GUI-only and declares the WINDOWS subsystem. It doesn't open a console window when launched. Alas, I would like to offer additional console output when the application happens to be started from console window (say, from interactive cmd.exe). Is there a way of detecting if some process "up the chain" has an open console, and to attach to that console? The closest I've found is a way to explicitly open a console for a gui application,

how to redirect the output of serial console (e.g. /dev/ttyS0) to a buffer or file

你离开我真会死。 提交于 2019-12-24 12:19:03
问题 Is it possible to pipe serial console output to a file or a buffer or some virtual or pseudo device (in /dev)? The Kernel command line has in startup at this point "console=null,115200". (Normally it has "console=ttyS0,115200" - my requirement is: if "console=null,115200", should the output go to some other place than ttyS0, e.g. a virtual or pseudo device or to a file/buffer) Maybe somebody know if there is good solution available? Thanks a lot in advance! 回答1: There are two ways that I am

What are the actual RGB values of the ConsoleColors?

大城市里の小女人 提交于 2019-12-24 12:12:20
问题 I'm converting colored console output to HTML. Currently, I'm first translating ConsoleColors to the Color of the same name (and dark yellow manually as it is not present there). However, I found that some Color and ConsoleColor of the same name look quite differently, for instance CC-Green is only #008000 instead of #00FF00 (which I confirmed is the actual RGB value). I could not find a list of the actual RGB values of all ConsoleColors, which I could use in a mapping table. Does such a list

How to add black borders to video

佐手、 提交于 2019-12-24 12:09:39
问题 So I'm using ffmpeg to convert a video to 1920*1080 px, I found two ways to do so, the first one would be to stretch the video to 1920*1080, but then it looks kinda stretched. I used this command for this: ./ffmpeg_darwin -i SRC -vf scale=1920:1080,setdar=16:9 DEST The other option is the same without setdar but this just adapts the resolution to the one it started from (1728*1080). I would like to fill the 192 pixels of the width with a black border. Is there some kind of option to do so? Or

Java simple server/client console chat application

隐身守侯 提交于 2019-12-24 09:49:44
问题 I want to create a simple server client application, but i think there is something wrong with the IO Streams. There is no GUI so the chat shall happen through the console( you can open 2 eclipse to test it or whatever IDE you are using). here is my server code: import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.net.ServerSocket; import java.net.Socket; import java.util.Scanner; public class Server { ServerSocket serverSocket; Socket

Taking input from console in a plugin in java

久未见 提交于 2019-12-24 09:39:55
问题 I am developing an Eclipse plugin and I want to take input from the user. I had a problem before with dealing with the console as I have 2 consoles 1 in the original Eclipse application and the other in the new opened Eclipse plugin window. I used the method shown below to print in the Console of the Plugin public static void writeToConsole(String output) { MessageConsole console = new MessageConsole("My Console", null); console.activate(); ConsolePlugin.getDefault().getConsoleManager()

Why Console in Eclipse or IntelliJ always null? [duplicate]

痞子三分冷 提交于 2019-12-24 07:59:32
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: System.Console() returns null Code: public class Demo { public static void main(String[] args){ Console c = System.console(); if (c == null) { System.err.println("No console."); System.exit(1); }else { System.out.println("Console is."); System.exit(0); } } } always No console. Why ? How to fix? Thanks. 回答1: You don't have any console associated. As per javadoc Returns the unique Console object associated with