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 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.

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://serverfault.com/" "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!

javascript – the jquery script stops working when i add a ruby ​​to each loop

I have three models. Chapter, Lesson, and Question

Chapter has many Classes and Lesson has many Questions

In a specific view, I want to display all the lessons that have at least 1 question attached to them.

I do this by:

Scenario 1

<% Chapter.all.each do |chapter|%>
  <% chapter.lessons.select{|x| x.questions.size.positive?}.each do |subject| %>
    <%= subject.name %>
  <% end %>
<% end %>

Scenario 2

<% Chapter.all.each do |chapter|%>
  <% chapter.lessons.each do |subject| %>
    <%= subject.name %>
  <% end %>
<% end %>

Scenario 3

<% Chapter.all.each do |chapter|%>
  <% chapter.lessons.all.each do |subject| %>
    <%= subject.name %>
  <% end %>
<% end %>

Scenario

There is a script below at the end of the page.


The page loads perfectly well in the 3 error-free scenarios on the Google Developer Console.

HOWEVER the script only works in Scenario 3, it doesn't even work in Scenario 2.
But I want it to work with Scenario 1.

Chrome: when opening Youtube links, the video stops after 1 second, click on play to continue

When I click on a Youtube link in Chrome, it opens a tab with that particular Youtube link and starts playing.

However, for some strange reason, after playing for about 1 second, the video is interrupted. I have to click on "play" to continue.

For example, I visit youtube.com and click on one of the suggested videos. It will open the page for that video and start playing automatically – for a second. Then it stops.

Things I’ve already tried:

  • Chrome updated (already using the latest version)
  • used Youtube with or without being connected to Google
  • removed all add-ons and extensions
  • cache, history, cookies, local storage, everything
  • Chrome closed and restarted, with all add-ons and extensions and cookies and history deleted
  • restarted my whole machine

All in nothing. This does not happen in Brave or Firefox, only in Chrome.

What could cause this?

P.S. For info I use macOS 10.15.4 Catalina.

Active Directory – Windows Name Resolution Over VPN Stops Working After One Day

When I work from home, I have serious problems with connecting the office through the VPN tunnel. This appears to be due to a Windows name resolution issue with the AD server located on the Synology NAS at the office.

When I put my sleeping laptop to the office and start working at home, everything is fine for about a day.
Then, the connection with the office partially stops working, mainly with timeouts.

Does anyone have any idea what is causing these problems or where to look to solve them?

  • We are a small business, with three Windows laptops
  • A Synology 918+ running DSM 6.2.2-24922 Update 4, acting as an AD controller and file server.

  • A Windows 10 Pro 1909 PC as a database server with SQL Server Express, version 14.0.2027

  • The Synology box is also the DNS.

  • The DNS server is only configured for IPv4 addresses.
  • The laptop is connected to the network via Ethernet both at the office and at home.
  • The IP configuration consists of an Etherenet / 24 subnet (and some wireless VLANs) at the office and a different / 24 subdomain at home.
  • Home and Office Network Networks are connected transparently via a VPN tunnel over a firewall in SonicWALL TZ 300 firewall hardware.
  • The firewall and VPN are managed by our service provider (not internet providers!).
  • At home, the DHCP server is the Internet router (provided by the Internet service provider)
  • The internet connection to the office is quite slow (download speed of about 2 Mbit) while the connection to the home office is a factor 10 faster, but includes an IPV4 over IPv6 protocol transfer by the provider ;Internet access.

A typical problem: computer name resolution at IP level (i.e. Ping) works, but I can't connect SMB shares from Synology-box (see configuration below) below) at the office via name resolution, but the connection via IPv4-Addresses works perfectly.
For example: "net use dsm-box groupdata" does not work, while "net use 192.168.0.1 groupdata" still works perfectly.

Another typical problem: the connection eg. Microsoft Server Management Studio on the desktop database server failed: "The semaphore timeout has expired" or "The target principal name is incorrect". ("Der Prinzipalname des Ziels ist nicht korrekt. Der SSPI-Kontext kann nicht generiert werden. (.Net SqlClient Data Provider)"))
I connect to the database with Windows domain user authentication.

  • As a workaround: connect the SMB shares from the head office synchronization server via the IP address, not the host name. It mainly works, but some apps require the host name.
  • deletion of the DNS cache
  • deleting the ARP cache
  • Renew IP-Lease in the Homeoffice.
  • any type of computer restart
  • According to our service provider, no port is blocked by the VPN.
  • several sessions with the service provider to try to pinpoint the problem, including Wiresharek recordings of what's going on between the client (my laptop) and the domain controller. But I'm by no means an expert in network, so these are just modest digs – trying to find a clue.
  • For SQL Server: increase the timeout, up to 120 seconds. It helps sometimes.

tcp – Connection to some IPv6 stops working

Sometimes (as at present), I can no longer connect from my Fedora laptop to many servers via TCP over IPv6 (initially via Wifi).

Symptoms

❯ sudo traceroute6 www.wikipedia.org --port=443 --tcp
traceroute to www.wikipedia.org (2620:0:862:ed1a::1), 30 hops max, 80 byte packets
 1  * * *
...
30  * * *

# To some other hosts, the connection works
❯ sudo traceroute6 www.google.com --port=443 --tcp  
traceroute to www.google.com (2a00:1450:4001:809::2004), 30 hops max, 80 byte packets
 1  p200300F8DBC27036763170FFFE1F601C.dip0.t-ipconnect.de (2003:f8:dbc2:7036:7631:70ff:fe1f:601c)  1.316 ms  2.984 ms  2.885 ms
...
 7  fra16s42-in-x04.1e100.net (2a00:1450:4001:809::2004)  18.971 ms  18.846 ms  19.418 ms

# UDP works
❯ sudo traceroute6 www.wikipedia.org --port=443      
traceroute to www.wikipedia.org (2620:0:862:ed1a::1), 30 hops max, 80 byte packets
 1  p200300F8DBC27036763170FFFE1F601C.dip0.t-ipconnect.de (2003:f8:dbc2:7036:7631:70ff:fe1f:601c)  5.281 ms  5.178 ms  5.118 ms
...
 8  adm-b3-v6.telia.net (2001:2000:3018:67::1)  39.710 ms  41.436 ms  40.402 ms
 9  * * *
...

# IPv4 works
❯ sudo traceroute www.wikipedia.org --port=443 --tcp 
traceroute to www.wikipedia.org (91.198.174.192), 30 hops max, 60 byte packets
 1  _gateway (192.168.2.1)  3.211 ms  3.571 ms  3.882 ms
...
 6  text-lb.esams.wikimedia.org (91.198.174.192)  34.740 ms  27.594 ms  27.800 ms

# ICMPv6 method does not work at all (ICMPv4 works)
❯ sudo traceroute6 www.google.com --icmp           
traceroute to www.google.com (2a00:1450:4001:809::2004), 30 hops max, 80 byte packets
 1  * * *
...
30  * * *
  • https://ipv6-test.com/ shows that IPv6 is not supported after an expiration time.
  • I can loop a web page on IPv6, another web page in the same subnet 2a03:4000 do not.
  • Wireshark shows that TCP retransmission packages are sent after SYN and that some ICMPv6 "Destination unreachable" packages arrive at runtime traceroute6 with UDP.

Countermeasures (not 100% sure)

  • Rebooting often solves the problem.
  • Restarting Wifi rarely solves the problem.

mojave – Macbook pro doesn't update format or stops and crashes every time

I have macbook pro mid2015
He first started hanging a round mouse cursor with colors appearing and in the end I have to force him to stop it
I tried everything
The R command will not work
Disc format stuck at "mount status check"
Internet recovery mood doesn't work
P and r command option
Nothing useful
Command tried
And used fsck_apfs
I have tried everything on the Internet
Macbook still works
But I can't update or close it and after a while it freezes and freezes

The grunt Magento2 watch finally stops

I installed grunt finally it stops and does not run

sudo grunt watch:fittings
Running "watch:fittings" (watch) task
Waiting...

Grunt finally stops ……….