I want to convert milliseconds and have 2:00 output. It should look like duration of the song. I was trying with this code: import datetime  seconds = milliseconds/1000 b = int((seconds % 3600)//60) c = int((seconds % 3600) % 60) dt = datetime.time(b, c) print(dt)  &gt;&gt;&gt; 02:30:00  Do you have another ideas? Or maybe I should change something in my code. Edit: I solved the problem with following code     ms = 194000     seconds, ms = divmod(ms, 1000)     minutes, seconds = divmod(seconds, 60)     print(f'{int(minutes):01d}:{int(seconds):02d}')
I need to convert an arbitrary amount of milliseconds into Days, Hours, Minutes Second.  For example: 10 Days, 5 hours, 13 minutes, 1 second.
I am trying to override the menu.css file in the default Classy theme through my library file. I have read through the documentation, but anything I tried doesn't work.  What would be the correct markup to override or disable this file? How to show textures in the 3D View editor? I have added some textures to objects in blender but the textures don't show up until I render the file. it can be difficult to know what the objects look like without rendering it. is there a way to have textures show in the editor even if they are at a lower res?  In editor:    Rendered: Difference between 'struct' and 'typedef struct' in C++? I'm a completely new user of Linux and since my computer is not a good machine I wanted to install 32 bit OS, I downloaded ubuntu desktop for 32 bit but when I check in system settings under details it says my OS type is 64 bit, I downloaded it from the site  choose Ubuntu 12.04 LTS and set it as 32-bit (machines with less than 2GB RAM). Can I run OSX applications? I edited a question, on Stack overflow and when submitting preview, got red bar telling me my account isn't allowed to make suggested edits.  On the Sandbox android question it works fine, but that is editing an answer to my question.   The message I receive is:     Account is not allowed to suggest edits   Are the rules for suggested edits different for Android app? Upgraded to 13.10 now clock settings are all disabled and clock does not display I've upgraded to 13.10 and now I don't have the standard menu clock, which I need for work.  I checked and 'indicator-datetime' is installed.  I even uninstalled/reinstalled that applet with no luck.  Also my "clock" settings under System Preferences are all disabled.  I can't change anything.  Does anyone know how I can get the old menu clock back?  Alternatively is there another menu clock app I can download?  Edit 1  Thanks for the responses    I've restarted several times and that didn't fix the issue. I just ran the 13.10 update today.  But I ran it again a few minutes ago.  I got   about 200KB in random updates.  The issue is still present after a reboot. # apt-cache policy indicator-datetime indicator-datetime: Installed: 13.10.0+13.10.20131016.2-0ubuntu1 Candidate: 13.10.0+13.10.20131016.2-0ubuntu1 Version table: *** 13.10.0+13.10.20131016.2-0ubuntu1 0     500 http://us.archive.ubuntu.com/ubuntu/ saucy/main amd64 Packages     100 /var/lib/dpkg/status   Edit 2  I believe the issue is related to 'rarings' changing the systray somehow...   Or , although I haven't got that solution to work yet.  Edit 3  Because of a suggestion from RolandiXor I've check the binaries.  My system is missing 'libical.so.0' but it has 'libical.so.1'.    ldd /usr/lib/x86_64-linux-gnu/indicator-datetime-service libical.so.0 =&gt; not found   Does anyone know how to get the libical.so.0 binary that the datetime service needs but doesn't install? How many days a year is a U.S. citizen allowed to stay in Morocco? I arrived in Morocco in October of 2014 and renewed my visa by traveling to Spain by ship for a day and getting my passport stamped again in January of 2015. My question is, am I allowed to leave the country and repeat this process this year by traveling again to another country, other than my own in order to return to Morocco for another 90 days? And if so, how many times a year is this allowed? I have read 180 days on some websites but there is not any clear answers anywhere about this that I can find. Recently I encountered a problem (the first exercise from chapter four of Atiyah &amp; McDonald's Introduction to Commutative Algebra) stating that if $\mathfrak{a}$ is a decomposable ideal of $A$ (a commutative ring with unity), then the prime spectrum of $A/ \mathfrak{a}$ has finitely many irreducible components. This follows easily from the recognition that the maximal irreducible subspaces of $\textrm{ Spec } (A / \mathfrak{a})$ are precisely the "zero loci" of the minimal prime ideals of $A /\mathfrak{a}$.   I'm curious about the converse - the proof isn't easily reversed since the notion of minimal ideals of $\mathfrak{a} $ doesn't make sense before we know what we are trying to prove. My intuition says that it is false based on the general premise that images are badly-behaved (and the fact that it isn't part of the exercise.) However, I've had some difficulty constructing a counterexample, so that the main purpose of this post is to ask for a reasonable procedure or heuristic for doing so (or, of course, proof that my intuition is false.)   If it helps, if $\textrm{Spec }(A / \mathfrak{a})$ is irreducible then the nilradical $\mathcal{R}_{A /\mathfrak{a}}$ is prime so that $r(\mathfrak{a}) = \rho^{-1} ( \mathcal{R}_{A / \mathfrak{a}} ) = \displaystyle\cap_{i=1}^n \rho^{-1} (p_i),$ where $p_i$ are the minimal prime ideals of $A /\mathfrak{a}$ and $\rho $ is the associated projection, is also prime. Thanks! I think we need a button that says Edit and Close added to the Review Close button options.  Many of these closed posts will be around forever (and should be, closed should not just be a path to deletion), so they need editing.  If I edit it now it goes away, with the only option being a back click to get back to the review, and then click into the post and edit it.  We have an Edit and Reopen button, so this would fit in just fine. How to create a "heat distortion" effect with a cycles procedural node set up without compositing I know how to do a heat distortion effect in compositing.   What I am looking for is a way to do the same effect with a material set up in cycles.   What would be the best way to create a procedural material that can be placed in front of any object and make it look like heat is rising in front of it (without compositing)?  Any ideas would be greatly appreciated. How to keep the console window open in Visual C++? I'm starting out in Visual C++ and I'd like to know how to keep the console window.  For instance this would be a typical "hello world" application:   int _tmain(int argc, _TCHAR* argv[]) {     cout &lt;&lt; "Hello World";     return 0; }   What's the line I'm missing? zsh: excluding files from a pattern Say I have the following files:   |-- bar `-- foo     |-- type_A_1     |-- type_A_2     |-- type_B_1     |-- type_B_2     |-- type_B_xx     |-- type_B_xx     `-- something_else    I thought the following command  print -l foo/*~{type_B*}   would print everything under foo except things that start with type_B but it doesn't, instead it prints everything under foo:  foo/type_A_1 foo/type_A_2 foo/type_B_1 foo/type_B_2 foo/type_B_xx foo/something_else   I also tried print -l foo/*~type_B and got the same thing.  How does the exception wildcard ~ work in zsh? Pretty printing XML with javascript About the term $-\nabla_{[u,v]}w$ in the definition of Riemann curvature tensor Installing Broadcom Wireless Drivers I'm having serious problems installing the Broadcom drivers for Ubuntu. It worked perfectly on my previous version, but now, it is impossible.   What are the steps to install Broadcom wireless drivers for a BCM43xx card?  I'm a user with no advance knowledge in Linux, so I would need clear explanations on how to make, compile, etc.    lspci -vnn | grep Network showed:   Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller [14e4:432b]      iwconfig showed:  lo        no wireless extensions. eth0      no wireless extensions.   NOTE: Answer below is updated every time new information is added and confirmed working. I came across a reference to it recently on  and (as of now) it is not explained.  I suspect  might be it, but I don't know for sure. RemoveDuplicates gives 1004 error Show that for any prime $ p $, there are integers $ x $ and $ y $ such that $ p|(x^{2} + y^{2} + 1) $. Open source computer algebra systems for general relativity I would like to use an open source computer algebra system (CAS) for research in general relativity. Kindly suggest a good choice between Ipython and Sage. I am more interested in the theoretical aspect rather than numerical computations.