Does Lua support something like C's _LINE_ macro, which returns the number of the current code line? I know Lua has a special built-in variable called _G, but I don't see line number in there...
Am having some arguments say (String a, Treeset b, Set c)
and i try to get the class by arguments[i].getClass(); of the above arguments..
is it possible to get the class of the interface .
ex.,
Class[] argumentTypes = new Class [arguments.length];
for (int i = 0 ; i < arguments.length ; i++)
{
argumentTypes[i] = arguments[i].getClass();
}
When I run javascript script file in windows commandline environment, and there is a free text coming after my code. How can I stop javascript interpreter to run into it?
For example:
var fso = new ActiveXObject("Scription.FileSystemObject");
delete fso;
exit(); // some kind of WORKING exit command
Lazy frog ate a big brown fox.
Hi everybody,
I try to do a custom CanExecuteChanged event for a command button. Inside CanExecuteChanged event I would like to do some stuff when canExecute value change but I don't want to do it by implementing a custom command button class (deriving from Button and Implementing ICommandSource). Also I don't want to do my stuff into CanExecute method.
Any ideas?
Thanks.
I have some command-line commands to execute on a Windows machine. The programs I need to run are only available on Windows.
Is there a way to easily to do something like I would do with SSH? Example of what I mean:
ssh [email protected] "remote command to execute"
...or do I have to Remote Desktop just to do this? (I'd like to run the commands programmatically from another computer rather than running them by hand.)
Hi all
Is it possible to specify the position of the mouse as the value of the Parameter property of a Command in XAML. Something like the following:
<UserControl.ContextMenu>
<ContextMenu>
<MenuItem Header="Create Link"
Command="{Binding CreateLink}"
CommandParameter="{Binding Mouse.Position}" >
</MenuItem>
</ContextMenu>
</UserControl.ContextMenu>
I want to hyperlink to a page within the Word 2007 Object Model Reference documentation, that ships with Word 2007. These are webpages that use the ms-help:// protocol that Firefox cannot understand.
So I wanted to specify the ms-help:// path of the help page as a commandline argument to the viewer, CLVIEW.EXE.
C:\Program Files\Microsoft Office\Office12\CLVIEW.EXE
Anybody know the commandline syntax for this?
I want to hyperlink to a page within the Word 2007 Object Model Reference documentation, that ships with Word 2007. These are webpages that use the ms-help:// protocol that Firefox cannot understand.
So I wanted to specify the ms-help:// path of the help page as a commandline argument to the viewer, CLVIEW.EXE.
C:\Program Files\Microsoft Office\Office12\CLVIEW.EXE
Anybody know the commandline syntax for this?
i am doing a project about shell, and i want the code that gives me the path of the system call.
example, when i enter the command
type dir
the reply will be
dir is external command (/bin/dir)
Hello everybody
We are having trouble with having a generalized approach to committing with a batch file using commandline svn.
We've got a backupscript that created a new folder with the current date containing the database dumps of our database. (Yes, we version control our database).
Now how can I use the svn commit command to include all directories that are new in the project?
Is there an approach without using the svn add command?`
Thanks for all advice!
-J-Dorg.netbeans.editor.linewrap=true
This command, I have read here turns the line wrap feature on. What I need to know, however, where can I put this command in order to turn it on? I am using NetBeans 6.9 on Mac OS X 10.6. Thanks in advance for any help!
Hi,
I'm running SVN functions such as log from the commandline.
I'm using --username and --password attributes to authenticate the function.
Unfortunately, my users don't have passwords and I'm don't know what value to provide in the commandline for the password.
the syntax is:
--password ARG
and I don't have any value.
please help.
Thanks.
Can a VB.NET Windows Forms Application be configured so that when run from the command-line, the command-line waits until the application exits before showing the next prompt?
Hello. I want to ask if there is any CMD commandline that shows all partitins letters. For example: C, D, E...
May is command thaht shows all information about partition? Free space, used space, total space???
My Ruby script is running a shell command and parsing the output from it. However, it seems the command is first executed and output saved in an array. I would like to be able to access the output lines in real time just as they are printed. I've played around with threads, but haven't got it to work. Any suggestions?
I want to clear console screen every time the user make an input in C++.
I'm thinking of using system command. For Windows, it is "cls". For Linux, it is "clear". Is there a way check which system to use the appropriate command in c++?
Thanks.
I found this question being asked on several places on the internet (including the File protocol MSDN page) but no clear answer.
So, if I am calling my application like this:
file://c:\myapp.exe
is there any way to pass it some commandline arguments, like /nospashscreen=true
Things I've tried:
file://c:\myapp.exe?/nospashscreen=true - launches the app, but with no commandline arguments :(
Thanks in advance.
Okay, so I've figured out how to get my external ip using wget:
wget -q -O - http://whatismyip.com/automation/n09230945.asp
that outputs the ip to the command console. adding currentip.txt to the end will write it to a text file. But what I want to do is use
netsh interface ip set address name="Local Area Connection 2" source=static addr=[WHAT DO I PUT HERE]
Also, a way to make the command prompt not flash would be nice too :)
One thing I really don't understand is how I can pass custom start-up options to a mongrel instance.
I see that a common approach is the use environment variables, but in my environment this is not going to work because my rails application serves many different clients. Much code is shared between clients, but there are also many differences which I implement by subclassing controllers and views to overload or extend existing features or introduce new ones. To make this all work, I simply add the paths to client specific modules the module load path ($:).
In order to start the application for a particular client, I could now use an environment variable like say, TARGET=AMAZONE. Unfortunately, on some systems I'm running multiple mongrel clusters, each cluster serving a different client. Some of these systems run under Windows and to start mongrel I installed mongrel_services. Clearly, this makes my environment variable unsuitable.
Passing this extra bit of data to the application is proving to be a real challenge. For a start, mongrel_rails service_install will reject any [custom] commandline parameters that aren't documented. I'm not too concerned as installing the services using the install program is trivial.
However, even if I manage to install mongrel_services such that when run it passes the custom commandline option --target to mongrel_rails start, I get an error because mongrel_rails doesn't recognize the switch.
So here were the things I looked at:
Pass an extra parameter:
mongrel_rails start --target XYZ ...
use a config file and add target:XYZ, then do:
mongrel_rails start -C x:\myapp\myconfig.yml
modify the file:
Ruby\lib\ruby\gems\1.8\gems\mongrel-1.1.5-x86-mswin32-60\lib\mongrel\command.rb
Perhaps I can use the --script option, but all docs that I found on it were for Unix
1 and 2 simply don't work. I played with 4 but never managed it to do anything. So I had no choice but to go with 3. While it is relatively simple, I hate changing ruby library code.
Particularly disappointing is that 2 doesn't work. I mean what is so unreasonable about adding other [custom] options in the config file? Actually I think this is a fundamental piece that is missing in rails. Somehow, the application should be able to register and access commandline arguments it expects.
If anybody has a good idea how to do this more elegantly using the current infrastructure, I have a chocolate fish to give away!!!
I've run the following command in the Ubuntu terminal -
sudo apt-get install mono-develop
Now how can I run *.vb and *.cs programs using the terminal - What is the command that need to be given?
Does the syntax vary when we write code in Windows & Linux environment?
when I tried to create a shared library file using the "cl" command in the vc++ command prompt, it shows a error saying "Can't open include file "jni.h": No such file or directory"... the jni.h is tried to be included in the machine generated header file from java class... i am using this for java navite interface operations... can any one help me...
From older times (Mac OS 10.4) I had found this commandline on the web somewhere:
mdfind '(kMDItemFSContentChangeDate >= $time.now(-60)) && (kMDItemFSContentChangeDate <= $time.now)'
it gave me a list of files that where changed in the last minute. This does not work anymore on Mac OS 10.6. Can anybody explain why this doesn't work? And even suggest a working command line?
How can I make my already running C# Windows Form Application be able to receive commands from the commandline while it is already running?
For example: if my application is playing a video now then I want to be able to type on the commandline "MyApp /stop" so that while the application is still running it stops the playing the video without exiting from current session.
How can I make my already running C# Windows Form Application be able to receive commands from the commandline while it is already running?
For example: if my application is playing a video now then I want to be able to type on the commandline "MyApp /stop" so that while the application is still running it stops the playing the video without exiting from current session.
I've set up keys with the following:
opendkim-genkey -t -s mail -d test.com
The private key (pertinent to this question) contains:
-----BEGIN RSA PRIVATE KEY-----
(some stuff here)
-----END RSA PRIVATE KEY-----
My opendkim.conf contains:
Domain test.com
KeyFile /etc/opendkim/dkim.private
Selector mail
I am then testing with:
opendkim-testkey -d test.com -s mail -k /etc/mail/dkim.public
Yet receive the following error:
opendkim-testkey: PEM_read_bio_PrivateKey() failed
error:0906D06C:PEM routines:PEM_read_bio:no start line
The files exist and have opendkim as the user and group, and adequate permissions. Has anyone any advice?