## Why has my Mac stopped accepting mouse clicks?

My Mac mini suddenly stopped responding to mouse clicks. The cursor moves around and I can switch applications with the keyboard but neither my magic trackpad or cheap USB mouse work for any type of click. As I move the most cursor along the dock icons are not ‘popping’ neither are any mouse hover actions seeming to work.

I never saw this before, what is going on? I don’t know how to use my Mac without a mouse so I’m a bit stuck!

## Dove tailing questions about accepting language

$$L = \{M | \text { M is a TM and there exist some string w that contains five 1’s such that M halts}\}$$

Where $$\Sigma =\{0,1\}$$

let $$w_1, w_2, \cdots, \in \Sigma^*$$ be an effective enumeration. We give a TM $$R$$ that recognizes $$L$$

R = "On input <M>     for s = 1 to infinity:         for i = 1 to s             run M on input w_i for s steps             if M halts on w_i within s steps then                 accept 

Can I assume $$M$$ knows to halt only if there are five $$1$$‘s? Or do I need another if statement such as in line 4

if M halts on w_i within s steps then     if w_i.count("1") is 5 then         accept 

## How to define accepting states in a finite automation?

I can build a finite automation from a dataset and would be glad to expand that to a deterministic finite automation (DFA). A DFA requires accepting states. How one can identify them, or how these can be defined?

Is there any proper definition for accepting states? What is the difference of accepting states from all other states?

## Is the language of all TMs *not* accepting a given string, Enumerable?

Is the following language in RE?
$$L = \{\langle M\rangle : M\text{ is a TM that does not accept }010\}$$

I could use Rice’s Theorem with the property $$P = \{L : 010\text{ is not in }L\}$$ to show it isn’t in R, but how do I show it is in RE?

## Turing machine different accepting states

I want to design a Turing machine that accepts at most 3 0s. Now, I have designed one, which goes to accept state overtime it sees 1, 2 and 3 0s and rejects any further 0s. I wanted to know if it is okay for TM to go to accepting state from 3 different states?

## DFA multiple accepting states to Regular expression

I am trying to find the regular expression that defines this DFA, I am finding this particular case difficult since it has multiple accepting states.

If I understand this DFA correctly, it recognises:

empty strings or strings with any number of b => b*

or

a followed by any number of b => ab* or aa followed by any number of b => aa(b*)

So the closest I have got is b*+(a+aa)+(a+aa)b* but I know this is not correct, since it doesn’t recognise strings such aabaabab.

I have been using http://ivanzuzak.info/noam/webapps/fsm_simulator/ so I can see I don’t know how to make the transition back to Q0 from Q1 or Q2 when there is a b.

Could anybody help me finding where I’m going wrong and how could I fix it?

Many thanks in advance.

## Gmail app on IOS is not accepting below font-size:12px for my Emailer

How can I add a specific thing to correct my gmail app iOS problem.

my is below

table {border-collapse: collapse;} </style> * { -webkit-text-size-adjust: none; }

body { margin: 0 !important; padding: 0; background-color: #ffffff; 

} table { border-spacing: 0; } td { padding: 0; } img { border: 0; }

            <!--logo-->             <table width="600" border="0" cellspacing="0" cellpadding="0" align="center"  style="width:600px; background-color: #fff;" >               <tr><td height="20"></td></tr>                 <tr style=" background-color: #fff;">                 <td width="5%"></td>                 <td width="42%">                     <table>                         <tr>                             <td style="font-family: Times New Roman, sans-serif; font-size: 24px;color:#61117F">STAY FOR 3 NIGHTS, PAY FOR 2</td>                         </tr>                         <tr>                              <td style="font-family: Arial, sans-serif; font-size: 14px; color:#000000;">At The Leela Raviz Kovalam</td>                         </tr>                     </table>                  </td>                 <td width="35%"></td>                  <td width="13%"><img src="https://msstatic.theleela.com/images/marketing/logokovalam_26042019.png" width="96"></td>                 <td width="5%"></td>               </tr>             <tr><td height="20"></td></tr>               </table>             <!--logo-->                <!--Banner-->             <table>                 <tr>                     <td>                         <img src="https://msstatic.theleela.com/images/marketing/bannerimg_26042019.jpg"  width="600">                     </td>                 </tr>             </table>               <!--Banner-->                <!--Content-->                <table>                   <tr><td height="20"></td> </tr>                   <tr><td  style="font-family: Arial, sans-serif; font-size: 12px; color:#58585B; text-align: center;">Book your stay for 3 nights and pay only for 2. Also enjoy complimentary <br>daily breakfast and a host of other services.</td></tr>                   <tr><td height="20"></td> </tr>                   <tr><td style="font-family: Arial, sans-serif; font-size: 12px; color:#58585B; text-align: center;">Offer valid for new bookings, for stays up to September 30, 2019. To know more, please click <em> <a href="https://www.theleela.com/en_us/hotels-in-kovalam/the-leela-raviz-kovalam-hotel/offers/offer-detail/pay-2-stay-3/?utm_source=knowmore&utm_medium=email&utm_campaign=TLKPay2Stay3Apr19" target="_blank">here</a></em>. </td> </tr>                   <tr><td height="20"></td> </tr>                   <tr><td style="font-family: Arial, sans-serif; font-size: 12px; color:#58585B; text-align: center;">Book online at <a href="https://www.theleela.com/en_us/?utm_source=eNewsFooter&utm_medium=email&utm_campaign=TheLeelaeNewsApr2019">www.theleela.com</a> or by calling The Leela Reservation Worldwide*. </td> </tr>                    <tr><td height="20"></td> </tr>               </table>                <table>                  <tr><td height="25" style="background: #61117F; color: #ffffff; padding: 2px 20px; border: none; cursor: pointer;"><a style="font-family: Arial, sans-serif; font-size: 14px;background: none;color: #fff; text-decoration:none;" href=" https://www.theleela.com/spring/booking/step1?hotelName=LEELAKOV&noofRooms=1&utm_source=Booknow&utm_medium=email&utm_campaign=TLKPay2Stay3Apr19" target="_blank">BOOK NOW</a></td></tr>                   <tr><td height="20"></td> </tr>               </table>                <table>                   <tr>                       <td  style="font-family: Arial, sans-serif; font-size:10px; text-align: center; color:#231F20;"> *The Leela Reservations Worldwide (Toll Free): India 1 800 1031 444 | USA 8556 703 444 | UK 08000 261 111 <br> Hong Kong 800 906 444  Singapore 1800 223 4444 | Others +91 124 4425 444 | Email: reservations@theleela.com</td>                   </tr>                   <tr><td height="20"></td> </tr>               </table>                <table style="background-color: #F0E4F7;" width="600">                    <tr>                         <td width="2%"></td>                         <td width="78%" style="font-family: Arial, sans-serif; font-size:9px; color:#2A1720; padding: 10px 10px; 

                      </td>                       <td width="2%"></td>                   </tr>                </table>           </td>     </tr> </table> 

## Define the finite automata accepting the language below

$$\{ w∈(a,b) \ast | w$$ does not contain ‘$$ab$$‘ as a subword $$\}$$.

About questions like this, I always want to construct the regular expression for it, then convert the regular expression to a finite automata. Is there an easier way? Actually, I dont know the regular expression of it either.

## VS Debug not accepting the command line argument provided in project properties [on hold]

A cpp project my team is working on in Visual Studio 2017 Community (v15.5.1) compiles to an .exe that can be run from a terminal with the command line argument pointing to a set of inputs. Normally as I work on the code I run it in debug mode within VS, setting the command line argument by right clicking the main Project, going to Properties > Debugging > Command Argument and entering the path to the input set there same as I would after the .exe name if running it in a terminal.

The problem is that when I compile in Debug mode, my command argument is not used and instead an older command argument is used, whatever argument was last committed in our version control for the solution’s .vcsproj.user file. I check out the latest copy, modify the command argument to my own path, run debug and it uses the command argument from whatever I had last checked out, ignoring the path I provide.

What could be going wrong here? How do I get VS debug mode to use the path I provide? The only diff I find from version control is my change to .vcsproj.user file, in the tag . My working copy has the path I provided in VS Project Properties for Command Argument, and yet running Debug mode doesn’t use that path.

To confirm the EXE is working as expected, if I compile it for release and then run it from a terminal, it accepts whatever command line argument I pass it in terminal correctly.

## Ubuntu 18.16 – Keyboards (Laptop, USB & Virtual) Not Accepting Input on Logon

I cant relogon to my laptop because no keyboard, mouse or touchpad input is being accepted at logon. For keyboard this includes laptop keyboard, external USB keyboard and virtual onscreen keyboard, the latter not being accessible because tab, enter key, mouse and touchpad movements/input do not work to select onscreen numbers and letters.

Specs: Ubuntu 18.16 Full USB installation that has been working for ~ 2 months HP EliteBook Laptop;

1. I am not a complete Unix, Ubuntu newbie at all but have come back to it recently after 2 years away so general debug or recovery mode advice would be appreciated.

2. I don’t think it’s a hardware or BIOS issue because I’m typing this question on the same laptop using Ubuntu on another USB key. So the USB stick I’m using now has the same hardware and BIOS settings as the problematic installation on the other USB stick. The other stick is a full installation that has all my settings, customizations and data for two months on the USB.

3. I suspect changes I made yesterday to fix a brightness issue is causing the current issue. I do not recall all the steps but I’ll describe in general what I did to successfully fix the issue of the brightness not being adjustable on the full USB installation.

a. installed brightness-controller, brightness-controller-simple and xbacklight. (Not sure if package names are exact.)

b. xbacklight installation in particular had some dependencies that required installing additional packages which I don’t have the names of right now (hoping to research to find the pages of instructions I followed, but even that won’t be complete because I installed some things that weren’t in the instructions based on messages I received on dependencies when doing the install). Edit: these are packages I installed sudo apt install xbacklight xorg xserver-xorg-video-intel. The last package had dependencies requiring additional installs.

c. I had made the following grub change and updated grub about a week ago and have rebooted many times since. It didn’t fix the brightness issue then but this change is part of xbacklight install instructions I followed. Since the change had already been made to grub a week ago I did not run grub update again yesterday:

GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash acpi_backlight=vendor”

d. Edit: I created and added following to /etc/X11/xorg.conf as part of xbacklight install:

Section “Device” Identifier “Device0” Driver “intel” Option “Backlight” “intel_backlight” EndSection

Section “Monitor” Identifier “Monitor0” EndSection

Section “Screen” Identifier “Screen0” Monitor “Monitor0” Device “Device0” EndSection

Any help or leads are very much appreciated.