How to change milliseconds to Date object in yyyy-MM-dd HH:mm:ss format like 2017-04-12 23:14:52?
I have a string containing the , and I need to convert it to a Java Date object.  String date = "1081157732"; DateFormat df = new SimpleDateFormat(""); // This line try {   Date expiry = df.parse(date);  } catch (ParseException ex) {   ex.getStackTrace(); }   The marked line is where I'm having trouble. I can't work out what the argument to SimpleDateFormat() should be, or even if I should be using SimpleDateFormat().
External arrows in tables How to achieve similar arrows as in the picture?    The main issue cause of arrow   a(2,1) -> a(1,3), a(3,1) -> a(1,4), etc. Or at least how to make them on top of the table, but to make it look readable.  \documentclass[border=10mm]{standalone} \usepackage{tikz} \usetikzlibrary{matrix}  \begin{document} \begin{tikzpicture}[&gt;=stealth] \matrix (A) [matrix of nodes,row sep=3mm,column sep=3mm,nodes in empty cells] {   $a_{11}$ &amp; $a_{12}$ &amp; $a_{13}$ &amp; $a_{14}$ &amp; $a_{15}$ &amp;  $\dots$ \\   $a_{21}$ &amp; $a_{22}$ &amp; $a_{23}$ &amp; $a_{24}$ &amp; $a_{25}$ &amp;          \\   $a_{31}$ &amp; $a_{32}$ &amp; $a_{33}$ &amp; $a_{34}$ &amp; $a_{35}$ &amp;          \\   $a_{41}$ &amp; $a_{42}$ &amp; $a_{43}$ &amp; $a_{44}$ &amp; $a_{45}$ &amp;          \\   $a_{51}$ &amp; $a_{52}$ &amp; $a_{53}$ &amp; $a_{54}$ &amp; $a_{55}$ &amp;          \\   $\vdots$ &amp;          &amp;          &amp;          &amp;          &amp; $\ddots$ \\ };  \begin{scope}[thick,black,-&gt;] \draw (A-1-1)--(A-1-2); \draw (A-1-2)--(A-2-2); \draw (A-2-2)--(A-2-1); %\draw (A-2-1)--(A-1-3); \draw (A-1-3)--(A-2-3); \draw (A-2-3)--(A-3-3); \draw (A-3-3)--(A-3-2); \draw (A-3-2)--(A-3-1); %\draw (A-3-1)--(A-1-4); % etc. \end{scope} \end{tikzpicture} \end{document} Continuous function preserving rational difference. Find all the continuous functions $f:\mathbb{R}\rightarrow \mathbb{R}$ such that if $x-y\in \mathbb{Q}$ then $f(x)-f(y)\in \mathbb{Q}$.   Can somebody give me some hint to solve this problem. I think that the functions are $f(x)=mx+b$ where $m\in\mathbb{Q}$.  Thanks! How to remove desktop environments? I installed few environments that I wanted to try out on Ubuntu 12.04, but none of them worked at all. It could be that I installed them all at the same time, meaning the OS didn't get a chance to work everything out, but either way, they didn't work. I would now like to remove them.   The one's that I installed are Xubuntu/Xfce, Lubuntu/LXDE, Kubuntu/KDE, Fluxbox, OpenBox, cinnamon, and MATE. I installed them. Everything seemed to have been working properly until I actually tried to use the shells and nothing loaded at all. Except for Fluxbox, I think that one worked. I want to know of any way to repair or perhaps just remove the packages entirely. I might have already removed them because I did the apt-get remove command on all of them, but they were still in the list on the login screen. Are static class variables possible in Python? Does a finally block always get executed in Java? Considering this code, can I be absolutely sure that the finally block always executes, no matter what something() is?  try {       something();       return success;   }   catch (Exception e) {        return failure;   }   finally {       System.out.println("I don't know if this will get printed out"); } Word or phrase for mere coincidence that brings happiness What does recursive cosine sequence converge to? I have a sequence defined as follow:  $a_0 = 1, a_n=\cos\left(a_{n-1}\right)$.  I want to count $\lim_{n\rightarrow\infty} a_n$ - it definitely does have limit by looking at the graph, the first few numbers of the limit are 0.7390851, but I have no idea, if that number is related to some other real number ($\pi$ or something like that).  The sequence is from , but they don't provide actual result for their own sequence. "Bring" vs. "take" in American English Does this sentence have too many subjunctives? Just upgraded to Mountain Lion and I have to buy iPhoto again? Title of 80's movie: future-era timetraveling humans go extinct and rescue/kidnap todays air crash victims What is the title of a 80's (i believe?) movie where humans in the far future are going extinct, and are aquiring new humans by going back in time to todays world, kidnapping air travelers that are known to have died that day, from the flying passenger aircraft just before its crashing.  A key visual:    Inside a hangar, a time portal opened, and a tail of a (flying) passenger aircraft extruded into the hangar where a stairs provided access to the back door of the aircraft.  The kidnappers made sure the surviving passengers remain seated and would forget about the whole ordeal. Kidnapped humans got replaced by lookalike dummies, including things they had on them. They tried hard not to alter the timeline. When does the 'Lost City' become Atlantis in Stargate In Stargate SG-1 they are searching for the Lost City in season 8, however in the Stargate Atlantis pilot it is referred to as Atlantis. When is the name found? Or the connection between the Lost City and Atlantis made? "would rather" + subject + past subjunctive What is the difference between:   The company would rather each employee be provided with ID card.  The company would rather each employee were provided with ID card. I am trying to route a pic32 chip to a  chip and having a bit of a hard time getting all 17 address lines and all 8 data lines connected. I am trying to tie the first 16 address pins to portB pins 0-15 and the data pins to portD 0-7.  After thinking about it for a while I realized that I am probably making my life more difficult by trying to line up rb0 with a0, rb1 with a1, etc. All I really want to be able to do is write a 16 bit value to portB and have the majority of the address loaded and ready. If I make pin assignments based on ease of routing, the logical address will be different between the mcu and the ram, but it should at least be consistent. Since nothing else needs to communicate with the RAM, I don't think it will be a problem if the mcu asks for address 0x101 and the RAM gives it address 0x110.   However, I wonder if it is a good idea. If there is some structure internal to the RAM designed to make sequential reads more efficient, or something like that, then I may want to go to the trouble of routing them 1:1. The pins arrangement on both chips fees somewhat random to me, so it would make it a lot easier on me if I could ignore the particular numbers. Is there any good reason why I should or should not do that? How do I obtain the ebony blade and how do I power it up? The ebony blade is a katana like two handed weapon in Skyrim.  Its apparently associated with one of the daedric quests, but which one, and how do I start it?  Also, once I obtain it, how do I power it up? How do you unpin and move the form in the Visual Studio designer? How to disable the physical sim and only use the eSIM on iPhone XS/iPhone XS Max? I'm wondering if there is a way to turn off the Physical sim and use only the eSim on my iPhone XS Max. I travel a lot and I'm loving the use of eSIM.   I understand that I can turn off the eSIM if its required, but I wanted to know if there was any way to turn the Physical Sim off and leave only the eSim ON.  Note - I have an unlocked iPhone XS Max. How do I get permissions to delete files on Windows 7? I updated my laptop's OS from Windows XP to Windows 7. There are some leftover files from Windows XP on the computer now. If I try deleting them I get the following error:     You need permission to perform this action.      You require permission from S-1-.... to make changes to this folder.   What's weird is that I am logged in with the only user account on this machine and I have administrator privileges. I tried turning UAC off, but I still can't delete the files.  How can I force removal of these files? Boolean b1 = true; Boolean b2 = true; String b3 = 'b1 &amp;&amp; b2'; Boolean b4 = Boolean.valueOf(b3); system.debug('test Bool '+ b4);   Given a string how can you convert into expression without breaking the sting. How can I stop the symbolic x coords to be plotted twice?