PHP-MySQL-SSH: How to connect to mysql database from PHP while using SSH tunneling (hosted on CentOS)
Connect to a MySQL server over SSH in PHP
How to find event listeners on a DOM node when debugging or from the JavaScript code? I have a page where some event listeners are attached to input boxes and select boxes. Is there a way to find out which event listeners are observing a particular DOM node and for what event?  Events are attached using:    Event.observe; DOM's addEventListener; As element attribute element.onclick. Why when importing an obj file nothing appears even when zooming? I have opened a new blender file and deleted the default cube, then imported an obj file . I did not see any thing so i selected it and i zoomed ,nothing appears.In the outliner i saw the object name ,But in the info panel i see that there isn't any verts/faces/edges.  When i opened the obj file in a text editor i found Mesh data in it. I tired this in all blender versions (2.78c/2.78.5/7.9). Can any one help how to view the mesh? Why are true and false so large? Is it possible to write a regular expression that matches a nested pattern that occurs an unknown number of times? For example, can a regular expression match an opening and closing brace when there are an unknown number of open/close braces nested within the outer braces?  For example:  public MyMethod() {   if (test)   {     // More { }   }    // More { } } // End   Should match:  {   if (test)   {     // More { }   }    // More { } } Can I prevent others from editing my question? edited my question,  where I specifically said that our software sending back stacktrace to one of our servers was a user-known public feature.  He then modified the title of my post, along with the entire content, making it sound like I snuck in the feature and that our application was phoning home without our users knowing.    I specifically wrote in the original post that the feature was not sneaky. He completely changed the meaning of my post. I find this to be rather unacceptable.  A few questions:   Is it possible to prevent editing of my posts? How can I retaliate? Can I file a complaint?   Can people with  do anything they want on Stack Overflow? Prefix or adjective meaning "one and a half" Is there a prefix or adjective that means "one and a half", as "tri-" or "triple" is for "three"?  The exact usage I have is to describe "18" in terms of a dozen. Where I live they've started making 18-egg cartons, and the local grocer was wondering what name to give them in his computerised cash register, hoping for a single word.  Even slang, informal or invented term would do if there isn't such a term already. What is the most elegant way to solve this:   open a file for reading, but only if it is not already opened for writing open a file for writing, but only if it is not already opened for reading or writing   The built-in functions work like this  &gt;&gt;&gt; path = r"c:\scr.txt" &gt;&gt;&gt; file1 = open(path, "w") &gt;&gt;&gt; print file1 &lt;open file 'c:\scr.txt', mode 'w' at 0x019F88D8&gt; &gt;&gt;&gt; file2 = open(path, "w") &gt;&gt;&gt; print file2 &lt;open file 'c:\scr.txt', mode 'w' at 0x02332188&gt; &gt;&gt;&gt; file1.write("111") &gt;&gt;&gt; file2.write("222") &gt;&gt;&gt; file1.close()   scr.txt now contains '111'.  &gt;&gt;&gt; file2.close()   scr.txt was overwritten and now contains '222' (on Windows, Python 2.4).  The solution should work inside the same process (like in the example above) as well as when another process has opened the file. It is preferred, if a crashing program will not keep the lock open. 70s TV miniseries: antagonist gets followers to his pacifist ideology through mind control devices I am trying to recall the name of TV-series that was aired in the 70s (possibly only in selected European countries?). IIRC it was a French production. The bad guy was using some kind of mind control devices. He was gradually getting more and more people as followers to his pacifist ideology (it was the cold war era, and pacifism might have struck a chord even without mind control).  His modus operandi was to send a dozen or so (mind-controlled) cronies to surround a new victim. They would form a square around the helpless target, forcing him to walk into a building, where mind control devices were surgically installed.  The protagonists were trying to organize a resistance movement. IIRC they failed, as the bad guy had good intelligence about their plans. So, say you are a wizard 15/warlock 2. You have the Lance of Lethargy invocation, which pushes an enemy you target with eldritch blast and hit back 10 feet. Say you put a demiplane entrance ~5 feet behind the enemy you target with it. When you hit, you throw the enemy in. Before all this, you had put a Glyph of Warding in there on one of the surfaces. What would be the limit to the trigger for this? Would it be forced to be touch or proximity, or could you base it off something like hostility towards the caster?      ... When you cast this spell, you inscribe a glyph that later unleashes a magical effect ... You decide what triggers the glyph when you cast the spell. For glyphs inscribed on a surface, the most typical triggers include touching or standing on the glyph, ... (PHB 245)   The key word here is "typical". Based on Google's definition, the informal definition of "typical" is     showing the characteristics expected of or popularly associated with a particular person, situation, or thing.   This means, if my assumption is true, that the triggers in the PHB are only the most common ones. Other than the one about being forcibly at maximum 10 feet in diameter in the PHB, I cannot see a limit. Though I probably should assume this would all be DM discretion, (and I know that I sound like a broken record here) but could the trigger be hostility toward the caster, or something else, like being a specific race, gender, from a specific place, etc., or would it be forced to being something from the PHB? Show that $\aleph_{\alpha}^{\aleph_{1}} = \aleph_{\alpha}^{\aleph_{0}}\cdot 2^{\aleph_1}$ So basically I want to show:  $\aleph_{\alpha}^{\aleph_{1}} = \aleph_{\alpha}^{\aleph_{0}}\cdot2^{\aleph_1}$ , Where $\omega\leq\alpha&lt;\omega_1$  There is a proof that I found;    But I don't understand his proof for the limit case of $\alpha$.  To be more specific, I dont understand why $ \left( \sup_{\omega \le \beta &lt; \alpha} \aleph_{\beta}\right)^{\aleph_1} \le \left( \prod_{\omega \le \beta &lt; \alpha} \aleph_{\beta}\right)^{\aleph_1}$  Any insights or help is deeply appreciated.  Cheers Relationship between complex number and vectors What is the relation  between complex numbers and vectors?  I have read in some places "a complex number a 2-dimensional vector".  One can easily observe that $i\cdot i=-1$ in complex multiplication like the cross product of vectors.    Is  vector only the generalisation of complex number to n dimensions?   Is there any fundamental difference between those two? Electron Flow Confusion Using conventional notation in the diagram below, I understand that the circuit is not complete because the diode is in reverse bias. But knowing that the electrons actually flow from the negative to the positive terminal(direction of the arrows), wouldn't the electrons take a path from the negative terminal of the battery, go through the lamp and stop at the diode(the red path in the picture). If they would, then why doesn't the lamp light up with the first electrons that are able to flow through it before the voltage in the wire is built up and the current stops. 32 bit or 64 bit OS on a 512 mb VPS? I am planning to rent a VPS service with following basic specification:   512mb of RAM 1 CPU 20gb HDD (4gb of it is swap) Ubuntu 10.10 server   I am able to choose between a 32 bit or 64 bit install of Ubuntu server as the operating system.   My question is would it be better to chose a 32 bit operating system since I will have only 512mb of RAM, rather than using a 64 bit operating system and dealing with the additional overheads?  edit:  I have installed Ubuntu server 10.10 32 bit and 64 bit on VirtualBox. After a minimalistic installation with only ssh server, the 32 bit installation consumes 63mb of RAM when first boot up and 64 bit consumes 85mb of RAM.  After installing and running  daemon, 32 bit consumes 99mb of RAM when first boot up and 64 bit consumes 128mb. What is the benefit of review a scientific paper as a referee? Is there any way to run file explorer as administrator under Windows 10 After install Windows 10, it seems that I lost the ability to run explorer.exe as administrator with a user in administrator group.   The reason I want to do that is, in our team's development environment, we are using a C# exe to do some environment configuration which will start command prompt under administrator mode and subst a drive. As a result those substed drives are not visible within the file explorer since it is run not as administrator. That will be kind of inconvenience and sometimes make mistakes.   I was able to run explorer.exe from task manager with the option "create with privileges" checked and then I can see all the drives in explorer. But now this is not working anymore.   I knew there are other options to workaround this workflow, but just want to make sure that if it is now totally impossible under Windows 10?  Any comment is appreciated. How to determine equality for two JavaScript objects? A strict equality operator will tell you if two object types are equal. However, is there a way to tell if two objects are equal, much like the hash code value in Java?  Stack Overflow question  is similar to this question, but requires a more academic answer. The scenario above demonstrates why it would be necessary to have one, and I'm wondering if there is any equivalent solution. Hydraulic Disk brake piston not fully retracting My front disk brake's piston doesn't fully retract.  While I can ride the bike, the brake is slightly rubbing.  (IE, if I just spin the wheel with my hand, it'll go around about one and a half times and then stop.) It's definitely slowing me down.   If this fixable?  The advice I got was that it's not worth the trouble and to buy a replacement set.  The current brakes are Avid Juicy 7s that are about 7 years old This is a question that arose in the comments here:   I normally hide footnotes from the TOC by doing this:  \section[title]{title\footnote{This is a footnote.}}.   This works in a lot of document classes (memoir, article, ...), but not in all of them. amsbook, for example, uses the optional argument only for the running heads so the footnote mark still ends up in the TOC. So what is the 'universal solution'? Let $f(z)=\sum_{n=0}^{\infty}a_nz^n$ be a holomophic function in the unit disc. Show that if $$\sum_{n=2}^{\infty} n\vert a_n \vert &lt;\vert a_1\vert$$ and $a_1\not = 0$, then $f$ is injective.   I am able to show that $f'$ never vanishes by showing that $\vert f'-a_1\vert &lt;\vert a_1\vert$, but that doesn't imply that $f$ is injective. For example, $e^z$ is not inejective but its derivative never vanishes. What is required to prove that $f$ is injective? How do you show $f$ is injective on any set? Can I charge my laptop with a charger that has different specifications?