PHP PDO. error number '00000' when query is correct
PDO SQL-state "00000" but still error?
If we minimize the Wasserstein loss, $$W_1 (P_S, P_T) = \underset{\gamma \in \Pi}{\text{min }} \sum_{x,y} |x-y|\gamma(x,y)$$ which means we are looking for the coupling $\gamma(x,y)$ that minimizes the cost of moving mass from the source distribution $P_S$ to the target distribution $P_T$,  Do the masses of the source and target distributions have to be identical? If so or not, how are the masses of $P_T$ and $P_S$ accounted for mathematically in, or when minimizing, the shown formula, or what might be missing/overlooked by the Wasserstein approach overall due to the mass differences? nginx httpMapModule regex variables The  states that:     Since 1.0.4, case insensitive regular expressions can be used by prefixing the pattern with ~*.   And gives the example:  map $uri $myvalue {     /aa                   /mapped_aa;     ~^/aa/(?&lt;suffix&gt;.*)$  $suffix; }   I updated to nginx/1.2.7 to make use of this, and naive regexes work okay, but variables don't. When I try the above syntax I get the error:  nginx: [emerg] pcre_compile() failed: unrecognized character after (?&lt; in "^/aa/(?&lt;suffix&gt;.*)$" at "suffix&gt;.*)$"   I also tried the following syntaxes, but none of them worked:  ~^(.*)$  $1; ~^(.*)$  \1;   but neither of them worked either.  Does anyone know how to get variables to work in regular expressions in HttpMapModule? WiFi Adapter AX201 Not Found: Ubuntu 18.04 Please note that this question is specific to Intel WiFi adapters.  My laptop is an HP ENVY with an Intel AX201 Wifi Adapter. I've dualbooted Ubuntu with Windows.  AX201 WiFi adapter is not supported by latest Ubuntu 18.04 version, because Ubuntu 18.04 comes with Linux Kernel 5.0, whereas support for AX201 comes built-in in Linux Kernel 5.2+. Canonical claims that Ubuntu 18.04 will get Linux Kernel 5.3 sometime next year. However, I wont be able to wait that long.  I tried downloading and installing Kernel 5.2.14, but I cant go beyond Grub: I get the error:     error: you need to load the kernel first.   Other option is to download the Intel Backport Driver, which I tried. That didn't seem to work either. As per the tutorials, I've restarted frequently, but that didnt work either.  Also I'm not quite sure if Intel IWLWIFI Backport driver supports AX201 in the first place.  WiFi works while I'm booted in Windows.  What should I do?  Thanks in advance!  UPDATE  I tried out @Pilot6's answer, and it worked. Thanks!  I have one last question: I've read that if you upgrade the Kernel beyond what Ubuntu 18.4 supports, its kinda unsafe (which I read as prone to system crashes).  I dont want system crashes because I have only one partition (root) for Ubuntu, and any crash would likely mean all my data is lost. One method forward would be to split my Ubuntu partition into root and home.  So if I want to access WiFi on my device safely without risking any crashes, what should I do?  My understanding of Ubuntu and Linux may be wrong as they are built on forum answers only. Please correct me if Im wrong anywhere. Using thematic layer for segmentation in eCognition? I have a thematic layer, i want to perform segmentation and classification only within the thematic layer,not in a whole image. how can i do it? I tried to segment the image after viewing the thematic layer in view setting and the thematic layer usage was enabled, but it was segmenting the whole image. SQL Query; Admin Log System; Foreign Keys; Retriving multiple rows form different tables at once Table A (users)  id     | name   | ip 52433    Yashas   1.1.1.1 512      Admin    5.6.7.8   Table B (admin_record)  id    | admin | time    | date    | reason | action  52433   512     2312352   1213213   Test     WARN   id is FOREIGN key  Table B keeps a log of all actions an administrator takes on his users. And the table A stores the account information of the users &amp; administrators.  I am trying to display a list of actions taken by a administrators on a user.   I want to write a query which gets me all the rows of table B where id = fixed number.  Here is what I want to display:  "Administrator1 [Name]" took action on "User Name" for "[Note]" on XX/XX/XXXX. "Administrator2 [Name]" took action on "User Name" for "[Note]" on XX/XX/XXXX. "Administrator3 [Name]" took action on "User Name" for "[Note]" on XX/XX/XXXX.   All I have is the user's id using which I need to obtain all the entries in the log along with the administrator names. I need to obtain the admin's name, users name and all the contents of table B related to a particular user in one single query. If possible, I want the to change the field name(not literally change, but want the SQL server to send the data with new field names to separate admin name &amp; user name) of the admin's name to admin_name and user's name as . I mean something like this  SELECT users.name AS admin_name WHERE users.id = %i  AND SELECT users.name AS user_name WHERE users.id = %i   (the query isn't correct,it us just an example to show what I am trying)  Progress so far:   SELECT player.name, player.ip, admin.name, record.date, record.time, record.action, record.reason FROM admin_record AS record JOIN users AS player ON player.id = record.id JOIN users AS admin ON admin.id = record.admin WHERE player.id=%i   where admin_record is table B &amp; users is table A. Proving $\int_{0}^{\infty} \mathrm{e}^{-x^2} dx = \frac{\sqrt \pi}{2}$ How to prove  $$\int_{0}^{\infty} \mathrm{e}^{-x^2}\, dx = \frac{\sqrt \pi}{2}$$ Can Quantum Entanglement and Quantum Superposition be considered the same phenomenon? Quantum entanglement is known to be the exchange of quantum information between two particles at a distance, while quantum superposition is known to be the uncertainty of a particle (or particles) being in several states at once (which could also involve the exchange of quantum information for a particle that is known to be in several locations simultaneously).  I was wondering if all of this was nothing more but the exchange of quantum information between different masses, and if this could clear up all the confusion in terms of how quantum systems connect in this field of science.  A clear explanation for how both of these quantum phenomena work, and if they really are connected (the exchange of quantum information?) would be much appreciated. Is there a way to view the "printable view" (.xls) in Mac Numbers (version 2.3+) rather than Excel? I am using OS X (Maverick), Numbers (V3.0) and both Safari and Firefox.  When I save a Salesforce report using the "printable view" button, it saves it as an .xls file but when I open it in Numbers I get what looks like the XML code behind it, for example the first cell in the first three rows contains:  &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&gt; &lt;html&gt; &lt;head&gt; The indefinite article applied to a group of things Use the definition of derivative to prove $\lim_{x\to 0}\ln(x+1)/x =1$ How would I use the definition of derivative to prove  $$\lim_{x\to 0} \frac{\ln(1+x)}{x} = 1$$  I got to $$\frac{\frac{\ln(1+x+h)}{(x+h)} - \frac{\ln(1+x)}{x}}{h}$$ but have no idea where to go from here.   On another site I found someones answer where they stated the following: $$ \lim_{x\to 0} \frac{\ln(1+x) - \ln(1+0)}{x-0}  = [\ln(1+x)]'\rvert_x = 0 $$ but I am unsure why the $x$ in the $x-0$ is removed. Can someone please explain? Windows & Ubuntu dual boot.No menu to choose OS? I just installed Ubuntu alongside Windows 7. Now I cant boot Windows 7 because it automaticaly boots Ubuntu without displaying boot menu. How can I get menu with options to choose which Os to boot? Can anyone help? Tunnel traffic through another machine over ssh Where is the open source project for the WMD editor used on this site? How is the amplitude of light related to number of photons? If you increase the number of photons leaving a light source you increase the brightness/intensity, so it could be said that intensity is directly proportional to number of photons. However intensity is directly proportional to amplitude squared, so this leads me to wonder that if you increase the amplitude of a light wave, are you just creating more photons rather than affecting each individual photon in some way? How to best respond to a request to send a passport scan by unsecured email? It is not uncommon for travel or holiday accommodation companies to ask for a scan of your passport by email. Sometimes local laws require them to keep a record of the passport numbers of all visitors. I'm happy to provide that information but you usually have to send it in an unsecured email, which may have consequences .  Could these companies be more responsible, and provide a public cryptographic key at least?  Are there other steps you should take to protect yourself, if you do send by unsecured email? How to delineate watersheds in QGIS? I am using qgis 2.14.17 with ubuntu16. Having as input data a DEM of the region and a river network. In the manual of qgis they suggest to use a toll of qgis: Catchment area (Parallel); I dont have this in my toolbox, anybody made the same experience and could tell me the reason for it and how to get it. It seems to offer the best solution for me.  Tools which are available are from GRASS7 and TauDEM, the latter need much more data it seems. And I am not sure if I am able to create these just out of a DEM? The GRASS7 has one tool r.water.outlet: but here one has to put the outlet coordinates, which clearly I could get out of the river network, but the idea is that they are generated by delineating the watersheds.  Somebody has an idea how to solve it?  I managed now to get SAGA run in the toolbox, nevertheless would be great if somebody could help me with the qgis tool, since it should appear?! A new tab for a record Type! Hello Folks,              I have a question which might be more on the admin side of the force.com platform but involves development.  Question: If I create record types for an object, how can I create separate tabs for the same object but different record types. And, since they all are going to share the same fields, how can I distinguish the labeling?  I dont think this is currently possible, but I would like to know how can it be achieved?  What I have tried: I tried creating visualforce pages with enhanced lists but then in the enhanced list I can not specify the record type.  Please let me know how can I achieve this! Thank you for the help. Several wands and other magic items in the DMG cite &quot;spellcaster&quot; as an attunement requirement, specifically &quot;requires attunement by a spellcaster&quot; while others list multiple spellcasting classes (e.g., a Staff of Fire &quot;requires attunement by a druid, sorcerer, warlock, or wizard&quot; p. 201). However, all the DMG states in this regard is:  Some magic items require a creature to form a bond with them before their magical properties can be used. This bond is called attunement, and certain items have a prerequisite for it. If the prerequisite is a class, a creature must be a member of that class to attune to the item.¹ (If the class is a spellcasting class, a monster qualifies if that monster has spell slots and uses that class's spell list. [emphasis and footnote added] (p. 136)  The language of the Mage Slayer feat describes a spellcaster as a creature casting or concentrating on a spell.  You have practiced techniques useful in melee combat against spellcasters [...] When a creature within 5 feet of you casts a spell ... [and] When you damage a creature that is concentrating on a spell ... (PHB, p. 168)  From the above, it does not appear that &quot;spellcaster&quot; would necessarily be considered a class or group of classes, so Are characters that can cast spells, regardless of their class(es), considered spellcasters? Or, put another way, Does &quot;spellcaster&quot; (as an attunement prerequisite) mean any creature who can cast a spell or does it mean all classes with the Spellcasting feature? I can think of five particular cases—innate abilities, two subclasses and two feats: High Elves know one wizard cantrip (0-level spell) of their choice. Drow can cast the dancing lights cantrip, 1st-level spell faerie fire and 2nd-level spell darkness. Forest Gnomes know the minor illusion cantrip, and Tieflings can cast the thaumaturgy cantrip and 2nd-level spells hellish rebuke and darkness. Also, many monsters have innate spellcasting abilities, which would trigger the Mage Slayer feat. Starting at 3rd level, both the Eldritch Knight (Fighter Martial Archetype) and Arcane Trickster (Roguish Archetype) gain the ability to cast wizard spells and gain wizard spell slots (potentially) up to 4th-level spells. PHB, pp. 75 &amp; 98. The latter's 17th-level Spell Thief feature also states &quot;you gain the ability to magically steal the knowledge of how to cast a spell from another spellcaster,&quot; (Ibid.) which strongly implies that (at least) the Arcane Trickster is a spellcaster, although neither subclass is specifically listed as a prerequisite for any magic item in the DMG. Eldritch Knight and Arcane Trickster are also found under Multiclassing, Spell Slots in the PHB:  You determine your available spell slots by adding together all your levels in the bard, cleric, druid, sorcerer, and wizard classes, half your levels (rounded down) in the paladin and ranger classes, and a third of your fighter or rogue levels (rounded down) if you have the Eldritch Knight or the Arcane Trickster feature. (p. 164)  With the Ritual Caster feat, a character chooses a spellcasting class (except paladin or ranger) and gains the ability to cast spells of that class with the ritual tag as rituals. The character immediately gets two 1st-level ritual spells of that class and has the potential to (eventually) learn all of the ritual spells of the chosen class. PHB, p. 169. With the Magic Initiate feat, a character chooses a particular spellcasting class (except paladin or ranger) and immediately learns two cantrips and one 1st-level spell from the class with no further advancement. PHB, p. 168. By definition, it seems all of the above would qualify as spellcasters, but I feel spellcaster typically (or maybe traditionally) refers to bard, cleric, druid, paladin, ranger, sorcerer, warlock and wizard.   I believe an exception would be a 13th level or higher Thief (Roguish Archetype) due to the Use Magic Device feature. PHB, p. 97. Adding multiple jars to classpath on commandline After upgrading to macOS Sierra, I'm getting the notification that "Your disk is almost full. Save space by optimizing storage.":    The options appear to be to store my files in iCloud, automatically delete files, or manually delete files:    My problem/irritation is that I have 80GB free of my 440GB volume.  The question: is there a way to silence this notification in a (semi-)permanent fashion, or to change the threshold it uses for the notification?