Wednesday

Fire survival tips

1 Stop, drop, cover and roll 
If your clothes catch fire stop, drop, cover your face with your hands and roll to smother the flames.

2 Get down low, go go go! 
In a fire, the safest area for breathing is near the floor where the air is cooler and cleaner, so remember to crawl low.

3 Check doors for heat before opening 
Use the back of your hand to check for heat. If the door is hot, use another exit.

Get fire extinguishers
Ideally polace it at the entrance of the kitchen, bedroom or main entrance.

Install at least one smoke detector
Install on every level of the home

Have at least two exit plans
That adult family members are aware of

Protect what matters
Safety by choice, not by chance
Leave nothing to chance

Saturday

C++32 (or C++2e), C++ 2032, Cpp 2032, g++ 2032

 
Subject: C++ 2032

3
Code example for ?

2
Approximate feature suggestions:
- to complete C++29 or C++ 2029

1
Web links, references

Wandbox, online C++ compiler
https://wandbox.org/

Coliru is short for compile, link and run, online C++ compiler
https://coliru.stacked-crooked.com/

Godbolt Compiler Explorer C++
https://godbolt.org/

C++ status, C++ roadmap
https://isocpp.org/std/status

C++ 2032
https://en.cppreference.com/w/cpp/32

a list of open source C++ libraries
https://en.cppreference.com/w/cpp/links/libs

C++ Conference or CppCon
https://cppcon.org/

Friday

Act of War and Water Sharing Treaty

In its response, the state2 also rejected the state1 suspension of the water sharing treaty of many years old between the two state neighbors.

Any attempt to stop or divert the water will be considered as an act of war.

Monday

Understanding President Trash Tariffs war

Recently, even an economist was able to demonstrate why President Trash's insane war on tariffs are a complete disaster.

If you take your credit card and you go shopping, you run up a large credit card debts.
You're running trade deficits with all those shops.
Now it would be pretty strange if you then blamed all the shop owners for having sold you all those things.
You're ripping me off!
I'm running a trade deficit.

That is the level of understanding of the President Trash.

Saturday

Newton-Raphson Method in C++

The Newton Raphson Method is an open method used to find the roots of a function.
It employs the technique of linear approximation and involves using the tangent line to approximate the roots.
The method is highly efficient and converges rapidly, providing robust solutions in fewer iterations.

File content:

{{{{{

#include <iostream>

#include <cmath>

using namespace std;


const double EPS = 0.000001;


double function(double x0)

{

    // x0^2 - 3*x0 + 2 = (x0 - 1)(x0 - 2)

    return x0*x0 - 3*x0 + 2;

}


double derivative_of_the_function(double x0)

{

    return 2*x0 - 3;

}


int main()

{

    int max;

    int i = 0;

    double x1, x0;


    cout << "Newton-Raphson Method in C++" << endl;

    cout << "Maximum number of iterations: ";

    max = 100;

    cout << max << endl;

    cout << "The first approximation: ";

    x0 = 0; // you get the root 1

    //x0 = 3; // you get the root 2

    cout << x0 << endl;


    bool flagStopLoop = false;

    do

    {

        x1 = x0 - (function(x0) / derivative_of_the_function(x0));

        i++;


        if( fabs(x1 - x0) <= EPS )

        {

            flagStopLoop = true;

        }

        else if( i > max )

        {

            flagStopLoop = true;

        }

        else

        {

            x0 = x1;

        }

    } while( !flagStopLoop );

    cout << "The root of the function after " << i << " iteration is "

         << x1 << endl;


    return 0;

}

}}}}}

Fire survival tips

1 Stop, drop, cover and roll  If your clothes catch fire stop, drop, cover your face with your hands and roll to smother the flames. 2 Get d...