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
private static void ProcessRecievedData() { | |
Vector<Map<String, Value>> errorSensors = new Vector<Map<String, Value>>(); | |
for(Object keySet : allSensors.keySet()) { | |
// Snag the individual sensor | |
Sensor individualSensor = (Sensor) allSensors.get(keySet); | |
// remove the outliers | |
individualSensor.removeOutliers(); | |
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
// Boolean Error | |
if(!(sensor.data.elementAt(0) instanceof RealValue)) { | |
boolean firstVal = ((BoolValue)sensor.data.elementAt(0)).get(); | |
for(int index = 1; index < sensor.data.size()-1; index++) { | |
boolean indexValue = ( (BoolValue) sensor.data.elementAt(index)).get(); | |
if(indexValue != firstVal) { | |
map.put("booleanError", Value.v(indexValue)); | |
map.put("faultIndex", Value.v(index)); | |
break; | |
} |
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
private static void ProcessRecievedData() { | |
Vector<Map<String, Value>> errorSensors = new Vector<Map<String, Value>>(); | |
for(Object keySet : allSensors.keySet()) { | |
Sensor individualSensor = (Sensor)allSensors.get(keySet); | |
individualSensor.removeOutliers(); | |
//Send the individual sensor to our filters, if there is a detected error we will make sure to set the falutIndex. | |
Map<String, Value> filterSensor = ErrorFinder.errorParams(individualSensor); | |
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
package gov.dod.army.rdecom.tardec.tcctda; | |
import org.dxc.api.datatypes.*; | |
import java.util.Map; | |
import java.util.HashMap; | |
/** | |
* | |
* @author Jeremy Mange, Michael Duffy, Andrew Dunn |
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
private static Map<String, Value> intermittentError(Sensor sensor) { | |
Map<String, Value> map = new HashMap<String, Value>(); | |
Map<String, Value> abruptError = abruptError(sensor); | |
if(abruptError.size() == 0 || sensor.id.equals("ST516")) | |
return map; | |
int timeOfFault = ((IntegerValue)(abruptError.get("faultIndex"))).get() + INTERMITTENT_OFFSET; | |
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
default: | |
delivery_method: :smtp | |
smtp_settings: | |
tls: true | |
address: "smtp.gmail.com" | |
port: '587' | |
domain: "smtp.gmail.com" | |
authentication: :plain | |
user_name: "USERNAME" | |
password: "PASSWORD" |
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
agd@hygieia:/var/www/agdunn.net/projects$ sudo gem install mysql | |
Building native extensions. This could take a while... | |
ERROR: Error installing mysql: | |
ERROR: Failed to build gem native extension. | |
/usr/bin/ruby1.8 extconf.rb | |
checking for mysql_query() in -lmysqlclient... no | |
checking for main() in -lm... no | |
checking for mysql_query() in -lmysqlclient... no | |
checking for main() in -lz... no |
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
agd@hygieia:/var/www/agdunn.net/projects$ sudo gem install mysql | |
Building native extensions. This could take a while... | |
ERROR: Error installing mysql: | |
ERROR: Failed to build gem native extension. | |
/usr/bin/ruby1.8 extconf.rb | |
checking for mysql_ssl_set()... no | |
checking for rb_str_set_len()... no | |
checking for rb_thread_start_timer()... no | |
checking for mysql.h... no |
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
<VirtualHost *:80> | |
DocumentRoot "/var/www/agdunn.net/projects" | |
ServerName projects.agdunn.net | |
<Directory "/var/www/agdunn.net/projects"> | |
allow from all | |
Options None | |
</Directory> | |
</VirtualHost> |
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
[Thu Jan 20 13:10:44 2011] [alert] [client 72.14.186.110] /var/www/agdunn.net/projects/public/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration | |
[Thu Jan 20 13:10:45 2011] [alert] [client 72.14.186.110] /var/www/agdunn.net/projects/public/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration | |
[Thu Jan 20 13:10:45 2011] [alert] [client 72.14.186.110] /var/www/agdunn.net/projects/public/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration | |
[Thu Jan 20 13:10:45 2011] [alert] [client 72.14.186.110] /var/www/agdunn.net/projects/public/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration | |
[Thu Jan 20 13:10:45 2011] [alert] [client 72.14.186.110] /var/www/agdunn.net/projects/public/.htaccess: Invalid command 'RewriteEngine', pe |
OlderNewer