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
javax.servlet.ServletException: Servlet.init() for servlet api-controller threw exception | |
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190) | |
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92) | |
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126) | |
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70) | |
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) | |
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) | |
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:567) | |
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330) | |
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829) |
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
#!/bin/bash | |
# chkconfig: 2345 95 20 | |
# description: UniFi system | |
# processname: UniFi | |
ctrl_start() | |
{ | |
#nohup java -jar JarFile.jar </dev/null >>myLogFile 2>>myErrorFile& | |
java -jar /usr/UniFi/lib/ace.jar start & | |
} |
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
yum install mongo-stable mongo-stable-server mongo-stable-debuginfo | |
chkconfig --levels 235 mongod on | |
/etc/init.d/mongod start | |
wget http://www.ubnt.com/downloads/unifi/2.3.8/UniFi.unix.zip | |
unzip UniFi.unix.zip | |
mv UniFi /usr/ |
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
public void onNewIntent(Intent intent) | |
{ | |
Tag tagFromIntent = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG); | |
WriteTag(tagFromIntent); | |
} | |
public void WriteTag(final Tag receivedTag) | |
{ | |
((Thread) new Thread() | |
{ |
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
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android" | |
android:minWidth="32dp" | |
android:minHeight="32dp" | |
android:updatePeriodMillis="86400000" | |
android:initialLayout="@layout/widget2" | |
android:resizeMode="horizontal|vertical" | |
android:widgetCategory="home_screen|keyguard"> | |
</appwidget-provider> |
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
<receiver android:name="net.networksaremadeofstring.zeus.ZeusHalogenWidget" android:label="Zeus Halogen Widget"> | |
<intent-filter> | |
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> | |
</intent-filter> | |
<meta-data android:name="android.appwidget.provider" android:resource="@xml/widget" /> | |
</receiver> |
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
<?php | |
require_once 'common.php'; | |
$DEVICEID = $_GET['deviceid']; | |
$consumer = new HTTP_OAuth_Consumer(constant('PUBLIC_KEY'), constant('PRIVATE_KEY'), 'XXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXX'); | |
$params = array( | |
'supportedMethods' => constant('TELLSTICK_TURNON') | constant('TELLSTICK_TURNOFF'), | |
'id' => $DEVICEID, | |
'response' => 'json' | |
); | |
$response = $consumer->sendRequest(constant('REQUEST_URI').'/device/turnOn', $params, 'GET'); |
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
public static void switchSomething(final int ID, final boolean toggle) | |
{ | |
((Thread) new Thread() | |
{ | |
public void run() | |
{ | |
try | |
{ | |
DefaultHttpClient client = new DefaultHttpClient(); | |
HttpParams params = new BasicHttpParams(); |
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
//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"))); | |
} |
NewerOlder