use "pip install/uninstall" inside a python script
Installing python module within code
I have a WordPress site which is 90% based on images.  I've installed Wp-Super-Cache, now it seems to load a little bit faster.   I've made a speed test on Pingdom Tools:   Page size 4.7MB Load time 5.09s Requests 153 Perf. grade 74/100   And also the Time Spent per Content Type:   Image    88.23%     So the problem is obviously the images.   My plan is to try as much as I can to optimize the images in terms of size, and then to add CDN support.  Is this enough in terms of improving the loading of images? I let him do it.   and     I allow him to do it.   Why does the latter require to?  What are the "rules" of using to with an infinitive? When is it necessary? Why does `last` show '{' and '|' in the TTY field? What is an Electron? I am a n00b to physics. What physics I know comes from high school and popular science books.  At school we were taught about atoms and what make up atoms, but we weren't actually told what the particles were!  So sure an atom has electrons orbiting around a nucleus made of protons and neutrons, but what exactly is an ?  And if we don't know, how can we fire them from guns, like they do in experiments ... etc  Any clarification on this would be great. Should we add more badges for asking questions? This proposal was superseded , which improves on the core concept.   Early on, there was a question about whether Stack Overflow should . At the time,  was:  Getting answers is reward enough for asking questions.  Even then, Stack Overflow was getting more than enough questions, so it didn't make much sense to incentivize more questions.  lists the badges that can be earned by asking quality questions. (There are at least 8). But looking at the list of recent , it looks more like a list of . These badges are difficult to come by in the first place, and they're much harder to earn on sites like  even though there are some  on that site. It turns out that . We , but we still need plenty of oysters. The Student bronze badge is awarded for the first upvoted1 question. There are no equivalent gold or silver badges. Therefore, I'd like to propose the following:  Student—Asked first question with score of 1 or more Sophomore—Asked 10 questions with score of 1 or more Socrates—Asked 50 questions with score of 1 or more  Do you have any suggestions of better names/levels?  To give you an idea of how many of these badges would be awarded, I wrote . The results2 for the original trilogy: users   gold silver bronze none    Site Name  ------- ---- ------ ------ ------- ---------  3000344 7127 67713  805778 2194566 Stack Overflow 235053  115  1698   53073  181980  Super User 156773  53   1191   40063  116710  Server Fault  The gold version on SO would be slightly more rare than  and more common than . Obviously, there would be fewer badges for smaller sites: 5545    1    18     917    4628    Philosophy 4032    4    41     802    3230    History  5663    3    28     917    4746    Parenting   Several older sites would get none at all: 5778    null 29     1063   4715    Quantitative Finance 7884    null 20     927    6957    Project Management 4333    null 17     1630   2703    Motor Vehicle Maintenance and Repair  These smaller sites get at most . I suspect that a gold or silver badge would encourage site regulars to increase that number without sacrificing quality. Certainly the requirement for those questions to stay in positive territory would prevent a person from flooding the site3 with terrible questions in order to get the badge.   1. The [original spec](https://blog.stackoverflow.com/2008/07/stack-overflow-badge-feedbac/) didn't consider voting at all for Student and Teacher.   2. Your results will vary from mine since I'm looking at slightly newer data. The bronze badge count also differs from the number of [Student](https://stackoverflow.com/help/badges/2/student) badges because the badge isn't revoked when a user's question is later downvoted or deleted.   3. There is a potential problem with cookie-cutter or variation-on-a-theme questions. However, I think the typical tools for closing and deleting questions will prevent people from gaming the system for these badges. How to share files through the local network? Form inside a table Potential energy of an infinitesimal length of elastic rod Unsure whether to use "enquire" or "inquire" Material Opacity in viewport? I'd like to do motion graphics type work in blender and it would be really helpful if I could see the results of keyframing material opacity to cut items in and out of view.  Blender internal is sufficient, using shadeless materials.  I could have swore there used to be something in view options.  Any ideas? "Was going to" versus "would be" as the past tense of "will" Do you think that "was going to be" or "would be" could be used as past tense of will?     I thought this book was going to be your choice.        I thought this book would be your choice.   Do these two sentences basically mean the same thing or are they slightly different? Easiest way to move my Windows installation to an SSD? I've taken the plunge and bought an SSD and want to move my existing Windows installation over. The current hard disk is 500Gb, but I've trimmed the contents down to about ~40Gb. I'm transferring it across to a 100Gb SSD and looking for the easiest way just to copy everything across and set the SSD up as a boot device.  I've looked at a few tools like Macrium Reflect, but they don't seem able to restore to a smaller drive. Do I need to go for something like  to do this? I'm trying to avoid scary Linux-based boot utilities if possible, does anyone know of an easier way? Deriving Chinese Remainder Theorem from gcd Bezout identity We want to find the solution $x$ to the congruence system  $$\begin{align} x &amp;\equiv r_1 \!\!\!\pmod{\!m_1}\\ x &amp;\equiv r_2 \!\!\!\pmod{\!m_2}\end{align},\ \ {\rm where}\ \  \gcd(m_1, m_2) = 1$$  These can be rewritten as  $$\begin{align} x &amp;= r_1 + m_1 j\\ x &amp;= r_2 - m_2k\end{align}$$  for unknown integers $j, k$. So we set those two equations as equal and rearrange them to  $$m_1j + m_2k = r_2 - r_1$$  Now assume we perform $\text{egcd}(m_1, m_2)$, which gives us the solution to  $$m_1u + m_2v = \gcd(m_1, m_2)$$  Let the integer $\,h\,$ make $\,h \gcd(m_1, m_2) = r_2 - r_1$.  Then $\qquad hm_1u + hm_2v = h\gcd(m_1, m_2) =  r_2 - r_1 = m_1j + m_2k$  At this point I am lost because I don't think we can just assume  $hm_1u = m_1j$ and extract $j = hu$.   How do I get the values of $j$ or $k$ so I can get the value of $x$? What are the TeX definitions for the hyphen and dashes -, --, and ---? I've tried latexdef which does not handle --- as the operand. And \texemdash is defined as a character. So that leaves me once again leaning on the collective wisdom of the group :) Suppose $n$ is an even positive integer and $H$ is a subgroup of $\mathbb Z/n \mathbb Z$. Prove that either every element of $H$ is... Creating compressed GeoTIFF with QGIS Clipper tool? I have a geo-tiff created by Pix4D which is about 375 Mb in file size.   I have clipped it to a smaller area using Qgis 2.8(using Raster ‣ Extraction ‣ Clipper), and the output file is about 900 MB in size.  Why did the clipping process generate such a large file, when the source file was smaller?   How do I run the clipper tool so that it produces a smaller size? Aligning Vertices Diagonally How do you reverse a string in place in C or C++? What possessive forms are used for mutual 1st person ownership? I want to talk to someone about the house that my wife and I own.  Saying, for example, "My wife's and my house is awesome," sounds a bit funny to me.  What's the best way to express this?  Clarification  I'm asking specifically about the grammar of multiple nouns in possessive form.  I'm particularly curious if it's possible to do this with a first-person pronoun (me).  I am capable of rephrasing this in other ways - my question is not how to express the idea, but about this particular grammatical construction, if it is even legal. I know that I can append &amp; to a command to run the process in the background.   I'm SSH'ing into an Ubuntu 12.04 box and running a python program with $python program.py &amp; -- but when I go to close the terminal window I get a message saying that closing the terminal will kill the running process.   Why is this? I am using the ampersand to run the process in the background. How can I get it to run regardless of if I am SSH'ed in?