Regular Expressions to accept strings where every two successive 0s are followed by a 1

How do I define a Regular Expression for the language L = {w|every two successive 0s are followed by a 1} ?

I don’t have any idea on how to even approach this problem, primarily because it says “every two 0s“.

Getting list of followed sites for a specific user

There is an undocumented API /_vti_bin/homeapi.ashx/sites/followed that returns the list of followed sites for the currently logged in user.

Question

Is there a way to retrieve the list of followed sites for a specific user using REST API, Graph or some other way?

Explanation

We are going to need to write a crawler that runs every day and for every user in Office 365, gets the list of followed sites. This will later be used for a separate email notifications feature. But first, I am trying to understand if it’s even possible to get users’ followed sites.

Any help will be greatly appreciated!

Unable to get driver to recognize NVIDIA GPU when I followed instructions for tensorflow install for 18.04

I am following the instructions here https://www.tensorflow.org/install/gpu

My output for nvidia-smi was “No devices were found.” However when I run lspci -vv | grep NVI I get

0a:00.0 VGA compatible controller: NVIDIA Corporation Device 1f06 (rev a1) (prog-if 00 [VGA controller]) 0a:00.1 Audio device: NVIDIA Corporation Device 10f9 (rev a1) 0a:00.2 USB controller: NVIDIA Corporation Device 1ada (rev a1) (prog-if 30 [XHCI]) 0a:00.3 Serial bus controller [0c80]: NVIDIA Corporation Device 1adb (rev a1)

When I run the bug report, nvidia-bug-report-sh Iget this

One thing that stood out to me was the fact that it says

ERROR: Kernel configuration is invalid."; \ echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\ echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it.";

I am unsure of how to do that or if it will fix the problem.

how to block all followers except followed

I have a lot of followers due to spam. I want to block and unblock them all to make them unfollow me except ones I followed. how to do that? is there any script to do that? thanks.

Why am I being followed by a political opponent in Twitter?

Why would an influential political figure follow me in Twitter, when I’m a nobody, and all I’ve done to date is opposed his party’s philosophy? He follows some 100k people, with a similar number of followers.

I’m almost certain it’s to benefit his party, his politics, and his own interests, rather than mine! But what is this actually achieving for him?

Surely he’d be better off following people of an aligned ideology! Otherwise he’d have 100k people filling his feeds with hate. (Actually, he probably does)

Selenium::WebDriver::Error::UnknownError causes socket hang up, followed by ECONNREFUSED 127.0.0.1:8200

I’m developing an automation script to exercise an app on a tablet. The script is written on a MacBook Pro with OS X v10.11.6 in RubyMine 2018.3.5 and connects via Wi-Fi to the tablet using Appium 1.12.1 and Gem selenium-webdriver 3.141.0.

The Capabilities declarations for Appium in RubyMine are

appiumVersion: ‘1.12.1’, platformName: ‘Android’, platformVersion: ‘7.0’, deviceType: ‘tablet’, deviceName: ‘10.124.41.103:5555’, app: ‘/Users/paulkmecak/Downloads/usa-mailing-qa-signed-686.apk’, appPackage: ‘com.pb.csdsenior’, appActivity: ‘com.pb.csdsenior.presentation.view.activity.StartupActivity -esa REDIRECT_ACTIVITY com.pb.csdsenior.presentation.view.activity.MailMainActivity’, newCommandTimeout: 480, noReset: true, fullReset: false, automationName: ‘UiAutomator2’

The Hipstreet Titan Turbo tablet runs Android 7.0

The script reads records with various parameters and enters them on the tablet app, making sure the results on screen 1 carry over to screen 2, etc, and back to the home screen.

At some random point, I get an error message

***Error Type: Selenium::WebDriver::Error::UnknownError, Error Message: An unknown server-side error occurred while processing the command. Original error: Could not proxy. Proxy error: Could not proxy command to remote server. Original error: Error: socket hang up,

find_element_by_locator( COD ), Error Type: Selenium::WebDriver::Error::UnknownError, Error Message: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: connect ECONNREFUSED 127.0.0.1:8200 undefined method `click’ for # (NoMethodError)***

This occurs after as few as 45 records or as many as 189 records. Unfortunately, there are over 1600 records I need to process.

Sudden high CPU usage followed by Input/Output error

First a little bit of information about my system:

OS: Ubuntu 18.04 with encryption while installing

DE: i3wm (probably doesn’t have to with this, because the same problem appears in Gnome)

Hardware: Lenovo T470

Since about three days I’m encountering the problem, that all of a sudden the CPU usage rises to about 100% (sometimes 98%). Shortly after the rise nothing works anymore and bash returns an “Input/Output error” and I have to power off by removing the battery…

Now I know Input/Output errors usually happen because the hard drive is full, but mine isn’t even remotely full (at about 7% – checked with df).

Here is the output of journalctl of the last two boots: Journal

I don’t understand what’s going on and I already had to repeat some work because of this, so any help is appreciated.

Using Ito’s Lemma to compute the process followed by a function

I have the following process $$dS_t = \mu S_t dt + \sigma S_t dz_t$$ and the function $$f(S) = S^2$$ where

$$\frac{\partial f}{\partial t} = 0, \frac{\partial f}{\partial S} = 2S, \frac{\partial^2 f}{\partial S^2} = 2, df = 2SdS + \frac{1}{2}2 \cdot dSdS$$

I have that using Ito’s Lemma: $$df_t = 2S_t(\mu S_td_t + \sigma S_tdz_t) + \frac{1}{2}2\cdot \sigma S_tdz_t \cdot \sigma S_tdz_t = (2 \mu S_t^2 + \sigma^2 S_t^2)dt + 2 \sigma S_t^2dz_t$$ or $$df_t = (2 \mu + \sigma^2)f_t dt + 2\sigma f_tdz_t.$$ Can someone explain how this works for this specific example for me? I realise that $$df = \left( \frac{\partial f}{\partial t} + \mu \frac{\partial f}{\partial s} + \frac{1}{2}\sigma^2 \frac{\partial^2f}{\partial S^2} \right) dt + \sigma \frac{\partial f}{\partial s}dz_t$$ but i cant understand how $$df = 2SdS + \frac{1}{2}2 \cdot dSdS$$ was obtained from that expression? Also, i don’t understand how the larger first expression for $$df_t$$ was constructed? Any help would be great, thanks!

Mac Mini screen glitch followed by fan noise then reboot

My Mac Mini 2014 has been glitching recently. I don’t know whether its releated to the recent OSX update. Without any sign, the screen would blur as the image bellow.

The keyboard and mouse has no response. Then, there is a lot of fan noise, and later the screen goes black and then the system is rebooted.

It was able recover after reboot. However, after this issues happened several times, it cannot recover now. When power on, the fan keeps making noise, and the screen is black. There is no signal in the monitor.

Is this a graphics card issue? Can I fix it by replacing the logic board?