C#: format a datetime to ISO format. "scheduledDateTime":"2015-04-09T01:00:00.000-0400" for EST
Given a DateTime object, how do I get an ISO 8601 date in string format?
Displaying mysql data in html table PHP Long boot delay on Ubuntu loading/splash screen following regular dist-upgrade on clean SSD install (18.04) I'be been running 18.04 since a clean SSD install on the day of it's official release, without issues. Power on to login was seconds (max 10)  Then, I did a regular upgrade this morning:  $ sudo apt update &amp;&amp; sudo apt dist-upgrade   The packages installed/upgraded were:  Install: linux-headers-4.15.0-24:amd64 (4.15.0-24.26, automatic), linux-headers-4.15.0-24-generic:amd64 (4.15.0-24.26, automatic), linux-modules-extra-4.15.0-24-generic:amd64 (4.15.0-24.26, automatic), linux-modules-4.15.0-24-generic:amd64 (4.15.0-24.26, automatic), linux-image-4.15.0-24-generic:amd64 (4.15.0-24.26, automatic) Upgrade: gnome-control-center-data:amd64 (1:3.28.1-0ubuntu1.18.04.1, 1:3.28.1-0ubuntu1.18.04.2), linux-headers-generic:amd64 (4.15.0.23.25, 4.15.0.24.26), gnome-control-center:amd64 (1:3.28.1-0ubuntu1.18.04.1, 1:3.28.1-0ubuntu1.18.04.2), linux-image-generic:amd64 (4.15.0.23.25, 4.15.0.24.26), linux-signed-generic:amd64 (4.15.0.23.25, 4.15.0.24.26), gnome-control-center-faces:amd64 (1:3.28.1-0ubuntu1.18.04.1, 1:3.28.1-0ubuntu1.18.04.2), linux-generic:amd64 (4.15.0.23.25, 4.15.0.24.26)   I rebooted once the upgrade had completed, and noted a 2-3 minute delay on the Ubuntu loading/splash screen (prior to login) (without any progress/activity indicated on the dots).  I powered off and tried to boot again, but am getting this delay consistently now. Also close down is much slower too.  Update #1 (2018-07-03): Analysis on systemd:  $ sudo systemd-analyze blame 3min 53.073s plymouth-quit-wait.service     2min 20.699s snapd.seeded.service          49.949s snapd.service           6.186s NetworkManager-wait-online.service           1.148s dev-sda2.device           1.098s plymouth-start.service   Showing that plymouth-quit-wait.service (which I now believe is related to the Ubuntu loading/splash screen) and snapd.seeded.service were by far the longest running services to initiate. So I compared the times before the dist-upgrade and after:  $ journalctl -u plymouth-quit-wait.service --since today -- Logs begin at Fri 2018-04-27 13:01:30 BST, end at Tue 2018-07-03 12:38:05 BST. -- Jul 03 04:15:43 user-laptop systemd[1]: Starting Hold until boot process finishes up... Jul 03 04:15:46 user-laptop systemd[1]: Started Hold until boot process finishes up. -- Reboot -- Jul 03 04:21:17 user-laptop systemd[1]: Starting Hold until boot process finishes up... Jul 03 04:24:52 user-laptop systemd[1]: Started Hold until boot process finishes up.   Before the upgrade plymouth-quit-wait.service took 3 seconds. After the upgrade it took 3 minutes 35 seconds  $ journalctl -u snapd.seeded.service --since today -- Logs begin at Fri 2018-04-27 13:01:30 BST, end at Tue 2018-07-03 12:42:14 BST. -- Jul 03 04:15:43 user-laptop systemd[1]: Starting Wait until snapd is fully seeded... Jul 03 04:15:43 user-laptop systemd[1]: Started Wait until snapd is fully seeded. -- Reboot -- Jul 03 04:22:47 user-laptop systemd[1]: Starting Wait until snapd is fully seeded... Jul 03 04:24:49 user-laptop systemd[1]: Started Wait until snapd is fully seeded.   Before the upgrade snapd.seeded.service took 0 seconds. After the upgrade it took 2 minutes 2 seconds.  Update #2 (2018-07-06): This morning's boot saw the return of the delay. So I guess we're still waiting for the kernel/plymouth/snapd update.  Update #3 (2018-07-12): The problem seems to be resolved, but I didn't see any update to snap or plymouth, and I'm still running 4.15.0-24 kernel. So I'm not sure which package update fixed the problem, or if it just resolved itself somehow. Reading the bug updates on launchpad it's unclear to me what was done (or is being done) to what package/s. If anyone can clarify that would be very useful. Can two PS4s log in to the same PSN account? Both myself and my boyfriend have PS4s.  Can I just get a single PSN account and sign both consoles into the same account, or do I need to get two separate accounts? How can I install on a non-PAE CPU? (error "Kernel requires features not present on the CPU: PAE") After burning Ubuntu 12.04 to a CD, I tried booting and got the message:  This kernel requires the following features not present on the CPU: pae  Unable to boot - please use a kernel appropriate for your CPU.   What does this mean? Can I choose to delay my turn in combat? Should I use the datetime or timestamp data type in MySQL? Would you recommend using a  or a  field, and why (using MySQL)?   I'm working with PHP on the server side. I'm a British citizen travelling from London Heathrow (LHR) to the Hartford, Connecticut airport, and have a two hour stopover in Newark, New Jersey (EWR) on my itinerary. At what stage would I clear immigration and customs on arriving in the USA? What is wrong in this proof: That $\mathbb{R}$ has measure zero Consider $\mathbb{Q}$ which is countable, we may enumerate $\mathbb{Q}=\{q_1, q_2, \dots\}$. For each rational number $q_k$, cover it by an open interval $I_k$ centered at $q_k$ with radius $\epsilon/2^k$.  The total length of the intervals is a geometric progression that sums up to $\epsilon$.  Each real number is arbitrarily close to a rational number since $\mathbb{Q}$ is dense in $\mathbb{R}$. Thus, each real number is in one of the open intervals.  Thus the entire real line is covered by the union of the $I_k$, thus $\mathbb{R}$ is a null set with measure zero.  Clearly there is something wrong in the above proof, however I am not sure where is it?  Thanks for any help. Jordan Canonical Form determined by characteristic and minimal polynomials in dimension $3$, but not beyond Which is faster/best? SELECT * or SELECT column1, colum2, column3, etc I've heard that SELECT * is generally bad practice to use when writing SQL commands because it is more efficient to SELECT columns you specifically need.  If I need to SELECT every column in a table, should I use   SELECT * FROM TABLE   or   SELECT column1, colum2, column3, etc. FROM TABLE   Does the efficiency really matter in this case? I'd think SELECT * would be more optimal internally if you really need all of the data, but I'm saying this with no real understanding of database.  I'm curious to know what the best practice is in this case.  UPDATE: I probably should specify that the only situation where I would really want to do a SELECT * is when I'm selecting data from one table where I know all columns will always need to be retrieved, even when new columns are added.   Given the responses I've seen however, this still seems like a bad idea and SELECT * should never be used for a lot more technical reasons that I ever though about. The rules on  state:     Massive damage can kill you instantly. When damage reduces you to 0 hit points and there is damage remaining, you die if the remaining damage equals or exceeds your hit point maximum [...]   Does this only apply if you aren't already at 0 HP? Or rather, what happens if you are currently at 0 HP and take massive damage? The new profile shouldn't mistakenly imply that you can earn the Informed badge on a meta site I came to think about some situations where it would be almost impossible to miss a melee spell attack (target is grappling you or vice versa, target is holding you or is close to you, your character already has it's hand on the target, etc.). How do you manage those situations?    Do you give an advantage to the caster? Does the spell automatically succeed? Or you just don't ask yourself the question and just play along with the base rules? Problems updating Python from the repositories today (Feb 25, 2021) NOTE: This is a Master Canonical Post for the issues observed on February 25, 2020.  All issues on Feb 25 relating to Python updates not found should be dupe-linked here.  Errors have been seen such as this today, February 25, 2021: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/python2.7/libpython2.7-minimal_2.7.17-1~18.04ubuntu1.3_amd64.deb 404 Not Found  Is there something up with the repositories? What's the difference between $\equiv$ and $\leftrightarrow$ in a formal proof? zeros of a polynomial Given $P(z)=z^6+6z+10$, find how many roots are in each quadrant    I have already seen that $P(z)$ has six different roots, and that none of them are real or of the form $ki$, $k\in \Bbb R$. Since the coefficients of $P(z)$ are real, then it's roots are 3 conjugate pairs, and therefore the possibilities are limited to two.  Defining $f(z)=z^6$, $g(z)=z^6+6z+10$ and applying Rouche in $|z|&lt;2$, $|f(z)-g(z)|&lt;|f(z)|$ I get that all roots are contained in the disc, but how do I go about splitting them into the four quadrants? From what I know about this polynomial, finding zeros in one quadrant is enough to determine the rest, but I'm stuck trying to apply rouche to a quarter circle (basically I'm having trouble finding a suitable f and g) Use physical harddisk in Virtual Box Using Virtual Box, how can I install an OS to a secondary, physical disk, and boot it in both (at separate times) Virtual Box, and as a typical secondary OS install? Question mark or period to end a rhetorical sentence Which makes more sense as end punctuation for the following rhetorical sentence—a period or a question mark?     Maybe you could be a security guard there and enforce whatever the WalMart policy is at that location Is there a built-in checksum/hash utility on Windows 7? Im having trouble with the second part of this question,  Let $H$ be a normal subgroup of $G$ with $|G:H| = n$,  i) Prove $g^n \in H$ $\forall g \in G$ (which i have done)  ii) Give an example to show that this all false when $H$ is not normal in $G$.(which I am having trouble with showing)  Any suggestions?