Recent Notes

Displaying keyword search results 1 - 12
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 freyo on April 12, 2011 13:30:33    Last update: May 09, 2011 14:43:46
You can look at the file /data/system/packages.xml to find out which package is using a particular sharedUserId . Copy the file /data/system/packages.xml to the local drive with: adb pull /data/system/packages.xml packages.xml Open the file in an editor, search for the shared user id, for example: com.google.android.apps.maps Search for packages with the corresponding numerical id of sharedUserId , for example: sharedUserId="10017" Or, Programatically : // import android.os.Process; PackageInfo pkgIn...
Created by freyo on August 27, 2010 14:33:14    Last update: August 27, 2010 14:33:14
More foes running Android emulator on 64-bit Fedora. Got warning "opening audio output failed". Added -debug audio flag to diagnose problem. $ tools/emulator -debug audio @Simple8 emulator...
Created by Dr. Xi on March 31, 2010 19:18:33    Last update: March 31, 2010 19:18:33
Query the dba_users view to find locked accounts. SQL> select username, account_status, lock_dat...
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 Dr. Xi on September 18, 2008 21:38:27    Last update: February 06, 2010 21:55:26
Editing Shortcut Meaning Ctrl+C Copy Ctrl+V Paste Ctrl+X Cut Ctrl+Z Undo Ctrl+F Find Ctrl+G Find Again Viewing Shortcut Meaning Esc Stop Ctrl+R Reload Mozilla/NS: Ctrl+Shift+R, IE: Ctrl-F5 Force reload (not from cache) Home Go to top of page End Go to end of page Page Up Scroll up one page Page Down Scroll down one page Ctrl+- (minus sign) Make fonts smaller Ctrl++ (plus sign) Make fonts bigger Ctrl+0 Restore default font size Tools Shortcut Meaning Alt Toggle menu bar (IE7 only) Ctrl+T Open new tab Ctrl+N Open new window Ctrl+P Print Ctrl+I, Ctrl+B Bookmarks Ctrl+H History Ctrl+U View page source Ctrl+W Close Window or tab if more than one tab is open Ctrl+L Go to location box Ctrl+E Go to search box
Created by Dr. Xi on February 04, 2009 16:16:03    Last update: February 06, 2010 21:53:40
Action Shortcut Bring up context menu Shift+F10 Move active window Alt+Space, M Minimize active window Alt+Space, N Move cursor to web browser address bar and select the text Alt+D Minimizes all open windows and displays the desktop Windows Logo+D Restore minimized windows Repeat Windows Logo+D Open windows explorer Windows Logo+E Navigate through tabs in browser Ctrl+TAB Close tab in browser Ctrl+W Page Back Alt + LeftArrow Page Forward Alt + RightArrow Reload Page F5 Reload Page Override Cache Ctrl+F5 Find computer CTRL+Windows Logo+F Open Run dialog box Windows Logo+R Display Start menu CTRL+ESC (same as the Windows Logo key) Move the focus on the taskbar so you can TAB to the Quick Launch tool bar, the Taskbar etc. CTRL+ESC,ESC Quick Launch shortcuts in Windows Vista...
Created by voodoo on January 24, 2010 06:29:11    Last update: January 24, 2010 19:31:22
SIKULI is Jython. AutoPy is Python. Both use bitmaps to find areas of interest. It seems that SIKULI comes with an IDE but AutoPy doesn't. A sample SIKULI script captured from the project site: A sample AutoPy script from the project site: import autopy def where_is_the_monkey_i_say(): ...
Created by Dr. Xi on September 18, 2008 23:37:43    Last update: September 18, 2008 23:37:54
For IE: Open "Internet Options" dialog Select the security tab Click the "Custom Level" button Scroll from bottom up and find the "Scripting" section Select "Disable" under "Active scripting" For Firefox: Select Options from the Tools menu Click the Content tab Un-check "Enable JavaScript"
Created by Dr. Xi on December 12, 2007 20:30:01    Last update: December 12, 2007 20:32:23
This is a script to tail a log file through the web browser. It uses AJAX, apache web server, mod_python, UNIX utilities tail (requires the --lines switch) and wc . The log file may reside on the web server or any other host accessible from the web server through SSH. Although it's written in python, it should be easy to port to other languages such as Perl. Apache httpd.conf : LoadModule python_module modules/mod_python.so ... Python script: import time, os from os.path import basename ...
Created by Dr. Xi on September 29, 2007 03:17:40    Last update: September 29, 2007 03:17:40
I have a lot of files under the "My Documents" folder on the C: drive, which is running out of space. I wanted the move it to the D: drive which still has plenty of space. I searched the net but didn't find any answer. However, it turned out to be quite easy: 1. Open Windows explorer 2. Right click on the "My Documents" folder under C:\Documents and Settings\MyName 3. Drag it to the new location and select "Move Here"!
Created by Dr. Xi on August 29, 2007 03:50:17    Last update: August 29, 2007 03:53:02
The command lsof lists all open files. Here are some simple uses: 1. List what files are in use by process with id 2512: /usr/sbin/lsof -p 2512 2. To find the process that has /u/abe/foo open, use: lsof /u/abe/foo 3. To find who's accessing the CDROM: $ /usr/sbin/lsof /media/cdrom COMMAND PID ... 4. To list all files using any protocol on port 80: lsof -i :80 This is a link to the man page: http://www.netadmintools.com/html/lsof.man.html