Python Falsk __name__
What does if __name__ == "__main__": do?
Minimum distance between the curves $f(x) =e^x$ and $g(x) =\ln x$ What is the minimum distance between the curves $f(x) =e^x$ and $g(x) = \ln x$? I didn't understand how to solve the problem. Please help me. ACPI error when trying to make dual boot with Ubuntu 18.04 and Windows 10 Permanent background ssh connection to create reverse tunnel: what is correct way? Chat arrangement question: Left or right? I'm building a small chat. Now I see but in other chats (whatsapp, facebook mobile chat, sms ...) that the arrangement is always the same:  Left: the chat partner. right: myself      Why is that? Enabling tftpd  sudo launchctl load -F /System/Library/LaunchDaemons/tftp.plist   Start:  sudo launchctl start com.apple.tftpd   See logs syslog -w  com.apple.xpc.launchd[1] (com.apple.tftpd[30687]) &lt;Warning&gt;: Service exited with abnormal code: 1   Or with log stream --process tftp --level debug  Filtering the log data using "process BEGINSWITH[cd] "tftp"" Timestamp                       Thread     Type        Activity             PID    TTL 2020-01-21 12:35:44.903240+0200 0x5292a    Activity    0x6afa0              31479  0    tftpd: (libsystem_info.dylib) Retrieve User by Name 2020-01-21 12:35:44.903949+0200 0x5292a    Default     0x0                  31479  0    tftpd: recvfrom: Resource temporarily unavailable   I also tried to run tftpd directly without launchctl sudo /usr/libexec/tftpd -d -i /private/tftpboot/ with the same results.  Earlier I used this configuration and it worked fine. But after some changes (may be OS update) it became broken. Current MacOS version is 10.14.6 (18G2022)    How to fix tftpd?    Appendix. Configuration file /System/Library/LaunchDaemons/tftp.plist has default content:  &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt; &lt;plist version="1.0"&gt; &lt;dict&gt;     &lt;key&gt;Disabled&lt;/key&gt;     &lt;true/&gt;     &lt;key&gt;Label&lt;/key&gt;     &lt;string&gt;com.apple.tftpd&lt;/string&gt;     &lt;key&gt;ProgramArguments&lt;/key&gt;     &lt;array&gt;         &lt;string&gt;/usr/libexec/tftpd&lt;/string&gt;         &lt;string&gt;-i&lt;/string&gt;         &lt;string&gt;/private/tftpboot&lt;/string&gt;     &lt;/array&gt;     &lt;key&gt;inetdCompatibility&lt;/key&gt;     &lt;dict&gt;         &lt;key&gt;Wait&lt;/key&gt;         &lt;true/&gt;     &lt;/dict&gt;     &lt;key&gt;InitGroups&lt;/key&gt;     &lt;true/&gt;     &lt;key&gt;Sockets&lt;/key&gt;     &lt;dict&gt;         &lt;key&gt;Listeners&lt;/key&gt;         &lt;dict&gt;             &lt;key&gt;SockServiceName&lt;/key&gt;             &lt;string&gt;tftp&lt;/string&gt;             &lt;key&gt;SockType&lt;/key&gt;             &lt;string&gt;dgram&lt;/string&gt;         &lt;/dict&gt;     &lt;/dict&gt; &lt;/dict&gt; &lt;/plist&gt;   Update1 It seems port is in use. Why? Who?  $ sudo lsof -i:69 COMMAND PID USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME launchd   1 root   23u  IPv6 0x55f5dbd8d897c847      0t0  UDP *:tftp launchd   1 root   57u  IPv4 0x55f5dbd8d897e687      0t0  UDP *:tftp launchd   1 root   59u  IPv6 0x55f5dbd8d897c847      0t0  UDP *:tftp launchd   1 root   60u  IPv4 0x55f5dbd8d897e687      0t0  UDP *:tftp   launchd uses UDP port 69. Why?  $ ps -ef | grep tftp 501 94727 48073   0  4:16PM ttys007    0:00.00 grep --color=auto tftp Basic mathematical induction regarding inequalities Dimension of a subset How do I make ditto marks? Can someone please give me the prerequisites and mathematics required for string theory? Are there some good references to study it, both online and in a book? Please consider I am a newbie in string theory, and only about up to the level explained in Hawking's Brief History of Time and Penrose's Road to Reality. I would prefer something which does not omit rigor, but builds it up.Also, are there good online lectures on this?  (I have covered most of GR, but I am not really comfortable with advanced Quantum mechanics. I have studied QM only from Griffith's book, and a few McGraw hill lecture notes.) It’s a story of a female protagonist who has a harsh life. Just as she is about to die, she time travels back into her young self. To avoid the future she already lived, she decides to gets strong by learning swordsmanship. After a while, she joins the army under the command of a prince who wears an eye patch. She is quite OP, and helps the prince. It was kind of a medieval setting manga, with dukes and earls and count types. Time is when the use of sword and magic is prominent. Can the ship's captain really perform your wedding when in international waters? On , Mark Mayo posted a comment that any marriage has to be on dry land or close to it.  But I'm sure all of us have heard of ships' captains marrying couples at sea.  From the movie Casablanca:     Say, why don't we get married in Marseilles?   ...   Well, let's see. What about the engineer? Why can't he marry us on the train?   ...   Well, why not? The captain on a ship can. It doesn't seem fair that...    So is this fiction after all? If not how does it fit with Mark's comment? What special rules and such should we know?  If I'm travelling at sea with a significant other and wish to tie the knot, can we do so with any captain on any ship on any sea? Must it be international waters? I've browsed the forums and found a number of posts that have addressed this issue, but none of the solutions seem to work for me. I have the following script that I just copied from the bibtex home page to get familiar with it. Instead of the citation number I get a question mark. I compile using Latex+Bibtex+Latex+Latex+PDFLatex+ViewPDF just as has been previously suggested and the problem persists.   \documentclass[11pt]{article} \usepackage{cite}  \begin{document}  \title{My Article} \author{Nobody Jr.} \date{Today} \maketitle  Blablabla said Nobody ~\cite{Nobody06}.  \bibliography{mybib} \bibliographystyle{plain} \end{document}   My bibliography (Bib.bbl)  @misc{ Nobody06, author = "Nobody Jr", title = "My Article", year = "2006" }    Looking at previous posts one thing that is concerning is that my .bbl looks empty as shown below. Further, I don't have a .blg  \begin{thebibliography}{}  \end{thebibliography} I recently installed Ubuntu 17.10, and when I tried to set my keyboard layout to change with alt+shift, I hit a . There is  which works, but then it creates an unwanted behaviour on Firefox (perhaps other programs as well).   After setting alt+shift through gnome-tweak-tool as the combination to change language, whenever this combination is pressed within Firefox, it triggers a toggle that Firefox uses to show/hide the Menu Bar (with File/Edit/View etc.), and 'focus' is taken away from wherever the cursor was.   It's very frustrating, because one has to go and click again at the cursor.  The only solution I found was to permanently enable Menu Bar in Firefox because then alt doesn't do anything and I can use it to change languages. But I don't want to have Menu Bar on top always.  I hope you can understand what I'm trying to explain.  Any thoughts? If $ \operatorname{Tr}(M^k) = \operatorname{Tr}(N^k)\;\forall 1\leq k \leq n$, then how do we show the $M$ and $N$ have the same eigenvalues? stl::multimap - how do i get groups of data? Multimap essentially has groups of data sorted by the key. I want a method by which I could access these individual groups and get their aggregate values. For example, in a std::multimap&lt; string, int &gt; I store   {"Group1", 1},  {"Group1", 2},  {"Group1", 3},   {"Group2", 10},  {"Group2", 11},  {"Group2", 12}   Having stored these values, I should be able to iterate this multimap and get the aggregate values of each "group". Problem is there aren't any functions defined in STL to access MultiMaps in such a way. I could use lower_bound, upper_bound to manually iterate the multimap and total the group's contents, but I am hoping there could be better ways already defined in STL ? Can anyone propose a solution as to how I could get the aggregate values for a group in the above example. What do I need in order to create an application for ubantu? How to make many copies of similar graphs systematically? I want to make various copies of a graph in tikz. The graph I want has 10 vertices. But only has the edges between the vertices a_i,a_(i+1),t,b.  I would like to automatically create 8 copies of this graph. and draw them. I just don't know how to code it. Here is my current code, but it adds all of the edges to the same copy of the graph:  \begin{tikzpicture} [main_node/.style={circle,fill=blue!20,draw,minimum size=2em,inner sep=3pt]}] \node[main_node] (8) at (0:0.5) {b}; \node[main_node] (9) at (180:0.5) {t}; \foreach \x in {0,1,...,7}     \node[main_node] (\x) at (360/8*\x:2) {$a_{\x}$}; \foreach \x in {0,1,...,7}{     \pgfmathsetmacro{\y}{int(mod(\x+1,8))}     \path[draw,thick] (\x) edge node {} (8);     \path[draw,thick] (\x) edge node {} (9);     \path[draw,thick] (\x) edge node {} (\y);     \path[draw,thick] (8) edge node {} (9);     \path[draw,thick] (8) edge node {} (\y);     \path[draw,thick] (9) edge node {} (\y);    }   I want each of the edge sets to be drawn seperately. How to append multiple lines of text to a file? I can't use the terminal while gedit command is running Understanding the proof of infinitely many primes $\equiv 3\pmod{\!4}$ Theorem: There are infinitely many primes congruent to $3 \mod 4$. Proof: Assume that $p_1 = 3, . . . , p_n$ are primes of the form $p_j ≡ 3 \mod 4$. We will construct a new one by looking at $N = 4p_1 · · · p_n − 1$ (putting $N = 4p_1 · · · p_n+3$ would also work).  There is more to this proof but the rest of it I understand, what I don't get is where it says &quot;$N = 4p_1 · · · p_n − 1$ (putting $N = 4p_1 · · · p_n+3$ would also work)&quot;. I do not understand why we are writing $4p_1 · · · p_n − 1$. Is there a more clear way to prove this theorem?