Pass PHP array into Javascript array
How do I pass variables and data from PHP to JavaScript?
Releasing bound ports on process exit How do I make sure that a socket bound to a port is properly released on process exit such that the port can be reused without bind() failing with EADDRINUSE? I've written a tiny program which just creates a socket, binds it to a fixed port, waits for a connection and then immediately terminates. When I rerun the program, the bind() call fails with EADDRINUSE, but if I wait a few minutes, it succeeds.  Is there a way I can explicitly "unbind" the socket, thereby freeing the port number? How do I remove an account from Google multi-login? I have three accounts among the multiple accounts I have for Google's products. One of them belongs to a friend who accidentally made his account one of mine when he was using my PC.  How do I remove his account from my Google multiple accounts? Logging out from his account doesn't work. His account still displays under the user dropdown even though I can't log in to it. Why should I install hardware drivers if my computer is working fine? I've just installed Windows 7 on my PC.  I went online to look for drivers. For , Foxconn offers LAN drivers, on-board audio drivers, and chipset drivers. And for , Nvidia offers a graphics card driver, obviously.  But then I stopped and wondered... what benefit would I gain from installing them?   The LAN cable is plugged in and I'm online; no problems there.  The on-board audio is working fine.  A quick Google tells me that a chipset is responsible for moving data around my motherboard – which seems to be happening OK!  And my graphics look perfect.    So why should I install the drivers? What would they give me, other than badly designed "management" interfaces, and pointless "notifications" whenever I plug in an audio jack?  If there are different considerations for each of the components – chipset, audio, LAN, and graphics (and any others you think I should be aware of) – please break it down in your answer.     Update: I've had a couple of answers already, saying that I'll get better stability, bugfixes, etc.   Can I slightly expand my question... Can I get all these same benefits if I install the drivers via Windows Update? And if I do this, would I avoid having to install the vendor-specific UIs, which I find so annoying? Keeping track of programs When I install a simple program it often uses make &amp;&amp; make install and doesn't often even have an uninstall target.  If I wish to upgrade a program, is it standard protocol to assume it just rewrites seamlessly over the old program?  How do I keep track of these programs; do most people just 'fire and forget' and if no uninstall target is given do I have to manually delete everything? I've noticed this issue on a handful of other communities, but making the browser window narrow (mine is 1080x960) makes the .post-layout and #sidebar elements overlap. Maybe something to do with the grid CSS? The #mainbar element seems to be the correct width and changing the .post-layout's overflow-x to auto seems to "fix" it  From retrocomputing:    From this post, because we are meta after all:    Specs:   Google Chrome Version 78.0.3904.108 (Official Build) (64-bit) Ubuntu 18.04.3 LTS So I had an exam today and one of the questions were: Give an example of a function $f$ which is nowhere continuous but $|f|$ should be continuous at all points. At first I had no idea how to do it then I came up with this, even though I know it's wrong:  $$f(x)= \begin {cases} \ \sqrt{x}&amp;\text{if }x &lt;0\\ \sqrt{-x}\ &amp;\text{if }x &gt; 0\\ \end {cases}$$  Like I said I know it's wrong..but can someone give me an example of this? Thanks. I understand the purpose of up/downvoting answers -- some answers are better than others, some answers may be wrong, .etc.  With regard to questions, though, there are other mechanisms to deal with "bad" questions:  comments, close, flag.  A poorly written question should be improved.  A bad question should be closed/deleted.  Often, though I see poorly written questions downvoted. I'm not sure what this accomplishes.  I get loss of rep for offensive or spam questions, but for an off-topic question?  or one that is just poorly written?   Why?  It seems to me that rep ought to be based more on answers on a site of this type.   Fundamentally, it seems that rep ought to be based on what you add to the site, not what you ask of it.  A particularly good question does add to the site, but a poor question doesn't really detract from it in the same way that a bad (wrong) answer does. Sure, go ahead and give people more rep for asking a particularly good question, but why punish people for asking bad questions when there are other ways of handling that.  Why not handle questions more like comments and allow upvotes, but not downvotes?  It seems to me that many, if not most, of the downvoted questions are first timers.  It's more likely that your first introduction to the site will be in asking a question, rather than answering. There is a significant risk to alienating new users when their questions are downvoted -- there's a visceral response to seeing that negative number next to your question.  Why not let the close/flag system weed out questions that don't belong and the comment system work to improve poorly worded questions. AmpScript to select Right or Left characters from a string Is there an AmpScript function that can be used in an equivalent manner to sql left, right and mid functions?   Thanks, Mark Wrapfigure in an enumerate environment. I want to use wrapfigure in the enumerate environment. For example,   \documentclass[11pt, a4paper]{article} \usepackage{graphicx} \usepackage{float} \usepackage{wrapfig}  \begin{document} \normalsize {\bf Multiple Choice: } \begin{enumerate}     \item \begin{wrapfigure}{r}{4.5cm}           \includegraphics[scale=0.5]{Exam1_Fig1.jpg}           \end{wrapfigure}           As shown in the figure. This rock is phaneritic and contains quartz, K-feldspar, and plagioclase in nearly equal amounts. What is it? \\           (A) rhyolite \\           (B) basalt \\           (C) diorite \\           (D) ash-flow tuff \\           (E) granite \\ \end{enumerate} \end{document}   However, the figure inserted is not wrapped by the text, but put in a strange position. How to fix the problem?   Thank you! I'm new to Ubuntu. I tried installing it with Windows 8.1, but failed I lost all my files.  I have successfully formatted my PC and installed Ubuntu, but how do I install codecs to play audio and videos files ? So basically , we all know the direction outside the magnet its from NORTH to SOUTH. but what i don't understand is that what is the direction inside is it the same ?? How do I turn on SharePoint App store in SharePoint 2013 Capitalization of explanation of abbreviations What is a "closed" or "duplicate" question? Questions can be closed or marked as duplicates.  What does it mean for a question to be &quot;closed&quot;? What does it mean for a question to be marked as a &quot;duplicate&quot;? Who can close a question? What are the reasons for closing a question ? Is closure the end of the road for a question? When are closed questions eligible for deletion?   Related        For more information, see &quot;&quot; in the . I know that Wubi is slower in disk IO, but I can't find anything about it online other than vague statements such as "slightly slower disk seeks".  Has anyone done any benchmarks to quantify the speed difference? Let be $V$ a vector space over the complex numbers with inner product. Let be $T$ and $S$ linear operators in $V$ with adjoint operators $T^*$, and $S^*$ respectively. I know that it satisfies this: $\left&lt; T(x),y \right&gt;=\left&lt; x,T^{*}(y) \right&gt;$ $\left&lt; S(x),y \right&gt;=\left&lt; x,S^{*}(y) \right&gt;$    $\forall x,y \in V$ But, How can I prove that the adjoint operator of $ST$ is $(ST)^{*}$? And how can I  prove that $(ST)^{*}=T^{*}S^{*}$? What is the difference between N and N-1 in calculating population variance? I did not get the why there are N and N-1 while calculating population variance. When we use N and when we use N-1?      It says that when population is very big there is no difference between N and N-1 but it does not tell why is there N-1 at the beginning.  Edit: Please don't confuse with n and n-1 which are used in estimating.  Edit2: I'm not talking about population estimation. Dear Academic SE advisers,  I am a college sophomore in US with double majors in mathematics and microbiology. My algorithmic biology research got me passionate about the number theory and analysis, and I have been pursuing a mathematics major starting on this Spring semester. I have been independently self-studying the number theory textbooks written by Niven/Zuckerman/Montgomery, Apostol, and Ireland/Rosen on this semester. As this semester progressed, I discovered that I am more interested in the pure mathematics than applied aspects (computational biology, cryptography, etc.). I want to pursue a career as analytic number theorist and prove the Collatz conjecture and Erdos-Straus conjecture.   I have been thinking about doing the number-theory research on my university (research university; huge mathematics department). I have been self-studying the NT by myself and also regularly attending the professional and graduate seminars on number theory but I did not do any pure mathematics research as an undergraduate. Should I visit NT professors in my university and ask them about if I can do undergraduate research under them? If research is not possible (perhaps due to my lacking maturity), should I request of doing independent reading under them and later proceed with the research? How should I ask them? What should I address? If even independent reading is not desirable to them, what should I ask to them or do in my own?   As for my mathematical background, I have been taking Calculus II (computational) and discrete mathematics. I will be taking calculus III (vector calc.) on Summer, followed by Analysis I, Probability, Theoretical Linear Algebra on Fall 2015. As for my self-studying on this semester, I have been studying NT textbooks (mentioned above), proof methodologies, and basic linear algebra.   Thank you very much for your time, and I look forward to your advice!  Sincerely,  PK Do I need to reboot my HTC Desire periodically? Solvability of $a \equiv x^2 \mod b$