Questions tagged as 'console'

2
answers

Rails Console does not load the methods and classes of my application, why?

I have a model named Person, when I open the Rails Console and try to assign it to any variable, I get this: user.localapp (test) $ rails c Loading development environment (Rails 4.2.0) (Ruby 2.2.0) localapp> a = person.first NameError: und...
asked by 12.05.2015 / 19:04
1
answer

how to show the extended output of a loop on the console

I have a very simplistic example of code. Follow Ex.: for(var i = 0; i < 5; i++){ console.log("alguma coisa"); } In Chrome DevTools does not appear well the output I expected, the output is somewhat analogous to the repre...
asked by 13.12.2018 / 23:58
1
answer

Is it possible to create console applications in PHP in Clipper style?

It looks like something from another planet, but I'd like to see a current language doing some old stuff, like a PHP doing a Clipper-style application, one with simple, but very efficient lines. I will not go into merit difficulty or viabilit...
asked by 27.03.2018 / 22:54
1
answer

Show / Hide the console in an application in C #

I searched on how to show / hide the console in an application in C # in the forums in Portuguese and did not find it. Looking for internationals I came across several solutions but found a very easy application and would like to share with othe...
asked by 20.03.2017 / 20:51
1
answer

java.io.Console when debugging in Eclipse

I'm trying to use the java.io.Console from within of Eclipse. However, whenever I call System.console () returns me null. In jetty, you can pass parameters in the eclipse console. For example, if I press 'x' on the eclipse console, the je...
asked by 19.05.2016 / 03:19
1
answer

Console cursor coordinates in C

Taking the following code as an example: #include <stdio.h> int main(void) { printf("Hello world"); return 0; } Where "Hello World" will be written on line 1 and column 1 of the console. How do I change this, for example, typ...
asked by 02.09.2015 / 15:57
1
answer

How to read text from a text box in a Word document via C #

I'm using Interop to manipulate a word, through a console application. using Word = Microsoft.Office.Interop.Word; I can extract the byte array, save as Pdf, as image etc, but a relatively simple thing that I'm needing I still can not do....
asked by 17.07.2015 / 18:42
1
answer

How to check the console for open websockets connections?

I was analyzing how StackOverflow checks for updates to the list of questions, but nothing appears on the console (Firebug), so I imagine they are using websockets. Then I had a question: can I check the connections open websockets through th...
asked by 20.01.2015 / 14:14
1
answer

What are the advantages of working directly with stdin, stdout and stderr?

Is there any advantage in terms of speed or some other aspect? Show connections: showConnections(all = TRUE) Individual examples: stdin() stdout() stderr()     
asked by 22.09.2014 / 17:02
1
answer

How to make the message stay centered and blink on the screen in C ++?

How to make this message flash on the screen, stay centered and how to change the message color? #include <iostream> #include <cstdlib> #include <windows.h> using namespace std; string mensagem; int m...
asked by 12.02.2015 / 16:59