run

Some Tomcat webapps not opening

Hi, I downloaded a couple of webapps and placed them in my /webapps folder. Some of them I could open by going to http://localhost:8080/app1 and it would open. However, some others I would do the exact same thing and go to http://localhost:8080/app2 and it will display "HTTP Status 404 - /app2/", even though I am sure it is there. I've...

How do I open alternative webbrowser (Mozilla or Firefox) and show the specific url?

Hey, I know there is built-in Internet explorer, but what I'm looking for is to open Firefox/Mozilla window (run the application) with specified URL. Anyone can tell me how to do that in C# (.nET) ? ...

Run binary with ./ in ubuntu

I decided to learn c++ (I program in c at work) and I have been reading some tutorials (and lots of posts here on SO). Ok, so I typed in the standard c++ "hello word", compiled with gcc on my ubuntu machine as "test". Then I tried to run it by typing "test" and hitting enter. Nothing. Turns out I must run it with "./test". Ok,fine, I'll...

How do you add Start->Run shortcuts in Windows XP?

Does anyone know how you setup new commands to launch an application from the Start->Run box? ie. you can type "firefox", "winword" or "excel" into the Run box and those applications will open even though they're not in the system path, but others won't. For example, with Firefox, there's no files named firefox.* in any of my system pat...

How to run any method knowing only her fully qualified name

Hello, I've got a name of a method: "Garden.Plugins.Code.Beta.Business.CalculateRest" How to run it? I think about this fancy reflection based solution like RunMethod(string MethodName) ...

How do you run Android instrumentation tests from Eclipse?

Currently I'm running instrumentations tests from the command line this way: adb shell am instrument -w com.blah.blah/android.test.InstrumentationTestRunner Is there a way to run them from Eclipse (with automatic installation of the application)? ...

how to run Android emulator automatically from eclipse?

may i know how to auto run a project on Android emulator using eclipse? ...

Cygwin - run script silenty from "run command"

I have script lets say: C:\foo.bsh I want to be able to run this command via the windows run command: Start -> Run Windows Key + R and type something small like 'foo' and hitting return. However, I do not want a cmd prompt to be visible. This script does some preprocessing for an IDE. I do not want the cmd prompt to be open for t...

gedit cannot open shoes2.run

hello i've just downloaded shoes but can't get them out the box. double clicked on shoes2.run in ubuntu intrepid and gedit opened with the following message: " Could not open the file /home/mark/Marks files/2…ng/Programming/shoes2.run using the Unicode (UTF-8) character coding. Please check that you are not trying to open a binary fi...

Install Usarsim

hay I have recently install USarsim but i have some problem when i run this command System>ucc server DM-USAR_red?game=USARBot.USARDeathMatch -i=USARS im.ini I have this message ....... Executing Class Engine.ServerCommandlet Global MD5: [3986c4774f86cab155ff9f5432b89282] Browse: DM-USAR_red.ut2?Name=Player?Class=Engine.Pawn?Character=...

Running console application from C# but application can't create file

i have windows forms application wich runs another console application here is the part of code prog = new Process(); prog.StartInfo.FileName = exefile; the console application should create file but when running that application from C# it doesn't creates any file when im running console application with double click it works fine he...

In Java, how do you determine if a thread is running?

How do you determine if a thread is running? ...

Execute a Groovy class in a package from the command line

Is there a way to execute a Groovy class by specifying the package with dots, as with java? Example: File ./my/package/MyClass.groovy: package my.package class MyClass { static void main(String[] args) { println "ok" } } > cd my/package my/package> groovy MyClass ok > cd ../.. > groovy my/package/MyClass.groovy ok > groovy ...

How do I automatically update a subversion repository?

Does anybody know how I can run automatic update subversion? If anybody has a script or something like that, could you show me an example? ...

Running a jar archive in a running Java application

Hi all, I am new to java programming. I want to run a runnable jar archive from within my running Java application. I need to be able to control the running classes from within my application (i.e. Stop, start them etc). Basically I need to do the eqvilient of "java -jar X.jar". I cannot use Runtime.getRuntime().exec("...") as the jar...

I had written a simple cobol prog in ECLIPSE. But i am unable to compile,run that program

I had written simple cobol program in eclipse. For the first time i am using eclipse for cobol programs. i want to know the steps followed to compile and run that simple cobol program. ...

Netbeans runs all my projects

Hi! I'm using Netbeans 6.5.1 (tomcat 6.0.18 included) I've developed many webapp projects on netbeans. I created a contextlistener for each webapp which prints "Hello World! this is <>" in contextInitialized method. Whenever I click "Run main project" button (or click-right-mouse-button over a project and select "Run") I can see in tom...

Run rake task from outside RAILS_ROOT

Hi, My RAILS_ROOT is /usr/local/www/application/ If I run 'rake db:migrate RAILS_ENV=production" from within the RAILS_ROOT it works fine. However I can't seem to find a way to run the same command from outside the RAILS_ROOT. Help is appreciated. Many Thanks ...

Python execute program change path

I'm trying to make a python script run another program from its own path. I've got the execution of the other program working using os.system, but the program will crash because it cannot find its reasources (wrong path, I assume). I tried adding the folder harboring the executable to the path, but that didn't help. Any help please? ...

How can I count runs in R?

In R, what would be the most efficient/simplest way to count runs of identical elements in a sequence? For example, how to count the numbers of consecutive zeros in a sequence of non-negative integers: c(1,0,0,0,1,0,0,0,0,0,2,0,0) should give 3,5,2. Thanks. ...