What does “-Wall” in “g++ -Wall test.cpp -o test” do?

It’s short for “warn all” — it turns on (almost) all the warnings that g++ can tell you about. Typically a good idea, especially if you’re a beginner, because understanding and fixing those warnings can help you fix lots of different kinds of problems in your code.

CSS !important not working

Give the <div> an id and then add this rule to your CSS stylesheet (or in a <style> tag if you don’t want to change the style sheet): !important in CSS allows the author to override inline styles (since they have a higher precedence than style sheet styles normally). It doesn’t automatically make the style marked !important override everything else. SEE: The W3C’s … Read more

Unable to resolve host “” No address associated with host name

You probably don’t have the INTERNET permission. Try adding this to your AndroidManifest.xml file, right before </manifest>: Note: the above doesn’t have to be right before the </manifest> tag, but that is a good / correct place to put it. Note: if this answer doesn’t help in your case, read the other answers!

increase legend font size ggplot2

You can use theme_get() to display the possible options for theme. You can control the legend font size using: replacing X with the desired size.

What’s the difference between HashSet and Set?

A Set represents a generic “set of values”. A TreeSet is a set where the elements are sorted (and thus ordered), a HashSet is a set where the elements are not sorted or ordered. A HashSet is typically a lot faster than a TreeSet. A TreeSet is typically implemented as a red-black tree (See http://en.wikipedia.org/wiki/Red-black_tree – I’ve not validated the actual implementation of sun/oracle’s TreeSet), whereas a HashSet uses Object.hashCode() to create an index in … Read more

Atom using System Proxy

If you simply modified .apmrc file, it would be reset every time when you reboot atom. See https://github.com/atom/apm#behind-a-firewall , you’ll find solution to this under the ‘Using a proxy?’ part. And then run cmd apm config set strict-ssl false apm config set https-proxy https://$Your_proxy P.S. Normally it’ll be fixed, but if a problem like SSL782 pops up, See … Read more

What is python’s site-packages directory?

site-packages is the target directory of manually built Python packages. When you build and install Python packages from source (using distutils, probably by executing python setup.py install), you will find the installed modules in site-packages by default. There are standard locations: Unix (pure)1: prefix/lib/pythonX.Y/site-packages Unix (non-pure): exec-prefix/lib/pythonX.Y/site-packages Windows: prefix\Lib\site-packages 1 Pure means that the module uses only Python code. Non-pure can contain C/C++ code as well. site-packages is by default … Read more