I am working with a console application for VB 10.
How can I replace data that I have already written with:
Console.Write
Or how can I write on a specific point: e.g. 100 lines, 100 chars left
In the same way that a program such as wget has a loading bar that does not keep getting replaced every time progress is increased.
...
I'm using firebug and making lots of console.log, .info, .dir calls, etc. When the app runs on a machine with firebug turned off, it can cause errors. What's the best technique to avoid that? This seems to work:
// global scope
if (typeof(console) == 'undefined') {
console = {
info : function() {},
dir : function() {...
Hi,
I cannot find out which font the console app uses by default? Is it guaranteed that everyone has that font (when running this .NET app)? Want to display some unicode chars and need to be sure they are present within that font.
Thanks
...
Hi! Do you know how to do file transfers via ssh. It's like you open two instances of the project and you transfer file from that remote instance to your instance.
I was able to do this before via Putty but I completely forgot the keys I press to get this thing to work.
It is like Midnight Commander where you have a cursor and two pan...
Hello,
I am looking for an embeddable interactive console. I want the user to be able to type in some custom commands, and the application to write command responses in it. Would be awesome if it would understand powershell or python, ans supports command completion.
I already built my own bash-like terminal, but I do not want to tot...
I have a Three documents, here is a sample with fields not shown
class College
include Mongoid::Document
references_many :students,:stored_as => :array, :inverse_of => :colleges
end
class Student
include Mongoid::Document
embedded_in :college, :inverse_of => :students
embeds_one :mark
end
class Mark
include Mongoid::Docum...
I have a simple console program written in C and want to abort a text input with CTRL + Z. How is it possible?
Edit: Here is some code (untested).
#include <stdio.h>
int main()
{
float var;
while(1)
{
scanf("%lf", &var); // enter a float or press CTRL+Z
if( ??? ) // if CTRL+Z was pressed
{
...
My basic goal here is writing a .NET remake of Kingdom of Kroz. For those not familiar with the game:
http://www.indiefaqs.com/index.php/Kingdom_of_Kroz
http://www.youtube.com/watch?v=cHwlNAFXpIw
Originally it was supposed to be a quick distraction project to give me a break from all the generic enterprise WCF/WF/LINQ2SQL/etc work pro...
#include <stdio.h>
main()
{
printf("az\b\b");
printf("s\ni");
}
above program when compiled with gcc gives output
sz
i
Can someone help us out to understand the output
...
I am using a very old OCX in a project and have set every 'ShowMessages' type property to false that I could find. Yet, every-so-often, an error occurs deep within its bowels and a message box is popped up. I know this because I run the code in a console application and see the messages pop up.
So my question is whether there is a way...
Why does the code sample below cause one thread to execute way more than another but a mutex does not?
#include <windows.h>
#include <conio.h>
#include <process.h>
#include <iostream>
using namespace std;
typedef struct _THREAD_INFO_ {
COORD coord; // a structure containing x and y coordinates
INT threadNumber; // eac...
Suppose you have the code of a Cocoa app which logs its own messages through NSlogs and printfs to the Console output. My goal is to redirect all this output into a separate NSWindow in a NSView.
How can I achieve this in a way that
minimizes the amount of code to rewrite
makes it possible to revert back
maximizes the reuse of written...
Most command-line programs just operate on one line at a time.
Can I use a common command-line utility (echo, sed, awk, etc) to concatenate every set of two lines, or would I need to write a script/program from scratch to do this?
$ cat myFile
line 1
line 2
line 3
line 4
$ cat myFile | __somecommand__
line 1line 2
line 3line 4
...
I just started using NLog in my asp.net application, and I need to see log messages in real time. When I run it in VS2010 I can look at VS output window, but when I run it on the test box I obviously don't have that option. What I need is when my asp.net app starts a console window should open and show log entries in real time.
Any ide...
Hi there ,
i am just curious about one thing.
Why isn't there something like an console in the Browser ?
I mean such as an -tag or something like that.
This would enhance Web experience by far ( at least for developers )
:D
It should be (tecnically) possible. here are some examples :
http://uni.xkcd.com/ ( this is exactly what i mean...
Hi
I'm using Visual Studio C# Express 2010 to make a console application. I've implemented the 'commands' as if sections in the Prompt method calling a command method, eg
if (line == "help")
{
Help();
}
That gives you a help page on my program. If it needs cleaning up that's fine.
What I'm try...
Hi,
I'm trying to compile a C++ project (Hello World) in windows 7 using Eclipse Helios. After creating the project the console shows me the next message:
Internal Builder is used for build **
g++ -O0 -g3 -Wall -c -fmessage-length=0 -osrc\hello.o ..\src\hello.cpp
g++ -ohello.exe src\hello.o
c:/mingw/bin/../lib/gcc/mi...
I'm playing around with an embedded device, running a linux kernel. It has web access via a proxy. My question is, is it possible to login via the unix console?
I can retrieve the login page using wget http://m.facebook.com, but I'm not sure where to go from there.
Thanks in advance.
...
Greetings,
I have an Eclipse plugin (A) which has a dependency on another plugin (B). Plugin B is simply a wrapper around a jar, which contains a native dll, and performs jni functionality.
Given this setup, I have the following code in A's Activator class's start method:
MessageConsole jniConsole = new MessageConsole("Opereffa Output...
Hello,
I am writing a command line tool that performs a number of tests to our servers and reports an output to screen.
I am currently using log4j to print to screen and to a log file.
However, I was wondering if there was a better technique to manage all the printing from one class instead of having the "print" commands scattered all...