Help choosing between two frame sizes based on my dimensions
How to best determine if a bike will fit without riding it
Calculate Azimuth from polygon in GeoPandas Is there a simple way / ready-to-go function to calculate the azimuth of 2D-polygons in a GeoPandas DataFrame? My goal is to eventually compute azimuth angles of building footprints. Most of the functions I have found explicitly calculate the azimuth for a line, which is not what I am looking for. I have been thinking along the following lines to calculate the azimuth of a polygon using its normal vector (2 dimensions). Is my approach going into the right directions? I am a bit unsure how to adjust for the quadrants, also my results seem a bit odd. azimuth = 90 - math.degrees(math.atan2(normal[1], normal[0])) if azimuth &gt;= 360.0:     azimuth -= 360.0 elif azimuth &lt; 0.0:     azimuth += 360.0 There's vs There are Change edit approval/rejection I accidentally clicked reject on the suggested edit on this question(). I can't find the button to change it to Approve? How Do I Allow A Standard User to Install Programs? Yes, I realize that defeats the purpose of standard user. But here is the situation. A friend of mine wants to set up time limits for his home schooled son, and his son needs to be a standard user in order to use Family Safety. But at the same time, his son (who I personally think is way too old to have time limits), needs to be able to update and install some of his games on his computer. So I guess it's just sort of "light" parental control (just something to help him focus and not get distracted with hours of gaming).  It is the basic version of Windows 8.1, so there is no Group Policy editor (gpedit.msc). However, I'm fairly good with computers and I figured out how to install it. But it doesn't have a lot of the features that the "real" gpedit seems to have. Here is an example of what is in my gpedit: To Find Large Powers in C++ Can I boot memtest86+ if I'm using UEFI? Downloaded the Ubuntu 16.04.2 .iso install disk and flashed it onto a USB stick.  Booting on the USB stick, there is no memtest86+ option (along with "Try Ubuntu").  Is there a way to add it to the install options?  (it's for a UEFI boot PC running normally Windows, its owner does not want to install Ubuntu. "memtest86+" is completely free (unlike "memtest86"), but is quite old, and does not offer a UEFI boot - this is why having it within the Ubuntu options makes things easier) Transform the NFSA with transition table Transform the NFSA with transition table  $$\begin{array}{ccc} X&amp;a&amp;b\\ A&amp;\{\}&amp;\{F\}\\ B&amp;\{\}&amp;\{\}\\ F&amp;\{\}&amp;\{A,S\}\\ S&amp;\{F\}&amp;\{A,F\} \end{array}$$  and starting state $S$ inta a DFSA and give the transition table of that DFSA. Place the letter $X$ (uppercase) in the top left corner of the matrix. Your states in the first column and inputs in the first row can be in the order of your choice.  The question then offers a $7\times 3$ matrix to be filled in.  Unsure how to transform the NFSA with transition table.  This is my answer but it is incorrect.  $$\begin{array}{ccc} X&amp;a&amp;b\\ \{S\}&amp;\{F\}&amp;\{A,F\}\\ \{F\}&amp;\{\}&amp;\{A,S\}\\ \{A\}&amp;\{\}&amp;\{F\}\\ \{A,F\}&amp;\{\}&amp;\{A,F,S\}\\ \{A,S\}&amp;\{F\}&amp;\{A,F\}\\ \{A,F,S\}&amp;\{F\}&amp;\{A,F,S\} \end{array}$$ Setting a document in MS Word-12pt (12bp) Warning  If you're looking for advice how to make your document look like it's been written in Word, this is most likely not the question you're looking for. This question is mostly of theoretical nature, as it results in tiny differences, which will most likely not be noticed by someone who doesn't allow the use of LaTeX.  Questions that might be more helpful for this matter are:           Question  I learned that MS Word uses a slightly different version of the unit "point" (pt) than TeX does:     The 12 point of Word will be PostScript point, which in TeX would be called 12bp. A TeX pt is slightly smaller: it's 1/72.27 inch, while a bp/PostScript point is 1/72 inch. See also    ( in )  I'm writing a paper that would usually be expected to be "typeset" in MS Word, thus I want to use the same font size as Word would.  How do I set a document e.g. in the "12pt" font size that MS Word would use?  In case it matters, I'm using the article document class, Latin Modern (lmodern) as a font with the T1 font encoding and compile with pdfLaTeX, but input on different set-ups is more than welcome. Why does the sizeof operator return a size larger for a structure than the total sizes of the structure's members? In a custom lightning component where one is using the recordEditForm tag, how can one validate fields that are filled by the user?  For example, in a quick action to create a Case record, we can have the following line inside the recordEditForm:  &lt;lightning:inputField aura:id="caseAccount" fieldName="AccountId"/&gt;   How can one enable or disable a button if certain fields are assigned by the user? Like if the account is specified, then a button on the component is enabled for the user.  Making the field required is not an option. How to open the default webbrowser using java Why is this trigger finding a null value despite the field being populated? Financial Account is a child of Client in a Master-Detail relationship. The client (John Sandbox) has a Wealth Advisor, 'John Smith', on his client record, however, the system debug that pulls finAcct.client__r.Wealth_Advisor__c shows this field as 'null'.  Does anyone have any idea why I am not getting the value in this field? The goal of this trigger is to make sure that the lookup fields for the Client Team (one of which is 'Wealth Advisor') always match between the client record and the financial account record when they are linked. Thanks!      Boolean UpdateMe;     List &lt;Financial_Account__c&gt; FinAcctsToUpdate = new List&lt;Financial_Account__c&gt;();      //Loop through all Financial Accounts in Trigger.new     for(Financial_Account__c finAcct : newFinAccts){         UpdateMe = false;          System.debug('finAcct WA Lookup: ' + finAcct.Wealth_Advisor_Lookup__c);         System.debug('Client: ' + finAcct.client__c);         System.debug('Acct WA: ' + finAcct.client__r.Wealth_Advisor__c);          if (finAcct.Wealth_Advisor_Lookup__c != finAcct.client__r.Wealth_Advisor__c){             finAcct.Wealth_Advisor_Lookup__c = finAcct.client__r.Wealth_Advisor__c;             UpdateMe = true;         }         if(UpdateMe == true){             FinAcctsToUpdate.add(finAcct);         }         UpdateMe = false;     }      if(FinAcctsToUpdate.size() &gt; 0 ){         update FinAcctsToUpdate;     } Mile or miles? Singular or plural? Could you explain me please, why sometimes the word "mile" is used in singular, sometimes in plural, while in both cases it refers to several and not 1 mile.  Example:     They took part in a 26 mile long swimming race.   After 12 miles he got tired.   Thanks in advance to those who can enlighten me! How to show $\alpha\int_a^cf(x)dx+\beta \int_c^b f(x)dx =0$ means $f(x)=0$ everywhere $?$ Question :  Let $$f\ :\ [a,b]\rightarrow \mathbb R$$   be  continuous . And  there  exist  constants  $\alpha$  $\beta$  such  that  $\forall c\in [a,b]$  $$\alpha \int_a^c f(x)dx +\beta \int_c^b f(x)dx =0 $$   Prove  that  $f=0$  allover  $[a,b]$.  Attempt :(not much useful )   Since  the  equation  holds  for  all  $c\in [a,b]$   , if  take  $c=a$  then  we  have $$\beta \int_a^b f(x)dx =0 $$  And  taking  $c=b$  we  get $$\alpha \int_a^b f(x)dx=0 $$  See  if  both  $\alpha=0$  and  $\beta=0$  hold  then  there  is  nothing  to  do . If  only  one  of  them  is  $0$   and  the  other  is  non-zero  then  from  the  last  two  equations  we  get $$\int_a^b f(x)dx =0 $$ and  this  does   not  ensure   $f$'s  being  identically  $0$  on  $[a,b]$ (for  example : $f(x)=sin x$  and $a=0$,$b=2\pi $ ) .   So  our  only  possibility  is  that  both $\alpha \neq 0$  and $\beta \neq 0$  must  hold .  Now  I  cannot  proceed  any  further  from  this  point . Please  give  me  some   hints  as  to  what  to  do  next .  Thaanks. How to restore a system after accidentally removing all kernels? I was trying to delete old kernels, but I must have deleted all of the kernels on my Ubuntu 11.04 laptop. Is there any way to fix this via USB boot or mounting hard drive on another system? How do you pull first 100 characters of a string in PHP Preview: PDF Highlighting & Search Stop Working until Restart A problem has recently become much more prevalent for me when using Preview to search PDFs for text (using Command + F or the search box in the upper right).  At first, everything generally seems to go fine:    (as it should be) a list of thumbnails appears in the sidebar, indicating all of the pages that contain the search term. Generally, though not always, the term I search for will be highlighted on the first page that it occurs on.   But, after this, things quickly start malfunctioning:   Generally speaking, if I click on thumbnails lower on the list, Preview will take me to that page in the PDF (like it used to).  But, it will no longer highlight the searched for terms. Instead, Preview will make a low-pitched beeping noise of the sort that occurs when one tries to perform some un-permitted action in a variety of mac situations. Furthermore, once this occurs, I cease being able to make any highlights at all in the document I am viewing with Preview.  In fact, I can't even select any text any more.   Below is a list of unsuccessful efforts to resolve this:   Closing the side bar does not work to resolve this. x-ing out the search box in the upper right does not resolve this. Selecting the "Tools" menu and then "Text Selection" does not work either, nor does clicking on the text selection icon in the edit panel. If I quit preview and then re-open the PDF, I am able to highlight again.  But, the problem will re-surface as soon as I try performing another search. Working with the same files in other PDF programs (e.g. Skim, Acrobat, etc.) poses no problems.  I'm quite certain it isn't a problem with the underlying PDFs. None of the responses to  resolve this.  (indeed, I supplied one such response myself a while ago, but that trick and the others no longer work).   I've used Preview for many years without problem.  This issue started cropping up relatively recently for me, I believe within the past 3-4 months.  I had hoped that upgrading to Catalina might resolve it, but it did not.    I'd like to think I am fairly sophisticated with computers (I have a reputation of close to 8,000 on the main stackoverflow page), but I am baffled by this.  I also don't have a good handle on how I can get diagnostic information or how I can create a reproducible example.    Any leads on how to tackle this would be greatly appreciated. Can anyone tell me if there is a way with generics to limit a generic type argument T to only:   Int16 Int32 Int64 UInt16 UInt32 UInt64   I'm aware of the where keyword, but can't find an interface for only these types,  Something like:  static bool IntegerFunction&lt;T&gt;(T value) where T : INumeric I can enter U+0008 (backspace character) into a chat message I typed . I believe I tab-completed @rumtscho and fully typed @MarthaF (since she doesn't tab complete). However, other people tell me that a Unicode character was inserted into the message; I can't see it:  Originally, I abandoned this bug report for a lack of reproducibility. But on another machine, I can see the character and managed to reproduce it: press tab, then press backspace. It works anywhere in a message, not just in a @-ping. (Actually, it seems that you just need to un-focus the input box; clicking elsewhere then hitting backspace works, too)  First machine is Firefox 12 (Iceweasel) on Debian GNU/Linux AMD64, testing+unstable. No user scripts. Greasemonkey is installed, but disabled in the extension manager Second machine is Firefox 10 (Iceweasel) on Debian GNU/Linux AMD64, testing+unstable. No user scripts, Greasemonkey not even installed Third machine (just tested) is Firefox 11 (Iceweasel) on Debian GNU/Linux AMD64. Greasemonkey installed and enabled, and there is a global userscript. Does not happen on Chromium 18.0.1025.151, running on machine #3.  So far, that's all the machines I've tested on, and it happens on all of them. It only happens in chat. Easiest way to produce it is to click on the page background, somewhere outside the text box, to un-focus the text box. Then press backspace. Note that not all browsers will display the character, even if its there (check  to see if yours does) Is it implied that Porpetina and Queenie Goldstein are Jewish?