Framed minipage wrong size in PDF
Remove space around tikz
su command + authentication failure I'm using this code to get standard output from an external program:  &gt;&gt;&gt; from subprocess import * &gt;&gt;&gt; command_stdout = Popen(['ls', '-l'], stdout=PIPE).communicate()[0]   The communicate() method returns an array of bytes:  &gt;&gt;&gt; command_stdout b'total 0\n-rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file1\n-rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file2\n'   However, I'd like to work with the output as a normal Python string. So that I could print it like this:  &gt;&gt;&gt; print(command_stdout) -rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file1 -rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file2   I thought that's what the  method is for, but when I tried it, I got the same byte array again:  &gt;&gt;&gt; binascii.b2a_qp(command_stdout) b'total 0\n-rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file1\n-rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file2\n'   How do I convert the bytes value back to string? I mean, using the "batteries" instead of doing it manually. And I'd like it to be OK with Python&nbsp;3. How to create LV(Logical Volume) after ubuntu is installed? everyone. I need to create LV for xen guest. There is only one disk of 70G. While installing, I use the default process and not the LVM. Do I need to reinstall Ubuntu to create the LV? Is there some better method? Thanks a lot.  root@vswitch-BlackfordESB2:/home/vswitch# vgdisplay   No volume groups found root@vswitch-BlackfordESB2:/home/vswitch# vgcreate vm /dev/sda1   No physical volume label read from /dev/sda1   Can't open /dev/sda1 exclusively.  Mounted filesystem?   Unable to add physical volume '/dev/sda1' to volume group 'vm'. root@vswitch-BlackfordESB2:/home/vswitch# pvdisplay  root@vswitch-BlackfordESB2:/home/vswitch# df -h Filesystem            Size  Used Avail Use% Mounted on /dev/sda1              60G  4.2G   53G   8% / udev                  3.6G  4.0K  3.6G   1% /dev tmpfs                 1.5G  1.1M  1.5G   1% /run none                  5.0M     0  5.0M   0% /run/lock none                  3.6G     0  3.6G   0% /run/shm Fighting Spam - What can I do as an: Email Administrator, Domain Owner, or User? This is a  about Fighting Spam.   Also related:                    There are so many techniques and so much to know about fighting SPAM. What widely used techniques and technologies are available to Administrator, Domain Owners, and End Users to help keep the junk out of our inboxes?  We're looking for an answer that covers different tech from various angles. The accepted answer should include a variety of technologies (eg SPF/SenderID, DomainKeys/DKIM, Graylisting, DNS RBLs, Reputation Services, Filtering Software [SpamAssassin, etc]); best practices (eg mail on Port 25 should never be allowed to relay, Port 587 should be used; etc), terminology (eg, Open Relay, Backscatter, MSA/MTA/MUA, Spam/Ham), and possibly other techniques. I would like to make cross references to own defined counter on environments. So far I have tried the following,   \documentclass{book} \newcounter{entryc}[subsection] \newcommand{\thetheorem}{\thesubsection.\arabic{entryc}} \newenvironment{qd}[1]{\refstepcounter{entryc}\noindent\textbf{Quasi Definition \thetheorem.}\begin{itshape}} {\end{itshape}} % \begin{document}  \chapter{First chapter} This is the first chapter.  \section{First section} This is the first section.  \subsection{First subsection} This is the first subsection.  \begin{qd}{}\label{qd:emp} This is my environment. \end{qd}  \noindent In quasi definition \ref{qd:emp} it \dots  \end{document}   What happens is that     But I would prefer "...In quasi definition 1.1.1.1". Do anyone have some suggestions of how solve this? and How to avoid the          \noindent  thing before the continuation of the text?   Additional information: if possible I would try to not use ntheorem. How to check if a string contains a substring in Bash Impact of hyperref, when varioref and cleveref are used Lower case "k" in Cocoa I know this is a common convention, but what does the "k" in variable names signify? (i.e. kMaxImageViewSize)  I looked in the Apple documentation on Variable names and found no mention of it.  Thanks for answering What is the command to remove all files but not directories? Let's say I have a directory tree like this:  FOLDER:     file1     file2     file3     Subfolder1:         file1         file2     Subfolder2:         file1         file2   If I used rm -r FOLDER/*, everything in FOLDER would be deleted including sub-directories. How can I delete all files in FOLDER and in its sub-directories without deleting actual directories? How can I check the available version of a package in the repositories? How can I check the version of the available package in the Ubuntu repositories without installing it? Computing convex hull of points using shapely Why are the United States often referred to as America? How to disable command-Q for Quit? Is there any way to disable command+Q for quitting apps?  I tried adding this menuitem to the "Keyboard Shortcuts" preference pane (as ), and remapping it to command+option+Q (slightly harder to hit), and the menu item changed to show this, but command+Q still causes the app to quit.  I'm using OS X 10.7, but I'd happily upgrade to 10.8 if it fixed this.  The app I really want this for is Firefox, but if there was a solution that disabled command+Q for every app, that would be fine, too. Possible Duplicate:             I faced this issue today when I was replying to a comment posted which used @Transaction annotation.     @Trevor: @Transaction and ... @Transaction   When typing this comment, I got a warning. If I'm logged in to a system via SSH, is there a way to copy a file back to my local system without firing up another terminal or screen session and doing scp or something similar or without doing SSH from the remote system back to the local system? Fantasy book series with non-human races and labyrinth I'm trying to identify fantasy book series I encountered some time ago. Here are things I remember:   it was a fantasy setting but with some s-f elements; with many worlds and possibility to travel between them; resembling  setting a little, the two main races were non-human and probably hostile to each other,  a labyrinth (?), which somehow played an important role in the plot, a protagonist was some kind of emissary and was sent on a mission to another worlds  time period: 80s - 90s    Does anyone know what it is the name of the series? How do I transfer my Destiny account from Xbox 360 to Xbox One? Adding only specific text from a file to an array list, part 2 - Java How to install apk in 2nd user of android 5.0 without playstore So, android 5.0.2 doesn't allow side loading of apks for 2nd user (irrespective of whether it is guest or standard user). "Unknown Sources" is disabled and is uncheckable. And I use a pure Cyanogen Mod 12 (android 5.0.2) without any Google apps. So, there is no Play Store app.  But I have root access.  As shown in the pics, Unknown Sources is Uncheckable and installation is blocked.  (Click image to enlarge)     With this situation, how can i install apks on to the 2nd user account??  EDIT:   It seems Google intentionally (in the name of security) blocked sideloading apks for 2nd user in android 5.0.2. There is a bug report . And sideloading was reenabled in android 5.1.   I will post how to sideload apks on lolipop 2nd user using adb. If this can be done without adb please post. Seeking block (sub-district) level boundaries for India? I'm looking for block (sub-district) level shapefiles for India. The GADM database only has files for the 2300 Tehsils, whereas I'm looking for the about 5500 Census blocks (sub-districts) for any year possible.