i've one doubt. I'm doing request to an API which return me event date. I was hope that date will be a timestamp, but i get this value: {&quot;date&quot;:&quot;2020-08-24T21:15:00+00:00&quot;}  I want to get a python datetime object. How can I do that?
I've got a huge list of date-times like this as strings:  Jun 1 2005  1:33PM Aug 28 1999 12:00AM   I'm going to be shoving these back into proper datetime fields in a database so I need to magic them into real datetime objects.   This is going through Django's ORM so I can't use SQL to do the conversion on insert.
When a person lifts a book while standing on the earth's surface. Why is his force considered external to the book-earth system? Isn't his force internal like the case of the forces that cause the exploson of a bomb. I think the forces the person exerts on both the book and the earth are internal since they are equal but opposite therefore resulting in the position of the centre of mass of the system being maintained and if i'm right is the mechanical energy of the system constant?  Am i wrong? Please correct me. Why was M87 targeted for the Event Horizon Telescope instead of Sagittarius A*? The first image of a black hole has been released today, April 10th, 2019. The team targeted .  Why didn't the team target  at the center of our own galaxy? Intuitively, it would seem to be a better target as it is closer to us. Change the location of .bashrc Is it possible to change the location of .bashrc from /home/orhanc/.bashrc to some other directory? Determine the Galois group of $\mathbb{Q}(\sqrt{a+b\sqrt{d}})$ Suppose $L=\mathbb{Q}(\sqrt{a+b\sqrt{d}})$,($d$ and $a+b\sqrt{d}$ are square free algebraic integers) when is $L/\mathbb{Q}$ a normal extension? When does $Aut(L/\mathbb{Q})=\mathbb{Z}/4\mathbb{Z}$ or $Aut(L/\mathbb{Q})=\mathbb{Z}/2\mathbb{Z}\times \mathbb{Z}/2\mathbb{Z}$? Url rewriting in Amazon S3 I have a webapp hosted in Amazon S3, the webapp is build with jQuery Mobile and I use changePage lo navigate between pages, I'm not using the hash operator(#) when I change the page.  I'm having problems when the user copy the url and paste it in a new tab  For example:    loads the page page1.html that is in amazon s3 with only the jquery page structure...  The behavior that I want is that load index.html and with js read the url, detect the page and load the correct page.  With Apache I solve this with URL Rewriting... but for Amazon S3 I didn't find any similar...  NOTE: I know that if I activate the hash operator (#) in my urls the problem is solved but I need clean urls without #. Can I still use the older Airport Utility 5.5.3 if I install the 6.0 version of Airport Utility? What does different focal length offer me? A solid sphere has charge $q$ and radius $R$. Find the potential at a point a distance $r$ from the center of the sphere where $r&gt;R$, using infinity as the reference point.  My attempt:  From Gauss' theorem we may deduce that $\displaystyle\mathbf{E}=\frac{1}{4\pi\epsilon_0}\frac{q}{r'^2}\hat{\mathbf{r}}$ where $r'$ is the distance of an arbitrary point from the center of the sphere provided $r'&gt;R$.  $V=-\int_\infty^\mathbf{r}\mathbf{E}\cdot d\mathbf{l}$  My question: What is $d\mathbf{l}$? Since we are traversing in the direction opposite to $\hat{\mathbf{r}}$, I think it should be $-dr'\hat{\mathbf{r}}$. But when I use it to find $V$, I get a sign error. Please help! Silencing "Your disk is almost full" notification I am looking for a book about "advanced" classical mechanics. By advanced I mean a book considering directly Lagrangian and Hamiltonian formulation, and also providing a firm basis in the geometrical consideration related to these to formalism (like tangent bundle, cotangent bundle, 1-form, 2-form, etc.).  I have , but I would like to go into more details about the [symplectic] geometrical and mathematical foundations of classical mechanics.  Additional note: A chapter about relativistic Hamiltonian dynamics would be a good thing. After installing Ubuntu Studio 12.04, I have found that it uses a low latency kernel.   I searched for an explanation and how to change back it to a real-time or generic one. However, it looks like this part of Linux hasn't been covered to explain the details.   Q: Why choose a low latency kernel over a generic or real-time one?  PS: I have already read the answers from  question and  post. Why is the CDF of a sample uniformly distributed I read  that given a sample $ X_1,X_2,...,X_n $ from a continuous distribution with cdf $ F_X $, the sample corresponding to $ U_i = F_X(X_i) $ follows a standard uniform distribution.  I have verified this using qualitative simulations in Python, and I was easily able to verify the relationship.  import matplotlib.pyplot as plt import scipy.stats  xs = scipy.stats.norm.rvs(5, 2, 10000)  fig, axes = plt.subplots(1, 2, figsize=(9, 3)) axes[0].hist(xs, bins=50) axes[0].set_title("Samples") axes[1].hist(     scipy.stats.norm.cdf(xs, 5, 2),     bins=50 ) axes[1].set_title("CDF(samples)")   Resulting in the following plot:    I am unable to grasp why this happens. I assume it has to do with the definition of the CDF and it's relationship to the PDF, but I am missing something...  I would appreciate it if someone could point me to some reading on the subject or help me get some intuition on the subject.  EDIT: The CDF looks like this: Counting unique records across 2 columns and computing a score based on boolean values I have a table that looks like this in Google Big Query:  custID  InteractionDate Purchased?  Sales 1       20150312           F         0 1       20150312           T         200 1       20150314           T         150 2       20150221           T         400 2       20150221           F         0 2       20150221           T         120   ..that I need to transform to the following structure:   custID InteractionDate Success Sales  1     20150312          0.5    200  1     20150314           1     150  2     20150221         0.66    520   ..where in this second table the success column is defined as  count(purchase=Yes)/(count(purchase=Yes) + count(purchase=No)),   and sales is just the sum.  I'm quite new to BQ and no-SQL languages. I simply don't know how to do this, I've searched and seen examples that suggest using partition over but I simply haven't seen any example that does just this. Thanks a lot in advance. I'm studying orientability of manifolds currently and I'm having trouble to prove the following: $M\times N$ is orientable iff $M$ and $N$ are orientable.   I am able to prove that the product is orientable if components are orientable (chart is $\{(U_\alpha\times V_{\beta},\phi_\alpha\times \psi_\beta):(\alpha,\beta)\in A\times B \}$, and $\det J=\det J_1 \det J_2&gt;0$ by Cauchy-Binet's theorem), but I don't know how to prove the other direction.   So why this holds: if $M\times N$ is orientable, then $M$ and $N$ are orientable?  Thanks in advance. Number of bases of an n-dimensional vector space over q-element field. If I have an n-dimensional vector space over a field with q elements, how can I find the number of bases of this vector space? given a polynomial $p(x,y)$ from $\mathbb Z[x,y]$. I want to substitute $x=1$ leaving $y$ as it is. The command Value(p,[1,y]) does not work. Can you give me a hint?  After that it gets a little more complicated. Let  $$p(x,y)=x^6+y^6$$ After substituting $x=1$ we have $p(1,y)=1+y^6$. Given a natural number $j$. I want to find all expressions $y^j$ in $p$ and substitute these $y^j$ by $1$ and the others by $0$. In this case (and for $j=6$) we would get $1+1=2$. If $$p(x,y)=x^4y^2+x^2y^6$$ we should get $0+1=1$. Is there any way to do this?  Thanks for reading! edit: Well, it turns out I used the function Value wrong. The right code for my problem would be Value(p,[x,y],[1,y]). So my first question is solved. Installing Office 2010 on Ubuntu 15.04 using Wine I had installed Office 2010 32bit on Ubuntu 12.04 before using guides such as . However, due to package changes, I was not able to replicate the same on Ubuntu 15.04.  How does one install Office 10 using Wine? A star's collapse can be halted by the  due to the Pauli exclusion principle. In extreme relativistic conditions, a star will continue to collapse regardless of the degeneracy pressure to form a black hole. Does this violate the Pauli exclusion principle? If so, are theorists ok with that? And if it doesn't violate the Pauli exclusion principle, why not? How to get reflections from 3D to show up on real images Find $\sum_{n=1}^\infty \frac{n^3}{n!}$.