network – sshd stops working on Big Sur after a while when accessible from the Internet

My sshd is configured to accept only public key authentication and my ISP router forwards the port 22 to my MacPro so I can access it from anywhere using Internet.
This has worked for years.
Since I’ve upgraded to Big Sur, this works once I activate the Remote Login in System Preferences but after a while, the connection fails.
Once this is the case, I cannot connect using ssh even from another machine on the same LAN. The other services work fine.

If I stop the port forwarding, this does not occur.

So I installed openssh using homebrew, ran their sshd on the port 23.
Then I changed my port forwarding on the router to target homebrew openssh: extern port 22 -> macpro port 23

Same thing: after a while, it stops accepting connections with no information in the level 3 debug logs.
Of course, Apple’s own sshd continues to work.

So it seems that the failed attempt to connect to my sshd from hackers all around the world end up saturating some kernel buffer or something and only since Big Sur (currently running 12.2.2).

Does anybody else has this problem? And maybe a solution?

❓ASK – Twitter CEO working to improve bitcoin technology |

Twitter CEO Jack Dorsey is working on a project called the Lightning Development Kit (LDK) that’ll massively help bitcoin’s scalability issues. Bitcoin payments can take a long time and currently they can only handle seven transactions per second. So when LDK technology is integrated with bitcoin’s current network, it can process payments much faster. It’s said that it can process millions of transactions per second! That’ll clearly beat Visa’s 45000 transactions per second!!

magento2 – Override a model not working Magento 2

I tried to override a model in MagentoQuoteModelCartDataCartItem but I cannot override it.

here is my di.xml

    <?xml version="1.0"?>
<config xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <preference for="MagentoQuoteModelCartDataCartItem" type="VendorAddProductWithVendorGraphQlModelCartDataCartItem" />

and this is my class

class CartItem extends MagentoQuoteModelCartDataCartItem

     * @var string
    private $sku;

     * @var float
    private $quantity;

     * @var string
    private $parentSku;

     * @var SelectedOption()
    private $selectedOptions;

     * @var EnteredOption()
    private $enteredOptions;

     * @param string $sku
     * @param float $quantity
     * @param string|null $parentSku
     * @param array|null $selectedOptions
     * @param array|null $enteredOptions
    public function __construct(
        string $sku,
        float $quantity,
        string $parentSku = null,
        array $selectedOptions = null,
        array $enteredOptions = null
    ) {
        $this->sku = $sku;
        $this->quantity = $quantity;
        $this->parentSku = $parentSku;
        $this->selectedOptions = $selectedOptions;
        $this->enteredOptions = $enteredOptions;
    public function getQuantity(): float

I’ve tried to use plugins too. But it still didn’t work. Can anyone help me?

Django startproject not working – Super User

I am unable to use startproject in Django. In my virtual environment (venv) I can run django-admin to see a list of subcommands that includes “check”, startproject etc. I can execute “check” to see information about this command, but when I run django-admin startproject mysite” I only get a long traceback (see below).

I should also note that I have python37 installed through Anaconda yet I don’t see python37 in my path (I only see old python27). I wonder if the venv django is having trouble seeing python37, or is that not an issue?

Traceback (most recent call last):
  File "", line 184, in _run_module_as_main
    "__main__", mod_spec)
  File "", line 85, in _run_code
    exec(code, run_globals)
  File "", line 9, in <module>
  File "", line 401, in execute_from_command_line
  File "", line 395, in execute
  File "", line 244, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "", line 37, in load_command_class
    module = import_module('' % (app_name, name))
  File "", line 126, in import_module
    return _bootstrap._gcd_import(name(level:), package, level)
  File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 665, in exec_module
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "", line 1, in <module>
    from import TemplateCommand
  File "", line 14, in <module>
    from import handle_extensions
  File "", line 7, in <module>
    from django.utils.crypto import get_random_string
  File "", line 6, in <module>
    import secrets
ImportError: No module named 'secrets'

linux – Why does file traversal not working in this PHP file upload code?

I am using this script to upload file to the system with apache2 as server and php7.
If I provide filename as ../../../../tmp/data.png of uploaded file, then also the file gets uploaded to /var/up/data.png.

    $errors = (); // Store errors here                                                                                                                                                                                                
    $fileName = $_FILES('the_file')('name');                                                                                                                                                                                          
    $fileSize = $_FILES('the_file')('size');                                                                                                                                                                                          
    $fileTmpName  = $_FILES('the_file')('tmp_name');                                                                                                                                                                                  
    $fileType = $_FILES('the_file')('type');                                                                                                                                                                                          
    $fileExtension = strtolower(end(explode('.',$fileName)));                                                                                                                                                                         
    if (isset($_POST('submit'))) {                                                                                                                                                                                                    
      if ($fileSize > 4000000) {                                                                                                                                                                                                      
        $errors() = "File exceeds maximum size (4MB)";                                                                                                                                                                                

      if (empty($errors)) {
        $didUpload = move_uploaded_file($fileTmpName, "/var/up/". basename($fileName));

        if ($didUpload) {
          echo "The file " . basename($fileName) . " has been uploaded";
        } else {
          echo "An error occurred. Please contact the administrator.";
      } else {
        foreach ($errors as $error) {
          echo $error . "These are the errors" . "n";

        echo "Bruhh!";

I don’t understand why is this happening?

virsh attach-disk not working for iso file driver

Does anyone have any idea why I can’t get this working.

I have a windows7 guest vm installed with virt-install on a bridge. Windows 7 or 10 cannot get a drive for the network installed.
Following this thread enter link description here

I download this iso and want to mount this so that the guest can see it. I have been trying different things for over an hour. nothing is working on my machine I am always getting

error: Failed to attach disk
error: unsupported configuration: unsupported driver name ‘file’ for disk ‘hdc’

I have tried generally

attach-disk win7 /tmp/virtio-win-0.1.185.iso hdc --driver file --type cdrom --mode readonly

The above I have tried SEVERAL different ways and I end up with the same results. I tried other ways like building an XML file and I always end up with an error or the sorts. Everywhere online points to a simply command like this, so I am clearly doing something wrong.

Can someone point to me what is going on?

I also copied the xml snippet from another guest in the xml like so :

    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/tmp/virtio-win-0.1.185.iso'/>
      <target dev='hdb' bus='ide'/>
      <address type='drive' controller='0' bus='0' target='0' unit='1'/>

This time my guest accepted it with no warning but even on reboot I do not see something showing if I vnc into the windows vm. I am at a loss…

ntp – ntpd synchronization not working

I’m running latest Raspbian Lite on Raspberry Pi 3 B.
Just reinstalled ntpd completely and it doesn’t synchronize time with upstream NTP servers at all.

ntpdate -u

works just fine. Using tcpdump (for eth0 interface) I can see that with ntpdate there are NTP packets going both ways, but with ntpd there is no response from the upstream servers (0… servers set in ntpd config). When ntpd is running, using ntpq -p I can see:

     remote           refid      st t when poll reach   delay   offset  jitter
 0.debian.pool.n .POOL.          16 p    -   64    0    0.000    0.000   0.001
 1.debian.pool.n .POOL.          16 p    -   64    0    0.000    0.000   0.001
 2.debian.pool.n .POOL.          16 p    -   64    0    0.000    0.000   0.001
 3.debian.pool.n .POOL.          16 p    -   64    0    0.000    0.000   0.001

What may be the source of this problem?

visual basic – My snippets are not working

this image shows an error of a code.

I saw a sniipet on making a simple calculator with vb, but its code is not working.

Buttonno1(… Declarations…)
Textbox1.text = textbox1.text = “¹”

But its not displaying that on the text box please I need recommendations that might work or even snippets thank you.
Am a beginner in VB

Sound stopped working after crash Ubuntu 20.04

I had an unexpected system crash and when I came back, the sound wouldn’t work on wired headphones or the built in speakers. (This is an Alienware 15r1.) The indicators in Settings->Sound show movement when I play audio files. I’ve tried both HDMI sound and the PCH sound, no luck. Here’s what I’ve tried:

  • alsactl restore (as well as doing this with sudo)
  • purging and reinstalling alsa-base pulseaudio alsa-utils pulseaudio-utils pavucontrol
  • messing around in alsamixer
  • alsa force-reload
  • blowing up ~/.config/pulse
  • checking for missing drivers, kernel modules, etc
  • the procedure here:

The only weird thing I can see is this output from alsactl:

alsactl: state_lock:125: file /var/lib/alsa/asound.state lock error: File exists
alsactl: load_state:1683: Cannot open /var/lib/alsa/asound.state for reading: File exists
alsa-lib main.c:1021:(snd_use_case_mgr_open) error: failed to import hw:0 (empty configuration)
Found hardware: "HDA-Intel" "Intel Haswell HDMI" "HDA:80862807,80860101,00100000" "0x1028" "0x0685"
Hardware is initialized using a generic method
alsa-lib main.c:1021:(snd_use_case_mgr_open) error: failed to import hw:1 (empty configuration)
Found hardware: "HDA-Intel" "Creative CA0132" "HDA:11020011,10280685,00100918" "0x1028" "0x0685"
Hardware is initialized using a generic method

Here’s my alsa-info output:

Let me know if there’s any other output you think is relevant.

android – Application stops working when I add two fonts

I created a game that has two fonts.

Being precise, the two fonts are PRESS_START_2P with the difference only in size. One of the fonts serves to write the title and the other for all other things.

The problem occurs after building the application (apk). As it is a special font I click on the option “copy to project” for it to be exported to the cell phone.

Image of the two fonts:

enter image description here

A detail is that the program does not recognize the original source directory, so I need to copy the source to the desktop to be able to copy it to the project.

Image demonstrating the problem:

enter image description here

Adding any of the fonts (alone), the game works. The problem happens when I add the second font.

Before posting here, I posted on the official engine forum, but I still haven’t gotten any response.