We make Shrimp even more useful: we add transcoding pictures to other formats

We make Shrimp even more useful: we add transcoding pictures to other formats  
 
Since the beginning of 2017 our small team is developing OpenSource-library RESTinio to embed an HTTP server in a C ++ application. To our great surprise, from time to time we receive questions from the category "And what can an embedded HTTP server for C ++ require?" Unfortunately, it's harder to answer simple questions. Sometimes the best answer is the code example.
 
 
A couple of months ago we started a small demo project Shrimp , which clearly demonstrates a typical scenario, under which our library is "sharpened". The ...
+ 0 -

Learn OpenGL. Lesson 5.8 - Bloom

Learn OpenGL. Lesson 5.8 - Bloom

Bloom


 
Due to the limited range of brightness available to conventional monitors, the task of convincing the display of bright light sources and brightly lit surfaces is complex by definition. One of the most common methods that allow to emphasize bright areas on the monitor is a technique that adds a halo of glow around bright objects, creating the impression of a "spreading" of light beyond the light source. As a result, the observer gets the impression of high brightness of such illuminated areas or light sources.
 
 
The described effect of halo and light output beyond the source is achieved by post-processing ...[/h]
+ 0 -

Quick start with ARM Mbed: development on modern microcontrollers for beginners

Quick start with ARM Mbed: development on modern microcontrollers for beginnersHello, Habr.
 
 
The traditional unique advantage of the Arduino platform was called (and now it is sometimes called, although it is already wrong - and we'll talk, why) lowering the threshold of the entrance to the microcontroller development to the level of the basic knowledge of C /C ++ and electronics in the scale "to connect the LED in the desired polarity."
 
 
Ask about any active Arduino supporter - and you will quickly be told that you can write, of course, under STM32 or nRF5? but there is no real benefit in this, but you are waiting for sleepless nights over hundreds of pages of datacits ...
+ 0 -

Learn OpenGL. Lesson 5.7 - HDR

HDR
 
When writing to the framebuffer, the brightness values ​​of the colors are given to the interval from 0.0 to 1.0. Because of this, at first glance innocuous, we always have to choose such values ​​for lighting and colors, so that they fit into this restriction. This approach works and produces decent results, but what happens if we meet a particularly bright area with a lot of bright light sources, and the total brightness will exceed 1.0? As a result, all values ​​greater than 1.0 will be reduced to 1.? which does not look very nice:
 
Learn OpenGL. Lesson 5.7 - HDR
 
Since f...
+ 0 -

Qt wrapper around the gRPC framework in C ++

Qt wrapper around the gRPC framework in C ++ 
Hello. Today, we'll look at how you can link the gRPC framework to C ++ and the Qt library. The article contains a code summarizing the use of all four modes of interaction in gRPC. In addition, there is a code that allows you to use gRPC through the signals and slots Qt. The article may be of interest first of all to Qt developers interested in using gRPC. However, the generalization of the four modes of gRPC is written in C ++ without using Qt, which will allow the code to be adapted to developers who are not related to Qt. All interested in asking for a cat.
 
...
+ 0 -

Probable method of mining Bitcoin

Probable method of mining Bitcoin  
 
I think a little delirium on Tuesday will not hurt much the working week.
 
I have a hobby, at leisure I try to figure out how to crack the bitcoin mining algorithm, avoid a dull nonsense search and find the solution to the problem of selecting a hash with a minimum energy consumption. Immediately I say the result, of course, I have not yet achieved, but nevertheless, why not put into writing the ideas that are born in the head? Where do you need to put them
 
 
Despite the delusionality of the ideas below, I think this article can be useful to someone who studies
 
 
 
C ++ language and its templates
 
a b...
+ 0 -

[DotNetBook]Exceptions: the architecture of the system of types

[DotNetBook]Exceptions: the architecture of the system of types With this article, I continue to publish a whole series of articles, the result of which will be a book on the work of .NET CLR, and. NET in general. For links - welcome to cat.
 
The architecture of the exceptional situation is
 
Perhaps one of the most important questions that concerns the topic of exceptions is the question of building an exception architecture in your application. This question is interesting for many reasons. As for me, the main thing is the apparent simplicity with which it is not always obvious what to do. This property is inherent in all basic constructions, which are used everywhere: ...
.NET / C#
+ 0 -

Testing only through public methods is bad

In programming and in TDD, in particular, there are good principles that are useful to adhere to: DRY and testing through public methods. They have repeatedly proven themselves in practice, but in projects with a large legacy code can have a "dark side". For example, you can write code, guided by these principles, and then discover yourself analyzing tests that span a bunch of 20+ abstractions with a configuration that is incommensurably larger than the tested logic. This "dark side" scares people and inhibits the use of TDD in projects. Under the cut I argue why testing through public methods ...
TDD / C#
+ 0 -

Internal DSL & Expression Trees - dynamic creation of the functions serialize, copy, clone, equals (Part I) &lt;{short}&gt; &lt;{full}&gt; <div class="post__text post__text-html js-mediator-article"> <p> <img src="https://habrastorage.org/webt/_c/m

<{full}>
Internal DSL & Expression Trees - dynamic creation of the functions serialize, copy, clone, equals (Part I)          
  The article is devoted to the dual application of API  Expression Trees  - for parsing expressions and for generating code. The parsing of expressions helps to construct the presentation structures (they are also the structure of the representation of the problem-oriented language          
  The article is devoted to the dual application of API  Expression Trees  - for parsing expressions and for generating code. The parsing of expressions helps to construct the presentation structures (they are also the structure of the representation of the problem-oriented language
 
The article is devoted to the dual application of API
Expression Trees
- for parsing expressions and for generating code. The parsing of expressions helps to construct the presentation structures (they are also the structure of the representation of the problem-oriented language <{short}> The article is devoted to the dual application of API Expression Trees - for parsing expressions and for generating code. The parsing of expressions helps to construct the presentation structures (they are also the structure of the representation of the problem-oriented language  The article is devoted to the dual application of API Expression Trees - for parsing expressions and for generating code. The parsing of expressions helps to construct the presentation structures (they are also the structure of the representation of the problem-oriented language ? Internal DSL), And code ...
.NET / C#
+ 0 -

The first IT Bike Quest in St. Petersburg. How it was

Last Saturday in St. Petersburg, the first event within the framework of the Veeam Geek Hub community - a stock market for C # developers - was held.
 
We know that not everyone was able to get into the first group of participants. Under the cut, we tell how everything went and what kind of tests the brave souls were waiting for, who dared to fit into our bicycle adventure activity.
 
 
Enter , you are welcome.
And would you be interested in participating in the next IT Bike Quest?
Yes
No
Nobody has voted yet. There are no abstentions.Last Saturday in St. Petersburg, the first event within the framework of the Veeam Geek Hub community - a stock market for C # developers - was held. We know that not everyone was able to get into the first group of participants. Under the cut, we tell how everything went and what kind of tests the brave souls were waiting for, who dared to fit into our bicycle adventure activity.   Enter , you are welcome.And would you be interested in participating in the next IT Bike Quest?YesNoNobody has voted yet. There are no abstentions...
+ 0 -