Recent Notes
Displaying keyword search results 1 - 12
Created by freyo on September 09, 2011 11:43:36
Last update: September 09, 2011 11:45:45
When you run automated Android tests with Eclipse or from the command line, you get text output, which isn't good for reporting purposes. If you run a large set of test cases with automated build, the text report isn't very helpful. Fortunately, Android CTS generates test reports in XML with accompanying XSL to make it look nice in a browser. To run your own tests with Android CTS: Download Android CTS Make a new directory MyRepository under android-cts , alongside the existing repository directory. Copy host_config.xml from repository to MyRepository Create directory plans under MyRepository , add a test plan ( MyTests.xml ):
<?xml version="1.0" encoding="UTF-8"?> <TestPla... Create directory testcases under MyRepository . Copy TestDeviceSetup.apk from repository/testcases to MyRepository/testcases Under MyRepository/testcases , create a test...
Created by freyo on August 25, 2011 09:07:40
Last update: August 25, 2011 20:45:43
This is a list of built-in Android permission values: Permission Description Since API Level android.permission.ACCESS_CHECKIN_PROPERTIES Allows read/write access to the "properties" table in the checkin database, to change values that get uploaded. 1 android.permission.ACCESS_COARSE_LOCATION Allows an application to access coarse (e.g., Cell-ID, WiFi) location 1 android.permission.ACCESS_FINE_LOCATION Allows an application to access fine (e.g., GPS) location 1 android.permission.ACCESS_LOCATION_EXTRA_COMMANDS Allows an application to access extra location provider commands 1 android.permission.ACCESS_MOCK_LOCATION Allows an application to create mock location providers for testing 1 android.permission.ACCESS_NETWORK_STATE Allows applications to access information about networks 1 android.permission.ACCESS_SURFACE_FLINGER Allows an application to use SurfaceFlinger's low level features 1 android.permission.ACCESS_WIFI_STATE Allows applications to access information about Wi-Fi networks 1 android.permission.ACCOUNT_MANAGER Allows applications to call into AccountAuthenticators. Only the system can get this permission. 5 android.permission.AUTHENTICATE_ACCOUNTS...
Created by voodoo on June 14, 2011 08:10:42
Last update: June 14, 2011 08:10:42
The command " ifconfig -a " does not list the DNS servers. Use " cat /etc/resolv.conf " to look at the DNS server configuration. It works for DHCP configured network interfaces also.
$ cat /etc/resolv.conf
# Generated by NetworkMa...
If no DNS server is configured:
$ cat /etc/resolv.conf
# Generated by NetworkMa...
Created by Dr. Xi on March 28, 2011 11:11:33
Last update: March 28, 2011 11:13:21
grep is a versatile command with many variations (grep, egrep, fgrep, then various implementations). It uses a regula expression (regex) pattern to filter input. But then there are basic and extended flavors of regex - leading to even more confusion. And, beware that there are lots of bad examples of regex in the wild... There are two critical questions to ask when you use grep: which grep implementation are you using? what is the flavor of the regex? Here are some examples for gnu grep v2.7:
# Find all numbers (no decimal point), basic regex... Use the -o flag to show only the matching part instead of the whole matching line: grep -o -E '\b[0-9]{2}\b' The good thing about the gnu grep is that it...
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:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1" to make curl look like Firefox.
Created by Dr. Xi on September 02, 2008 18:55:18
Last update: January 18, 2010 22:36:24
Remember the times when you googled for solutions to your technical problems? How much time did you spend on wading through the zillions of links to find the ones that are of interest to you? Wouldn't you hope that you can find the answer right away the second time around? How many times were you forced to peruse hundreds of pages of documentation for a very specific need? Did you ever need to experiment with various alternatives because the documentation was vague? Wouldn't you prefer that a shortcut is available when the same thing is needed again? Xinotes is here to record your technical findings so that you won't have to go through the same process again when the problem reappears. Experience has taught us...
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 Dr. Xi on September 29, 2008 23:05:12
Last update: September 29, 2008 23:06:16
These variables are set or used by the Unix shell to modify its behavior. Variable Description ENV=file Name of script that gets executed at startup; Usually, ENV=$HOME/.kshrc FCEDIT=file Editor used by fc (fix command) command. If $FCEDIT is not defined, use $EDITOR, otherwise use the default (vi or ed). FPATH=dirs Directories to search for function definitions; undefined functions are set via typeset -fu . FPATH is searched when these functions are first referenced. HISTFILE=file File in which to store command history. Default is $HOME/.sh_history for Korn shell, $HOME/.bash_history for Bash. If not set, history is lost after logout. HISTSIZE=n Max number of commands to keep in history. HOME=dir Home directory; set by login from passwd file. IFS='chars' Internal field separators. Default is space, tab, and...
Created by Dr. Xi on June 03, 2008 03:42:48
Last update: September 07, 2008 18:34:10
When I ran the vssadmin command to view the storage used by "System Restore and Shadow Copies" , vista complained that I didn't have the right permissions, even though I was logged in as administrator!
Microsoft Windows [Version 6.0.6000]
Copyright ...
To make it work you have to start the command prompt with "elevated administrator" privileges:
1. Click the "start" button and enter "cmd" into the "Start Search" box.
2. Right click the "cmd" icon in the "Programs" list and select "Run as Administrator".
Alternatively, it you already set up a shortcut for the command prompt. just right click the shortcut and select "Run as Administrator".
Created by Dr. Xi on January 02, 2008 19:47:03
Last update: January 02, 2008 19:47:03
You are editing part of a file and you did a text search which carried you to a different location. But now you want to go back to your original location: use the `` command.
The following came from the Vim manual:
When you make a jump to a position with the "G" command, Vim remembers the
position from before this jump. This position is called a mark. To go back
where you came from, use this command:
``
This ` is a backtick or open single-quote character.
If you use the same command a second time you will jump back again. That's
because the ` command is a jump itself, and the position from before this jump
is remembered.
Created by Dr. Xi on June 02, 2007 02:11:54
Last update: August 20, 2007 03:26:54
Use the ldd command to display shared library (dynamic) dependencies of an executable or shared library object. This is a typical output:
[patrick@dellpc ~]$ ldd /bin/ls
linux-g...
If ldd complains that some library can't be found, you can set the environment variable LD_LIBRARY_PATH to alter the search path for shared libraries.
Created by Dr. Xi on June 02, 2007 02:52:24
Last update: June 02, 2007 02:53:12
You can use more or less to display a file on the screen, one screen at a time.
However, less is more versatile and allows both forward and backword movements. You can also use vi commands to switch files ( e, n, p ), search ( /, ? ) and navigate through the file. Press the "H" key to get online help for less .
One interesting command for less is F (forward forever), which makes it behave like tail -f . Since you can break out of the "forward forever" mode and scroll backwords or do searching, this command makes less a better tail -f .