command

CanExecute Logic for DelegateCommand

徘徊边缘 提交于 2019-11-28 21:30:50
Update: The focus became MVVM instead of the actual question so I'm updating it. I'm having a problem with CanExecute for DelegateCommand . It doesn't update before I call RaiseCanExecuteChanged , is this the desired behavior? I uploaded a simple sample project reproducing this problem here : http://dl.dropbox.com/u/39657172/DelegateCommandProblem.zip The problem is this, I have two Buttons like this. One is Binding Command to a RelayCommand implementation and the other is binding to the Prism implementation of DelegateCommand <Button Command="{Binding DelegateSaveCommand}"/> <Button Command="

Export a PKCS#12 file without an export password?

久未见 提交于 2019-11-28 21:02:15
I am generating exporting some pkcs#12 files for testing purposes. These files are not being used in production and only exist temporary during automated testing. I am using the following command: openssl pkcs12 -export -nodes -out bundle.pfx -inkey mykey.key -in certificate.crt -certfile ca-cert.crt Why is it insisting on an export password when I have included -nodes ? My OpenSSL version is OpenSSL 1.0.1f 6 Jan 2014 on Ubuntu Server 14.10 64-bit. F21 In interactive mode, when it prompts for a password, just press enter and there will be no password set. If you are want to automate that (for

Run a batch file in a new window from batch?

强颜欢笑 提交于 2019-11-28 20:57:26
问题 I know it seems this has been asked before, but I need a batch to open another batch in a new window. I've tried: start abc.bat cmd abc.bat run abc.bat and others. They've all opened in the same window or just opened Command Prompt in new window, ignoring my batch. Is there a batch command to open a batch file in a new window? 回答1: It's a little bit strange that start abc.bat doesn't work but I assume this is because you are running this in the middle of another batch. You probably need call

How to add Command Behavior in windows store 8.1 MVVM application

夙愿已清 提交于 2019-11-28 20:49:23
I want to invoke a command on TextChange event of new windows phone 8.1 AutoCompleteBox Control. I am using MVVM Light. In new windows store 8.1 apps there is a new SDK Behavior SDK for adding behaviors in the application. it is not added by default you have to add this Extension in your project. below is how to add this extension in your project. install the Behavior SDK from the list. Now in your XAML page add following namespaces to InvokeActionCommand that is capable of invoking ICommand on ViewModel xmlns:i="using:Microsoft.Xaml.Interactivity" xmlns:core="using:Microsoft.Xaml.Interactions

How to run DOS/CMD/Command Prompt commands from VB.NET?

自闭症网瘾萝莉.ら 提交于 2019-11-28 20:44:52
The question is self-explanatory. It would be great if the code was one line long (something to do with " Process.Start("...") "?). I researched the web but only found old examples and such ones that do not work (at least for me). I want to use this in my class library, to run Git commands (if that helps?). Steve You could try this method: Public Class MyUtilities Shared Sub RunCommandCom(command as String, arguments as String, permanent as Boolean) Dim p as Process = new Process() Dim pi as ProcessStartInfo = new ProcessStartInfo() pi.Arguments = " " + if(permanent = true, "/K" , "/C") + " "

Call Command from Code Behind

喜你入骨 提交于 2019-11-28 19:27:17
问题 So I've been searching around and cannot find out exactly how to do this. I'm creating a user control using MVVM and would like to run a command on the 'Loaded' event. I realize this requires a little bit of code behind, but I can't quite figure out what's needed. The command is located in the ViewModel, which is set as the datacontext of the view, but I'm not sure exactly how to route this so I can call it from the code behind of the loaded event. Basically what I want is something like this

Pipe | Redirection < > Precedence

走远了吗. 提交于 2019-11-28 19:19:55
I want to make clear when does pipe | or redirection < > takes precedence in a command? This is my thought but need confirmation this is how it works. Example 1: sort < names | head The pipe runs first: names|head then it sorts what is returned from names|head Example 2: ls | sort > out.txt This one seems straight forward by testing, ls|sort then redirects to out.txt Example 3: Fill in the blank? Can you have both a < and a > with a | ??? In terms of syntactic grouping, > and < have higher precedence; that is, these two commands are equivalent: sort < names | head ( sort < names ) | head as

Jmeter - Run .jmx file through command line and get the summary report in a excel

我怕爱的太早我们不能终老 提交于 2019-11-28 18:52:34
问题 I am new to jmeter. I have the .jmx file containg all the required http samplers. I could run it throught the Jmeter UI using "Run-> Start" and view the result in the "Summary Report". I can then save the results to the .csv using "Save Table Data" button in "Summary Report". Question is how can I achieve the same using command line. 回答1: JMeter can be launched in non-GUI mode as follows: jmeter -n -t /path/to/your/test.jmx -l /path/to/results/file.jtl You can set what would you like to see

-bash: php: command not found 命令找不到

浪尽此生 提交于 2019-11-28 17:36:15
Linux命令找不到?(找不到命令) 这个问题其实很简单,如果你在终端输入一个命令,而系统提示你说命令没有找到(Command not found)的话,要么是因为你没有装相应的软件包,要么就是因为路径设置的问题。如果是因为软件包的问题,那没有别的好说的,安装相应的软件包就好了。而另外一种情况,则需要对用户的路径进行设置。 -bash: ls: command not found 或者 -bash: ll: command not found 原因:在设置环境变量时,编辑profile文件没有写正确,导致在命令行下 ls等命令不能够识别。 解决方案: export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin bash: php: command not found 解决: export PATH=$PATH:/usr/local/php/bin 然后,再 echo $PATH 看看,就看见了。 usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/php/bin 这时候,你可以在系统的任意目录直接敲入php -i 都可以执行了。 -bash:unzip: command

linux execute command remotely

不羁岁月 提交于 2019-11-28 17:27:39
how do I execute command/script on a remote linux box? say I want to do service tomcat start on box b from box a. I guess ssh is the best secured way for this, for example : ssh -OPTIONS -p SSH_PORT user@remote_server "remote_command1; remote_command2; remote_script.sh" where the OPTIONS have to be deployed according to your specific needs (for example, binding to ipv4 only) and your remote command could be starting your tomcat daemon. Note : If you do not want to be prompt at every ssh run, please also have a look to ssh-agent, and optionally to keychain if your system allows it. Key is... to