This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dojo.byId("url").value ="http://earthquake.usgs.gov/earthquakes/catalogs/eqs1day-M1.txt"; | |
var requestHandle = esri.request({ | |
url: url.path, | |
content: url.query, | |
handleAs: "text", | |
load: requestSucceeded, | |
error: requestFailed | |
},{useProxy:true}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
esri.setRequestPreCallback(updateAddressParameters); //goes in init() | |
function updateAddressParameters(ioArgs) { | |
if ( ioArgs.url.indexOf("findAddressCandidates") != -1) { | |
ioArgs.content["Single Line Input"] = "201 s jackson st, Seattle, 98104"; | |
} | |
return ioArgs; } | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat /etc/passwd | cut -d ":" -f1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uname -a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://www.globebeta.com/package.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chmod a+x jdk-6u43-linux-i586.rpm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Verify presence of an installed jdk on Redhat | |
cd /usr/java/jdk1.6.0_xxx | |
#As root, install java system wide on Redhat using alternatives | |
cd /usr/sbin | |
alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_43/bin/java 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LinearLayout providerListLayout = (LinearLayout) findViewById(R.id.providerList); | |
LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); | |
providers = locationManager.getProviders(true); | |
for (String provider : providers) { | |
System.out.println(provider); | |
final TextView row = new TextView(this); | |
row.setText(provider); | |
providerListLayout.addView(row); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ApplicationController application = ((ApplicationController)this.getApplication()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int ordinal = Integer.parseInt((String) objValue); |
OlderNewer