command

Maven update dependencies in POM

Are there any preexisting Maven plugins or commands to update the dependencies in the POM? Example: (if this was in my POM) <dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> <version>2.3</version> </dependency> Is there a command or plugin I can run to get it to update the dependency to: ...

UNIX ssh script, running commands on remote server

I would like to create a script that automatically logs into a remote server and grabs a file on the server. The script already logs into the server however the commands are not run on that machine. Once I disconnect from the remote server, the commands are run on the client machine. !/bin/sh ssh -o PreferredAuthentications=publickey b...

PHP: Output multiple line command-line outputs as different lines.

PHP: Output multiple line command-line outputs as different lines. Sorry if the title is difficult to understand. Basically I want my output like A, instead of B. It currently looks like B. I have tried nl2br. The script I am trying to run is: Script: echo "Virus Scan Results:"; $scanme = system('cd /var/www/upload/files; clamscan...

WPF ItemsControl: Route TextChanged Event to all UserControl Items

Hello, I've placed in a ItemsControl Container (Template Stackpanel) my UserControls, which get dynamically added and removed while running the application. How can I route an Event (e.g. TextChanged or GotFocus) trough all elements in my UserControl (consists mainly of TextBoxes)? Is this where I should use "Delegates" or ICommand? I'm...

WPF Hyperlink Image

Hi, In my app I want to resize thumbinal Image when I click it, all images are in ItemTemplate where its Source property is bind to url to picture. I try something like this (this is in my DataTemplate file) <TextBlock> <Hyperlink TextDecorations="None" Command="helpers:StatusesCommands.ShowPicture" C...

WPF Listbox and Select All

I want to create a simple ListBox and have SelectAll as a context menu item. However it seems that ListBox has some sort of inbuilt handling for SelectAll that I can't get working, but is interfering with my attempt to implement SelectAll. My entire XAML is this: <Window x:Class="WpfApplication1.Window1" xmlns="http://schemas.micro...

How to get a unix script to run every 15 seconds?

I've seen a few solutions, including watch and simply running a looping (and sleeping) script in the background, but nothing has been ideal. I have a script that needs to run every 15 seconds, and since cron won't support seconds, I'm left to figuring out something else. What's the most robust and efficient way to run a script every 15...

running command on remote machine using ssh

i want to run some command on several machine using ssh. I know it can be done by just using the command "ssh [email protected] command". However, the command i want to run print some string on the console. Is there any way that send all the strings back to the console that i'm on? ...

Saving to a subversion repository from Java

I want to save to a subversion repository. I am using the command - svn commit -m \"\" ./cms_test/www My class is: public int doBackup(){ int exitVal=-99; try { Runtime rt = Runtime.getRuntime(); Process proc = rt.exec("svn commit -m \"\" ./cms_test/www"); exitVal = proc.exitValue(); System.ou...

Doxygen \xrefitem doesn't seem to work

I'm trying to use xrefitem to create a "Related Page", but it doesn't seem to be working, nor inline. Here is an example: /// \xrefitem makeup "Makeup" "This is made up" ok so it is /// \xrefitem makeup2 "Makeup2" "This is made up2" Ok it #ismade"up" I'm using Doxygen 1.5.9. Neither of these show up in the related pages. I'm also inc...

Is there a command which will print the path of the file in the repo-browser in the command line?

Is there a command which will print the path of the file in the repo-browser in the command line? SVN diff only prints the file name. Thank you. ...

Is there a command which will print the path of the file in the repo-browser in the command line

Dupe of http://stackoverflow.com/questions/1048356/is-there-a-command-which-will-print-the-path-of-the-file-in-the-repo-browser-in-t Is there a command which will print the path of the file in the repo-browser in the command line? SVN diff only prints the file name. Thank you. ...

WPF calling commands via events

Hi, Is it possible to call a command via an event in WPF? I have a save button that when pressed calls a command, this is pressed when you have finished editing a textbox, it also passes an object as a command parameter <Button Content="Save" Command="{Binding DataContext.SaveQueueTimeCommand, RelativeSource={RelativeSource FindAnce...

Julmar WPF helper parameters

Hi, I am using the Julmar helper classes for WPF so that I can call a custom ICommand on an event such as MouseEnter on a text box like so: <TextBox Text="hmm"> <julmar:EventCommander.Mappings> <julmar:CommandEvent Command="{Binding DataContext.IncreaseQueueTimeCommand, RelativeSource={RelativeSource FindAncestor, Ancest...

Enable/Disable a mounted drive using a powershell script

I have a disk drive that is mounted by an API. The drive is mounted but defaults to disabled. Does anyone know how to use powershell script to enable the drive? (Windows Server 2008, Powershell 1.0) ...

When deleting SMS, they don't get deleted

Hi there! I connected a GSM/GPRS-modem to my microcontroller and everything works fine. When I want to delete all messages in the ME storage, I should use this command: AT+CMGD=1,4 ->OK The deleteflag '4' indicates that I want to delete all messages and flag '1' is overridden. However, when I check if the storage is empty, I get: A...

passing a command to gdb when running a program

I am using gdb to debug a program, and I want to have the output of the command $(perl -e 'print "A"x20') as my argument. How can I do that? This way the argument would be very flexible. ...

wpf How to create input gesture for page/window from an user control.

I have a reusable usercontrol that uses a few commands and corresponding keyboard gestures, (specifically Escape and Ctrl+1...Ctrl+9) Now as I use this usercontrol in multiple locations I'd like to define the input gestures in the usercontrol, which works fine as long as the focus is within the usercontrol. However, I'd need it to work ...

Double Command To Run Programs In The Command Prompt

Hello, Please, help me in: how to put a double command in the cmd, like this in the Linux: apt-get install firefox && cp test.py /home/python/, but how to do this in Windows?, more specific in Windows CE, but it´s the same in Windows and in Windows CE, because the cmd is the same. Thanks! ...

How do I install/use the phpize command?

I am intending to use SQLite 3 with PHP 5. I found this: http://packages.debian.org/etch/web/php5-sqlite3 but I am having problems with installation: unzip & untar the package run "phpize" run "./configure --with-sqlite3=/path/to/your/sqlite3/install make && make install (optionally) copy DB/sqlite3.php to /path/to/php/lib/php/DB/sqlit...