add second view
How to add a subclass as a subview so that background of subview is set in front of superview
change color of pgfplot bar plot I want to plot two bar plots next to each other. This works without a problem. However both use the first color defined in a pre or selfdefined colorseries. I tried to modify the color manually in the plot, but the color and fill definitions have no effect:  \documentclass[border=5mm]{standalone} \usepackage{pgfplots, pgfplotstable}  \begin{document}  \pgfplotstableread[header=false, col sep=comma]{  1, first item 5, second item }\datatable  \begin{tikzpicture}   \begin{axis}[             ,xbar     ,bar width=2ex, y=3ex     ,enlarge y limits={abs=0.75}     ,ytick={data} % (\empty,data,{coordinate list})     ,yticklabels from table={\datatable}{1}   ]   \addplot table [     ,red!20!black,fill=red!80!white,     y expr=-\coordindex, % Use negative coordinate index as y coordinate     x index=0 % Use first column as x coordinate   ] {\datatable};   \end{axis} \end{tikzpicture}  \end{document}   The plot is still in the default blue. What does "static" mean in C? How can I prevent data theft from a company?  Are there any solutions to this problem?  Is there any software that encrypts important data (.doc, .xls, etc.) and prevents it from copying?  I need a solution where employees can read/write documents but can not copy then to a USB drive or e-mail them. Lightning QuickAction (API) without modal I have defined my own language whose syntax is very close to the one of Pascal. I would like to type the following program for instance. Many people use the packages algorithmicx or algorithm2e to print programs, but it seems that we have to use their specific keywords of its syntax like procedure, end while.  I just want to indent spaces when needed, and bold some words when I want (sorry that I could not bold letters in the following figure). Do I have to use  texttt for each line? Also, with verbatim, I could not bold words...  Also, as the program is not large, I would need to put it on the left side of the page, and leave space for some explanasion text on its right hand side. So I  guss I need to get them all together, and use multicols.  Could anyone help?  program test                                      some text here var   i : integer;                                    ...    b : boolean; begin    i := 1;                                        ...    b := true;    while i &lt; 15 do       i := i  + 1;       b := not b                                  some text here    od end   Edit1: Following @Werner's tabbing solution, I have made the code a minipage:  \begin{minipage}[t]{0.48\linewidth}% \begin{tabbing} Werner's solution \end{tabbing} \end{minipage}\hfill \begin{minipage}[t]{0.48\linewidth} a paragraph \end{minipage}   Actually as the code shows, I want the texts to be another separated minipage on the right hand side of the code. I have then 2 questions:   is it reasonable to make 0.48\linewidth instead of 0.5\linewidth? 0.48\linewidth is a conventional choice? is it possible to make a frame around the code, and use \caption and \label to make it a reference (I prefer figures)? Does an uncountable discrete subspace of the reals exist? Does an uncountable and discrete subspace of the reals exist? Cleaning polygon after using dissolve to repair geometry in QGIS? I'm trying to obtain the boundaries of shapefile, thus to clean the inside as a matter of speaking. While I had expected that dissolve while get me a proper polygon, unfortunately it still has some remainders. How could I get rid of them?  Does QGIS have a tool similar to Repair Geometry?  Here's the source    Result below: Image of Jacobson Radical is the Jacobson Radical I'm stuck on the following problem:      Let $R$ be a commutative ring with $1$, and suppose $R$ is semilocal with maximal ideals $\mathfrak m_1, ... , \mathfrak m_s$.  Let $\mathfrak a$ be an ideal of $R$. The problem is to show that under the usual surjection $\pi:R \rightarrow R/\mathfrak a$, the Jacobson radical of $R$ is sent to the Jacobson radical of $R/\mathfrak a$.   My attempt: suppose that $\mathfrak m_1, ... , \mathfrak m_t$ contain $\mathfrak a$, but $\mathfrak m_{t+1}, ... , \mathfrak m_s$ do not.  Then $Jac(R/\mathfrak a) = (\mathfrak m_1/ \mathfrak a) \cap \cdots \cap (\mathfrak m_t/ \mathfrak a)$.  Obviously $\pi Jac(R) \subseteq Jac(R/ \mathfrak a)$, and the converse inclusion is equivalent to the following claim: if $x \in \mathfrak m_1 \cap \cdots \cap \mathfrak m_t$, then there exists a $y \in \mathfrak m_1 \cap \cdots \cap \mathfrak m_s$ such that $x - y \in \mathfrak a$.    This should be some application of the Chinese remainder theorem, but I'm not seeing it.  All I have to go on is that there exist $m_i \in \mathfrak m_i$ ($t+1 \leq i \leq s$) with $m_i \not\in I$.  I also haven't found out a way to use the fact that $\mathfrak m_1 ,... , \mathfrak m_s$ are all the maximal ideals of $R$.  I was also thinking about looking at some explicit maps.  If we let $\Gamma$ be the composition $$\frac{(R/\mathfrak a)}{Jac(R/ \mathfrak a)} \xrightarrow{\cong} \frac{(R/\mathfrak a)}{(\mathfrak m_1/\mathfrak a)} \oplus \cdots \oplus \frac{(R/\mathfrak a)}{(\mathfrak m_t/\mathfrak a)} \xrightarrow{\cong} R/\mathfrak m_1 \oplus \cdots \oplus R/\mathfrak m_t$$ then we have a commutative diagram $$\begin{matrix} R/Jac(R) &amp;  \rightarrow &amp; \frac{(R/\mathfrak a)}{Jac(R/\mathfrak a)} \\ \downarrow &amp; &amp; \downarrow \Gamma \\ R/\mathfrak m_1 \oplus \cdots R/\mathfrak m_s &amp; \rightarrow &amp; R/\mathfrak m_1 \oplus \cdots \oplus R/\mathfrak m_t \end{matrix}$$ where the vertical arrows are isomorphisms, and the horizontal arrows are surjections. Absolute path & Relative Path What's the difference between absolute path &amp; relative path when using any web server or Tomcat? How do you set, clear, and toggle a single bit? Can someone explain me this  please I am a bit confused?  It's from a texbook I am reading (block cipher companion)  it says that:      each weak key has  $2^{32}$ fixed points $m$ where $\operatorname{DES}_w(m) = m$ ( $w$ is a DES weak key). In other words encrypting a fixed point gives exactly the same point. To see this consider the $2^{32}$ ciphertexts after 8 rounds of encryption for which the two 32 bit halves are equal. For a weak  DES key, the round keys of the eighth and ninth rounds are equal. Thus the intermediate texts after seven rounds and after nine rounds of encryption will be equal. Since the round keys of the 7th and the 10th rounds are equal, the intermediate texts after 6 rounds and after 10 rounds of encryption will be equal. Continuing like this it follows that the plaintext will be equal to the ciphertext.    Now did not quite get :   Why are there $2^{32}$ fixed points?  And why after the eighth round of encryption the two halves must be equal? What does the author mean by the intermediate texts exactly? And how are they being equal?   P.S.: This question is not asking for what the weak keys are. I am asking for "fixed points" not exactly weak keys. For this reason I think it is not a duplicate of any other question. There is one similar question to what I've asked for which I have checked and saw that no satisfactory answer has been given there either.  Here is the similar question with no proper answers: What does the phrase "Underfull \hbox (badness 10000) in paragraph" actually mean? What does the actual phrase above mean? How to create a Wi-Fi Hotspot (in Access Point mode)? Is there a way in Java to have a map where the type parameter of a value is tied to the type parameter of a key? What I want to write is something like the following:  public class Foo {     // This declaration won't compile - what should it be?     private static Map&lt;Class&lt;T&gt;, T&gt; defaultValues;      // These two methods are just fine     public static &lt;T&gt; void setDefaultValue(Class&lt;T&gt; clazz, T value) {         defaultValues.put(clazz, value);     }      public static &lt;T&gt; T getDefaultValue(Class&lt;T&gt; clazz) {         return defaultValues.get(clazz);     } }   That is, I can store any default value against a Class object, provided the value's type matches that of the Class object. I don't see why this shouldn't be allowed since I can ensure when setting/getting values that the types are correct.  EDIT: Thanks to cletus for his answer. I don't actually need the type parameters on the map itself since I can ensure consistency in the methods which get/set values, even if it means using some slightly ugly casts. No hair theorem for black holes and the baryon number 2 GROUP BY WITH DISTINCT , SUM , COUNT : PHP MYQL Ref :   I got answer (thanks coytech ) but i need one more column in its :  as per :  id | mid | pid | owgh | nwgh | 1    3      12    1.5    0.6 2    3      12    1.5    0.3 3    3      14    0.6    0.4 4    3      15    1.2    1.1 5    4      16    1.5    1.0 6    4      17    2.4    1.2  7    3      19    3.0    1.4   i got answer      Select mid ,          COUNT(distinct pid) as cpid  ,          SUM(nwgh) as totalnwgh  from test  GROUP BY mid   sqlfiddle :   mid  cpid       totalnwgh 3      4          3.8 4      2          2.2    But above i need one more column that's as below : totowgh  mid cpid        totalnwgh  totowgh 3      4          3.8        6.3 (DISTINCT value as per pid column) 4      2          2.2        3.9   where totowgh = 6.3 come by DISTINCT value of owgh column  as per distinct pid column  mid = 3 has count 5 but distinct pid  = 4 for mid=3 same way "distinct" owgh = 6.3 for mid=3 and distinct pid.  As pid=12 , column owgh value 1.5 is twice ...hence its is count 1 time hence,  1.5 + 0.6 + 1.2 + 3 = 6.3 ( please not this is as per DISTINCT value of pid )  Please note : i need distinct owgh value as per distinct pid or group by pid .. because if i replace value of owgh 0.6 with 1.5 then it will be 5.7 instead of 7.2 but value of owgh 0.6 belong to pid = 14 and not pid = 12 hence totalcount of owgh change ...but i need is 7.2  SEE WHAT I MEANS   : Why the CMB has not been dispersed so far? Imagine you have a box of black body radiation. What happens if you open the box for a long time? It becomes dispersed and no radiation remains in the box.   Now, apply this example to the Cosmic Microwave Background radiation. The CMB has been produced about 380,000 years after the Big Bang. Giving that the space is flat as many observations suggest, that radiation has been produced in a universe with no boundaries.   Now, my question is this: in these conditions, why that radiation has not been dispersed completely so far? It is true that the radiation has been produced everywhere in the space but giving that the space is infinite, why has not it been dispersed do far?   Calculations in the standard textbooks are done in such a way as if the CMB has been within a physical box, however expanding with the universal expansion. But, this is not the actual situation. The CMB has not been and is not enclosed by walls of a box, so it must have completely dispersed so far. What has prevented this to happen? Do numbers exist independently from observers? Singular to plural noun Many nouns that end in ‑f are made plural by changing the ‑f to ‑v‑ and adding ‑es.  +----------+-----------+ | Singular |   Plural  | +----------+-----------+ |  half    |  halves   | |  leaf    |  leaves   | |  shelf   |  shelves  | +----------+-----------+     But some nouns that end in ‑f are made plural simply by adding ‑s.  +----------+-----------+ | Singular |   Plural  | +----------+-----------+ |  chief   |  chiefs   | |  roof    |  roofs    | |  cliff   |  cliffs   | +----------+-----------+   Some nouns that end in ‑f can be made plural in two ways, either by adding ‑s or ‑ves:   +----------+--------------------+ | Singular |      Plural        | +----------+--------------------+ |  scarf   |  scarfs or scarves | |  hoof    |  hoofs or hooves   | |  dwarf   |  dwarfs or dwarves | |  wharf   |  wharfs or wharves | +----------+--------------------+   Now my question is how to determine whether to use only ‑s or to change the ‑f to ‑v‑ and add ‑es? How are Stormtroopers uniquely identified in the field? Multiple times in Star Wars: The Force Awakens, people refer to trooper FN-2187 by that specific correct name, while he is in armor.  But the armor is largely identical (some have little accessories like shoulder pads, or different weapon loadouts, but FN-2187 lacks these), which makes me wonder how do First Order (or even the old Imperials) identify who they're talking to?  How are Stormtroopers correctly identified while they're in armor?