Search found 116 matches

by andg
Sat Apr 27, 2013 6:16 am
Forum: Code Corner
Topic: json, CAN
Replies: 20
Views: 82507

Re: json, CAN

production runs through manufacturing. In 24 hrs product had velocity of 26 units/sec and we need a way to expose business intelligence through an api so that adjunct systems can communicate. {)id: BSON, product: "Cascade", invent_trans_id: 3445}, {)id: BSON, product: "Cascade", ...
by andg
Sat Apr 27, 2013 6:13 am
Forum: Code Corner
Topic: json, CAN
Replies: 20
Views: 82507

Re: json, CAN

map = function() { var res = 0; for (i = 0; i < this.marks.length; i++) { res = res + this.marks[i]; } var median = res/this.marks.length; emit(this._id,{marks:this.marks,median:median}); } reduce = function (k, values) { values.forEach(function(value) { result = value; }); return result; } group({...
by andg
Sat Apr 27, 2013 6:11 am
Forum: Code Corner
Topic: json, CAN
Replies: 20
Views: 82507

Re: json, CAN

def avg_speed if ( m = db.sensor.count(speed: {$exists:true}) ) < 1 raise "we don't know if we're moving!" db.sensors.aggregate( [ { $group: { _id: null, count: { $sum: 1 } } }] ) / m end aggregation provides powerful framework to do anything outside of the simple sum succintly But what w...
by andg
Sat Apr 27, 2013 6:11 am
Forum: Code Corner
Topic: json, CAN
Replies: 20
Views: 82507

Re: json, CAN

at this point external event handlers can be attached that log json data of any request. :before_transition :park => do moving? transition[neutral] end Optimizing state machine to do simplest, most critical validation just before the transition. :event park_brake transition[park] end def moving? db....
by andg
Sat Apr 27, 2013 6:08 am
Forum: Code Corner
Topic: json, CAN
Replies: 20
Views: 82507

Re: json, CAN

If multiple cores of co processors and I need to re google incase it was cuda processors. We timestamp whenever the processor is able to process in the most thread safe manner Also designing the system to handle failures by passing through the original voltage back through the harness. an inline fai...
by andg
Sat Apr 27, 2013 6:07 am
Forum: Code Corner
Topic: json, CAN
Replies: 20
Views: 82507

Re: json, CAN

controllable multi core assign processes to muliple cores based on number of detected cores as indicated by hearbeat of co processors Ever played a ps3? coda google search also an example of point in time data. monitoring of an online app is the single greatest ROI example So here is where things ge...
by andg
Sat Apr 27, 2013 5:58 am
Forum: Code Corner
Topic: json, CAN
Replies: 20
Views: 82507

Re: json, CAN

allows abstraction of bi tools to analyze pulse of signal that can be tied to signals that include voltages of every sensor providing feedback Analyzing sensors with direct access to query the signals at different intervals within the stroke will allow tuning control to tie back into the forecasted ...
by andg
Sat Apr 27, 2013 5:56 am
Forum: Code Corner
Topic: json, CAN
Replies: 20
Views: 82507

Installation distributed computing and timing

oscilllation and synch the per second signal is ignored, it is just log data. It may come in faster or slower depending on CPU utilization basing distributed storage on universal cycle count of an engine rather than per second or per transaction. In distributed environments dedicated database quickl...
by andg
Sat Apr 27, 2013 5:54 am
Forum: Code Corner
Topic: json, CAN
Replies: 20
Views: 82507

Precision

.sensor from laser readings nightly to apollo 1 Gw laser measuring the distance to a trillinth. {_id, timestamp: 64bit_int, distance: 356,700.83482019383433 } allows very precise point in time to dynamic events Further precision can be created by continually updating thought the millisecond. These i...
by andg
Sat Apr 27, 2013 5:48 am
Forum: Code Corner
Topic: json, CAN
Replies: 20
Views: 82507

GridFS for large documents

now lets say we want to tie in a shutter from an external web cam. we need to tie in an embedded document within the logger with the image captured from the camera so it gets tied to the sensors BSON id begins with the timestamp so just by logging data we get the timestamp and we can log any type of...