I need to perform some very specific checks on a form, so I call a JS function on the submit and, if everything is ok, I call the "submit" method of that form using JS.  &lt;form id="booking" action="booking.php" method="get"&gt;     &lt;input name="Name *" type="text"&gt;     &lt;input onclick="if (allOk()) document.forms['booking'].submit();             return false;" type="submit" value="booknow"&gt; &lt;/form&gt;   This is the generated URL  booking.php?Name+*=marco   but...  print_r($_GET);  ...  Array ( [Name_*] =&gt; marco )   I need to know how can I get the original name of the element, Name * in this particular case, from the Name_*  Why is there an underscore, where there should be a space?  I tried urldecode, rawurldecode, and some others but it is still not working. Is it because you cannot use spaces in the GET elements? Will it be safe to simply replace each underscore with a space?  I never had any problems encoding/decoding GET/POST values, but it looks like I have problems when the field name has to be encoded/decoded too.  PS: I know I should use POST, but it has the exact same problem, and I switched back to GET to debug it faster.
I have the problem, that PHP replaces all spaces with underscores in POST and GET variables. For example if I have the URL: http://localhost/proxy.php?user name=Max the browser will convert it to http://localhost/proxy.php?user%20name=Max. But if I give the $_GET parameters out, the key is not user name but user_name (note the underscore)! Is there any possibility to change this behaviour?
Calculating large Bell number modulo a composite number Can one executable be both a console and GUI application? I want to make a  program that can be run as a CLI or GUI application depending on what flags are passed into it. Can this be done?  I have found these related questions, but they don't exactly cover my situation: Do not show ellipsis when not needed in search results When doing a search, the results page shows an ellipsis when it is not needed. For instance:    The message of that answer is shorter than the text overflow limit, which means the ellipsis (...) should not be shown. The Sharpshooter feat includes an interesting feature: you can choose to take -5 penalty to hit with a ranged weapon attack to increase its damage by 10. Normally, I'd dismiss the trade-off as too situational, but I've only just thought of combining it with the Archery fighting style (+2 to hit with ranged weapon attacks).  After building a sample character using these features, the end result looks quite effective. My questions are: Is this build valid? Have I interpreted the rules correctly? If so, how well does it compare against other damage-focused builds?  5th level variant Human Fighter:   Ability Scores (via point buy): Str 10, Dex 16, Con 16, Int 9, Wis 12, Cha 10 HP: 47, AC: 17 (or 18 with disadvantage on Stealth) Weapons: Hand Crossbow x 2 Fighting Style: Archery Martial Archetype: Battle Master (with the Precision Attack maneuver) Feat (variant Human): Crossbow Expert Feat (4th level ability score improvement): Sharpshooter   The end result is a fighter capable of hitting targets 120' away, behind 1/2 or 3/4 cover, or engaged in melee with him, all without penalty. Normally, he can make 3 such attacks per round (Attack action + Extra Attack + Crossbow Expert's bonus attack). Once per short rest he can make 5 attacks per round via Action Surge (Attack action 1 + Extra Attack, Attack action 2 + Extra Attack, Crossbow Expert's bonus attack).  His normal attack bonus is +8 (3 proficiency, 3 Dexterity, 2 Archery fighting style), and normal damage is 1d6+3. Not amazing damage, but nice accuracy and flexibility (attacks can be focused on one target, or spread around; works equally well in melee and ranged combat).  The real winner is his ability to take -5 on any of these attack rolls to increase the damage by 10, to an average of 16.5 per shot (excluding crits). If he lands his usual 3 attacks, that's ~47 damage; 5 attacks is ~83. While the -5 to hit seems imposing, he's still got superiority dice: he can increase his attack roll by 1d8 after seeing the result, up to 4 times per short rest. And even without the superiority dice, his attack bonus is still an acceptable +3; ok for hitting low AC targets, or those granting advantage on attack rolls (e.g. surprised or prone + adjacent).  With a decent AC, a Fighter's HP, and the Second Wind feature, he can also take a decent amount of damage. He'll also have decent Strength, Dexterity, and Constitution saving throws.  This build seems almost too well rounded. Unlike a blaster, he only requires short rests to recover his big hitters. Unlike a brawler, he can target just about anything on the field at a moment's notice. Have I missed any rules, or overlooked any drawbacks? I'm aware there are been several similar questions, and some great answers with hints on how to prove this, for example  and .  But I've never really seen a detailed proof of the absolute convergence of the Riemann zeta function in the half-plane $\Re(s)&gt; 1$.  I hope there's interest on a detailed proof of this for reference. Here is my attempt. Please, fill in any detail that might be missing, or point out any mistake!  On $\Re(s)=\sigma&gt; 1$, we have  $$\sum_{n=1}^{\infty}\bigg|\frac{1}{n^s}\bigg|=\sum_{n=1}^{\infty}\frac{1}{n^\sigma}$$  and  $$\frac{1}{n^\sigma}\leq\frac{1}{n^{1+\epsilon}}$$  for any $\epsilon &gt;0$, so by the direct comparison test, if   $$\sum_{n=1}^{\infty}\frac{1}{n^{1+\epsilon}}$$  converges absolutely, then so do $\sum_{n=1}^{\infty}|1/n^s|$ and $\zeta(s)$.  By the integral test, the convergence of $\sum_{n=1}^{\infty}1/n^{1+\epsilon}$ is equivalente to the finitude of the integral  $$\int_1^\infty \frac{1}{n^{1+\epsilon}}=\bigg[-\frac{1}{\epsilon x^\epsilon}\bigg]=\frac{1}{\epsilon}$$  which holds for any $\epsilon &lt; \infty$.  Any correction or improvement is welcomed! Thanks in advance. $m$ is a perfect square iff $m$ has an odd number of divisors? Is a closed subset of a compact set (which is a subset of a metric space $M$) compact? Is there a way to prove this using sequential compactness instead of open cover definitions?  My first gut reaction was that the fact was obvious since we can show that the closed subset $[a,b]$ is compact in $\mathbb R$. We have been using this result without proof in my class, but I don't know how to prove it. Could someone point me in the right direction?  $$|1-e^{i\theta}|\le|\theta|$$  I believe this is true for all $\theta\in\mathbb{R}$. It is easy to show that the left side is bounded by 2 (triangle inequality), but I'm stuck otherwise. Where to download Chrome 32bit? Google has  so on a 32bit Debian machine it's not possible anymore to update the APT repository:  W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release  Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)   Also has the .deb file removed from Google servers as it seems.  Is there any alternative .deb download of the last release (46?) available somewhere?  Reason: For an automated Debian build system (debootstrap-based) I urgently need a way to install Google Chrome 32bit v46 (or similar). Switching to another browser (including Chromium) is not a quick enough option for me at the moment.. What are turret connectors? While working on a project recently, I noticed that Digi-key has a product category . I've never seen connectors like this before, and they don't look like any kind of contact I've seen before. What does the mating connector look like? I can't envision any mating contact that makes any sense for these.  On top of that, they look like they have to be individually machined, which can't be a cost-effective process. Im trying to get my head around complex integration/complex line integrals. Real integration can be thought of as the area under a curve or the opposite of differentiation. Thinking of it geometrically as the area under a curve or the volume under a surface in 3 dimension is very intuitive.   So is there a geometric way of thinking about complex integration? Or should I just be viewing it as process that reverses differentiation? Or has integration other meanings in complex analysis? Here is an example, could someone explain this to me - Here's the definition of the integral along a curve gamma in C, parameterized by $w:[a, b] -&gt;C$ \begin{equation} \int_\gamma f(z)dz = \int_a^b f(w(t)).w{(t)}'dt \end{equation}   So I have -  $\gamma$ is the unit circle with anti-clockwise orientation parameterized by  $w:[0, 2\pi]\to C$  $w(t) = e ^{it} = Cos(t) + iSin(t)$  So if use the definition of the integral,   $\int_\gamma f(z)dz = \int^b_a f(w(t)).w{(t)}&#39;dt$,  and work this out it comes to  $\int^{2\pi}_0 i dt = 2{\pi}i$  So what does this $2{\pi}i$ represent? Does it mean anything geometrically, like if a regular integral works out to be 10 that means the area under the curve between 2 points is 10... Find the sum of two elements in a matrix Given $[a_{ij}]_{10\times10}=\left[ \begin{array}{ccc}   1&amp;2&amp;4&amp;7&amp;...&amp;...&amp;...\\   3&amp;5&amp;8&amp;...&amp;...&amp;...&amp;...\\   6&amp;9&amp;...&amp;...&amp;...&amp;...&amp;...\\   10&amp;...&amp;...&amp;...&amp;...&amp;...&amp;...&amp;\\   ...&amp;...&amp;...&amp;...&amp;...&amp;...&amp;...\\   ...&amp;...&amp;...&amp;...&amp;...&amp;...&amp;98\\   ...&amp;...&amp;...&amp;...&amp;...&amp;99&amp;100\\ \end{array} \right]$, what's $a_{7,3}+a_{7,7}$?  Is there a better way than write down all the elements? It's not easy to find the formula of $a_{i,j}$ Setting Low Disk Space Alerts on Windows Server 2008 SEO regarding using separate  tags for the logo and website name Is is true &lt;h1&gt; tag should not have more than 1 on every page for SEO?   Every pages on the header, it includes and &lt;h1&gt; tag. Website Name which show an image from logo class, like this:  &lt;div id="header"&gt;   &lt;h1 class="logo"&gt;      &lt;a href="#"&gt;Website Name&lt;/a&gt;   &lt;/h1&gt; &lt;/div&gt;   and I also include &lt;h1&gt; on the contact page, help, etc and article page for example:  &lt;h1&gt;Contact Us&lt;/h1&gt; &lt;h1&gt;Name of the Article Title here&lt;/h1&gt;   On the homepage, it just has one &lt;h1&gt; for the logo Site Name... other pages have 2 &lt;h1&gt; tags Shell script zips a folder, but exclude parameters not working IF its run from cron.daily How to determine if a string is a valid variable name? Android popup window dismissal How do you add an ActionListener onto a JButton in Java How to disable system beep for non-privileged user Can players enchant items? I know that the DM can give you enchanted items, but can players spend gold and downtime to enchant their own?