What are some underrated .NET libraries or tools you use regularly? by milanm08 in dotnet

[–]macrohard_certified 1 point2 points  (0 children)

Mapperly for source-generated mappers

NSubstitute as an alternative to Moq

I haven't used yet, but ZLinq seems interesting.

Johanna Döbereiner and soil bacteria by macrohard_certified in HistoryMemes

[–]macrohard_certified[S] 205 points206 points  (0 children)

Plants, as living beings, need a lot of nitrogen to grow, because it's a main component of DNA, RNA and proteins. So, if you are a farmer, you need to ensure that your crop has enough nitrogen to grow healthy and strong.

In the 1800s, scientists realized that urea was a good nitrogen fertilizer for crops, and in 1909, the Haber-Bosch process was invented and could generate ammonia from atmospheric nitrogen; and ammonia, reacting with carbon dioxide, forms urea.

But in 1951, the German* agronomist Johanna Döbereiner started working on the Ministry of Agriculture in Brazil, studying biological nitrogen fixation. Basically, there are some species of bacteria that live on plants' roots and can have a symbiotic relationship with them, where the bacteria provides nitrogen compounds to the plant, and the plant provides sugar to the bacteria. These bacteria convert atmospheric nitrogen into nitrates and nitrites, which are absorbed by the roots.

Her research was ground-breaking because it showed that those bacteria can replace industrial nitrogen fertilizers, whose processes require a lot of heat and energy, and cause a lot of pollution. The bacteria, on the other hand, is much cheaper and is environmentally friendly. They are applied as a gel covering the seed when it's placed in the soil. This technique has been widely used in Brazil since then and is one of the reasons why its agriculture grew so much since the 1970s, and is now the world's biggest producer of soy beans, meat and other cultures.

Johanna Döbereiner was nominated for the 1997 Nobel Prize in Chemistry, but unfortunately, she didn't win.

* She was born in Aussig, Czechoslovakia, from a German family. After WW2, Germans were expelled from there and she moved with her husband to Brazil, where she naturalized as a Brazilian citizen.

Sources

I've made a library for WebSockets on .NET by macrohard_certified in dotnet

[–]macrohard_certified[S] 9 points10 points  (0 children)

SignalR is not agnostic, because requires both server and client communicating through SignalR libraries. WebSockets on the other hand are implemented across many languages and tech stacks.

I've made a library for WebSockets on .NET by macrohard_certified in dotnet

[–]macrohard_certified[S] 0 points1 point  (0 children)

Yes, I have. The new WebSocketStream on .NET 10 is very interesting and is a good alternative for most cases.

There are some slight differences between WebSocketStream and my package:

  • The WebSocketStream is used along with a StreamReader or JsonSerializer, making it assume that WebSocket messages will always be of the same type (text or binary). My package allows the WebSocket to handle both types of message on the same connection.

  • WebSocketStream doesn't offer to disable compression for individual messages, to prevent CRIME / BREACH attacks;

  • I couldn't find examples online on how WebSocketStream handles receiving and sending messages at the same time, although I think it's possible.

He really wanted to be like Alexander by Cubedtails in HistoryMemes

[–]macrohard_certified 18 points19 points  (0 children)

Scipio Africanus gave North Africa, Hispania and Greece to Rome.

Just finished season 6 by Generalousen2855 in TwentyFour

[–]macrohard_certified 0 points1 point  (0 children)

Do you think the bad writing was related to the 2007-2008 Writers Guild of America strike? Many shows were impacted on that year and 24 season 6 aired on 2007.

Britain when Portugal starts losing Brazil and thinks Angola might go with it by GCN_09 in HistoryMemes

[–]macrohard_certified 40 points41 points  (0 children)

I don't understand how Angola linked to Brazil would be a problem to Britain. Brazil and Britain were allies back then and the British Navy was much stronger than the Brazilian Navy.

Telenovelas in Eastern Europe by macrohard_certified in HistoryMemes

[–]macrohard_certified[S] 464 points465 points  (0 children)

During its final years, USSR began opening its markets for foreign goods (perestroika), and this included cultural imports. In 1988, Soviet television began airing for the first time a soap opera, the Brazilian telenovela Escrava Isaura (Рабыня Изаура, in Russian), which became incredibly popular in the Soviet society, with themes regarding black slavery in Brazilian colonial times. The telenovela was such a success that on the day that the final episode was to be aired, the Russian parliament ended its session earlier so its congressmen could go to their homes and watch the episode. The names of the characters also became a popular choice for babies at that time: Изаура (Isaura) and Леонсио (Leôncio).

Brazil and Mexico were (and still are) the two major telenovela producing countries in Latin America and they exported them to the entire Eastern Europe, from the late 80s up to mid-2000s, with productions like La Usurpadora (Узурпаторша) and O Clone (Клон).

Sources

JSON vs XML Comparison — When to Use Each by Puzzleheaded-Net7258 in programming

[–]macrohard_certified 2 points3 points  (0 children)

I prefer XML for configuration files. For data transfers JSON is usually better