I have a frequent problem at home - I try to connect to an audio device from my phone and fail, because the moment I turn it on my computer connects to it. So I have to go to the computer and manually disconnect the device. Is there a way to tell windows not to reconnect automatically to Bluetooth audio devices?
My laptop (running Win10) repeatedly "steals" the bluetooth connection for my headphones while they're connected to my phone. The only way I've been able to prevent the headphones' connection from switching to the laptop is to play some media or make a phone call immediately after reconnecting to my phone, or to unpair the headphones from the laptop.  The headphones are Plantronics Backbeat Go 2, and the specifications from the Plantronics product page give the following information for the Bluetooth entry:      Bluetooth v2.1:   A2DP 1.2, AVRCP, HFP v1.5, HSP v1.1   Thanks in advance!
Why can't an enum value be fully qualified in a switch statement? How to add a loopback interface? I want to add two more loopback interfaces.  I used the following command:  ifconfig lo: 127.0.0.2 netmask 255.0.0.0 up   and type in ifconfig, i can see the loopback address was added.  But if i want to add one more interface... (for example 127.0.0.3) the previous interface (127.0.0.2) was overwritten.  Also when i look in /etc/network/interfaces i see no entry.  How can i add multiple loopback interfaces permanently? The following question was asked on a high school test, where the students were given a few minutes per question, at most:     Given that,   $$P(x)=x^{104}+x^{93}+x^{82}+x^{71}+1$$   and,   $$Q(x)=x^4+x^3+x^2+x+1$$   what is the remainder of $P(x)$ divided by $Q(x)$?     The given answer was:     Let $Q(x)=0$. Multiplying both sides by $x-1$:   $$(x-1)(x^4+x^3+x^2+x+1)=0 \implies x^5 - 1=0 \implies x^5 = 1$$   Substituting $x^5=1$ in $P(x)$ gives $x^4+x^3+x^2+x+1$. Thus,   $$P(x)\equiv\mathbf0\pmod{Q(x)}$$     Obviously, a student is required to come up with a “trick” rather than doing brute force polynomial division. How is the student supposed to think of the suggested method? Is it obvious? How else could one approach the problem? Can I bring a painted Cow skull to the US with me via plane? I bought this traditionally painted cow skull, a typical decoration item for the day of the dead. Since its bone (completely clean though) can I bring it with me on a plane as carry-on or special luggage, without having to declare it or having it confiscated?    [] I have an existing trigger which converts leads into peron accounts if the company name is blank.  Trigger AutoConvert on Lead (after insert) {      LeadStatus convertStatus = [           select MasterLabel           from LeadStatus           where IsConverted = true           limit 1      ];      List&lt;Database.LeadConvert&gt; leadConverts = new List&lt;Database.LeadConvert&gt;();       for (Lead lead: Trigger.new) {           if (!lead.isConverted &amp;&amp; lead.Company == null) {                Database.LeadConvert lc = new Database.LeadConvert();                String oppName = lead.Name;                 lc.setLeadId(lead.Id);                lc.setDoNotCreateOpportunity(true);                lc.setConvertedStatus(convertStatus.MasterLabel);                 leadConverts.add(lc);           }      }       if (!leadConverts.isEmpty()) {           List&lt;Database.LeadConvertResult&gt; lcr = Database.convertLead(leadConverts);      } }   I need to also write a trigger that stops records from coming into Salesforce if that email already exisits in a contact or an account (we use person accounts).  The issue is how do I get it working with the existing trigger (I need it to run before the trigger that converts it into a person account is run).   Is there a way to combine the two or add the functionality to create the record only if the email address doesn't already exist as a contact in the org? List of freely available physics books I'm trying to amass a list of physics books with open-source licenses, like Creative Commons, GPL, etc. The books can be about a particular field in physics or about physics  in general.  What are some freely available great physics books on the Internet? edit: I'm aware that there are tons of freely available lecture notes online. Still, it'd be nice to be able to know the best available free resources around.  As a starter:         Table of contents sorted by field (in alphabetical order): I understand that once a game is in the library it cannot be removed, only hidden.  My question is, can I gift an uninstalled copy of a game to a friend?  I understand that this may be impossible due to legal issues, and that once a game is in the library it stays. Parsing Command Prompt Output I am retrieving disk information via JavaScript with the wmic statement, wmic logicaldisk get freespace,name,size,volumename, which produces the following output, but in a single string.    "FreeSpace      Name  Size           VolumeName  " "560232755200   C:    999526756352   System      " "999369699328   D:    999558213632   SSD         " "1511570386944  E:    8001545039872  Get         " "4620751712256  F:    8001545039872  BR          " "788449492992   G:    4000650883072  Seen        " "2296009408512  H:    4000768323584  Seen 2      " "3594248679424  I:    8001545039872  2160        " "3507750227968  J:    8001545039872  1080        " "945300619264   K:    999625322496   Trailers    "   I parse the above output with the following JavaScript.  window.onload = function(){   const cp = require('child_process')   let drives   cp.exec('wmic logicaldisk get freespace,name,size,volumename', (error, stdout)=&gt;{     drives = stdout.trim().split('\r\r\n')       .map(value =&gt; value.trim().split(/\s{2,0}/))       .slice(1)   }) }   That JavaScript already produces my desired output. It produces an array of nested arrays. Each row of information in the command prompt output corresponds to a nested array. Each nested array has four values that correspond to the originally queried data points.  [   ["560232439808",  "C:", "999526756352",  "System"  ]   ["999369699328",  "D:", "999558213632",  "SSD"     ]   ["1511570386944", "E:", "8001545039872", "Get"     ]   ["4620751712256", "F:", "8001545039872", "BR"      ]   ["788449492992",  "G:", "4000650883072", "Seen"    ]   ["2296009408512", "H:", "4000768323584", "Seen 2"  ]   ["3594248679424", "I:", "8001545039872", "2160"    ]   ["3507750227968", "J:", "8001545039872", "1080"    ]   ["945300619264",  "K:", "999625322496",  "Trailer" ] ]   I am wondering whether or not there is a way to similarly parse the information, but with command prompt instead? Is this functionality going to be put into a later Java version?  Can someone explain why I can't do this, as in, the technical way Java's switch statement works? Consider the sum of $n$ uniform distributions on $[0,1]$, or $Z_n$. Why does the cusp in the PDF of $Z_n$ disappear for $n \geq 3$? I've been wondering about this one for a while; I find it a little weird how abruptly it happens. Basically, why do we need just three uniforms for $Z_n$ to smooth out like it does? And why does the smoothing-out happen so relatively quickly?  $Z_2$:     $Z_3$:    (images shamelessly stolen from John D. Cook's blog: )  Why doesn't it take, say, four uniforms? Or five? Or...? How do I know which edition of Dungeons and Dragons (D&D) the books I'm looking at are for? , each of which has loads of rules, source, and splat books.  But how do I know which edition the books I'm looking at are for?  A lot of the time the ones in hobby stores are wrapped up, or you'll buy from elsewhere that doesn't say in the description, and the covers just say D&amp;D.  Is there a way to identify which edition of D&amp;D the books I'm buying are for, either from the cover or some description in the book?  For the purposes of this question I'm asking about core rule books only. Eg. PHB, MM, and DMG. Hopefully the answer to this can be carried over to other books. There is a way to add custom split normal use Python API? I can't find a way to achieve custom split normal effect. I want to use python (mesh normal/hard edge or soft edge) data collected from Maya then write to Blender mesh.    How to do it using the following Python API and how?  bpy.data.meshes[objName].normals_split_custom_set_from_vertices  bmesh module Redirecting stdout to a file you don't have write permission on When you attempt to modify a file without having write permissions on it, you get an error:  &gt; touch /tmp/foo &amp;&amp; sudo chown root /tmp/foo &gt; echo test &gt; /tmp/foo zsh: permission denied: /tmp/foo   Sudoing doesn't help, because it runs the command as root, but the shell handles redirecting stdout and opens the file as you anyway:  &gt; sudo echo test &gt; /tmp/foo zsh: permission denied: /tmp/foo   Is there an easy way to redirect stdout to a file you don't have permission to write to, besides opening a shell as root and manipulating the file that way?  &gt; sudo su # echo test &gt; /tmp/foo .       The  has no sign of the user sharth The  also does not have any sign of related activity   I would like to know why the user's name is associated with the question. At least why their display name shows up as having modified the question timeline activity.  Possible reason that I can think of is that, .  Is this the reason?  Is there a way (for normal users), to look for such details, other than looking at the user activity and the question's revision history. How to create a scope? I'd like to create a custom scope that searches and returns results from an online source for personal use.  Is this possible? And if so, how? Question on groups of order $pq$ Let $G$ be a group of order $pq$, $p&gt;q$  and $p$, $q$ are primes. Then prove that  If $q\mid p-1$ then there exists a non abelian group of order $pq$. Any two non-abelian groups of order $pq$ are isomorphic.   I have proved that if $q\not\mid p-1$ then $G$ is cylic . But how to prove this one I have no idea. Any kind of hint is very much welcome. This problem is in Herstein book, page 75. Stop making iPhone constantly change sound volume on its own? I regularly get interrupted in watching and listening to video by the volume randomly getting lowered without me asking for it. I get a system notification telling me &quot;the volume was lowered&quot;, telling me it's protecting my hearing based on the last 7 days of use. I've never been asked about enabling such a feature. I have already disabled what relevant items I can find under Sound &amp; Haptics, which is given as the source of the notification. It apparently doesn't matter though because it's not being respected. How can I make this stop? iPhone 8, iOS 14.2 Lily Potter chose to die instead of sacrificing her son Harry to Voldemort. In doing so, protective enchantments were created that protected Harry and made him less vulnerable to Voldemort and Voldemort's attempts to kill Harry.   Yet, I don't understand how Lily's enchantments, when Voldemort stole Harry's blood in the graveyard scene in Goblet of Fire (chapter 33, The Death Eaters), were helpful to Voldemort at all.     ‘He took my blood,’ said Harry.   ‘Precisely!’ said Dumbledore. ‘He took your blood and rebuilt his living body with it! Your blood in his veins, Harry, Lily’s protection inside both of you! He tethered you to life while he lives!’   Deathly Hallows - page 568 - Bloomsbury - chapter 35, Kings Cross   Yet I wonder about the following canon information:    Lily's enchantment was contingent upon Petunia Dursley giving Harry a home, which Petunia     grudgingly did&#185;. It was the blood bond between Harry and Petunia, plus the fact that Petunia gave Harry a home, where he could return to once per year, that sealed Lily's   protective enchantments and made them strong. Voldemort was never granted a home at the Dursleys, and in fact never stepped foot into the Dursleys' home at any point in canon. Never having been given a home at the Dursleys, how, then, did Lily, Petunia, and Harry's blood bond exist within Voldemort? Or did it? If it did, would it be because ? Lily's enchantments broke the moment Harry turned 17 and could not protect Harry any more&#178;. According to the 's page on Voldemort, Voldemort was 69 years old when he stole Harry's blood. If Lily's enchantment broke for Harry at age 17, why would the enchantments work for Voldemort when he was 69? Dumbledore tells Harry in Order of the Phoenix that Voldemort would not possess Harry because the love that fills Harry -- Lily's love -- is a force that Voldemort detests so greatly that he cannot bear to come into contact with it&#179;. Yet the love Lily infused into Harry runs in his veins; Voldemort took Harry's blood, the blood that is imbued with Lily's love. How can he bear to be in contact with the love given to Harry in his own veins?   Given this canon information, why did Lily's enchantments work for Voldemort?  &#185;Half-Blood Prince - chapter 3, Will and Won't and Order of the Phoenix - chapter 37, The Lost Prophecy &#178;Half-Blood Prince - chapter 3, Will and Won't &#179;Order of the Phoenix - chapter 37, The Lost Prophecy How can I get the list of files in a directory using C or C++? How can I determine the list of files in a directory from inside my C or C++ code?  I'm not allowed to execute the ls command and parse the results from within my program. How to compute $\int_0^{\pi/2}\frac{\sin^3 t}{\sin^3 t+\cos^3 t}dt$? Calculating with Mathematica, one can have $$\int_0^{\pi/2}\frac{\sin^3 t}{\sin^3 t+\cos^3 t}\,\mathrm dt=\frac{\pi}{4}.$$   How can I get this formula by hand? Is there any simpler idea than using $u = \sin t$?     Is there a simple way to calculate $$ \int_0^{\pi/2}\frac{\sin^n t}{\sin^n t+\cos^n t}\,\mathrm dt $$ for $n&gt;3$? Could anyone come up with a reference for this exercise?