Recent Notes
Displaying keyword search results 1 - 10
Created by Dr. Xi on January 09, 2012 09:13:38
Last update: January 09, 2012 09:14:18
Unlike CVS, svn does not have a tag command, you create a new tag with copy :
$ svn copy http://svn.example.com/repos/calc/trunk...
The -r flag may be used to create a tag from an earlier revision:
-r [--revision] ARG : ARG (some commands al...
Created by torstello on January 06, 2012 07:32:25
Last update: January 06, 2012 07:32:25
rdoc documentation:
usage(*args)
Display usage information ...
put something like this on top of your script:
# == Synopsis
# Blah blah blah.
#
...
method to display it
def output_usage
RDoc::usage('usa...
bind it to the '-h' option via optionparser
opts.on('-h', '--help') { output_help }
...
source
http://blog.toddwerth.com/entries/5
Created by freyo on August 17, 2011 12:29:46
Last update: August 17, 2011 12:29:46
In Android.mk , you can define LOCAL_JARJAR_RULES like this:
LOCAL_JARJAR_RULES := $(LOCAL_PATH)/jarjar-rules.t...
and in jarjar-rules.txt define a rule like this:
rule org.bouncycastle.** com.android.@0
The build will change all org.bouncycastle to com.android.org.bouncycastle . Therefore, in your classes which are dependent on the library produced, the import statements should look like:
import com.android.org.bouncycastle...
Help for the jarjar utility (in prebuilt/common/jarjar/ ):
$ java -jar jarjar-1.0rc8.jar
Jar Jar Links - ...
Created by freyo on July 29, 2011 16:04:45
Last update: July 29, 2011 16:04:45
To start the Settings application:
# am start -n com.android.settings/.Settings
St...
To start the Browser :
# am start -n com.android.browser/.BrowserActivity...
To start the phone dialer:
# am start tel:210-385-0098
Starting: Intent { ...
Help for am command:
# am
usage: am [subcommand] [options]
...
Created by jinx on April 05, 2011 11:34:57
Last update: April 05, 2011 11:35:37
There are two variables you can use while writing command line applications with PHP - $argc and $argv :
$argc is the number of arguments plus one (the name of the script running).
$argv is an array containing the arguments, starting with the script name as number zero ( $argv[0] ).
Example:
#!/usr/bin/php
<?php
var_dump($argv);
?>
Created by freyo on April 01, 2011 12:26:17
Last update: April 01, 2011 12:26:17
You can create a new android virtual device (AVD) with the android command from the command line:
$ tools/android create avd --target 2 --name ANewA...
Or, launch the GUI to create one if you give no command line argument:
$ tools/android
Starting Android SDK and AVD Ma...
Created by Dr. Xi on February 28, 2011 12:29:19
Last update: February 28, 2011 12:30:40
The Unix shell passes these parameters to the shell script:
Variable Meaning
$* A single string representing all command line arguments separated by $IFS (internal field separator, usually a space)
$@ A sequence of strings representing the command line arguments.
$1,$2...$n $1 is the first argument, $2 is the second argument, and so on...
$0 The name of the script itself.
$# The number of arguments.
Example shell script ( sharg.sh ):
#!/bin/sh
echo $# arguments passed to $0: $@
...
Output for ./sharg.sh "a b c d" :
1 arguments passed to ./sharg.sh: a b c d
here ...
Output for ./sharg.sh a "b c" d :
3 arguments passed to ./sharg.sh: a b c d
here ...
Created by voodoo on February 07, 2010 04:59:36
Last update: February 07, 2010 05:01:41
From X(7) manual page : Although the layout of windows on a display is controlled by the window manager that the user is running (described below), most X programs accept a command line argument of the form -geometry WIDTHxHEIGHT+XOFF+YOFF (where WIDTH, HEIGHT, XOFF, and YOFF are numbers) for specifying a preferred size and location for this application's main window. The WIDTH and HEIGHT parts of the geometry specification are usually measured in either pixels or characters , depending on the application. The XOFF and YOFF parts are measured in pixels and are used to specify the distance of the window from the left or right and top and bottom edges of the screen, respectively. Both types of offsets are measured from the indicated edge of...
Created by Bambi on August 07, 2009 03:47:56
Last update: August 07, 2009 03:59:15
Code:
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 May 19, 2009 19:53:23
Last update: May 19, 2009 19:54:15
sftp -oPort=10022 user@ftp.testsite.com:/home_dir
It's important that you use = between the oPort option and the actual port number. This was what I got without it:
$ sftp -oPort 10022 user@ftp.testsite.com:/home_di...