HP Spectre x360 -- How to disable trackpad automatically when going into Tablet Mode? The HP Spectre x360 is a "convertible" laptop, meaning it is able to bend all the way backwards to become a tablet. Whenever I do this, Ubuntu automatically disables the keyboard, which is nice. However, it fails to disable the trackpad. This can be very annoying. Is there any way I could fix this error?
HP Spectre x360 disable trackpad in tablet mode I have the HP Spectre x360 and when I bend the laptop back into tablet mode (360 hinges), usually the keyboard and mouse disables in Windows.   In Ubuntu 15.04 the keyboard successfully disables, but not the trackpad.   What wizardry can I perform to rectify this issue?   Hopefully I could create an actively running script where it listens for particular events (activation of tablet mode) and then disable the track pad once boolean value equals True or something. I could probably get the ball rolling if there was a command out there that would display what component is being used / activated, so I could capture the event ID or something (not sure if this is even possible, just speculating...)
`apt-get update` cannot find Ubuntu servers Good textbooks on homological algebra That's basically the question, is there a "right" way to implement operator&lt;&lt; ? Reading  I can see that something like:  friend bool operator&lt;&lt;(obj const&amp; lhs, obj const&amp; rhs);   is preferred to something like   ostream&amp; operator&lt;&lt;(obj const&amp; rhs);   But I can't quite see why should I use one or the other.  My personal case is:  friend ostream &amp; operator&lt;&lt;(ostream &amp;os, const Paragraph&amp; p) {     return os &lt;&lt; p.to_str(); }   But I could probably do:  ostream &amp; operator&lt;&lt;(ostream &amp;os) {     return os &lt;&lt; paragraph; }   What rationale should I base this decision on?  Note:   Paragraph::to_str = (return paragraph)    where paragraph's a string. Putting a table next to a figure Dynamically reformatting man pages on terminal dimension changes One common workflow of mine is to open a manual page in a terminal, then another terminal in which to test things. The man page is formatted to the initial dimensions of the first terminal. When I now resize my windows (or have my WM do that for me automatically), there is either a gap to the right of the preformatted page, or lines wrap. At this point I usually q(uit) and !! (run again), which loses my position in the page.  I assume the formatting process is quite CPU intensive, or maybe it stems from ancient times of fixed terminal sizes. The less pager dynamically reacts to terminal resize events, so it should be possible in theory.  I tried perusing man pages, searching the Web, asking on IRC -- the whole lot -- but couldn't come up with anything.   Can I trigger reformatting from within or outside of the man utility? Is there a version of the man utility that resizes the page dynamically?  Is there way to customize some part of the formatting/display process to make it update on SIGWINCH? Detect when an iOS app is launched for the first time? How do I detect when an iOS app is launched for the first time? Edge won't connect to internet, Skype for business won't screen-share, Windows Store won't update apps after Windows 10 version 1809 installed I ran into a problem after upgrading Windows 10 October 2018 to version 1809. After the Windows update I noticed the following problems with Microsoft applications:   Microsoft Edge could no longer connect to the internet even though Chrome, Firefox and IE 11 still could. Skype for Business (formerly Lync) no longer allowed me to share my screen or view another person's shared screen. The Windows Store could not connect to the internet to update apps. The Microsoft Feedback portal could no longer connect to the internet.   How can I resolve these network issues that seemed to cooincide with an upgrade to Win10 ver 1809? I want to derive a closed formula for the integral $$I_n= \int \frac {dx}{\prod_{r=0}^n (x+r)}$$  On writing out first few terms we get   For $n=0$, $$I_0=\ln \vert x\vert+C$$ For $n=1$, $$I_1=\ln \vert x\vert-\ln \vert x+1\vert+C$$ For $n=2$ $$I_2=\frac {1}{2!}\left(\sum_{r=0}^2 (-1)^r\binom {2}{r} \ln \vert x+r\vert\right)+C$$ For $n=3$ $$I_3=\frac {1}{3!}\left(\sum_{r=0}^3 (-1)^r\binom {3}{r} \ln \vert x+r\vert\right)+C$$  Hence for generalized $n$ we have $$I_n=\frac {1}{n!}\left(\sum_{r=0}^n (-1)^r\binom {n}{r} (\ln \vert x+r\vert)\right)+C$$  Now this is just an observation but I want to prove that it is correct. I have tried lot of methods but not useful. Partial fractions would have been most useful but would go out on tedious task which is nearly impossible.  Also integration by parts won't help nor any trig substitution. So any ideas are welcome.  And ya,  this is not a homework question,  it's a question which I just saw in a integral challenge paper. I have two large external drives with about 2.5 TB of data. About half the storage is images and videos that I want to put on a new NAS drive/device. I don’t want to carry over junk, duplicates and non photo/video files.   I am hoping Lightroom can help scour the mounds of folder structures on these drives and copy images/videos the new drive that I want to catalogue and keep clean as a working platform for all images and video. Once completed I plan to format the original drives and copy the cleaned-up content back to them as part of a backup strategy.  Can Lightroom help? If so, how? If not, is there some other application for Mac OS X that I can use for help with this? One problem I had with my original attempt is I wasn't sure how to move images and rename folders to get the new drive contents to make sense, so I formatted it and am looking to try again.  (steps for this operation would be helpful) What do I need to install LED strip lighting? I've been looking to install LED strips, either RGB or white for lighting and ambiance. It wouldn't be the main lighting of the room, so no necessity for high power LEDs.  The perimeter of the room is a little less than 25 meters. Looking around in online stores, I saw that the reels come in maximum lengths of 5 meters, so I would need five of those.  What I'm not sure is how to connect the strips together.  I was looking at , or  with .  If I choose the white LEDs, what power supply, controller, and connector would you recommend to be able to daisy chain the strips?  If I choose the RGB LEDs, what kind of data repeaters would work to be able to control all the strips at once? (semi)-Automatic pluralization around a citation For a physics major, what are the best books/references on Greens functions for self-studying?  My mathematical background is on the level of Mathematical Methods in the physical sciences by Mary Boas. I heard that there was a twitter bot which automatically posted questions and asked for answers for specific questions on every site. How do they work? Is there an algorithm for doing this or is it purely random? I know that it doesn't tweet closed questions, but that's it. How are multiple volunteers handled during the Reaping? While skimming through the first few chapters of The Hunger Games to answer another question, I noticed this sentence when Katniss is describing the rules surrounding volunteers after Prim's name is called (at the beginning of the second chapter):     In some districts, in which winning the reaping is such a great honor, people are eager to risk their lives, the volunteering is complicated.   The only reason I can see for volunteering being complicated is if there's more than one volunteer for a particular year, and I don't recall this ever being addressed in the books.  Is there anything in the books that I've missed or any reliable, external sources (interviews or other supplementary material by the author) that explain exactly how this situation is resolved? I have a quaternion, coming from a system with the following:(intertial sensor)  Right handed. Forward direction: Y axis Right direction: X axis Up direction: Z axis   I need to convert this into a coordinate system that is: (Unreal engine)  left-handed. Forward direction: X axis Right direction: Y axis Up direction: Z axis   I have tried negating the axis, and angle, I have tried switching values, i cannot get this to work. All help greatly appreciated! I am working in C#, with Microsoft.Xna.Quaternion. Assigning Float Pointers in C Render shadows over a transparent background in cycles I'm trying to make a logo that will be on the header of a website. What I'd like to achieve, and the reason I'm using Blender, is the projected shadows on the background looking perfectly real (as opposed to doing a drop-shadow in Photoshop).  The only thing is, the background has to be transparent because the website might use different background colors / gradients that make it impossible to match with the exported 3D background.  I made this dummy file (not the real logo... duh!):    If I use the file as is, the grey borders of the image will be impossible to match with the website's background color.  Here what I want:    So obviously, I tried masking the plane, which made the shadows disappear. I tried having a plane set to glass, which didn't work either.  And I looked around for a similar question, but didn't find one.   I am not trying to render , or a . I've seen  which has a very difficult solution to this problem, and  that is very similar but in Blender Internal.  is similar too but has never been solved. I'm only a beginner at Compositor, and I'm trying to learn more any chance I get, so any solution in Compositor is welcome if detailed enough. Although if there's a simpler or faster way, it's welcome too!  .blend file: I know that, whenever I want to see how some control sequence, say \mycontrolsequence, is defined, I can use \show\mycontrolsequence  then compile my code and look up the .log file. However, robust commands seem impervious to \show. For instance, if I compile the following code, \documentclass{article}  \newcommand\mycommand{foo} \show\mycommand  \DeclareRobustCommand{\myrobustcommand}{bar} \show\myrobustcommand  \begin{document} hello \end{document}  my log file contains  \mycommand=\long macro: -&gt;foo. l.4 \show\mycommand  \myrobustcommand=macro: -&gt;\protect \myrobustcommand  . l.7 \show\myrobustcommand   Note that, whereas the definition of \mycommand is exposed (foo), nothing transpires of \myrobustcommand's definition. Of course, in practice, I could always identify in which file a given robust command is defined and look up its definition there. However, finding the file in question may not be obvious. Hence my question: Is there an alternative way of peering into the definition of a robust command? Linux Equivalent of Windows Ctrl to show Mouse Pointer In Windows, it is possible to set pressing Ctrl to display the current location of the mouse pointer, as per .  Is there a way of setting a key or key combination to perform the same action in Ubuntu? Note, this is the opposite of turning this function off, as detailed at . SQL function as default parameter value? I tried changing a default parameter value with this:  ALTER PROCEDURE [dbo].[my_sp] @currentDate datetime = GETDATE()   and all the SQL pre-compiler gave me was this error:     Msg 102, Level 15, State 1, Procedure my_sp, Line 8 Incorrect syntax near '('.   I have already created the procedure. (I'm not sure if that's relevant.) I was using a null default value and checking for that later, but that doesn't seem proper. Can I do this in one line?   Update: I was going off of :      [ = default ] Is a default value for the parameter. If a default value is defined, the function can be executed without specifying a value for that parameter.            Note:     Default parameter values can be specified for CLR functions except for the varchar(max) and varbinary(max) data types.         When a parameter of the function has a default value, the keyword DEFAULT must be specified when the function is called to retrieve the default value. This behavior is different from using parameters with default values in stored procedures in which omitting the parameter also implies the default value.   Am I reading this wrong?  Many thanks.