Finding the sum of two numbers with C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace odev1
{
    class Program
    {
        static void Main(string[] args)
        {
            int a, b;
            string a1, a2;
            Console.Write("First number: ");
            a1 = Console.ReadLine();

            while (true)
            {
                if (int.TryParse(a1, out a))
                {
                    break;
                }
                else
                {
                    Console.Write("No valid value was entered for the first number. Re-enter: ");
                    a1 = Console.ReadLine();
                }
            }

            Console.Write("First number: ");
            a2 = Console.ReadLine();

            while (true)
            {
                if (int.TryParse(a2, out b))
                {
                    break;
                }
                else
                {
                    Console.Write("No valid value was entered for the second number. Re-enter: ");
                    a2 = Console.ReadLine();
                }
            }

            Console.WriteLine("\nFirst number: " + a);
            Console.WriteLine("Second number: " + b);
            Console.WriteLine("Total: " + (a + b));
        }
    }
}

iptables use

We’re using iptables to connect to the terminal, such as whitelisting (especially on your own) that we use to put the ip block on what you don’t want to access your server, or especially those you want to access.

Briefly;

// to list blocked IPs;
iptables -L INPUT -v -n

// to delete (remove block) the blocked IP;
iptables -D INPUT -s x.x.x.x -j DROP

// To add (make reliable) the IP addresses to the whitelist;
// INPUT: to inputs, OUTPUT: to outputs
iptables -A INPUT -s  x.x.x.x -j ACCEPT
iptables -A OUTPUT -s x.x.x.x -j ACCEPT

Compressing page content with PHP

By compressing page content with PHP, you can earn half the size of your page. With this size you earn, you’ll be able to load your site speed faster, and that’s what Google likes. Google likes it in the rankings. It allows you to be easily found in searches and gains in traffic that you spend.
First, place these codes in the PHP code included on each page of your software (functions can be. php or database. php file)

$gzip_pres = true; 
function gzipKontrol() 
{ 
    $kontrol = str_replace(" ","", 
        strtolower($_SERVER['HTTP_ACCEPT_ENCODING']) 
    ); 
    $kontrol = explode(",", $kontrol); 
    return in_array("gzip", $kontrol); 
} 
function bosluksil($kaynak) 
{ 
    return preg_replace("/\s+/", " ", $kaynak); 
} 
function phpPress($kaynak) 
{ 
    global $gzip_pres; 
    $sayfa_cikti = bosluksil($kaynak); 
    if (!gzipKontrol() || headers_sent() || !$gzip_pres)  
        return $sayfa_cikti; 
    header("Content-Encoding: gzip"); 
    return gzencode($sayfa_cikti); 
}

After you add this code, paste the following code at the beginning of the page that you want to compress.

ob_start("phpPress");

That’s all, plenty of traffic days.