Displaying keyword search results 41 - 50
Created by Dr. Xi on June 11, 2010 19:04:18 Last update: June 11, 2010 19:06:35
The caret ^ is DOS command line escape character. Example 1: echo < and > as is, not interpreting them as input/output redirect.
@rem sign an XML file. Requires Java class utils.x...Example 2: treat & literally, not as the special character to combine two commands.
@rem search "dos command line" in Google. curl ...Add switch -A "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:220.127.116.11) Gecko/20061204 Firefox/18.104.22.168" to make curl look like Firefox.
Created by nogeek on March 21, 2010 20:13:48 Last update: March 21, 2010 20:23:41
Download JBoss from http://www.jboss.org/jbossas/downloads/ Set environment variables JAVA_HOME and JBOSS_HOME Open a command prompt and enter %JBOSS_HOME%\bin\run.bat ( $JBOSS_HOME/bin/run.sh on *nix). Drop your WAR or EAR file into %JBOSS_HOME%\server\default\deploy
Created by Dr. Xi on February 11, 2010 05:07:48 Last update: February 11, 2010 05:08:20
On Linux, you can use the fuser command to find out who has a file open, or is using a port. For example, if you start Tomcat and get the error "Address already in use: 8080", you want to know which process is already binding to port 8080.
# list processes on port 8080 fuser 8080/tcp ...
Created by woolf on December 28, 2009 00:11:20 Last update: January 15, 2010 04:01:46
From http://www.videohelp.com/tools/MJPEG_Tools : A sample command line to deinterlace dv footage, give a slight film look, pass it through a Spatial-Pre-Filter, Temporal-Noise-Filter, and a Spatial-Post-Filter, then encode to DVD complient mpeg2 video looks like this -
lav2yuv capture.dv | yuvdeinterlace -f | yuvdenois...From http://www.linux.com/archive/feature/40069 , the actual video file can be used in place of edit list (eli) file:
# de-noice the video and scale for DVD output l...
Created by Dr. Xi on December 05, 2009 20:12:16 Last update: December 05, 2009 20:46:45
It's quite easy for Perl to open a pipe and read from it:
$file = "nospace.txt"; open(IN, "cat $file |") ...But the code breaks when the file name contains a space:
# This does not work! $file = "yes space.txt"; ...On Windows, these don't work either:
# This does not work! $file = "yes space.txt"; ...You need to use a technique called Safe Pipe Opens :
$file = "yes space.txt"; $prog = "cat"; ...
Created by Dr. Xi on December 04, 2009 04:33:05 Last update: December 04, 2009 04:33:05
Variable Meaning $_ The default or implicit variable. @_ Within a subroutine the array @_ contains the parameters passed to that subroutine. $a, $b Special package variables when using sort() $<digit> Contains the subpattern from the corresponding set of capturing parentheses from the last pattern match, not counting patterns matched in nested blocks that have been exited already. $. Current line number for the last filehandle accessed. $/ The input record separator, newline by default. $| If set to nonzero, forces a flush right away and after every write or print on the currently selected output channel. Default is 0 (regardless of whether the channel is really buffered by the system or not; $| tells you only whether you've asked Perl explicitly to flush after...
Created by Dr. Xi on November 23, 2009 23:37:55 Last update: November 24, 2009 04:04:20
IE can be started from JScript as an ActiveX control. Create a file named start_ie.js with the following contents and run (from command line or Run box):
var browser = new ActiveXObject("InternetExplorer....
Created by Bambi on August 07, 2009 03:47:56 Last update: August 07, 2009 03:59:15
package hello.world; // package declaration, must ...Compile/Run:
C:\tmp>javac hello\world\HelloWorld.java C:\tmp...Since the class is not public (package access), the name of the Java file could be anything! If a package access class has a public static void main(String) method, it may still be run from the command line using the class name.
C:\tmp>copy hello\world\HelloWorld.java hello\worl...
Created by Dr. Xi on November 23, 2008 05:31:00 Last update: November 26, 2008 21:41:25
CVS has two commands, cvs tag and cvs rtag for creating and manipulating labels. cvs tag uses the local file system to determine which revisions to associate with the label, while cvs rtag works directly on the repository. You can tag before checkout with the rtag command. If you checked out, had a successful build and want to create a baseline based on the checked out versions, you should use the tag command.
# to add tag "my_tag" to module "my_module" on...
Created by Dr. Xi on October 14, 2008 23:26:09 Last update: October 14, 2008 23:27:31
Use the icacls command to display or modify discretionary access control lists (DACLs) on specified files. To save the DACLs for all files in the C:\Windows directory and its subdirectories to the ACLFile file, type:
icacls c:\windows\* /save aclfile /tTo restore the DACLs for every file within ACLFile that exists in the C:\Windows directory and its subdirectories, type:
icacls c:\windows\ /restore aclfileTo grant the user User1 Delete and Write DAC permissions to a file named Test1 , type:
icacls test1 /grant User1:(d,wdac)To grant the user defined by SID S-1-1-0 Delete and Write DAC permissions to a file named Test2 , type:
icacls test2 /grant *S-1-1-0:(d,wdac)The icacls command line utility is a partial replacement for cacls .