Working with COM port in windows and linux

Working with COM port in windows and linux
 
Once upon a time I was making an application that was supposed to run from Windows and Linux and connect to the board with STM32 via UART. This article can be useful for beginners who program in C ++ (use the compilers GCC and MinGW) and who need COM port support under two OSes at once, and which laziness to google and you need ready-made code.
 
 
here . To connect to your project, you need to add just two files: xserial.cpp and xserial.hpp .
 
 
Example of using [/b]
#include
#include "xserial.hpp"
using namespace std;
int main () {
/* initialize the available ...
+ 0 -

What is the importance of ??? = ??? + 1? How to explain it on the fingers?

The author of the answer to Quora is Michael Griffin, postdoc on mathematics
 
 
What is the importance of ??? = ??? + 1? How to explain it on the fingers? Senia Scheidwasser gave very good, simple answer to this question, I recommend reading this brief version. But there is a much more surprising story of the Monstrous Moonshine hypothesis mixed with McKay's equation: from Jack Daniel's whiskey to black holes and quantum gravity.
 
 
In this story, symmetries and mathematical "groups" are often mentioned, so let's start with what is meant by the group in mathematics. A group can be represented as a way to reorder a set of objects, preserving a certain structure. The operations ...
+ 0 -

Polar night, water pump and smart safe: 5 student projects in IoT

How can a student's IoT study project look like? What can realistically teach the student for a year, if before he did not come across this subject?
 
 
The first year of the program "IoT Academy Samsung" ended with the final of the contest held between graduates in pilot universities (MIPT and MIREA). Each of the projects that reached the final was interesting in its own way, and below I propose to get acquainted with them. This is essentially a demonstration of a range of possible topics that can be affected, based on the knowledge gained in our program.
 
 
Polar night, water pump and smart safe: 5 student projects in IoT ...
+ 0 -

You have not yet finished the word "hello", but we already know who you are

This can be done by our neural network, recognizing a person by one pronounced syllable. However, the topic of this article does not deal directly with voice identification, although it will be related to it. We will talk about neural network features, the so-called d-vector, which can be used in tasks of sound processing: from verification to speech and emotion recognition.
 
 
You have not yet finished the word "hello", but we already know who you are

 
Pitch and MFCC . The first has a physical meaning of the vibration frequency of the vocal cords, which differ, for example, for different people, and also depend on the ...
+ 0 -

Enough to feed the loggers! Give more modifiers! Lazy Static Final Fields. The rough draft of the feature

It became clear that loggers are initialized at the time of class initialization, why do they litter the whole launch? John Rose hurries to the rescue!
 
Here's how it might look:
 
lazy private final static Logger LOGGER = Logger.getLogger ("com.foo.Bar");
 
This document extends the behavior of final variables, allowing you to support lazy execution if desired - both in the language itself and in the JVM. The behavior of the existing mechanisms of lazy computing is proposed to be improved by changing the granularity: now it will not be accurate to the class, but to within a specific variable.
 
Enough to feed the loggers! Give more modifiers! Lazy Static Final Fields. The rough draft of the feature
 
Motivation
 
Lazy com...
+ 0 -

MongoDB and market research of IT vacancies

Have you ever analyzed a job?
 
 
The question was asked, in what technologies is the labor market most demanding at the moment? A month ago? A year ago?
 
 
How often do new Java developer vacancies open in a certain area of ​​your city and how actively do they close?
 
 
In this article I will tell you how you can achieve the desired result and build a report system on the topic of interest to us. Go!
 
 
MongoDB and market research of IT vacancies

 
Source
 
Headhunter.ru
 
Probably, many of you are familiar and even used a resource like Headhunter.ru ...
+ 0 -

Backend United # 2: Minced

Backend United # 2: MincedHello! On September 2? we invite everyone to Avito's office at Backend United 2: The forcemeat is a meeting devoted to backend testing. Let's talk about the basic methods of testing the backend, the differences in testing in different languages, the CDC approach to testing microservices, the mechanics and the complexities of implementing Pact and find out how to create honest and effective isolation tests in the microservice architecture. Presentations will be made by representatives of Radio QA, Juno, Lifland Gaming and Avito.
 
Under the cut - theses of speakers speeches, a reference to the registration ...
+ 0 -

Standard Error Handler in RxJava2 or why RxJava causes the application to crash even if onError

Standard Error Handler in RxJava2 or why RxJava causes the application to crash even if onErroris implemented.In the translation of the article we will talk about UndeliverableException in RxJava2 version ??? and newer. If someone collided and can not figure out, or at all did not hear about this problem - I ask under cat. We were forced to translate the problem into production after the transition from RxJava1 on RxJava2 . The original was written on December 2? 201? but it's better to learn late than never.  In the notes to the release ??? this behavior is described:  One of the design goals of 2.x is the lack of lost errors. Sometimes the sequence ends ...
+ 0 -