networking – Not connecting to Internet in windows 10 1909

Recently I have uninstalled my outdated escan antivirus after that I can’t connect to internet. Wifi is connecting and showing internet access but my laptop is not getting the internet not by any browser and not for even windows update.

I have tried troubleshooting, DNS flushing , updated the network drive,  restarting system, restarting DNS, used another dns,power off the system , using tethering but no use, wifi is connecting with other systems without any problems.​​​​

My laptop is hp pavilion 15-cs1052tx.windows 10 1909.

database – ddev sequelace not connecting (how to debug?)

According to this https://ddev.readthedocs.io/en/stable/users/developer-tools/#database-management
we should be able to type ddev sequelace and have sequelace connect to the db server in ddev.

However it is failing and I’m not finding verbose output flags to turn on and ddev is a binary so am not sure if I’ll be able to get to where the ssh (or tunnel) is failing. (see screenshot)
enter image description here

On other Drupal Devs like docksal we can go under the hood and turn on verbose and see where things are failing. But I’m not sure how to do this with ddev.

I’ve tried replacing the 127.0.0.1 in the host with the server name that ddev gives the site but that fails connection too. I also thought that my vpn might be messing with it but after disabling the vpn the connection still fails.

Thanks for any pointers!

list manipulation – Connecting the closest points on circles with a line

Suppose I have the function f(c_, z_) := z^2 + c and the following collection of circles in the plane. This is a simple example with only three circles, disjoint and not nested, and lying on the real line.

Show(Table(Graphics(Line(ReIm(Nest(f(-1.755, #) &, Map(comp, CirclePoints({0, 0}, 0.1, 1000)), i)))), {i, 0, 2}))

Given one circle, I would like to connect it to the closest circle (that isn’t itself) by the shortest possible line. So in this example the lines would be the segments of the real line between the closest points of the circles. The following code does this manually.

Take comp({x_, y_}) := x + y*I and then the following gives the desired picture.

Graphics(Line(
  ReIm({Nest(f(-1.755, #) &, 
     Map(comp, CirclePoints({0, 0}, 0.1, 1000)), 0), 
    Map(comp, 
     Table(BezierFunction({Map(ReIm, 
           Nest(f(-1.755, #) &, 
            Map(comp, CirclePoints({0, 0}, 0.1, 1000)), 0))((750)), 
         Map(ReIm, 
           Nest(f(-1.755, #) &, 
            Map(comp, CirclePoints({0, 0}, 0.1, 1000)), 1))((750))})(
       s), {s, 0, 1, 0.001})), 
    Nest(f(-1.755, #) &, Map(comp, CirclePoints({0, 0}, 0.1, 1000)), 
     1), Nest(f(-1.755, #) &, 
     Map(comp, CirclePoints({0, 0}, 0.1, 1000)), 2), 
    Map(comp, 
     Table(BezierFunction({Map(ReIm, 
           Nest(f(-1.755, #) &, 
            Map(comp, CirclePoints({0, 0}, 0.1, 1000)), 0))((250)), 
         Map(ReIm, 
           Nest(f(-1.755, #) &, 
            Map(comp, CirclePoints({0, 0}, 0.1, 1000)), 2))((750))})(
       s), {s, 0, 1, 0.001}))})))

This is messy but it works. However for more circles this will become very tedious to implement. Is there a quicker way to do this? I would still like to get the points along the connecting lines for future calculations. Also, perhaps more difficult, what if the parameter c for f(c,z) is complex so the lines are no longer in a straight line?

S6 not connecting to Windows 10 even not detecting the device

Can some one help me to identify the root cause of this issue I tried almost every available solution online and nothing work around.

Installed smart switch
change 2 cables
Put on Usb debugging mode change to MTP settings doesn’t works

Cables only charging my phone.

Laptop: Nitro 7 (i use port 2.0 for connection that doesn’t works too)

How to fix Discord Stuck on RTC Connecting?

RTC Connecting means that the platform is trying to start a voice call. Discord uses the Real-Time Chat protocol to facilitate concurrent communication. So the problem of sleeping on RTC Connecting is network-related.

Visit for this Link – rtc connecting discord

.

router – connecting with external ip is extremely slow

To be clear, I am an extreme noob when it comes to networking, so please be kind.

It takes an exorbitant amount of time to connect to my server (running on my home network) with an external ip (domain or the resolved ip), but only for certain ports. For example, when I try to load my webpage, it’s fast as can be, but when I try to connect to a cpu(1) server with drawterm, it takes several minutes. But then when that cpu(1) server finishes, and it needs to connect to the auth server, it’s fast once again. If I use the internal ips (192.168.22.*), these are all fast. To be clear, all of these use TCP.

My server is running 9front, but this is not a 9front issue, as I had similar problems when I was using void linux running some server software I wrote myself.

Has anyone experienced this before? Is it an issue with my router or my computer maybe?

Thank you in advance

Routing table after connecting to VPN

I have some questions about what happens to routing table of my system and my router after I connect to a VPN server.

Let me explain the scenario first. We are three devices in our local area network: me (192.168.1.3), my brother ( 192.168.1.4 ) and router (192.168.1.1).

There is a camera(192.168.1.6) in another country which has a webserver allowing people to access it. I make a VPN connection to that LAN via this imaginary IP address (34.34.34.34), and then connect to 192.168.1.6 (camera).

1- As I joined that LAN via VPN, can I still ping my brother’s computer?

2- what happens to my computer’s routing table? My guess is there a record which says EVERY IP address should go to default gateway – my router- (because eventually all requests should be go to that LAN)

3- Does it somehow affect my router’s routing table?

I mostly wanted to know which routes are adding to routing tables of my computer and my router that take me from my computer to the camera.

c# – Connecting multiple device/client with server and communicating with these connected devices?

Actually I have a written a code to established a multiple client/device connection with server. My code established a multiple a connection with server and shows me a list of connected clients after When I select a connected device and try to send messages to client it’s working fine but When I try to receive a messages from client it’s not working.

Here is my Code:

Below code established a multiple client/devices connection with server

private void btnstart_Click(object sender, EventArgs e)
          {
    
    
                  string Systemip = getlocalip();
                  txtinfo.Text = "Server IP:" + Systemip + Environment.NewLine;
                  var portno = Int32.Parse("8010");
    
                  String a = "";
    
                  IPAddress ip = IPAddress.Parse(Systemip);
                  server = new TcpListener(ip, portno);
                  server.Start();
    
                 //here environment.newline means, display msg to next line.
                  txtinfo.AppendText("Server started waiting for client.............." + Environment.NewLine);
              counter = 0;
              f = new Form1();
              Thread newone = new Thread(loop);
              newone.Start();
    
    
          }
          public delegate void messageone();
          public void mess()
          {
    
              richtxtbddata.AppendText(counter + "clien connected" + Environment.NewLine);
              richtxtbddata.AppendText("The client is from IP address: " + ((IPEndPoint)socketforclient.RemoteEndPoint).Address.ToString() + Environment.NewLine);
          //    iplist.Items.Add(((IPEndPoint)socketforclient.RemoteEndPoint).Address.ToString());
              listBox1.Items.Add(counter);         //add this (((IPEndPoint)clientSocket.RemoteEndPoint).Address.ToString()); on the place of counter
          }
    
          public void loop(object obj)
          {
              connectobj = new List<Multipleconnect>();
    
              while (true)
              {
                  counter++;
    
                  socketforclient = server.AcceptSocket();
                 // ns = new NetworkStream(socketforclient);
                  connectobj.Add(new Multipleconnect
                  {
                      objectno = counter,
                      Skt = socketforclient,
                      nstream = new NetworkStream(socketforclient),
                      ip = ((IPEndPoint)socketforclient.RemoteEndPoint).Address.ToString()
                  });
    
                  //Box.AppendText(counter + "Client connected");
                  richtxtbddata.Invoke(new messageone(mess));
                  Thread UserThread = new Thread(new ThreadStart(() => f.User(socketforclient)));
                  UserThread.Start();
    
              }
          }
          public void User(Socket client)
          {
              while (true)
              {
                  try
                  {
                      byte() msg = new byte(1024);
                      int size = client.Receive(msg);
                      client.Send(msg, 0, size, SocketFlags.None);
                  }
                  catch (Exception ex)
                  {
                      txtinfo.Text = "Divice Disconnected";
                  }
    
              }
    
          }

Below code is for sending and receiving a messages but In this code messages sent client/device successfully but this code is not receive a messages from client/devices.

private void btnsend_Click(object sender, EventArgs e)
       {

       isNew = true;

           if (servermsg.Text != "") {

               ns = new NetworkStream(socketforclient);
               StreamWriter writer = new StreamWriter(ns);

               writer.WriteLine(servermsg.Text + Environment.NewLine);
               txtinfo.AppendText("Server:" + servermsg.Text + Environment.NewLine);
               writer.Flush();
               writer.Close();
           }


           ns = new NetworkStream(socketforclient);
           StreamReader sr = new StreamReader(ns);
           string myCompleteMessage = string.Empty;

           if (ns.DataAvailable)
           {
               myReadBuffer = new byte(2048);
               datafinal = new double(1);

               myCompleteMessage = Encoding.ASCII.GetString(myReadBuffer, 0, readbytes);

           }

           //runn();



           if (myCompleteMessage != "")
           {
              txtinfo.AppendText("Client:" + myCompleteMessage + Environment.NewLine + Environment.NewLine);
           }

       }

If You want a complete code, It is given below:

using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;

/// <summary>
/// single connection in working condition with old code.....
/// </summary>

namespace TCPSERVER
{
  
    public partial class Form1 : Form
    {
        List<Multipleconnect> connectobj;

        Form1 f;
        int counter = 0;
        NetworkStream ns;
        int i = 0;
        Socket socketforclient;
        TcpListener server;
        byte() myReadBuffer;
        int readbytes;
        int p = 0;
        int y;
        double() datafinal;
        double() yy;
        List<double> xx;
        string stop = "";
        Multipleconnect mulcon = new Multipleconnect();

        public Form1()
        {
            InitializeComponent();
            //txtserverip.Text = getlocalip();
         
            Featuresduringrun();
         //   Connnection();
        }

        private void btnstart_Click(object sender, EventArgs e)
        {
          
            
                string Systemip = getlocalip();
                txtinfo.Text = "Server IP:" + Systemip + Environment.NewLine;
                var portno = Int32.Parse("8010");
             
                String a = "";

                IPAddress ip = IPAddress.Parse(Systemip);
                server = new TcpListener(ip, portno);
                server.Start();

               //here environment.newline means, display msg to next line.
                txtinfo.AppendText("Server started waiting for client.............." + Environment.NewLine);
            counter = 0;
            f = new Form1();
            Thread newone = new Thread(loop);
            newone.Start();

 
        }
        public delegate void messageone();
        public void mess()
        {

            richtxtbddata.AppendText(counter + "clien connected" + Environment.NewLine);
            richtxtbddata.AppendText("The client is from IP address: " + ((IPEndPoint)socketforclient.RemoteEndPoint).Address.ToString() + Environment.NewLine);
        //    iplist.Items.Add(((IPEndPoint)socketforclient.RemoteEndPoint).Address.ToString());
            listBox1.Items.Add(counter);         //add this (((IPEndPoint)clientSocket.RemoteEndPoint).Address.ToString()); on the place of counter
        }

        public void loop(object obj)
        {
            connectobj = new List<Multipleconnect>();

            while (true)
            {
                counter++;

                socketforclient = server.AcceptSocket();
               // ns = new NetworkStream(socketforclient);
                connectobj.Add(new Multipleconnect
                {
                    objectno = counter,
                    Skt = socketforclient,
                    nstream = new NetworkStream(socketforclient),
                    ip = ((IPEndPoint)socketforclient.RemoteEndPoint).Address.ToString()
                });

                //Box.AppendText(counter + "Client connected");
                richtxtbddata.Invoke(new messageone(mess));
                Thread UserThread = new Thread(new ThreadStart(() => f.User(socketforclient)));
                UserThread.Start();

            }
        }
        public void User(Socket client)
        {
            while (true)
            {
                try
                {
                    byte() msg = new byte(1024);
                    int size = client.Receive(msg);
                    client.Send(msg, 0, size, SocketFlags.None);
                }
                catch (Exception ex)
                {
                    txtinfo.Text = "Divice Disconnected";
                }

            }




        }




        public static string getlocalip()
        {
            var host = Dns.GetHostEntry(Dns.GetHostName());
            foreach(var ip in host.AddressList)
            {
                if (ip.AddressFamily == AddressFamily.InterNetwork)
                {
                    return ip.ToString();
                }
            }
            return "not found any ip";
        }
 
        private void btnsend_Click(object sender, EventArgs e)
        {
            string aa = listBox1.SelectedItems(0).ToString();
            if (aa == null)
            {
                MessageBox.Show("Selexct a item");

            }
     

            
            if (servermsg.Text != "") {
               
                ns = new NetworkStream(socketforclient);
                StreamWriter writer = new StreamWriter(ns);
               
                writer.WriteLine(servermsg.Text + Environment.NewLine);
                txtinfo.AppendText("Server:" + servermsg.Text + Environment.NewLine);
                writer.Flush();
                writer.Close();
            }
      

            ns = new NetworkStream(socketforclient);
            StreamReader sr = new StreamReader(ns);
            string myCompleteMessage = string.Empty;

            if (ns.DataAvailable)
            {
            myReadBuffer = new byte(2062);
            int rreadbytes = ns.Read(myReadBuffer, 0, myReadBuffer.Length);
            string Client2 = Encoding.ASCII.GetString(myReadBuffer, 0, rreadbytes);
            myCompleteMessage = Client2;

            }

          
            if (myCompleteMessage != "")
            {
               txtinfo.AppendText("Client:" + myCompleteMessage + Environment.NewLine + Environment.NewLine);
            }

        }










   
  

      
  
  

 
         
   
      
        private Form activeform = null;

     
        private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            string aa = listBox1.SelectedItems(0).ToString();
            if (aa == null)
            {
                MessageBox.Show("Selexct a item");

            }
            ////  int endindex = aa.Length - 1;
            //// int b = aa.IndexOf("}");
            ////aa = aa.Substring(15, 13);

            foreach (var ob in connectobj)
            {
                if (ob.objectno.ToString() == aa)     //write ob.ip on the place of ob.objectno
                {
                    socketforclient = ob.Skt;
                    MessageBox.Show("yes");
                }
            }
        }

  
    }
}

Below code comes another class which is used to store the multiple client

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

namespace TCPSERVER
{
    class Multipleconnect
    {
        public int objectno;
        public Socket Skt;
        public string ip;
        public NetworkStream nstream;
    }
}

magento2.4 – Prevent cart empty before connecting to payment

Currently in Magrnto 2 before connecting to payment gateway, the in the quote table the is_active status is becoming zero and a new dummy record is created in the same table. So, if the customer not completing the order, and left right from the payment page, the cart becomes empty on his next visit.

I would like to prevent this. hence, I have added a plugin in di.xml as below,

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="MagentoSalesApiOrderManagementInterface">
        <plugin name="ucs_making_the_cart_alive" type="UcsActiveCartPluginOrderServicePlugin" sortOrder="5"/>
    </type>
</config>

And in the plugin added a afterPlace method as below,

<?php

namespace UcsActiveCartPlugin;

use MagentoSalesApiDataOrderInterface;
use MagentoSalesApiOrderManagementInterface;
use MagentoSalesApiOrderRepositoryInterface;

class OrderServicePlugin
{
    protected $_orderRepository;
    protected $_quoteRepository;


    protected $_quoteFactory;
    protected $_quoteModel;

    public function __construct(
        OrderRepositoryInterface $OrderRepositoryInterface,
        MagentoQuoteModelQuoteRepository $quoteRepository,
        
        MagentoQuoteModelQuoteFactory $quoteFactory,
        MagentoQuoteModelResourceModelQuote $quoteModel,

        MagentoFrameworkAppActionContext $context
    )
    {
        $this->_orderRepository = $OrderRepositoryInterface;
        $this->_quoteRepository = $quoteRepository;


        $this->_quoteFactory = $quoteFactory;
        $this->_quoteModel=$quoteModel;

    }
    public function afterPlace( 
        OrderManagementInterface $subject,
        OrderInterface $result
    ) {
        //$return = $proceed($order);

        $order_increment_id = $result->getIncrementId();
        $order_id = $result->getEntityId();

        //$order_id = $order->getEntityId();

        $log_date = date('d-m-Y');

        /* START : BELOW LOG IS USED TO CAPTUE THE RECEIVED AND RESPONDED DATE */
        $log_file = '/var/log/plugin-cart-active-'.$log_date.'.log';
        $writer = new ZendLogWriterStream(BP . $log_file);
        $logger = new ZendLogLogger();
        $logger->addWriter($writer);


        $logger->info($order_increment_id);
        $logger->info($order_id);
        /* END : BELOW LOG IS USED TO CAPTUE THE RECEIVED AND RESPONDED DATE */

        
        try {

            $order = $this->_orderRepository->get($order_id);

            $logger->info('Making the quote process active before payment process begins for the order entity id ->'.$order_id);
            
            $quote_id = $order->getQuoteId();

            $logger->info('Quote ID for the order has been deducted as ->'.$quote_id);

            $quote = $this->_quoteRepository->get($quote_id); // Get quote by id
            $quote->setIsActive(1)->setReservedOrderId(null)->save();


            $quote->setData('is_payment_initiated', 1); // Fill data
            $logger->info(json_encode($quote->getData()));
            $this->_quoteRepository->save($quote); // Save quote
            $logger->info('Quote Saved');

            $objectManager = MagentoFrameworkAppObjectManager::getInstance();
            $_checkoutSession = $objectManager->create('MagentoCheckoutModelSession');
            $_checkoutSession->replaceQuote($quote);

        } catch (Exception $e) {
            $logger->info('Error in updation process');
            $logger->info($e->getMessage());
        }

        return $result;

    }
}

But still the is_active status is not becoming active. What happens is the logic works but only after that the dummy record creation and making the actual is_active status becoming zero process is happening.

How can I override this behavior?