## iOS 12 devices randomly wakes to Home screen and doesn’t turn off again automatically

I’ve got an iPhone 8 and an iPad mini 4 (both running iOS 12) that both seem to have the same issue.

For some reason they randomly turn on the Home screen when they are resting, as if they have just received a push notification (although they haven’t).

When they randomly turn on the Home screen, it will not turn off without manually pressing the lock button. So if this happens in the middle of the night, it just runs down the battery.

Any ideas why this might be?

Please see below screenshot of Settings app for lock on the iPhone.

## Ubuntu 18.10 Freezes randomly

My Laptop, Lenovo Y720, suddenly just freezes down at random times. There are no symptoms at all. In symptoms I mean no slow downs, no overheat, no program crashes, it does not happen when I open a specific program. It just happens. I have not been able to find a log that is not one million lines long, is there a way to lookup a simple log that shows some fatal error?

## Delete source files and copy randomly selected folder contents using batch

• Delete all files of .ext in source folder
• Randomly select folder either by naming pattern or any other means.
• Then copy all *.ext files from randomly selected folder to source folder [if easier can just copy whole folder contents].
• To be run as a batch file in a windows environment.

Example batch script (still have no idea how to code): delete-and-copy.cmd

``call del C:\test\source\*.ext call Copy *.ext C:\test\library\group_%RANDOM% [COUNT=Folders %RANDOM%=Select1(%COUNT%)] "C:\test\source\" ``

OR another not working suggestion:

``call del C:\test\source\*.ext @echo off setlocal EnableDelayedExpansion cd C:\test\library\ set n=0 for %%f in (*.ext) do (    set /A n+=1    set "folder[!n!]=%%f" ) set /A "rand=(n*%random%)/Count_1_%_10" copy "!group_[%rand%]!/*.ext" C:\test\source\ ``

Folder Layout

``C:\test\source\delete-and-copy.cmd C:\test\source\  (150 *.ext files plus few others) C:\test\library\group_01\ (150 *.ext Files) C:\test\library\group_02\ (150 *.ext Files) C:\test\library\group_03\ (etc..) C:\test\library\group_04\ C:\test\library\group_05\ C:\test\library\group_06\ C:\test\library\group_07\ C:\test\library\group_08\ C:\test\library\group_09\ (...) C:\test\library\group_10\ (127 *.ext Files) ``

Current Research:

• SU – How do I select a random file in a folder? – with further reading

• SU – Move folders using wildcard

• SU – Can I copy multiple files from single folder to multiple folder in windows with batch file?

• SU – Batch file to copy a file at random to another folder

• SO – Need to create a batch file to select one random file from a folder and copy to another folder

• SO – Delete all files of specific type (extension) recursively down a directory using a batch file

## The salesman randomly pulled out \$8\$ socks out of \$14\$ pairs of socks.

The salesman randomly pulled out $$8$$ socks out of $$14$$ pairs of socks. Calculate the probability of a case where there is at least one pair of socks among the pulled ones.

My question is: should I be calculating as if all socks were different or as if they form multiset of 7 elements?

## My Mac keeps adding double spaces randomly when I type

I’m running Mac Version 10.14.3 on a 15-inch 2018 model.

I’m not sure if I received a new update but over that last few days it keeps adding random double spaces as I type.

I tried turning off key repeat as suggested on some websites but that hasn’t corrected the issue. Has anyone else experienced this problem?

I’ve had this Mac for several months and I never had this issue until a few days ago. I’m not sure if it’s software or hardware related.

## Probability( randomly selecting)

A paint-store chain produces and sells latex and semigloss paint. Based on long-range sales, the probability that a customer will purchase latex is 0.75. Of those that a customer will purchase latex, 60% also purchase rollers. But 30% of semigloss buyers purchase rollers. A randomly selected buyer purchases a roller and a can of paint. What is the probability that the paint is Latex?

## QUERY function randomly and invisibly corrupts dates

I found this BUG while trying to use `MATCH` using Queried data against the actual data.

When you format the data as Number the problem is fixed on row 5, but remains on row 2.

When increasing the decimal places the problem on row 2 surfaces as a precision problem.

Workaround use the `FILTER` function instead of `QUERY`. (Also shown in the sample spreadsheet)

## nginx “randomly” serves the wrong server

I have an nginx server with several servers, basically the config file looks like this:

``http {     server {         listen              [::]:80;         listen              80;         server_name         DOMAIN1.com www.DOMAIN1.com;          location ~ \.php\$   {             // ...             fastcgi_pass            unix:/run/php/DOMAIN1-php7.3-fpm.sock;         }          listen [::]:443 ssl http2 ipv6only=on;          listen 443 ssl http2;          ssl_certificate /etc/letsencrypt/live/DOMAIN1/fullchain.pem;          ssl_certificate_key /etc/letsencrypt/live/DOMAIN1/privkey.pem;          include /etc/letsencrypt/options-ssl-nginx.conf;          ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;      }      server {         listen              [::]:80;         listen              80;         server_name         DOMAIN2.com www.DOMAIN2.com;          location ~ \.php\$   {             // ...             fastcgi_pass            unix:/run/php/DOMAIN2-php7.3-fpm.sock;         }          listen [::]:443 ssl http2 ipv6only=on;          listen 443 ssl http2;          ssl_certificate /etc/letsencrypt/live/DOMAIN2/fullchain.pem;          ssl_certificate_key /etc/letsencrypt/live/DOMAIN2/privkey.pem;          include /etc/letsencrypt/options-ssl-nginx.conf;          ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;      } } ``

When I open DOMAIN1.com the page usually loads. But when I refresh the page several times, I will eventually get the contents of DOMAIN2.com – the same happens on DOMAIN2.com

I have 10 domains in total, and there is no “default” domain; i.e. when a wrong site is served, it’s always a different one.

I can actually observe a pattern: When I make a request to a domain it works. Then I open a different browser and load a different domain. Then I refresh the first browser it serves the domain that I just opened on the second browser.

Any idea how I could debug/fix this or what configuration actually triggers this behavior?

## Product view page scrolls up randomly on mobile device

In the product view page when I scroll down a little bit, sometimes (very often) the page scrolls to the top.

This is the effect of the scroll up:

## Ubuntu keeps randomly shutting down

I have Ubuntu on my laptop and it keeps crashing out of no where. I couldn’t find anything in the syslogs or kern.logs about it at the times when it happened. I don’t know if it could be my battery since I don’t know how to test it. I think it might be because the crash it an instant shutdown, as if it was never powered on.

The laptop does has an NVidia card in it and I tried rolling back the drivers like in another post on here, but that didn’t work.

I kept checking sensors between crashes (it happens multiple times within minutes of each other for a bit) but temps never got above 45C.

Is there another place in /var/log to look or some kind of tool to scan for error in the disk? This problem has been happening for a while and I can’t find anyone having the same problem.