Why int variable id's in python 2.7 are equal only until 256 ?  For example:  &gt;&gt;&gt; y = 256 &gt;&gt;&gt; m = 256 &gt;&gt;&gt; m is y True &gt;&gt;&gt; y = 257 &gt;&gt;&gt; m = 257 &gt;&gt;&gt; id(m) 16282096 &gt;&gt;&gt; id(y) 16281952 &gt;&gt;&gt; m is y False
Why does the following behave unexpectedly in Python?  &gt;&gt;&gt; a = 256 &gt;&gt;&gt; b = 256 &gt;&gt;&gt; a is b True           # This is an expected result &gt;&gt;&gt; a = 257 &gt;&gt;&gt; b = 257 &gt;&gt;&gt; a is b False          # What happened here? Why is this False? &gt;&gt;&gt; 257 is 257 True           # Yet the literal numbers compare properly   I am using Python 2.5.2. Trying some different versions of Python, it appears that Python 2.3.3 shows the above behaviour between 99 and 100.  Based on the above, I can hypothesize that Python is internally implemented such that "small" integers are stored in a different way than larger integers and the is operator can tell the difference. Why the leaky abstraction? What is a better way of comparing two arbitrary objects to see whether they are the same when I don't know in advance whether they are numbers or not?
Uninstall apps locked by phone vendor I'm using a Samsung I9000 and I have some annoying apps that came pre installed by the phone vendor, like a music store, a custom web browser and other memory leaking apps.  Those crappy apps can't be uninstalled neither by Manage applications tool, nor by editing the apps tiles in the front menu.  I guess I have to be a root user or something to get rid of those apps, but I don't know how. Is it possible to get Inkscape's bucket fill to entirely fill regions marked by lines? I've noticed there's a slight gap between shapes and lines in which bucket-fill is applied (to the enclosed areas found therein) and the colour fill in Inkscape, is there any way of removing this gap (besides the older-fashion manual way by manipulating the borders of the bucket fill, which is very tedious)? Is this correct?     The person with whom I'm doing the project should be here soon.   If it is, is with always a dative preposition (like mit in German)? Is it okay to use my US visa after a name change? std::thread - "terminate called without an active exception", don't want to 'join' it Minimal polynomial of $\sqrt[3]{2} + \sqrt{3}$ Suppose I want to find the minimal polynomial of the number $\sqrt[3]{2} + \sqrt{3}$.   Now that means I want to find a  unique polynomial that is irreducible over $\Bbb Q$ such that $f(x)=0$. Now I know that because   $\sqrt[3]{2} + \sqrt{3}$ belongs to $\Bbb Q( \sqrt[3]{2} , \sqrt{3})$  it might be degree $2$, $3$ or $6$ and does not belong to $\Bbb Q( \sqrt[3]{2})$ so it cannot be of degree $3$ or  $\Bbb Q( \sqrt{3})$ so it cannot be of degree $2$.  So it is of degree $6$. I think my sayings are a bit intuitive and not formal and lack rigorous. Couldn't it belong to another extension of degree $2$? or $3$? I can't answer that. Why checking only those $2$ is enough? Or is it wrong at all to say that? Uninstall GRUB and use Windows bootloader A question occurred to me when browsing SE this evening, just curious.  What specifies the inside of a 3D construct? If I have a hollow sphere, what's to say that the world isn't the inside, and the center of the sphere isn't the outside. Picture the Asylum in the Hitchhiker's Guide to the Galaxy series, if you have read that.  Additionally, if the inside of a 3D object is defined as what is smaller than the outside, what happens when there is a a sphere with a volume equivalent to 51% of the universe? The future of meta.stackoverflow and meta.stackexchange Historically this site, , has been the place to ask questions about not just Stack Overflow, but the functioning of the entire Stack Exchange (2.0) network, including Area 51 and stackexchange.com and careers.  (Yes, there was a , but that dealt with the old legacy Stack Exchange 1.0 sites. It was deprecated a while ago, and currently redirects here.)  Now that we've gotten many, many months under our belt from the SE 1.0 days, I think it's time that we gave Stack Overflow its own, true per-site meta, and moved the higher level network meta discussions to meta.stackexchange.com.  Over time, it's begun to bug me more and more that requests for Stack Overflow, the site, kind of get buried here on meta.stackoverflow under the avalanche of network issues. Retag requests, synonym requests, things truly specific to Stack Overflow, the site, not the network. This is unfair to our vastly largest and flagship Q&amp;A site, and it's unfair to the Stack Overflow users to mix their requests in with network level concerns.  It's also odd that Stack Overflow is the only network site without a proper, dedicated per-site meta, where its meta has its own reputation system not tied to the parent site in any way.  This is mostly a quirk of history more than anything else, and I believe it is now an appropriate time to split into two sites:   , a proper per-site meta for Stack Overflow with integrated rep , a global network meta with its own reputation system   Yes, this will be painful. But I believe it is a good, necessary, and healthy step both for the future of the network and the future of Stack Overflow.  Some things to discuss:   which questions should be migrated from here to meta.so? Obviously site-specific things like the retag-requests, and perhaps questions with the  tag. Anything that is 100% wholly specific to Stack Overflow and not generalizable to the rest of the network should be moved over. This may be a pretty small, narrow list of questions, and that's OK. Should we do some meta spring cleaning in our transition? Which questions / tags should be blown away as no longer relevant, referring to ancient versions of Stack Overflow or issues that have long since ceased to exist and aren't instructive for any future visitors? Your meta reps will generally be unaffected, except insofar as we delete for spring cleaning, or move site-specific things to meta.so. We still plan to have a distinct reputation system for the new meta.se site, just like here.   I do not have a timeline for this change, that is up to Jarrod and David to decide. It may be months away. However, we feel pretty strongly that this is something that we need to do to clean things up and pave the way for the future -- so I expect it will happen in the next few months, giving us lots of time to decide how we want to do it, per the above.  Update  . Is there a way to detach matplotlib plots so that the computation can continue? After these instructions in the Python interpreter one gets a window with a plot:  from matplotlib.pyplot import * plot([1,2,3]) show() # other code   Unfortunately, I don't know how to continue to interactively explore the figure created by show() while the program does further calculations.  Is it possible at all? Sometimes calculations are long and it would help if they would proceed during examination of intermediate results. Can't install rtl8192eu-linux-driver on UBUNTU 18.10 How do I rotate an object along it's own axis (windmill) I'm trying to rotate the blades of a windmill for an animation but the windmill is already at an angle. When I keyframe it on it's own axis (after pressing control + alt + space) and rotate it the blades spin inwards during the animation before coming back at the end. I've tried locking the other axis but that keeps the blades from rotating back to the right orientation. Also, whenever I rotate the object 360 degrees it turns the 360 into a really small number (0.0001) so it plays forward hallway then backwards (with a 180 degree keyframe halfway). Any help would be appreciated!. SQL Switch/Case in 'where' clause I'm trying to install the Jupiter power settings app but, I read it is no longer compatible with the new kernel. Is there a similar program or a way to manage the power settings on 13.04? Distribute objects optimaly So I've got a file with loads of simple objects. This will later be used to cut out these shapes out of plastic. So, using the material optimally is of outmost importance. I was wondering if there is any script or plugin that could automaticly arrange the objects within the artboard so they could fit best. Google Drive storage mismatch I have a paid 100GB Google Drive plan. It is reporting that I am at 99% capacity.  According to the the storage both within the desktop and web application, I have used 90.53GB within Drive.    My Drive is mapped to my OS X filesystem, and when fully synched it reports only 61.28GB used.    So what is going on here? I need to do a cleanup but cannot account for the 30GB difference. Do vulnerability and resistance cancel out? Incremental (delta) backup of a encrypted data I have several files that I need to keep encrypted on my home hard disk.  I currently use a TrueCrypt file container, currently around 100MB in size. I need to backup this file daily, and I'm looking for an incremental backup solution.  I read that on encrypted volumes even a small change in a file would change the whole volume and prevent the use of an efficient incremental backup solution. Any ideas how to backup in this case in an efficient way which would allow incremental solution?  I currently use TrueCrypt as my backup solution and CrashPlan as my backup utility, but I'm willing to experiment with alternatives. When to use virtual destructors? Electron shells in atoms: What causes them to exist as they do? I have seen similar posts, but I haven't seen what seems to be a clear and direct answer.  Why do only a certain number of electrons occupy each shell? Why are the shells arranged in certain distances from the nucleus? Why don't electrons just collapse into the nucleus or fly away?  It seems there are lots of equations and theories that describe HOW electrons behave (pauli exclusion principle), predictions about WHERE they may be located (Schrödinger equation, uncertainty principle), etc. But hard to find the WHY and/or causality behind these descriptive properties.  What is it about the nucleus and the electrons that causes them to attract/repel in the form of these shells at regular intervals and numbers of electrons per shell?  Please be patient with me, new to this forum and just an amateur fan of physics.