Why can’t I decrease the line-height of this text?

Because the em tag is inline and its line-height cannot be lower than its parent div. For example, if you set the line-height of the parent to 10px, then you would be able to decrease the line-height of em tag to 10px as well.

Categories CSS

What is the relationship between WCF, Rest and SOAP?

WCF isn’t automatically REST or SOAP, but you can make it that way. What you need here is a tutorial: WCF http://www.codeproject.com/Articles/406096/A-beginners-tutorial-for-understanding-Windows REST http://rest.elkstein.org/ Here’s some other interesting stuff: WCF – REST / SOAP WCF and REST Or you can do a google/bing/metacrawler/altavista search on your own…..

Removing all installed OpenCV libs

By default, when building OpenCV from source, it will place it’s output in /usr/local/lib and /usr/local/bin. Although, judging from your error messages, it looks like it placed the libraries in /usr/lib and the binaries in /usr/bin, so you might also check in there. You can also use the Linux find command. So, to find all … Read more

Using sys/socket.h functions on windows

You have two options: Use Cygwin (Unix emulation library). Port to Winsock (Windows standard library). Cygwin: lets you compile your Unix sources mostly untouched, but ties you to the Cygwin emulation library. This have two implications: general performance -no only network- will probably be less than optimal; and the target environment must have (at run … Read more

Building a list inside a list in python

You could append empty lists until you have enough to access the index you have data for: However, you may want to use a dictionary instead, letting you implement a sparse object instead. A collections.defaultdict() object is especially useful here: data now has keys 2 and 5, each a list with one element. No entries … Read more

Virtualbox shared folder permissions

Add yourself to the vboxsf group within the guest VM. Solution 1 Run sudo adduser $USER vboxsf from terminal.(On Suse it’s sudo usermod –append –groups vboxsf $USER) To take effect you should log out and then log in, or you may need to reboot. Solution 2 Edit the file /etc/group (you will need root privileges). … Read more