System details:   Processor: Intel® Pentium® Processor 2020M (2M Cache, 2.40 GHz) RAM 1.8GB OS type: 64-bit (Release 12.04 (precise) 64-bit) Kernel Linux 3.2.0-32-generic GNOME 3.4.1   I'm a php developer. Newly Introduced to Laravel framework. When I was using a windows system I've to install xampp and then start apache(though it takes much load and makes system slow) I was very happy when I switched to ubuntu 12.04 LTS because the web server runs as a daemon (like a smooth ride).  So when I decided to use Homestead and enter into the terminal 'vagrant up' Then Its like 'why have you done that with such a low configuration'.  So my question is what I have to do for better performance ?   Add 2GB more RAM (low budget option). buy new system with better configuration any other performance tweaks ?   Update: : 1st image -> 'vagrant up' 2nd image -> 'vagrant ssh' 3rd image -> 'vagrant halt'
What are your tips for improving overall system performance on ubuntu? Inspired by this  I realized that some default settings may be rather conservative on Ubuntu and that it's possible to tweak it with little or no risk if you wish to make it faster.  This is not meant to be application specific (e.g. make firefox load pages faster), but system wide.  Preferably 1 tip per answer, with enough detail for people to implement it.  A couple of mine would be:   Install  (via Software Center or sudo apt-get install preload); Change  value - "which controls the degree to which the kernel prefers to swap when it tries to free memory";   What are yours?  PS: Since this is not intended to have a unique answer but rather, several useful tips, I'm making this community wiki out-of-the-box.
I was wondering if someone could critique my argument here. The problem is to find the probability where exactly 2 people in a room full of 23 people share the same birthday.  My argument is that there are 23 choose 2 ways times $\displaystyle \frac{1}{365^{2}}$ for 2 people to share the same birthday. But, we also have to consider the case involving 21 people who don't share the same birthday. This is just 365 permute 21 times $\displaystyle \frac{1}{365^{21}}$. To summarize:  $$\binom{23}{2} \frac{1}{365^2} \frac{1}{365^{21}} P\binom{365}{21}$$ Is it possible record videos of my screen? Suppose that I would like to record some video sessions of Angry Birds on my phone.   Are there any apps that I can use? I have root permissions. trouble installing pygame on ubuntu 16.04 LTS I had a hard time installing pygame on my ubuntu 16.04 LTS. I use python 3. these are the steps I took to install pygame:  1.first I installed pip:  sudo python3 get-pip.py   this is the output of running pip --version:  pip 10.0.1 from /usr/local/lib/python3.5/dist-packages/pip (python 3.5)    I executed the following commands:   sudo apt-get install python3-dev mercurial  sudo apt-get install libsdl-image1.2-dev libsdl2-dev libsdl-ttf2.0-dev   then I executed the following command:   pip install --user hg+http://bitbucket.org/pygame/pygame  and this is the result in terminal:  Collecting hg+http://bitbucket.org/pygame/pygame   Cloning hg http://bitbucket.org/pygame/pygame to /tmp/pip-req-build-hxy86__i abort: error: Connection reset by peer Command "hg clone --noupdate -q http://bitbucket.org/pygame/pygame /tmp/pip-req-build-hxy86__i" failed with error code 255 in None   and it fails to install pygame. what should I do?? What (if any) countries are either open to or have set definitive plans to allow international tourism? Why don't I get $e$ when I solve $\lim_{n\to \infty}(1 + \frac{1}{n})^n$? Evaluate the limit of $\lim_{n\to\infty}\frac{1}{n^2}\left(\frac{2}{1}+\frac{9}{2}+\frac{64}{9}+\cdots+\frac{(n+1)^{n}}{n^{n-1}}\right)$ How to prove that the ideal $I=(x^3-y^2)$ in $k[x,y]$ is prime?    I have constructed a map from $k[x,y]$ to $k[t]$, which maps $x$ to $t^2$, and $y$ to $t^3$. Then, I want to show that the kernel is exactly $I$. But the difficulty is that how to prove the kernel is contained in $I$.  Could you help me? Thanks a lot! Determine the probability densities for coefficients of equation What does the complex electric field show? We have a complex electric field. Is there any definition for absolute and imaginary part of a complex electric field? What do they stand for? the cone is contractible What is the correct way to pluralize an initialism in which the final word is not pluralized by adding the letter "s"? If you multiclass a Warlock and a Sorcerer, then you have a character with both the Spellcasting and Pact Magic features.  PHB Page 101, Sorcerer, Spellcasting, Spell Slots:     You regain all expended spell slots when you finish a long rest.   PHB Page 107, Warlock, Pact Magic, Spell Slots:     You regain all expended spell slots when you finish a short or long rest.   PHB Page 165, Customization Options, Multiclassing, Class Features:     Pact Magic. If you have both the Spellcasting class feature and the Pact Magic class feature from the warlock class, you can use the spell slots you gain from the Pact Magic feature to cast spells you know or have prepared from classes with the Spellcasting class feature, and you can use the spell slots you gain from the Spellcasting class feature to cast warlock spells you know.   Do the spell slots keep their previous method of recovery (sorcerer slots long rest, warlock slots any rest), or do they all act consistently as I am led to believe from the language of the multiclass section? Do they all recover only from long rests as per the sorcerer feature, or can they all be recovered with a short rest because the warlock feature says so? I am looking at the circuit diagram from   The gnucap description for it is given as C1 0 2 1UF R1 1 2 1K R2 0 2 1K Vin 0 1 AC 1 .OPTIONS PHASE=RADIANS .PRINT OP V(Vin) .OP 0.00 100.00 BY 10.00 BASIC .END  I can run the simulation on this using gnucap fine, see output. But is there a way to generate the schematic visually from just the textual description above using a simple command line tool? Let $M$ be an A-module and $f \in \text{End}(M)$ an idempotent endomorphism. Show that $M = \ker(f) \oplus \ker (f-\text{id}_M)$. I don't know how to approach this exercise, using only properties of modules and direct sums, without projections. Can you help me? Thanks in advance. Where [if anywhere] should the apostrophe go in "three days work"? Which is correct?     1 Three day's work      2 Three days' work      3 Three days work   I would probably guess (2) is right, since the work belongs to the three days ("three days of work"). But I'm not sure. Would it be different if it was only one day? How to convert Strings to and from UTF8 byte arrays in Java In Java, I have a String and I want to encode it as a byte array (in UTF8, or some other encoding). Alternately, I have a byte array (in some known encoding) and I want to convert it into a Java String. How do I do these conversions? How are digital movies sent to a movie theater? For many years, movies were stored on rolls of film that were physically mailed to theaters. Now, most theaters project their movies digitally. But how are these digital movies sent to the theater?   Do they mail a hard drive to the theater? Do they give the theater a username and password to a super secret website where they can download it? How does it get there? Why do Windows 10 foreground apps mysteriously launch as background processes? Creating Layer in GeoServer using REST As part of a possible solution to   I want create a layer in GeoServer via REST that supplies a SQL statement along with a userid. I think i would  and publish it. I need to do this all in REST. Does anyone have any code examples? Does inverting the "if" improve performance?