mv application.properties application.yml
spring:
profiles:dev
server:
port:81
---
spring:
profiles:prod
server:
port:80
mvn clean package
java -jar -Dspring.profiles.active=dev target/initial-boot-app-0.0.1-SNAPSHOT.jar
Actuator:
https://www.linkedin.com/learning/spring-boot-essential-training/spring-boot-actuator
localhost:8080/env
/health
/mappings
/health
/metrics
/configprops
/env
/loggers
/mappings
Spring Security
https://www.linkedin.com/learning/spring-boot-essential-training/implementing-spring-security
spring.thymeleaf.cache=false
2019-11-27
2019-11-26
Java Stream API
Processing Data with Java SE 8 Streams, Part 1
https://www.oracle.com/technical-resources/articles/java/ma14-java-se-8-streams.html
Part 2: Processing Data with Java SE 8 Streams
https://www.oracle.com/technical-resources/articles/java/architect-streams-pt2.html
Package java.util.stream
https://docs.oracle.com/javase/8/docs/api/java/util/stream/package-summary.html
Interface Stream
https://docs.oracle.com/javase/8/docs/api/?java/util/stream/Stream.html
https://www.youtube.com/watch?v=t1-YZ6bF-g0
Intermediate operations:
filter
map
flatmap
sort (sorted?)
anyMatch
distinct
findFirst
skip
Terminal operations:
forEach
collect
reduce
count
min
max
summaryStatistics
Stream API,part 1 https://www.youtube.com/watch?v=O8oN4KSZEXE
Intermediate operations:
filter
map
flatmap
peek
sorted
distinct
limit
skip
unordered
parallel
sequential
Terminal operations:
forEach, iterator
find[First|All]
[all|any|non]Match
reduction, collectors
Stream API,part 2 https://www.youtube.com/watch?v=i0Jr2l3jrDA
https://www.oracle.com/technical-resources/articles/java/ma14-java-se-8-streams.html
Part 2: Processing Data with Java SE 8 Streams
https://www.oracle.com/technical-resources/articles/java/architect-streams-pt2.html
Package java.util.stream
https://docs.oracle.com/javase/8/docs/api/java/util/stream/package-summary.html
Interface Stream
https://docs.oracle.com/javase/8/docs/api/?java/util/stream/Stream.html
https://www.youtube.com/watch?v=t1-YZ6bF-g0
Intermediate operations:
filter
map
flatmap
sort (sorted?)
anyMatch
distinct
findFirst
skip
Terminal operations:
forEach
collect
reduce
count
min
max
summaryStatistics
Stream API,part 1 https://www.youtube.com/watch?v=O8oN4KSZEXE
Intermediate operations:
filter
map
flatmap
peek
sorted
distinct
limit
skip
unordered
parallel
sequential
Terminal operations:
forEach, iterator
find[First|All]
[all|any|non]Match
reduction, collectors
Stream API,part 2 https://www.youtube.com/watch?v=i0Jr2l3jrDA
2019-11-25
Java Spring Boot Tips
@PropertySource("classpath/application.properties")
@Value("${app_props_key}")
private String app_prop_val;
https://www.linkedin.com/learning/spring-framework-in-depth/implement-aop-advice-before
loggin.level.root=INFO
logMethodCall()
LOGGER.log(app method params
2019-11-14
Java learn & certification
https://docs.oracle.com/javase/tutorial/extra/certification/index.html
https://coderanch.com/c/certification
13 Free Java 8 Certification Online Mock Tests
https://www.java67.com/2017/05/10-free-java-8-certification-sample-questions-OCAJP8-OCPJP8-Mock-Exams.html
https://www.udemy.com/course/spring-boot-complete-guide-from-development-to-deployment/?LSNPUBID=JVFxdTr9V80&ranEAID=JVFxdTr9V80&ranMID=39197&ranSiteID=JVFxdTr9V80-s9R8rW3unDigzKT4CYcaOA
https://javarevisited.blogspot.com/2016/12/5-tips-to-prepare-for-oracle-java-certifications-OCAJP-OCPJP-exams.html?m=1
https://dou.ua/lenta/articles/java-11-developer-1/
2019-10-25
Java stuff
JSON viewer:
http://jsonviewer.stack.hu/
Parse JSON String to Object in Spring Boot App
Automation JS frameworks
https://dou.ua/lenta/articles/automation-js-frameworks/?from=nl&utm_source=20191022&utm_medium=email&utm_campaign=CM
SCRUM
http://scrumy.com
User Interface with Boostrap Learning Module Overview
BufferedReader, InputStream, BufferedInputStream: Overview
Use BufferedReader, BufferedInputStream in Java
HTML View to Controller to Service to DAO
HTML View to Controller to Service to DAO
Thymeleaf th:each and Boostrap list-group integrated
JUnit
Test Driven Design/BDD with Spring Boot Example
Test Driven Development with Spring Boot
Mockito
Use Mockito in Spring Boot to Mock Test Object
Spring Boot essentials
https://www.youtube.com/playlist?list=PL73qvSDlAVVh4QHMkO2gM52deldy64n45
From Zero to Hero with Spring Boot - Brian Clozel
https://linuxize.com/post/install-mariadb-on-centos-7/
AMQP: Asynchronous messaging in Spring Boot applications
https://www.linkedin.com/learning/spring-boot-essential-training/asynchronous-messaging-in-spring-boot-applications
http://jsonviewer.stack.hu/
Parse JSON String to Object in Spring Boot App
Automation JS frameworks
https://dou.ua/lenta/articles/automation-js-frameworks/?from=nl&utm_source=20191022&utm_medium=email&utm_campaign=CM
SCRUM
http://scrumy.com
User Interface with Boostrap Learning Module Overview
BufferedReader, InputStream, BufferedInputStream: Overview
Use BufferedReader, BufferedInputStream in Java
HTML View to Controller to Service to DAO
HTML View to Controller to Service to DAO
Thymeleaf th:each and Boostrap list-group integrated
JUnit
Test Driven Design/BDD with Spring Boot Example
Test Driven Development with Spring Boot
Mockito
Use Mockito in Spring Boot to Mock Test Object
Spring Boot essentials
https://www.youtube.com/playlist?list=PL73qvSDlAVVh4QHMkO2gM52deldy64n45
From Zero to Hero with Spring Boot - Brian Clozel
https://linuxize.com/post/install-mariadb-on-centos-7/
AMQP: Asynchronous messaging in Spring Boot applications
https://www.linkedin.com/learning/spring-boot-essential-training/asynchronous-messaging-in-spring-boot-applications
Spring Data in Spring Boot applications
https://www.linkedin.com/learning/spring-boot-essential-training/spring-data-in-spring-boot-applications
Spring Security in Spring Boot applications
https://www.linkedin.com/learning/spring-boot-essential-training/spring-security-in-spring-boot-applications
2019-10-05
Java PWM monitor
How to Compile Java Programs into EXEs
https://www.youtube.com/watch?v=Mr_TdPuF-4g
How to use ADC in STM32F103C8 - Measuring Analog Voltage
https://circuitdigest.com/microcontroller-projects/how-to-use-adc-in-stm32f103c8-stm32-blue-pill-board
Programming STM32F103C8 Board using USB Port
https://circuitdigest.com/microcontroller-projects/programming-stm32f103c8-board-using-usb-port
2019-03-14
5 inches and 6 inches propellers test
2018-08-23
Автополив
Cистема автономного полива (двухканальный планировщик с допустимой нагрузкой до 500мА, при необходимости можно подключить реле постоянного тока для более мощной нагрузки)
Характеристики:
- от 1 до 4 точек полива (теоретически можно больше, но тогда труднее балансировать плечи насоса по нагрузке), или до восьми точек полива со вторым насосом
- индикация разряда аккумулятора (светодиод мигает 3 раза), -
кнопочная настройка интервала полива (в часах, макс 24) и длительности полива (в секундах, макс 24).
- до 2х недель автономной работы (в зависимости от нагрузки)на аккумуляторе емкостью 2800мА/ч
Демонстрация работы (пример настройки расписания полива):
Характеристики:
- от 1 до 4 точек полива (теоретически можно больше, но тогда труднее балансировать плечи насоса по нагрузке), или до восьми точек полива со вторым насосом
- индикация разряда аккумулятора (светодиод мигает 3 раза), -
кнопочная настройка интервала полива (в часах, макс 24) и длительности полива (в секундах, макс 24).
- до 2х недель автономной работы (в зависимости от нагрузки)на аккумуляторе емкостью 2800мА/ч
Демонстрация работы (пример настройки расписания полива):
2018-04-23
ATmega2560 vs STM32F407
| STM32F407VGT6 | ATmega2560 | ||
|---|---|---|---|
| Price | $11 | $9.1 | |
| Core | 168 MHz | 16MHz | |
| Memories | Up to 1 Mbyte of Flash memory •Up to 192+4 Kbytes of SRAM |
Program Memory Size (KB)256 SRAM Bytes 8,192 Data EEPROM/HEF (bytes) 4096 |
|
| Clock, reset and supply management | |||
| Timers | 2 x 8-bit, 4 x 16-bit | ||
| Communications interfaces | 4-UART, 5-SPI, 1-I2C | ||
| Analog to digital converter (ADC) | |||
| I/Os | 4 Input Capture, 4 CCP, 16PWM | ||
Atmega328 vs STM32F103
| STM32F103C8T6 | ATmega328 | ||
|---|---|---|---|
| Price | $1.38 | $2.15 | |
| Core | 72 MHz | 16MHz | |
| Memories | 64 or 128 Kbytes of Flash memory – 20 Kbytes of SRAM |
32KBytes of In-System Self-Programmable Flash program Memory – 1KBytes EEPROM – 2KBytes Internal SRAM |
|
| Clock, reset and supply management | 2.0 to 3.6 V application supply and I/Os – POR, PDR, and programmable voltage detector (PVD) – 4-to-16 MHz cr ystal oscillator – Internal 8 MHz factory-trimmed RC – Internal 40 kHz RC – PLL for CPU clock – 32 kHz oscillator for RTC with calibration |
2.7 - 5.5V | |
| Timers | 7 timers – Three 16-bit timers, each with up to 4 IC/OC/PWM or pulse counter and quadrature (incremental) encoder input – 16-bit, motor control PWM timer with dead- time generation and emergency stop – 2 watchdog timers (Independent and Window) – SysTick timer 24-bit downcounter |
3 | |
| Communications interfaces | Up to 9 communication interfaces – Up to 2 x I2C interfaces (SMBus/PMBus) – Up to 3 USARTs (ISO 7816 interface, LIN, IrDA capability, modem control) – Up to 2 SPIs (18 Mbit/s) – CAN interface (2.0B Active) – USB 2.0 full-speed interface |
||
| Analog to digital converter (ADC) | 2 x 12-bit, 1 μs A/D converters (up to 16 channels) |
||
| I/Os | Up to 80 fast I/O ports – 26/37/51/80 I/Os, all mappable on 16 external interrupt vectors and almost all 5 V-tolerant |
||
Subscribe to:
Posts (Atom)



