This file contains hidden or 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
| ┌─────────────────────────────────────────────────┐ | |
| │ Початок роботи пристрою (увімкнення) │ | |
| └─────────────────────────────────────────────────┘ | |
| │ | |
| v | |
| ┌─────────────────────────────────────────────────┐ | |
| │1. Збирання сигналів протягом 8 секунд: │ | |
| │ - Частота дискретизації 100 Гц │ | |
| │ - Усього 800 записів часового ряду │ | |
| │ (акселерометр, гіроскоп, барометр, ЕКГ) │ |
This file contains hidden or 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
| Exception in thread "main" org.apache.commons.configuration.ConversionException: 'graphite.port' doesn't map to an Integer object | |
| at org.apache.commons.configuration.AbstractConfiguration.getInteger(AbstractConfiguration.java:848) | |
| at org.apache.commons.configuration.AbstractConfiguration.getInt(AbstractConfiguration.java:809) | |
| at com.odesk.agora.configuration.ConfigurationFactory.processConfiguration(ConfigurationFactory.java:275) | |
| at com.odesk.agora.configuration.ConfigurationFactory.processConfiguration(ConfigurationFactory.java:400) | |
| at com.odesk.agora.configuration.ConfigurationFactory.build(ConfigurationFactory.java:178) | |
| at com.odesk.agora.command.ConfiguredCommand.parseConfiguration(ConfiguredCommand.java:75) | |
| at com.odesk.agora.command.ConfiguredCommand.run(ConfiguredCommand.java:58) | |
| at com.yammer.dropwizard.cli.Cli.run(Cli.java:53) | |
| at com.yammer.dropwizard.Service.run(Service.java:61) |
This file contains hidden or 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
| 1)SD Card Formatter - Format SD Card | |
| 2) | |
| sudo diskutil unmount /dev/disk2s1 | |
| sudo dd if=/Users/ivanursul/Downloads/2017-07-05-raspbian-jessie.img of=/dev/rdisk2 bs=1m | |
| sudo diskutil eject /dev/rdisk2 | |
| 3) | |
| sudo mv /var/lib/dpkg/info/linux* ./ |
This file contains hidden or 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 org.startup.queue.config; | |
| import com.codahale.metrics.JmxReporter; | |
| import com.codahale.metrics.MetricFilter; | |
| import com.codahale.metrics.MetricRegistry; | |
| import com.codahale.metrics.graphite.Graphite; | |
| import com.codahale.metrics.graphite.GraphiteReporter; | |
| import com.codahale.metrics.graphite.GraphiteReporter.Builder; | |
| import com.codahale.metrics.health.HealthCheckRegistry; | |
| import com.codahale.metrics.jvm.GarbageCollectorMetricSet; |
This file contains hidden or 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/sh | |
| cd /home/pi/camera | |
| aws s3 sync . s3://iursul-camera-snapshots |
This file contains hidden or 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/sh | |
| cd /home/pi/camera | |
| date=`date '+%Y/%m/%d/'` | |
| time=`date '+%H:%M:%S'` | |
| mkdir -p $date | |
| avconv -y -loglevel debug -rtsp_transport tcp -i "rtsp://admin:Dadmin17@194.44.110.210:37002/cam/realmonitor?channel=1&subtype=0" -q:v 9 -s 1920x1080 -vframes 1 $date$time.png |
This file contains hidden or 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
| 0x3F0B65817dc2CC9768C63f11725489F4B377D008 |
This file contains hidden or 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
| org.apache.kafka.connect.errors.ConnectException: org.postgresql.util.PSQLException: ERROR: column "device_id" is of type bigint but expression is of type timestamp without time zone | |
| Hint: You will need to rewrite or cast the expression. | |
| Where: PL/pgSQL function "$justone$kafka$connect$sink".flush(character varying,character varying,character varying[],integer[],bigint[]) line 10 at EXECUTE | |
| at com.justone.kafka.sink.pg.json.PostgreSQLSinkTask.flush(PostgreSQLSinkTask.java:402) | |
| at org.apache.kafka.connect.sink.SinkTask.preCommit(SinkTask.java:117) | |
| at org.apache.kafka.connect.runtime.WorkerSinkTask.commitOffsets(WorkerSinkTask.java:305) | |
| at org.apache.kafka.connect.runtime.WorkerSinkTask.iteration(WorkerSinkTask.java:164) | |
| at org.apache.kafka.connect.runtime.WorkerSinkTask.execute(WorkerSinkTask.java:148) | |
| at org.apache.kafka.connect.runtime.WorkerTask.doRun(WorkerTask.java:146) | |
| at org.apache.kafka.connect.runtime.WorkerTask.run(WorkerTask.java:190) |
This file contains hidden or 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
| Original documentation: https://github.com/justonedb/kafka-sink-pg-json | |
| 1. Place the justone-kafka-sink-pg-json-1.0.jar in the Kafka directory lib | |
| 2. Place property names in the config folder: | |
| justone-kafka-sink-pg-json-standalone.properties | |
| justone-kafka-sink-pg-json-connector.properties | |
| 3. Configure this files | |
| 4. Install the sql file: | |
| psql -U ${user} -h ${host} -d ${database} -f "/Users/ivanursul/Downloads/kafka-sink-pg-json/install-justone-kafka-sink-pg-1.0.sql" |
This file contains hidden or 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 alpha = 3; | |
| int x = 5; | |
| int i = 1; | |
| double iterResult; | |
| double result = 1.0 | |
| do { | |
| numVal = 1; | |
| for (int j = 0; j < i; j++) { |
NewerOlder