Get exact memory usage inside python
How do I determine the size of an object in Python?
I have 238gb of timelapse photos which was taken over a period of twenty days and all the photos are split up into 20 folders. I would like to put this together into a timelapse, I tried using Premiere Pro but that is taking very very long, any tips on putting it together fast btw Im on a Mac, thanks. Historical locks are sometimes applied to questions.   What is a historical lock? What is the purpose of a historical lock? How are questions affected by historical locking? When is it appropriate to lock a question for historical reasons?  When is it not appropriate? How do I request a historical lock for a question? What should I do if I notice a serious problem with a historically-locked question or one of its answers? Getting the default text editor used in system I have used select-editor and I note that I am using /usr/bin/nano. Is this the default text editor I am using?  When I open text files, It opens with gedit  What command in terminal must be specified to get the default text editor that I am using, and have it returned to e in terminal? How to upload string as file with jQuery or other js framework if I write,  #!/bin/bash echo "foo"   or  #!/bin/sh echo "foo"   both yields same. I have seen some scripts starting with #!/bin/sh or #!/bin/bash. Is there any difference between them? Accoring to Joseph Wright's answer at   The k-type argument has recently been adjusted: you now want e-type  Questions:  What is the functionality of the new e-type argument and how does it differ from the previous k-type argument?  The 2016-11-21 version of the xparse documentation does not mention the k-type argument at all. Is the plan to leave the earlier k functionality intact (but deprecated so no documentation) or will it eventually be removed and any usage of that should eliminated? If the plan is for it to be removed, how long will the older k-type argument functionality be kept in xparse.   Code: Example of the k-type argument from . Would be useful to see how this would be modified to use the new e-type argument. \documentclass{article}  \usepackage{amsmath} \usepackage{xparse} \usepackage{xcolor}  \NewDocumentCommand\MyMacro{k_}{%     \IfNoValueTF{#1}{%         \mathbf{A}     }{%         A_{\textcolor{red}{#1}}     }% }  \begin{document}  With a subscript: $\MyMacro_{\pi}$   Without any subscript: $\MyMacro$   \end{document} How do I  prevent .xsession-errors from eating disk space? Is there any way to completely disable the .xsession-errors file?  I have it as a symlink to /tmp so that my laptop hard disk can (hopefully) go to sleep for once, but at least 95% of the stuff in the file (it fills up at about 500k an hour) is...  (nautilus:1618): GLib-GObject-CRITICAL **: g_value_get_object: assertion `G_VALUE_HOLDS_OBJECT (value)' failed  which is total garbage to me.  I have tried doing a symlink to /dev/null but that does not work (the resulting link is overwritten), and I also do not want the activity so that hopefully my laptop can go to sleep for once.  I am using Ubuntu 11.04, with no special add-ons to Nautilus. I'm curious to know how important the bias node is for the effectiveness of modern neural networks. I can easily understand that it can be important in a shallow network with only a few input variables. However, modern neural nets such as in deep learning often have a large number of input variables to decide whether a certain neuron is triggered. Would simply removing them from, e.g., LeNet5 or ImageNet have any real impact at all? How to determine whether a unique factorization domain is a principal ideal domain? Could someone please provide an example of a unique factorization domain that is not a principal ideal domain?  Furthermore, is there some way to determine whether a UFD is a PID? Smart guides aren't smart TL:DR Smart guides aren't accurate - even though the snap, (end up causing more problems in the long run) is there a way to fix it?  Maybe there are some settings that I'm missing (need to be changed)    I use my smart guides all the time (and am overall pleased with them). I do have my issues with it, as explained here:  A lot of times, when I'm trying to make a bunch of triangles like this:    Done by making a triangle, cloning, flipping, rotating etc. Repeat until full  (Perfect) Snapping using Smart Guides    Ends up looking likebetween the triangles (Outline Mode)    Now I personally (with a strong attention to detail) will notice that there is something off after making just 1 or 2 triangles (Even before outline mode... strokes look oh so slightly thicker/off)   And then I check in outline mode... and sure enough:    Notice the line spaces (and this is in outline mode, so if I didn't notice it before, now it's sitting right in front of my nose)  The way I (seemingly) "fixed" the first image was by adding in a thick stroke outline so that masks out the difference, however, in a lot of my cases I don't want to have a stroke at all (and then you really notice the problems). Deriving the Coulomb force equation from the idea of photon exchange? Since Newton's law of gravitation can be gotten out of Einstein's field equatons as an approximation, I was wondering whether the same applies for the electromagnetic force being the exchange of photons. Is there an equation governing the force from the exchange of photons? Are there any links which would show how the Coulomb force comes out of the equations for photon exchange? I know that my question is somewhat similar to the one posted here , but it doesn't really have an answer to my question specifically. how I can draw an skew cylinder (rotate around x axis) and fill it (in 3D tikz)? what is a thyristor As part of my 2330 lv3 am required to know about thyristors. I just want to confirm my understanding is correct. A thyristor is basically similar to a transistor, only it stays switched on when it's trigged for as long as there isn't a break in the circuit it's switching. Am I correct? What are the differences between a HashMap and a Hashtable in Java? What are the differences between a  and a  in Java?  Which is more efficient for non-threaded applications? How to understand dot product is the angle's cosine? How can one see that a dot product gives the angle's cosine between two vectors. (assuming they are normalized)  Thinking about how to prove this in the most intuitive way resulted in proving a trigonometric identity: $\cos(a+b)=\cos(a)\cos(b)-\sin(a)\sin(b)$.  But even after proving this successfully, the connection between and cosine and dot product does not immediately stick out and instead I rely on remembering that this is valid while taking comfort in the fact that I've seen the proof in the past.  My questions are:   How do you see this connection? How do you extend the notion of dot product vs. angle to higher dimensions - 4 and higher? Change the location of saved screenshot when screenshot taken by printscreen button in GNOME 3 I want to change the default location of "Save a screenshot to Pictures" to save it to Desktop.   If that is not possible, is there any other way to do it? I am using Ubuntu GNOME 17.04.  NOTE: I don't want to change the location with dconf-editor as it changes the location of screenshot applet and not of the shortcut I require. Need help understanding "getbits()" method in Chapter 2 of K&R C In chapter 2, the section on bitwise operators (section 2.9), I'm having trouble understanding how one of the sample methods works.  Here's the method provided:  unsigned int getbits(unsigned int x, int p, int n) {     return (x &gt;&gt; (p + 1 - n)) &amp; ~(~0 &lt;&lt; n); }   The idea is that, for the given number x, it will return the n bits starting at position p, counting from the right (with the farthest right bit being position 0). Given the following main() method:  int main(void) {     int x = 0xF994, p = 4, n = 3;     int z = getbits(x, p, n);     printf("getbits(%u (%x), %d, %d) = %u (%X)\n", x, x, p, n, z, z);      return 0; }   The output is:     getbits(63892 (f994), 4, 3) = 5 (5)   I get portions of this, but am having trouble with the "big picture," mostly because of the bits (no pun intended) that I don't understand.  The part I'm specifically having issues with is the complements piece: ~(~0 &lt;&lt; n). I think I get the first part, dealing with x; it's this part (and then the mask) that I'm struggling with -- and how it all comes together to actually retrieve those bits. (Which I've verified it is doing, both with code and checking my results using calc.exe -- thank God it has a binary view!)  Any help? Is it advisable to use lead-free PCB and solder paste on a first SMD assembly job? Interpretation of the t.test and Wilcox.test in R Running own executable on Android shell I need a specific command line tool and I have made a C program in my Linux shell. I have compiled the program with an ARM cross-compiler. I have then moved the program into the Android file system and tried to run it.  The output is permission denied.  What do I have to do, in order to run my own compiled programs in Android file system?