Python: The opposite of `datetime.date.isocalendar()`
What's the best way to find the inverse of datetime.isocalendar()?
different font while using url I'm having troubles while using the url command in my bibliography.  I mean:  1) \bibitem{[8]} {\url{http://projects.webappsec.org/w/page/13246989/Web20Application20Security20Statistics\#Tableofcontent}}  2) \bibitem{[5]} Justin~Clarke ``SQL Injection Attacks and Defense'', Syngress Publishing, Inc.2009   Unfortunately font 1) is different from 2).  What should I do in oder to get the same font for both items?   I'd like the font used in 1)  to be identical to the one displayed in 2) Proof of $\sum_{k = 1}^{n} \frac{1}{k^{2}} < 2 - \frac{1}{n}$ How can I permanently enable cheating? I'm giving Deus Ex a quick playthrough as a refresher before jumping into Human Revolution. In the interest of expediency, I've decided to cheat. ^.^  Normally, cheats must be re-enabled for each level when playing the original DX. I've encountered instructions on several sites (word-for-word identical instructions, so clearly copy/pasted) for permanently enabling cheats, but they aren't working for me:     Because you will need to redo this for every level, you can open up 'user.ini' and add 'bCheatsEnabled True' in the [DeusEx.DeusExGameInfo] section of the file to allow cheats to be activated forever.   Not only is that not working for me, it doesn't even look right compared to the rest of the file (space instead of =). With increasing desperation, I've tried adding that line (both verbatim and switching to an equal sign) to every section of both User.ini and DeusEx.ini which looks even remotely plausible — even creating a [DeusEx.JCDentonMale] section, just in case.  Does anyone know how to get this working? I'm running DX:GOTY version 1.112fm from Steam on Windows 7. Subtracting (erasing) polygons from polygon using ArcGIS for Desktop? I have two polygon layers, one is green that represents all non-public right-of-way land. I have another polygon that is just a circle with a specified radius.  I would like my output to be a polygon layer that represents all the white space (the gaps) in the private land polygon layer that is also within the black circle.    How does one do this (In ArcGIS 10.2)? New breaker and panel: What's the brown goo where they connect? Using "answer your own question" to advertise completed open source project? How do I extract a single chunk of bytes from within a file? biblatex: Handling secondary ("quoted in") citations This question and the answer became part of a package:      How can I qoute secondary quotes which I’ve taken form another book.  Example  Jon Doe writes a book an cites Fred Bloggs in it. Now I read the book of Doe an want to cite his cite of Bloggs. So my bibliography entry must look like     Bloggs, Fred: A nice old book, 1850, p. 35. Quoted in Doe, John: A bad new Book, 2011, p. 67.   Doe’s book should not be listed separately in the bibliography.  I know that there’s a bibstring quotedin containing “quoted in” (p. 159 of biblatex’s manual) but I don’t know if theres a (predefined) way to use it …  Update  It seems that there’s no predefined way, so I decided to use userc for crossreferences like this. This works for the bibliography but not for cite commands. At the moment I create the “in text cite” manually.  It would be great to have a macro like  \QIautocite[&lt;prenote a&gt;][&lt;postnote a&gt;]{&lt;author a&gt;}[&lt;prenote b&gt;][&lt;postnote b&gt;]{&lt;author b&gt;}   that expands to the above given example.  That’s my new code, which gives the right results for bibliography and “in text cite” but the latter not automatically …  \RequirePackage{filecontents} \begin{filecontents}{\jobname.bib} @BOOKLET{autora,   title = {A nice old book},   userc={autorb},   author = {Fred Bloggs},   year = {1850}, } @BOOKLET{autorb,   title = {A bad new book},   author = {Jon Doe},   year = {2011}, } \end{filecontents}  \documentclass[ngerman]{scrartcl}  \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc}  \usepackage{babel,csquotes,blindtext}  \usepackage[%     bibstyle=authortitle,     citestyle=verbose-ibid, ]{biblatex} \addbibresource{\jobname.bib}  \NewBibliographyString{bibcitedas} \DefineBibliographyStrings{german}{%   bibcitedas = {{zitiert als}{zit. als}}, }  % Put the 'quoted in text' behind the bibentry. \renewbibmacro*{finentry}{%   \ifbibliography{%     \iffieldundef{userc}{}{%       \newunit\bibstring{quotedin}\addspace\fullcite{\thefield{userc}}     }   }{}%   \finentry% }  \begin{document} \blindtext \begin{quotation}     \blindtext\footnote{\cite[36]{autora}. Zit. nach \cite[89]{autorb}} \end{quotation} \blindtext\footnote{\cite[36]{autora}. Zit. nach \cite[89]{autorb}}  \printbibliography \end{document}   Example 2  In addition to my comment (Hi @Audrey. This works fine :-) but theres a little thing …) on Audrey’s answer:  If I use the quotecite command like this  \quotecite[1]{reese}[5]{weinberg} \quotecite[1]{reese}[5]{weinberg} \pagebreak \quotecite[1]{reese}[5]{weinberg} \quotecite[1]{reese}[5]{weinberg}   the footnotes should look like       1 Reese [full cite], p. 1. Zit. nach Weinberg [full cite], p. 65   2 Ebd.   ———— page break ————   3 Rese [short cite], p 1. Zit nach Weinberg [short cite], p. 65   4 Ebd.   Everything works like expected except footnote 3 which is     3 Rese [short cite], p 1. Zit nach Weinberg [full cite], p. 65     at the moment  Update 2  Since it seems not possible to react to autocite I created a new plain command with  \DeclareMultiCiteCommand{\quoteciteplain}[\cbx@qcwrapperplain]{\cbx@quotecite}{\cbx@qcdelim}  \newrobustcmd{\cbx@qcwrapperplain}[1]{%   \global\toggletrue{cbx@isquote}%   #1%   \global\togglefalse{cbx@isquote}%   \global\togglefalse{cbx@iflastibid}%   \global\togglefalse{cbx@ifquoteepost}%   \global\togglefalse{cbx@ifquoterpost}} This question is in the spirit of , an example of an apparently non-deterministic system in Newtonian mechanics. Under certain restrictions, the  guarantees the existence and uniqueness of solutions to differential equations with initial conditions. However, Norton's dome does not satisfy these restrictions. The ball may sit on top of the dome for an arbitrary period of time before sliding down in a particular trajectory, without violating Newton's laws of motion.    Is there a plausible example of a system of interacting point-particles such that the equations of a point-particle are continuous but not , and therefore fail to have a unique solution? How do I resize my current ubuntu partition? I've got Ubuntu 10.10 installed to use my whole hard-disk, but would like to use the 130GB of free space I've got to create a new partition and do some development on Unity and Natty.  Can I use gparted to do this?  If so how? Possible to bake texture to new UV map? I have a finished model where the UV maps overlap - lots of wood that isn't detailed to be particular to the model.    I'd like to re-map the texture so that specific details can be added. I'd like to rebuild the UV map into non-overlapping islands, without losing the current texture application, and preferably without manually pulling apart the islands.  Is this possible? My computer boots to a black screen, what options do I have to fix it? I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents: How does a uniform prior lead to the same estimates from maximum likelihood and mode of posterior? I am studying different point estimate methods and read that when using MAP vs ML estimates, when we use a "uniform prior", the estimates are identical. Can somebody explain what a "uniform" prior is and give some (simple) examples of when the MAP and ML estimators would be the same? Prove that the equation: $c_0+c_1x+\ldots+c_nx^n=0$ has a real solution between 0 and 1. Let $c_0,c_1,c_2,\ldots ,c_n$ be constants such that :  $$c_0+\frac{c_1}{2}+\ldots+\frac{c_{n-1}}{n}+\frac{c_n}{n+1}=0$$  I have to prove that the equation: $$c_0+c_1x+\ldots+c_nx^n=0$$  Has a real solution between 0 and 1.  Didn't know how to start...I thought that maybe I could use something about derivative...But I'm lost... Any help,much appreciated!!! Bullied boy given immense powers by an alien race who destroys the human race Looking to identify a short story I read in a sci-fi anthology as a child, about an angry, bullied somewhat misanthropic boy who is given immense near-omnipotent powers by an alien intelligence. I read this in English, sometime in the late 1990s/early 2000s. He goes on to use this power to destroy the human race, which causes him to age terribly in a very short amount of time. At the end of the story he is a lonely old man stripped of the powers he held briefly, and is alone on an isolated Earth. The aliens then proceed to invade Earth. Does anyone know why typedefs of class names don't work like class names for the friend declaration?  class A { public: };  class B : public A { public:    typedef A SUPERCLASS; };  typedef A X;  class C { public:    friend class A;             // OK    friend class X;             // fails    friend class B::SUPERCLASS; // fails }; How can I really disable the Cmd to Win key mapping in Parallels Desktop 5? Removed it from System Preferences &gt; Keyboard. No go. Remapped ⌘ Cmd to be Ctrl. No go. Ripping out the ⌘ Cmd key shouldn't be the solution. Anyone?... Is there a simple reason why the expected number of coin flips till getting $m$ more heads than tails or $n$ more tails than heads should be $mn$? I flip a coin until I get $m$ more heads than tails, or $n$ more tails than heads. Let the expected number of flips of the coin before stopping be $f(m,n)$.  I obtained $f(m,n)=mn$ from the recursion $f(m,n)=1+\frac{f(m-1,n+1)+f(m+1,n-1)}2$ with $f(k,0)=f(0,k)=0$ for all $k$.   Other than going through this recursion (and either solving by inspection or by writing as linear recurrence in single variable and solving brute force), is there an intuitive reason you should expect this process to take $mn$ flips? I was thinking about the more general problem with probability $p$ of getting heads and was struck by how simple the formula became when handling, what turned out to be a special case (general formula broke down) of $p=\frac12$. Let $f:A\rightarrow B$ and $C\subset B,D\subset B$. Prove that $f^{-1}(C\backslash D)=f^{-1}(C)\backslash f^{-1}(D)$ Allow people to answer protected questions if they have earned at least some amount of combined SE rep The purpose of protected questions is, according to the message presented on such a question, "to prevent 'thanks!', 'me too!', or spam answers by new users." The more verbose  agrees on the purpose. And the  says this is why protected questions exist:     Some questions are protected because they are expected to attract   either spam or users -- often new users -- who may mistake the site as   a traditional forum, posting "noisy" answers such as "Thank you" or   "This worked for me" or "I'm also having this problem".   Considering this, shouldn't a user be able to answer protected questions if they have gained at least 10 rep on any stack exchange site? If they've already demonstrated one site that they are familiar enough with the SE Q/A format to not be a drive-by useless answerer, shouldn't that confidence in them carry over to other SE sites?  Or maybe at some level of combined SE rep this restriction should be waived. I find it silly that at 15k+ combined network rep, I'm unable to answer a protected question on a SE site I've just started using.