ios – iPhone XS Max: streaming video playback stops, restart required

Over the last 3 months or so, video playback from YouTube TV and other apps just hang. The app would wait for the video to start and time out. So I tried the usual steps like toggling WiFi, switching to data only, quit/restart app. Nothing worked, expect restarting the phone. This issue occurs with Amazon Prime Video, Netflix, Twitter video playback on Twitterrific. Videos from those apps wouldn’t play either without a restart. This is random. I don’t know how to reproduce. This problem occurred a couple of days ago and then happened this morning. I usually notice it first when videos playback on YouTubeTV stops.

Videos from my photo roll and YouTube plays without any glitches.

Anyone know a solution? I’m on iOS 13.5.1.

permissions – Magento2 – Running di:compile stops at 57% in magento 2.3.2

Class MagentoFrameworkMailEmailMessageInterfaceFactory does not exist
Class VendorExtensionModelMailTransportBuilderInterceptor genera
tion error: The requested class did not generate properly, because the ‘gen
erated’ directory permission is read-only. If — after running the ‘bin/ma
gento setup:di:compile’ CLI command when the ‘generated’ directory permissi
on is set to write — the requested class did not generate properly, then
you must add the generated class object to the signature of the related con
struct method, only.

I found some solutions but none worked..

Thanks in advance,

php – Why when I instantiate wp_error in a validation method my user registration method stops working?

I would really, really, appreciate any insight I can get here.

I’m working on a WordPress plugin that registers users in WordPress and want to validate data submitted through the form. I have a class for this, here’s a condensed version of it:

namespace PluginNameIncludesFormsClasses;

class Validation {

    public function validate_fields($field, $form_type){

      $errors = new WP_Error();
      $validated_fields = ();

      if(!is_email($field)):
        $errors->add('not_email', __('Entered an invalid email', 'plugin-name'));
      else:
        $validated_fields('user_email') = $field;
      endif;

      //other validations

      $error_code = $errors->get_error_code();
      if(!empty($error_code)):
         return $errors;
      endif;

      return $validated_fields;

    }
}

In my user registration class I instantiate the class above to get whatever it returns either and array of field data or errors.

Here’s my Register_User class condensed:

namespace PluginNameIncludesFormsClasses;

class Register_User{

    public function __construct(){
        add_action('wp_ajax_pn_register_user', ($this, 'pn_register_user'));
        add_action('wp_ajax_nopriv_pn_register_user', ($this, 'pn_register_user'));
    }

    public function pn_register_user(){
    
        if (!check_ajax_referer( 'reg_nonce' )):
            wp_die();
        endif;

        $form_validation = new Validation();
        $form_validation_results = $form_validation->validate_fields($_POST, 'registration');

        if(is_wp_error($form_validation_results)):
            
            error_log('Some error happened');

        else:

            error_log('No Errors to report');

            $userdata = array(
                'user_email' => $form_validation_results('user_email')
                //other fields
            );

            wp_insert_user($userdata);

        endif;

        wp_die();

    }

}

This does not work if I have this line in the validation class: $errors = new WP_Error(); – the form is submitted but no user is registered as soon as I comment out everything related to WP_Error the user is registered normally. And it’s not due to any validation, even with no validation and just the WP_Error object instantiated it does not work.

Again, I would really appreciate any help that I can get, my head is about to explode. I couldn’t find anything on the site or elsewhere. I’m not sure if it’s a scoping issue or an ajax issue? regarding the former, I tried making $errors global but still no results.

Please help

legal – What happens if police stops me when driving a rental car and I’m not the authorized driver (US-FL)?

You could possibly be charged with driving a vehicle without the owners consent, but more importantly if you are not a valid driver then you are driving without insurance.

Driving without insurance is illegal in Florida.

You should also be aware that the insurance you don’t have doesn’t just protect you against damaging the car. In the US, if you seriously injure someone in an accident they can and will come after you for their medical bills, which can run to hundreds of thousands of dollars. This is what your insurance covers you against (amongst other things). Unless you can afford to pay hundreds of thousands of dollars, don’t drive without insurance.

Further reading:

ssh – X11 over remote Docker container stops working after resetting VPN

I’m running on ubuntu 18.04, with a “operator” machine VPN’ed into a network that has the “Test” machine.

The test machine runs a Docker container that has a GUI application that I forward over X11. I use SSH on the operator machine to SSH into the test machine. Then, I run the Docker container. Normally, the GUI shows up on my “operator” machine when I run the Docker container.

However, I’ve noticed that as soon as I disconnect my VPN and reconnect,I get a “Could not connect to display $DISPLAY” error.

I would need to create a new container from the image to have the X11 working again.

Here is how I launch it:

SOCK=/tmp/.X11-unix
XAUTH=/tmp/.docker.xauth
xauth nlist $DISPLAY | sed -e 's/^..../ffff/' | xauth -f $XAUTH nmerge -
chmod 777 $XAUTH
sudo docker run  --gpus all -it --privileged --network=host -e DISPLAY=$DISPLAY -v $XSOCK:$XSOCK -v $XAUTH:$XAUTH -e XAUTHORITY=$XAUTH  image

Nothing changed on the “test” machine or docker container in this situation. Even if the VPN reconnect assigned me the same IP as prior, it would still have this issue.

ssh keys – krypton ssh stops to work after upgrading to macOS Catalina 10.15.5

I have just upgraded macOS to Catalina 10.15.5 and ssh using krypton has stopped to work. First I got an error Enter PIN for 'Kryptonite iOS': which I solved removing line PKCS11Provider /usr/local/lib/kr-pkcs11.so from .ssh/config like explained in https://github.com/kryptco/kr/issues/301

However, after doing that, it seems like trying to get confirmation from iPhone is never tried.

I get this:

ssh username@192.168.0.4                
no such identity: /Users/username/.ssh/id_krypton: No such file or directory
no such identity: /Users/username/.ssh/id_ed25519: No such file or directory
no such identity: /Users/username/.ssh/id_ecdsa: No such file or directory
no such identity: /Users/username/.ssh/id_dsa: No such file or directory
jlr@192.168.0.4: Permission denied (publickey).

My config file is:

# Added by Krypton
Host *
        ProxyCommand /usr/local/bin/krssh %h %p
        IdentityFile ~/.ssh/id_krypton
        IdentityFile ~/.ssh/id_ed25519
        IdentityFile ~/.ssh/id_rsa
        IdentityFile ~/.ssh/id_ecdsa
        IdentityFile ~/.ssh/id_dsa

I was able to connect just before the update to Catalina 10.15.5, no changes on the server side.

I have tried to reinstall kr and also unpair and pair again the device, but none of these solved the problem.

18.04 – Microphone of Dell Pro Stereo AE515M soundbar stops working after locking/unlocking session

I am running KDE Neon with a Ubuntu 18.04 LTS base. The microphone of my soundbar usually stops working after I lock and unlock my laptop or when I wake up my laptop after it has gone to sleep. Diving into my sound settings to correctly configure:

  • Default Device
  • Record all audio via this device

does not work. I can get the microphone working again by disabling (setting to off) and re-enabling (setting to Analog Stereo Duplex) the Device Profile corresponding to the soundbar. Another solution is to unplug and replug the USB cable of the soundbar.

Is there a more convenient way to have the microphone always working? I am using the microphone for video calls on Microsoft Teams, so it is quite frustrating to have to re-configure my soundbar multiple times per day.

Thank you for your help. Hereafter I have listed some additional information.

Hardware overview

I have a Dell XPS 15 9550 laptop hooked to a Dell WD19TB docking station via a USB-C cable. The docking station is hooked to a Dell P2720DC monitor also via a USB-C cable. The monitor is hooked to the Dell Pro Stereo 515M soundbar via a USB-A cable:

laptop——USB C——dock——USB C——monitor——USB A——soundbar

ps

The speaker of the soundbar always works, even if the microphone is not working.

ssl certificate – Apache stops using VirtualHost and goes back to test page

I am setting up an apache server with SSL and Kerberos.

I keep making progress, but then the server suddenly decides to ignore my virtual host and the webpage switches to an invalid self-signed certificate and only loads the apache test page.

During this time it doesn’t generate any error logs because I am not actually visiting my site.

<VirtualHost *:80>
        ServerName site.my.domain.com
        Redirect "/" "https://site.my.domain.com/"
</VirtualHost>


<VirtualHost *:443>
    ServerName site.my.domain.com
    ServerAlias site.my.domain.com
    DocumentRoot /var/www/site.my.domain.comk/html
    ErrorLog /var/www/site.my.domain.com/log/error.log
    CustomLog /var/www/site.my.domain.com/log/requests.log combined
    SSLEngine on
    SSLCertificateFile /etc/ssl/private/site.cer
    SSLCertificateKeyFile /etc/ssl/private/site.key
    SSLCertificateChainFile /etc/ssl/private/chain.pem

   <Location />
        AuthName "Domain Login"
        AuthType Kerberos
        Krb5Keytab  /etc/httpd/conf.d/krb5.keytab
        KrbAuthRealms MY.DOMAIN.COM
        KrbServiceName HTTP
        KrbMethodNegotiate On
        KrbMethodK5Passwd Off
        KrbVerifyKDC off
        require valid-user
    </Location>

</VirtualHost>

I was in the middle of configuring the website to use the kerberos details being passed (which seemed to be working), when it stopped liking the certificate again.

I thought I may have broken he php website, but I reverted to a working snapshot and rebooted everything and nothing has changed.

This is the second time today and I don’t know what fixed it last time!

Camera stops recording (but doesn’t crash)

(Phone: Samsung Galaxy A5 (2017))

Since a few months back, every time I try to record a video with my default camera app or any other third party app, what happens is the following:

  1. I start the recording.
  2. A timer starts at the bottom with a blinking red light to indicate that the phone is indeed recording.
  3. In a random amount of time (half a minute up to 3 minutes) the red light disappears, the timer stops, but the camera doesn’t crash or anything – it just stays frozen and stops recording. I have to exit the app and reenter to get it working again.

Additional details:

  • Photos I can take just fine.

  • The problem doesn’t seem to affect Snapchat or Google Meet, which I both regularly use.

  • Yes, the problem also occurs with the front camera.

  • When I tried to record on another application, when it stopped recording it stated “Failed to reconnect to camera” and “Server died, video halted”.

What I have tried so far (and not one has worked):

  • Deleting app data/cache

  • Restarting my phone

  • Changing between SD and internal storage for the saving location

  • Going into safe mode

  • Factory restarting my phone twice – once after I had restored everything, second time when the first thing I did after setting up my phone was going into the camera app to record.

I’m unsure if this is the right place for this question, but any help at this point would be much appreciated, as I’m in a big need for a recording device currently. Thanks!

Is there a security option on Linux servers that stops the submission of certain HTML tags in forms

One of our client’s websites has started showing some strange behaviour. When a <form> tag is submitted on a form, the POST method seems to refuse to accept it. It produces the following error…

You don’t have permission to access this resource.

At first I thought it might have something to do with the TinyMCE editor on the form, but when I use non-accepted tags within TinyMCE it simply converts them to <p> tags. Also, if it was a TinyMCE issue that wouldn’t explain why this change suddenly happened recently.

We also have a duplicate of this site running on our local server here, and it works fine.

Is this something that a mod_security update may have caused?

If anyone has any ideas that would be much appreciated.

UPDATE

I ran phpinfo(); and there was no mention of mod_security. I also tried adding the following in my .htaccess file as recommended by several people in this SO question…

<IfModule mod_security.c>
  SecFilterEngine Off
  SecFilterScanPOST Off
</IfModule>

… but it didn’t have any effect, which isn’t surprising since mod_security doesn’t seem to be turned on.