- Тонкисти, туториалы, заметки и результаты исследования Jasper BI
- Заметки по Pentaho BI
- Заметки по Spago BI
- Заметки по BIRT
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
| void setup() | |
| { | |
| stop_motor(); | |
| } | |
| void stop_motor() | |
| { | |
| for (int thisPin = 2; thisPin <= 5; thisPin++){ | |
| digitalWrite(thisPin, LOW); | |
| } |
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
| #include "step_motor.h" | |
| #define STEP_INTERVAL 2000 | |
| #define STEP_DELAY 0 | |
| #define STEPS 48*1 | |
| int inSize = 0; // Переменная которая будет содержать размер буфера | |
| char str[128]; // Так как типа string тут нет, будем использовать массив символов | |
| bool active; |
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
| #define led 13 | |
| String input_string = ""; | |
| const String Led_off = "switch led off"; | |
| const String Led_on = "switch led on"; | |
| bool led_running; | |
| void setup() { | |
| Serial.begin(9600); | |
| } |
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
| import serial | |
| import os | |
| import sys | |
| #открываем порт | |
| ser = serial.Serial('COM14', 9600, dsrdtr = 1,timeout = 0) | |
| #процедура передачи данных в порт | |
| def ledON(): | |
| #включение светодиода (тест) |
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
| /* | |
| * Arduino COM-port echo string example | |
| * | |
| * Set COM-port frequency, send some string & wait for answer | |
| */ | |
| #define SERIAL_RATE 9600 | |
| #define READ_DELAY 200 | |
| void setup() { |
- Скачиваем и устанавливаем jdk-8u111-windows-x64
- Скачиваем и устанавливаем jre-8u111-windows-x64
- Добавляем переменные среды (пути могут отличаться):
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_111\bin
JRE_HOME=C:\Program Files\Java\jre1.8.0_111
- Загружаем дистрибутив All In One Spago BI со страницы загрузок
- Распаковываем в нужную папку, например:
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
| def long_to_bytes(long_int, base=160): | |
| return reduce(lambda r, p: r + chr(long_int >> max(p - 8, 0) & 0xff), range(base, 0, -8), "") | |
| def bytes_to_long(bytes_string): | |
| return reduce(lambda r, c: (r << 8) + ord(c), bytes_string, 0) | |
| a = 0xffffffffffffffffffffffffffffffffffffffff | |
| foo = long_to_bytes(a) | |
| foo | |
| bar = bytes_to_long(foo) |
- BIRT представляет из себя интегрированную среду разработки отчетности.
- Удалось реализовать вывод данных sql-запроса в виде таблицы, не удалось настроить группировку строк, т.к. в процессе предпросмотра отчета возникали ошибки, слабо отражающие суть проблемы.
- Не представляется возможным выполнить публикацию отчета в BI-платформу, максимум — можно на локальной машине просмотреть в браузере отчет.
- Был установлен LogicalDOC, интерфейс которого не предоставляет возможности заведения отчета в систему.
- Довольно сложный процесс построения диаграмм.
- Отсутствует всеми любимая диаграмма Ганта, зато обычные диаграммы можно построить во всеми нелюбимом 3D.
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
| // array of custom type | |
| User[] users = new User[3] { new User("Betty", 23), // name, age | |
| new User("Susan", 20), | |
| new User("Lisa", 25) }; | |
| // sort array by name | |
| Array.Sort(users, delegate(User user1, User user2) { | |
| return user1.Name.CompareTo(user2.Name); | |
| }); | |
| // write array (output: Betty23 Lisa25 Susan20) |