Subtracting two lists in Python

Python 2.7 and 3.2 added the collections.Counter class, which is a dictionary subclass that maps elements to the number of occurrences of the element. This can be used as a multiset. You can do something like this: As well, if you want to check that every element in b is in a: But since you … Read more

Default keystore file does not exist?

You must be providing the wrong path to the debug.keystore file. Follow these steps to get the correct path and complete your command: In eclipse, click the Window menu -> Preferences -> Expand Android -> Build In the right panel, look for: Default debug keystore: Select the entire box next to the label specified in … Read more

CSS text-align: center; is not centering things

I assume you want all the items next to each other, and the whole thing to be centered horizontally. li elements are display: block by default, taking up all the horizontal space. Add once you’ve done that, you probably want to get rid of the list’s bullets:

scp files from local to remote machine error: no such file or directory

Looks like you are trying to copy to a local machine with that command. An example scp looks more like the command below: Copy the file “foobar.txt” from the local host to a remote host scp “the_file” your_username@the_remote_host:the/path/to/the/directory to send a directory: Copy the directory “foo” from the local host to a remote host’s directory … Read more