console

How do I find the current virtual terminal

I am working around a problem in Ubuntu 10.04 where after resume, the mouse cursor disappears. This can be "fixed" by running chvt 1; chvt 7 in a script in /etc/pm/sleep.d, such that those commands run on thaw and resume. However, the X console is not always vt #7, so chvt 7 is wrong in those cases. What I would like to do is find out...

Shift browser contents to the left while viewing in wide screen

I use a widescreen laptop. Many websites have their content centre aligned. On wider screens this means lot of empty space on left and right. As such this is not a botheration. Many a times, I read some instructions on the web page and type them out on the command prompt. I prefer to overlay the command prompt window on top of the br...

appengine log console extremely slow

I am using the python app engine and finding that the log console on the local development server is terribly slow. Output to this window seems to show in chunks of about 5-15 lines every second. Is that typical? I find that it's so slow that it hinders my debugging time waiting for log data to appear. ...

Append message to JBoss Console using jboss-log4j.xml

I'm unable to append messages from my application to the JBoss console. The following are the changes that I made to the jboss-log4j.xml configuration file: <category name="com.tricubes"> <priority value="INFO"/> <appender-ref ref="CONSOLE"/> </category> Here is my code: public class OneToOneValidation2 { private static ...

What's the difference between FireBug's console.log() and console.debug() ?

A very simple code to illustrate the difference. var x = [0, 3, 1, 2]; console.debug('debug', x); console.log('log', x); // above display the same result x.splice(1, 2); // below display kind of a different result console.debug('debug', x); console.log('log', x); The javascript value is exactly the same but console.log() displays it...

how to mirror a site converting all links to point to local version even those who end up with 301:moved permanently

Hi, I'm searching for a console application to make a local copy of a site. I need that it not only to convert all valid links to point to local files, but also those, which are redirected. After a lot of googling the best option I managed to find is "wget --recursive --convert-links --level=20 --no-clobber --html-extension --no-parent...

How do I write to command line from a WPF application?

Hi I know how to write to console but if I write to console in my program and call my program from the command line it won't display anything. How do I make it so that when I say Console.WriteLine or Console.Out.Writeline ir prints to the command prompt from which it was called and not somewhere else? Once again I know how to do Consol...

Qt Console Application Tutorial?

Are there any Qt Console Application example/tutorial? I am looking for one that utilize the event loop. Most of the examples I have seen does not use the loop. ...

Real-time control of Windows Console game

Hi, another quick question, I want to make simple console based game, nothing too fancy, just to have some weekend project to get more familiar with C. Basically I want to make tetris, but I end up with one problem: How to let the game engine go, and in the same time wait for input? Obviously cin or scanf is useless for me. ...

Why does handling cancel closing make my .NET application crash?

I used the answer from this thread: http://stackoverflow.com/questions/474679/capture-console-exit-c Whenever I close the console, I get a "--- has stopped working." from Windows 7. Any idea? ...

Weird c++ input escaping and space behavior

I'm having an unpleasant problem with my c++ example. Everything works fine until I enter something with a whitespace. #include <iostream> using namespace std; int main (int argc, char * const argv[]) { int iteration = 0; while (true) { char * input = new char[256]; scanf("%s", input); cout << ++iteratio...

Starting multiple instances of a python script at once from linux command line

Hello, I'd like to start a piece of python script a thousand times! instead of trying to start them one-by-one how can I do that from linux command line? Right now, I am doing it like this: nohup python test.py & nohup python test.py & nohup python test.py & nohup python test.py & nohup python test.py & ... Thanks in advance. ...

JavaScriptMVC applications on mac terminal commands

I am new to JavaScriptMVC I downloaded it and trying out my first "hello world" commands. The problem is all the examples are for PC's. I am stuck at the first point. How do i write the commands in the terminal console. In the documentation the first thing to do is to C:\workspace\Cookbook>js jmvc\update How do i write this in the ter...

How to perform direct HQL queries on grails hibernate DB for test purposes in Eclipse

For testing purposes, I'd like to have a console where I can just enter an HQL command and see what it returns on the grails hibernate DB (in my case a MySQL DB) while it's running e.g. in the test environment. What's the best way to do that? I'm using Eclipse and already came across the JBoss Hibernate Tools, but I'm not sure how to co...

console-like interface on a web page using javascript

Hi. I very like MySQLs mysql cli tool and I don't like phpMyAdmin. [IMHO]It's a nice thing for a Windows user, but its not so good when you've used to console.[/IMHO]. What I want is to build a web page containing element with console-like input (for example something like this) which should get input from user, send it to PHP script o...

How to build a console app to multiple servers at once.

Hi All. I have a Job Launching system on a server. It polls our database for any pending jobs then launches the appropriate console app when a job is available. The Job data is centrally managed in the database and is growing apace so now we have a second server to add to our job processing capacity. This means the Job Launcher and e...

Django (Dajax / Jquery?) plugin to display a console of live messages

Hi, I'm trying create a box in my Django app that displays text (and possibly images) from the server as certain processes are completed server side. I was hoping to use a plugin that used Dajax / Jquery but I'm unable to find one. Is there a solution out there that is simple? Thanks. ...

How do I "print" something to the console in pylons?

paster serve --reload development.ini ..for debug = true THis is what I do to load a development server for Pylons. However, when I do: print "hello world" THis message doesn't print out in the console. In Django, it does. ...

How do I get console input in javascript?

I'm currently using spidermonkey to run my javascript code. I'm wondering if there's a function to get input from the console similar to how python does this: var = raw_input() Or in C++: cin >> var; I've looked around and all I've found so far is how to get input from the browser using the prompt() and confirm() functions. ...

How to Output Unicode Strings on the Windows Console

Hello, there are already a few questions relating to this problem. I think my question is a bit different because I don't have an actual problem, I'm only asking out of academic interest. I know that Windows's implementation of UTF-16 is sometimes contradictory to the Unicode standard (e.g. collation) or closer to the old UCS-2 than to ...