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
//Is this a 203 or larger? | |
if(thisNdef.getMaxSize() < aaRecord.toByteArray().length + idRecord.toByteArray().length) | |
{ | |
idRecord = NdefRecord.createMime("text/plain", Integer.toString(tagMetaData.getInt("i")).getBytes(Charset.forName("US-ASCII"))); | |
} |
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
NdefRecord aaRecord = NdefRecord.createApplicationRecord("io.d0"); | |
NdefRecord idRecord = NdefRecord.createExternal("io.d0:tag", Integer.toString(tagType), tagMetaData.toString().getBytes(Charset.forName("US-ASCII"))); |
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
)]}' | |
{"status":"ERROR","errorCode":"SERVER_ERROR","message":"An error occurred while processing your purchase. Please try again later."} |
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
$StopCode = array(0 => 'a', 1 => 'a', 2 => 'a',3 => 'a'); | |
$ValidStops = array(); | |
$ch = curl_init(); | |
for($a = 0; $a < 26; $a++) | |
{ | |
for($b = 0; $b < 26; $b++) | |
{ | |
for($c = 1; $c < 26; $c++) | |
{ | |
for($d = 1; $d < 26; $d++) |
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
<journey> | |
<mode>bus</mode> | |
<substop>0</substop> | |
<serviceID>6</serviceID> | |
<origin>Engineers Court</origin> | |
<destination>Station Road ED</destination> | |
<arrive>17:57</arrive> | |
<depart>17:57</depart> | |
<timetable-arrive>17:57</timetable-arrive> | |
<timetable-depart>17:57</timetable-depart> |
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
<entity> | |
<id>N329~20Przrgnel~20Whapgvba~20Jrfg~b10h~-7bn~33</id> | |
<code/> | |
<lat>51.45297</lat> | |
<lng>-0.94911</lng> | |
<title>A329 Cemetary Junction West</title> | |
<type>33</type> | |
</entity> |
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
<entity> | |
<id>Oebnq~20Fgerrg~20Znyy~b10v~-7jf~11</id> | |
<code/> | |
<lat>51.45438</lat> | |
<lng>-0.97719</lng> | |
<title>Broad Street Mall(696)</title> | |
<type>11</type> | |
</entity> |
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
<entity> | |
<id>100~20Oebbx~20Qevir~20-~20eqtngwq~b0su~-7lf~44</id> | |
<code/> | |
<lat>51.4255</lat> | |
<lng>-0.98439</lng> | |
<title>100 Brook Drive - rdgatjd</title> | |
<type>44</type> | |
</entity> |
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
AlarmManager am = (AlarmManager)getSystemService(ALARM_SERVICE); | |
Intent Poller = new Intent(this, ZenossPoller.class); | |
PendingIntent Monitoring = PendingIntent.getService(this, 0, Poller, PendingIntent.FLAG_UPDATE_CURRENT); | |
am.setRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP, 0, Long.parseLong(settings.getString("BackgroundServiceDelay", "60")) * 1000, Monitoring); |
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
HttpPost httpost = new HttpPost(ZENOSS_INSTANCE + "/zport/dmd/Events/evconsole_router"); | |
httpost.addHeader("Content-type", "application/json; charset=utf-8"); | |
httpost.setHeader("Accept", "application/json"); | |
JSONObject dataContents = new JSONObject(); | |
dataContents.put("evid",_EventID); | |
JSONArray data = new JSONArray(); | |
data.put(dataContents); | |