command

MVVM with LinqToSQL

Hello Together, there a little BrainF*** question for me to understand MVVM in relation to LinqToSQL. The MVVM is build like: View --> Viewmodel --> Model View: the xaml and the cs code behind file. right ? Viewmodel: created by the Developer (*.cs), encapsulated properties of my Model Model: Datamodel So here is the Question: ...

How to put a .jsp file on tomcat in Linux terminal?

Hi, everyone, I want to ask a question about the tomcat and the Linux terminal. I have a jsp file and a tomcat server. After I use the terminal to login in my Linux computer, I want to put the file to the tomcat server. However, I don't know the cmd of this action. Does anyone can help me? P.S can also provide some basic cmd for the Li...

Any vim command to enter insert mode after paste?

If I use 'p' to paste, vim will remain at normal mode. Is there a command where I can paste and enter insert mode? ...

In gnome-terminal/bash, can std output be run directly (interpreted?) as a command ?

I've just come off the Winows wagon, and the gnome-terminal and bash are looking great, but I don't quite know how to get it to do what I want, (I suspect it is possible). Can std output (eg. from sed) be made to run as a command? (ie. interpret and run the output as part of the script's logic.) I am polling a process to output its sta...

How to grab keyboard from child controls in WPF?

I have some inputbindings in a Window: <Window.InputBindings> <KeyBinding Key="Space" Command="{Binding Path=StepNext}" /> <KeyBinding Key="R" Command="{Binding Path=ResetSong}" /> <KeyBinding Key="Left" Command="{Binding Path=StepPrevious}" /> </Window.InputBindings> The commands are defined in my viewmodel a...

use winrar command line to create zip archives

I'm using the following winrar command line to create zip archives rar.exe a -df -ep -ag[yyyyMMddhhmmss] -ms[txt] C:\MyZipFile.zip C:\tmp\MyFiles*.txt The archives created are in RAR format instead of ZIP. Is there a way to create regular ZIP and not RAR archives? ...

jQuery key code for command key

I have read http://stackoverflow.com/questions/302122/jquery-event-keypress-which-key-was-pressed and http://stackoverflow.com/questions/2445613/how-can-i-check-if-key-is-pressed-during-click-event-with-jquery However my question is if you can get the same key event for all browsers? Currently I know that Firefox gives the command butto...

How do I change stdin Stream with Eclipse run command?

Hey, I'm working on a project where rather than using command line arguments I am supposed to just pipe a file to stdin and pipe output to another file. ie I need to run something like: ./program < infile.txt > outfile.txt Is there a way to specify to Eclipse this is the command I want when it is run? I am running the Eclipse-C/C++...

WPF Command Not Executable

I have a button on a toolbar that has its command set to "MyControl.Print" (for example). In the control the command is added to the command bindings including both the Execute and CanExecute. The control is within a window with other controls docked appropriately. I am finding that for the Print button to be enabled I have to "select" ...

Context Menu items command binding WPF using MVVM

I know this question has been asked many times in different ways in many websites and also in StackOverFlow but all the answers I found are not helping me ot to be precise I am not able to understand them and implement in my application. So I thought of putting some code from my application so that you people can help me better. Problem...

Terminal Run Code for n seconds

I've searched for this, but haven't found a single command yet - how would i run say hello.o for n amount of seconds on the terminal.? ...

C#: How do I get the ID number of the last row inserted using Informix

I am using the Informix.NET driver (C#) to insert a row into a database table. This works fine, except I have no idea how to get the ID of the last inserted row: Insert Command: //Sample Query: "INSERT INTO names (id, name) values (0, 'John Smith');" public static void Insert(String query) { try { ...

How can I assign the 'Close on Escape-key press' behavior to all WPF windows within a project?

Is there any straightforward way of telling the whole WPF application to react to Escape key presses by attempting to close the currently focused widow? It is not a great bother to manually setup the command- and input bindings but I wonder if repeating this XAML in all windows is the most elegant approach? <Window.CommandBindings> ...

How to close WPF application from context menu?

Is there a command in WFF to close the application from context menu. e.g. the same context menu which you get by right clicking on the title bar on any window. There all loads of standard commands, but I am struggling to find exit command. ...

Lotus Notes @command to mark the current email as read?

Does anyone know of a way to mark the current email as read using an @command? ...

WPF: Bind to command from ControlTemplate

Hi. I am trying to add a button to a custom ListView (MyListView) which triggers a command (MyCustomCommand) defined in MyListView. I have added the button (and a title text) by applying a ControlTemplate. The problem is that I have not found a way to trigger MyCustomCommand when clicking the button. What I eventually want to achieve is ...

Aliasing a command in vim

Vim is my preferred text editor when I program, and thus I always run into a particularly annoying issue. Frequently, when I quickly need to save the buffer and continue on to some other miscellaneous task, I do the typical :w However, I – what seems to be like more than 50% of the time – always manage to capitalise that :w. Natural...

UNIX: Strange output if piped to less

If I execute ls command with pipe to less, I get strange output ESC[00mESC[00mfile1.ccESC[00m ESC[00file2.ccESC[00m ESC[00file3.ccESC[00m (means ESC string in between). Without ls, the output is: file1.cc file2.cc file3.cc How to correct this? ...

All Javascript Commands for URL's

So I want a list of all javascript commands what can manipulate or get information about URL's. Example: window.location.href ...

Eclipse eRCP command framework - Unable to update command label dynamically

I've scoured the web for the entire day trying to find an example on how to implement what I read concerning changing a command label dynamically here: http:// wiki.eclipse.org/Platform_UI_Command_Design#Issue_102_-_Comm ands_implementation_of_label_changing I have the a command defined in my plugin.xml that uses the suggested schema: ...