In my addon if bl_region_type = TOOL_PROPS, the operators text is not aligned.    Where as if bl_region_type = TOOL the text is aligned on the left side.     Why is this and how could I align the text in operator while bl_region_type = TOOL_PROPS?
I'm messing around with python for the first time.  I'm making my own changes to the interface, just because..  How can I move the text inside the buttons down and to the left? The left image is what I have now and the right one it's what I want to do..  Please have in mind that I have zero python knowledge. But I'm willing to learn..
How to add existing user to an existing group? I want to add the Apache user (www-data) to the audio group. I've read the man page for useradd, but I'm not having any luck. I'm running xubuntu 11.10. Here's what I'm doing:  $ sudo useradd -G audio www-data useradd: user 'www-data' already exists   If I leave out the -G option, bash, prints the help info for useradd:  $ sudo useradd  audio www-data Usage: useradd [options] LOGIN Options: -b, --base-dir BASE_DIR       base directory for the home directory...   It's not clear to me from the man page what options I should use to make this work. What does ` (backquote/backtick) mean in commands? I came across the following command:  sudo chown `id -u` /somedir   and I wonder: what is the meaning of the ` symbol. I noticed for instance that while the command above works well, the one below does not:  sudo chown 'id -u' /somedir How do I save the output of a command to a file?  Is there a way without using any software? I would like to know how. What is the word for the order of succession in which son assumes the throne after father? It can be any son-younger son after elder son after father. Also, what can be the term for only a single family in power? Please answer. Should the first word after a colon be capitalized? Should the first word after a colon be capitalized? Which of the following is correct?   For example: This. For example: this. Proof of Strong principle of Induction (T. Tao Analysis I) I have CSV data loaded into a multidimensional array. In this way each "row" is a record and each "column" contains the same type of data.  I am using the function below to load my CSV file.  function f_parse_csv($file, $longest, $delimiter) {   $mdarray = array();   $file    = fopen($file, "r");   while ($line = fgetcsv($file, $longest, $delimiter))   {     array_push($mdarray, $line);   }   fclose($file);   return $mdarray; }   I need to be able to specify a column to sort so that it rearranges the rows.  One of the columns contains date information in the format of Y-m-d H:i:s and I would like to be able to sort with the most recent date being the first row. Apply SP3 on SQL Server 2012 AlwaysOn AAGs I would like to do two things   Increase the size of inmargin area (i.e., customize inner sidebar so that more contents could fit there) Reduce the empty space between the title of block environment and the slide edge (from the example below, the title of block has too much of wasted space to its left which could be used to create more readable sentences)     MWE  \documentclass[xcolor={x11names}]{beamer}  \usecolortheme{structure} \useinnertheme{rectangles} \useinnertheme{inmargin}  \usecolortheme{crane}  \usefonttheme{structurebold}   \usepackage{fontspec}  \usepackage{calc}  \usepackage[inline]{enumitem} % Description list defaults      % To change font     \newcommand{\descriptionfont}{\fontencoding{T1} \fontfamily{bch} \selectfont}      % Label indentation     \newcommand{\descLabOffset}{\widthof{\hspace{2.6mm}}}      % Left of description aligned with the left margin     \newcommand{\descLeftLabMarInd}{0mm - \descLabOffset}      % Left of description aligned with \parindent     \newcommand{\descLeftLabParInd}{\parindent - \descLabOffset}      % Set the list options     \setlist[description, 1]{font=\descriptionfont, leftmargin=*, labelsep=3mm, labelindent=\descLeftLabMarInd, align=left}  \begin{document}   \begin{frame}{Induction Motors}      \begin{block}{Why is induction motor very common?}          Induction motors are very practical for the following reasons          \begin{description}             \item[Rigid] Rigid             \item[Cheap] Cheap             \item[Low Maintenance] Low Maintenance             \item[Self-Starting] Self-starting             \item[No Excitation Needed] No Excitation Needed         \end{description}      \end{block}  \end{frame}  \end{document} How to ignore certain files in Git Saleforce Too many future calls: 11 This is what I have come up with so far, but I am rather lost at lines 3-4...  $$\begin{align} (a,b)\in A\times (B\setminus C)\iff&amp; a\in A \land b\in (B\setminus C)\\ \iff&amp; a\in A \land (b\in B \land \lnot(b\in C))\\ \iff&amp; (a\in A \land b\in B) \land (a\in A \land b\notin C)\\ \iff&amp; (a\in A \land b\in B)\setminus (a\in A \land b\in C)\\ \iff&amp; (a,b)\in (A\times B)\setminus ((a,b)\in A\times C)\\ \iff&amp; (a,b)\in (A\times B)\setminus (A\times C) \end{align}$$ How do I return a variable from Google Maps JavaScript geocoder callback? I'm trying to get images in my document in two different ways:   On top of the entire page, centered On top of a single column   I tried it with both twocols and multicols. I ruled out twocols because it forces a new page every time you turn it on, because I need the abstract to be wide and the rest of the cover page to be two columns.  Here are some examples of both points (screenshot from a downloaded PDF):   I want to achieve both, but somehow I can only solve the first point with:  \end{multicols}  \begin{figure}   \centering     \includegraphics[width=0.5\textwidth]{figure}   \caption{Dataflow pipeline of the edge detector}   \label{fig:workflowedge} \end{figure}  \begin{multicols}{2}   Is it awkward to turn off multicols, then turn it back on again?  For my second point, I've tried everything, but almost always, the image doesn't show up at all! The only way I can get it to show at all is by specifying the H placement specifier, but that places the image inside the text where I defined it, not on top of the column.  This is my best try, but it hides the image and breaks all references to ??:  \begin{figure}[t!]   \centering     \includegraphics[width=0.25\textwidth]{figure}   \caption{Dataflow pipeline of the edge detector}   \label{fig:workflowedge} \end{figure}   and I'm getting the warning:  Package multicol Warning: Floats and marginpars not allowed inside `multicols' environment!.   How can I make a figure a non-float?  I also tried the figure* environment, but that just creates an image centered on top of the page, like my first point. I have a significant three-way interaction (with no significant two-way interactions and no significant main effects).  To begin with I have followed this up with two two-way ANOVAs (one at each level of the third variable). The first part of my question is whether this is an appropriate follow-up.  This showed no significant main effects or interactions at either level of the third variable...is this the end of the analysis?  If so, how would I interpret the three-way interaction? Is there any explanation for why the other 2 schools in the TriWizard tournament are both single-gender, unlike Hogwarts?  Was single-gender education normal in wizarding world with Hogwarts being the exception?  Was this some special intentional literary trick on Rowling's part or on movie creators'?    Here's the evidence from the movies:  Durmstrang Institute is boys-only:    Beauxbatons Academy of Magic seems to be an all-girl school: In Unity, are there any pre-defined shortcuts, e.g. to open the dash or unhide the launcher? What is the intuition behind beta distribution? Disclaimer: I'm not a statistician but a software engineer. Most of my knowledge in statistics comes from self-education, thus I still have many gaps in understanding concepts that may seem trivial for other people here. So I would be very thankful if answers included less specific terms and more explanation. Imagine that you are talking to your grandma :)  I'm trying to grasp the nature of beta distribution – what it should be used for and how to interpret it in each case. If we were talking about, say, normal distribution, one could describe it as arrival time of a train: most frequently it arrives just in time, a bit less frequently it is 1 minute earlier or 1 minute late and very rarely it arrives with difference of 20 minutes from the mean. Uniform distribution describes, in particular, chance of each ticket in lottery. Binomial distribution may be described with coin flips and so on. But is there such intuitive explanation of beta distribution?    Let's say, $\alpha=.99$ and $\beta=.5$. Beta distribution $B(\alpha, \beta)$ in this case looks like this (generated in R):     But what does it actually mean? Y-axis is obviously a probability density, but what is on the X-axis?   I would highly appreciate any explanation, either with this example or any other. How to determine CPU and memory consumption from inside a process? Positive correlation and negative regressor coefficient sign Is it possible to obtain a positive correlation between a regressor and a response (+0,43) and, after that, obtain a negative coefficient in the fitted regression model for this regressor?  I'm not talking about changes in the sign of the regressor among some models. The coefficient sign always remains.  Could  the remaining variables of the fitted model influence the changing of the sign?