Parse/Display XML from a POST Method
How to parse JSON in iOS App
Cannot inherit from multiple classes defining __slots__? Best Way To Store Multiple Flags In Database I have a web-based application that notifies users of activity on the site via email. Users can choose which kinds of notifcations they want to receive. So far there are about 10 different options (each one is a true/false).  I'm currently storing this in one varchar field as a 0 or 1 separated by commas. For example: 1,0,0,0,1,1,1,1,0,0  This works but it's difficult to add new notification flags and keep track of which flag belongs to which notification. Is there an accepted standard for doing this? I was thinking of adding another table with a column for each notification type. Then I can add new columns if I need, but I'm not sure how efficient this is.  Thanks in advance! What are the options for traveling to the airports in Paris? Paris has 3 airports (Orly, Roissy, Beauvais), what are the options to go to or to come from there?  (There is also Vatry (XCR) but there is very few flights and i see the shuttle system is currently off.) Elliptic Coordinates - Inverting the transformation The standard way to transform elliptic coordinates $(\mu, \nu)$ $\ to$ Cartesian coordinates $(x,y)$:  $x = a \cosh(\mu) \cos(\nu)$  $y = a \sinh(\mu) \sin(\nu)$  Is there any way to get the transformation $(x,y)$ to $(\mu,\nu)$? Meaning is there a way to find:  $\mu = f(x,y)$  $\nu = g(x,y)$  I'm guessing that it would involve $\sinh^{-1}$'s and $\cosh^{-1}$'s, if it was possible to do this at all. Given the galois extension $L/K$, where $L=\mathbb{Q}(\zeta, \sqrt[3]{2})$. I've already calculated that $[L:\mathbb{Q}]=6$. I'm trying to prove that the number of intermediate fields is also 6, including $L$ and $\mathbb{Q}$ as intermediate fields. I'm told that the fundamental theorem of galois theory can be useful here, but I can't find a use for it. How does IPv4 Subnetting Work? Making a recursive CTE like query, but for many records I'm working on a project that requires me to get some of the position and rotation values to give to an Arduino via pyserial, but after sifting through the Blender documentation I can't find how to get them through script. 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}$$ I'm studying special relativity and saw the 2 postulates of Einstein. The most remarkable one for me is the universal speed of light. Einstein postulated that the speed of light in vacuum is the same for all inertial observers, regardless of the motion of the source. But what if we are accelerating and we are changing from one inertial frame to another, how will we observe the speed of light? Is it still the same? I suggest it's not? Because I alread saw a small introduction to general relativity where the light will bend in a gravitational field and therefore also when you accelerate. So does the speed of light change because it bends? Solution  Full solution for producing PDF/X compliant document can be found in MWE and answer to this question:   Adapted MWE and compilation method are taken from Leonid's answer to this question.  Please note that solution requires compilation with TeXLive 2015 (or later).  Original question  I am trying to compile my source with XeLaTeX to produce PDF/X-1a:2001 compliant document. Getting PDF/X-1a:2001 is possible with pdfx package (while using up-to-date TeX distribution), but only when document is compiled with pdflatex.  Since I am using OTF and TTF fonts in my document, I have to use XeLaTeX to compile it. This is MWE:  \documentclass{book} \usepackage[x-1a1]{pdfx} \begin{document} Some text \end{document}   When I try to compile this document with MiKTeX's 2.9 xelatex I get following error and compilation halts:  ! Undefined control sequence. l.111 \pdfminorversion                       =4 %  assumed for PDF/A ;  options may change this for...  ?    Is there any way to compile PDF/X-1a:2001 with XeLaTeX, either using pdfx or different package?  Ps. I used MiKTeX 2.9, because I don't want to update my TeX Live 2013/Debian distribution I normally use. With MiKTeX I get most recent version of pdfx package.  EDIT: Since it isn't obvious from Leonid's answer and is mentioned only in comments, please note that you need TeXLive 2015 in order for Leonid's answer to work fully. TeXLive 2013 (installed by your system's package manager) or MiKTeX 2.9 won't do the trick (this is true as of March 2016; it might change by the time you read this).    I also tried to compile this MWE with LuaLaTeX to see if this works. It didn't. I get following error:  ! Undefined control sequence. \pdfx@findUUID ... \pdfx@tmpstring {\pdfmdfivesum                                                    {#1}} \expandafter \pdfx@e... l.360 \pdfx@findUUID{\jobname.pdf}  ?   In the event version of LuaLaTeX matters: lualatex --version outputs  This is LuaTeX, Version beta-0.76.0-2013062821  (MiKTeX 2.9 64-bit) (rev 4627) Distributions other than the normal where mean and variance are independent I was wondering if there are any distributions besides the normal where the mean and variance are independent of each other (or in other words, where the variance is not a function of the mean). What is glue stretching? I had a question about dynamic vspaces () and there was a hint I should use a stretchable glue. Searching with Google didn't give me a helpful answer.  I would be glad, if someone can explain it and give me a simple example to understand how it works. How to draw a fish? I would like to draw an image like the following.     This is what I've done so far (I used tikz, but any other package is welcome):  \documentclass{article} \usepackage{tikz}  \begin{document}     \begin{tikzpicture}         \draw[fill=blue] (.5,0) rectangle (4,2);         \draw[fill=red] (1,1) to[bend left=50] (3,1) to[bend left=50] (1,1);         \draw[fill=red] (3,1) -- (3.5,1.5) -- (3.3,1) -- (3.5,.5) -- cycle;         \draw[fill=white] (1.6,1.1) circle (.15cm);          \draw[fill=blue] (1.55,1.1) circle (.05cm);              \end{tikzpicture} \end{document}     Edit: April 2nd, Time for explanation  In Italy (but I also think in other countries), a practical joke done on April 1st is called "pesce d'Aprile" (= April's fish, that is an ) and is often related to fishes.  The usual one is to stick a drawing of a fish on someone's back without he/she realizes it.  Some years ago a colleague of mine stuck some "pesci d'Aprile" with written below "sono disponibile" (= I'm easy) on the rear of all the cars in our company car parking. Some other colleagues didn't realize it, and they had gone around with that drawing for days.  Another funny example happened in Milan . Someone put on the windshield of a lot of cars a false fine for illegal parking. On the fine sheet was written "per il pagamento rivolgersi agli uffici comunali di via Gadio, 2" (= for payment, please contact the municipal offices in via Gadio, 2), the address of the Civic Aquarium.  Hence, this question was simply a way to put    P.S. = Since I earned a lot of reputation points with this trick question, I decided to give them back to the Community awarding a bounty to the two answers posted on April, 1st.  Moreover, I accepted Robert's one since he guessed without spoiling, and I thank the other two answerers.  To the downvoters: you're probably technically right, but:   there's already too much sadness in the world, let's laugh now and then! humor is part of the LaTeX philosophy, Prof. Knuth himself docet if only serious questions are accepted, why did they create a fun tag? Exercise $1.8$ of chapter one in Hartshorne. jQuery .on function for future elements, as .live is deprecated R's lmer cheat sheet Is it possible to use NBT tags in commands in Minecraft: Bedrock Edition? Scheduling a team based activity with 10 different teams and X different games. Every team must meet each other ONCE but never twice, Hi there I am planning a ”Scavenger hunt”-like activity (I have no other words for this event), and I am having trouble creating the schedule.   The idea of this hunt/run/game/competition is that 10 teams will battle each other at X different mini games. The games on are team vs. team based, meaning that there will always be two teams on each post and one winner and one loser.  I require that every team fights every other team. Meaning that team 1 will have to meet team 2, 3, 4, 5, 6, 7, 8, 9, and 10, and team 2 will have to meet team 1, 3, 4, 5, 6, 7, 8, 9, 10 (and so forth). The amount of mini games must be so, that every team only meets the other teams ONCE each, but still they have to meet every team.  How many posts do I need to create, and how could I schedule the overall activity? (A table of rounds and teams would be much appreciated). Schengen visa in US without H1B stamp