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 nogeek on November 11, 2010 00:26:08
Last update: November 11, 2010 00:29:43
This one is even more weird: it worked on Windows but failed on Linux, using default tools JDK1.6.0_20 on both. The exception thrown was:
java.lang.RuntimeException: Invalid conversion fro...
And the stack trace:
java.lang.RuntimeException: Invalid conversion fro...
This was the XSL used:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xs...
The problem was , DateUtil.java had two getDate methods, one taking long parameter, the other taking a String parameter. And Java's XSLT get confused about which one to use:
import java.util.Date;
import java.text.SimpleD...
Created by Dr. Xi on August 30, 2010 20:17:22
Last update: August 30, 2010 20:17:41
Characters \/:*?"<>| are forbidden in Windows file names. For Python, the effect of using a forbidden character in the file name is undetermined.
In the following session a file named mytest can be seen from the Windows Explorer, which contains 0 bytes - as confirmed by the read back in the session. But if you open the file with the invalid file name used to create the file (i.e., mytest: 1.txt ), you get the original contents.
C:\>python
Python 2.7 (r27:82525, Jul 4 2010, ...
Created by magnum on July 01, 2010 15:38:49
Last update: July 01, 2010 15:39:53
From Apache HTTPD docs: When acting in a reverse-proxy mode (using the ProxyPass directive, for example), mod_proxy_http adds several request headers in order to pass information to the origin server. These headers are: X-Forwarded-For The IP address of the client. X-Forwarded-Host The original host requested by the client in the Host HTTP request header. X-Forwarded-Server The hostname of the proxy server. Be careful when using these headers on the origin server, since they will contain more than one (comma-separated) value if the original request already contained one of these headers. For example, you can use %{X-Forwarded-For}i in the log format string of the origin server to log the original clients IP address, but you may get more than one address if the request passes through...
Created by nogeek on April 01, 2010 18:54:41
Last update: April 01, 2010 18:55:27
Start remote desktop client by clicking Start and Run, then enter mstsc.
Click the "Options" button, select the "Local Resources" tab, check "Clipboard"
More options are available when you click the "More..." button (share local drives etc.).
Created by voodoo on February 08, 2010 04:57:49
Last update: February 08, 2010 04:57:49
If you don't want to open an extra port for VNC or want extra security with SSH, you can setup an SSH tunnel for VNC. On Windows, you can do this with Putty or openssh .
Open a command window, and enter (using Putty as example):
C:\local\bin\plink.exe -ssh -2 -L localhost:5901:r...
When connecting with vncviewer , use localhost:5901 as server instead of remote_host:5901 .
If you use the setup frequently, it is more convenient to setup the tunnel as a Windows service . Assuming the name of the service is vnc_tunnel , the registry entry would look like:
Windows Registry Editor Version 5.00
[HKEY_...
Created by voodoo on November 28, 2009 17:27:16
Last update: January 26, 2010 03:46:20
Nothing describes this utility better than the utility's authors:
This utility, which has the most comprehensive knowledge of auto-starting locations of any startup monitor, shows you what programs are configured to run during system bootup or login, and shows you the entries in the order Windows processes them. These programs include ones in your startup folder, Run, RunOnce, and other Registry keys. You can configure Autoruns to show other locations, including Explorer shell extensions, toolbars, browser helper objects, Winlogon notifications, auto-start services, and much more. Autoruns goes way beyond the MSConfig utility bundled with Windows Me and XP.
http://technet.microsoft.com/en-us/sysinternals/bb963902.aspx
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 woolf on April 17, 2009 01:51:27
Last update: April 17, 2009 02:20:52
Configuration
Bring up the System Properties dialog and click the System Restore tab.
Usage
Bring up the System Restore tool from the Accessories -> System Tools -> System Restore menu.
Cleanup
Open disk properties (right click on the drive, select properties), in the general tab click Disk Cleanup , click the More Options tab to clean up space used by System Restore .
Reference
Windows XP System Restore Is Easy to Use
Created by woolf on January 24, 2009 21:20:15
Last update: January 24, 2009 21:20:15
Some tools to burn video files to DVD:
DVD Flick: http://www.dvdflick.net/
Works on Windows 2000 Professional, all versions of Windows XP or all versions of Windows Vista. Uses ffmpeg .
MEncoder + vcdimager or dvdauthor
Works on Windows and Linux. Less user friendly than DVDFlick but more flexible. The following seemed helpful:
http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-vcd-dvd.html
Created by Dr. Xi on October 23, 2008 03:54:04
Last update: October 23, 2008 03:57:44
Add validator plugin in struts-config.xml
<struts-config>
.
.
.
...
Set validate="true" on action form
<struts-config>
<!-- ========== Form Bean De...
Add validation rules in validation.xml
<?xml version='1.0' encoding='windows-1252'?>
<...
If you override validate , make sure super.validate is called.
package com.example;
import javax.servlet.h...
Read the documentation:
http://struts.apache.org/1.2.4/userGuide/dev_validator.html
Created by Dr. Xi on October 08, 2008 19:33:21
Last update: October 08, 2008 20:17:42
In sqlnet.ora , there's a parameter named NAMES.DEFAULT_DOMAIN that usually contains the value world . If you remove this parameter then you don't need to append .world . My sqlnet.ora contains three lines:
# sqlnet.ora Network Configuration File: C:\wo...
To force a lookup without NAMES.DEFAULT_DOMAIN appended, append a dot to the tnsname:
tnsping unqualified_tnsname_name.