Let ${Y_1,...,Y_n}$ be independent random variables and $Y_i$~$N(\beta x_i, 1)$ where $x_1,...,x_n$ are fixed known constants, and $\beta$ is an unknown parameter.  I'm looking to find the p-value or rejection region for  the test  $$H_0: \beta=0 \quad \text{vs} \quad H_1:\beta\ne0$$  The Likelihood Ratio Test statistic $\Lambda$ is  $$e^{-1/2\left(\frac{\sum_{i=1}^n y_i x_i}{\sum_{i=1}^n x_i^2}\right)^2\sum_{i=1}^n x_i^2}$$  After setting $\Lambda < k$ and then solving the inequality  $\sqrt{-2\text{log}(k)}<\sum x_iy_i/\sqrt{\sum_{i=1}^n x_i^2} <-\sqrt{-2\text{log}(k)}$  (Someone told me that my last step is incorrect)

Let ${Y_1,...,Y_n}$ be independent random variables and $Y_i$~$N(\beta x_i, 1)$ where $x_1,...,x_n$ are fixed known constants, and $\beta$ is an unknown parameter.  I'm looking to find the p-value or rejection region for  the test  $$H_0: \beta=0 \quad \text{vs} \quad H_1:\beta\ne0$$  The Likelihood Ratio Test statistic $\Lambda$ is  $$e^{-1/2\left(\frac{\sum_{i=1}^n y_i x_i}{\sum_{i=1}^n x_i^2}\right)^2\sum_{i=1}^n x_i^2}$$  I have already asked a similar question with $H_1: \beta>0$ here: .   After setting $\Lambda < k$ I'm left with $\sum x_iy_i$ after removing constants to the right, which is the same as my previous question. How will finding the p-value or rejection region for this test differ?


Does the definitive way to write the colon, when writing sets in the form \{x\in A : P(x) \} exist and if there is one, which is it?   (Two approaches exist. Either writing it as I just did (this is seemingly endorsed by the tex.SX community, as I have seen it being used multiple times in different questions) or writing it as  \{x\in A \colon P(x) \}. This is the way LaTeX-companion proceeds.)

I noticed that in many documents you encounter $f: X \to Y$ instead of $f \colon X \to Y$. Another example are quantified expressions: $\forall x: P (x)$ versus $\forall x \colon P(x)$. I find the \colon visually more pleasing, however I sometimes think I seem to be the only one, given the overwhelming amount of documents that seem to use :. Is there a rule of thumb to decide where you should use either \colon or :?


Sorry if this question has already an answer somewhere, but I've just started to play with Unity and now I'm stuck. :(  I've tried a few things ( from  ,  and  and others ) but none of them work, I'm sure that I do something wrong but I don't know what.  I have this code:  public class SceneManager : MonoBehaviour {      public Image myButtonImage;      private Button switchBtn;      // Use this for initialization     void Start () {          switchBtn = GameObject.Find("switchBtn").GetComponent<Button>();         myButtonImage = Resources.Load<Image>("switchCameraImg");          switchBtn.image = myButtonImage;     } }   and this are my objects:    where cameraSwitchObj is a GameObject and switchBtn is the button itself.  SceneManager is the script attached to MainCamera  I receive this error :   NullReferenceException: Object reference not set to an instance of an object SceneManager.Start ()   for this line : switchBtn.image = myButtonImage; but according to what i read from different posts this is all i must do. What I am missing?

Since many users are facing the NullReferenceException: Object reference not set to an instance of an object error in Unity, I thought that it would be a good idea to gather from multiple source some explanation and ways to fix this error.  Symptoms I am getting the error below appearing in my console, what does it mean and how do I fix it?  NullReferenceException: Object reference not set to an instance of an object


The following properties I am having difficulty with  Let G be a graph with vertices v 1, v 2 , ..., vn  and let A = ai,j be the adjacency matrix of G.    The diagonal entries of A are all 0; that is, a i i  = 0 for i = 1,...,n.  The adjacency matrix is symmetric, that is a  i j   = a j i   for all i, j.  degv i  i is the number of 1’s in row i; this is also the number of 1’s in column i (row  i and column  i   are the same)    I do not get these properties:   The $(i,j)$ entry of $A^2$ is the number of diﬀerent walks of length $2$ from $v_i$ to $v_j$, in particular, the degree of $v_i$ is the ith main diagonal entry of $A^2$.  In general, for any $k\gt  1$, the $(i,j)$ entry of $A^k$ is the number of walks of length $k$ from $v_i$ to $v_j$.  so.. If I have a triangle graph with  vertices = v1, v2 , v3   And Adjacency matrix  $$A=\begin{pmatrix}0 & 1 & 1\\1 & 0 & 1\\ 1 & 1 & 0\end{pmatrix}\text{ then }A^2=\begin{pmatrix}2 & 1 & 1\\1 & 2 & 1 \\ 1 & 1 & 2\end{pmatrix}$$  then the property   $(i,j)$ entry of $A^2$ is the number of diﬀerent walks of length $2$ from $v_i$ to $v_j$, in particular, the degree of $v_i$ is the ith main diagonal entry of $A^2$.  means that from v1 to v1 the number of different walks with length two is 2?  Any help is appreciated thanks

I came across the formula to find the number of walks of length $n$ between two vertices by raising the adjacency matrix of their graph to the $n$-th power.   I took me quite some time to understand why it actually works. I thought it would be useful to write the proof by induction for this in my own words.    Theorem: Raising an adjacency matrix $A$ of simple graph $G$ to the $n$-th power gives the number of $n$-length walks between two vertices $v_i$, $v_j$ of $G$ in the resulting matrix.  Proof by induction: Let $P(n)$ be the predicate that the theorem is true for $n$. We let $F^{(n)}_{ij}$ be the number of $n$-length walks between vertex $v_i$ and $v_j$. $P(n)$ is then the predicate that $F^{(n)}_{ij} = A^n_{ij}$. We proceed by induction on $n$.  Base case: $P(1)$   Case 1: $F^{(1)}_{ij} = A^{(1)}_{ij} = 1$ if $\{v_i, v_j\} \in E$, so there is is a walk of length $1$ between $v_i$, $v_j$.  Case 2: $F^{(1)}_{ij} = A^{(1)}_{ij} = 0$ if $\{v_i, v_j\} \notin E$, so there can't be any walk of length $1$ between $v_i$ and $v_j$.   In both cases $F^{(1)}_{i j} = A^{(1)}_{ij}$ holds, hence $P(1)$ is true.  Inductive step: $P(n+1)$ For purpose of induction, we assume $P(n)$ is true, that is $F^{(n)}_{i j} = A^{(n)}_{ij}$ holds for $n$.  We can express a walk of length $n+1$ from $v_i$ to $v_j$ as a $n$-length walk from $v_i$ to $v_k$ and a walk of length 1 from $v_k$ to $v_j$.   That means, the number of $n+1$-length walks from $v_i$ to $v_j$ is the sum over all walks from $v_i$ to $v_k$ times the number of ways to walk in one step from $v_k$ to $v_j$. Thus:  $$F^{(n+1)}_{ij} = \sum_{k=1}^{|V|} A_{kj}F^{(n)}_{ik} = \sum_{k=1}^{|V|} A_{kj}A^{(n)}_{ik}$$  Which is the formula for the dot-product, used in matrix multplications.    Any feedback appreciated.


I don't know how to open the Installer to get those options.  Also I don't have a CD drive.

How do I make an Bootable Ubuntu USB containing the the latest version of Ubuntu?  For completeness, how would I be able to do this on Ubuntu, Windows, OS X or another Linux distro?


Let $E$ be a measurable set and let $g$ be a function defined on $E$. The product $fg$ belongs to $L^1(E)$ for every function $f \in L^1(E)$ if and only if $g ∈ L^{\infty}(E)$.

Let $f$ be a measurable function on a measure space $X$ and suppose that $fg \in L^1$ for all $g\in L^q$. Must $f$ be in $L^p$, for $p$ the conjugate of $q$? If we assume that $\|fg\|_1 \leq C\|g\|_q$ for some constant $C$, this follows from the Riesz Representation theorem. But what if we aren't given that such a $C$ exists?


I'm traveling to Beijing for a short trip (4 days), and don't want to be without my phone or pay ATT roaming. I have an unlocked, international compatible phone.  What kind of options are available in Beijing? I like data. Especially in 3G.  Should I just buy something from CM at the Beijing airport? Or do I need to plan ahead of time?

Next month I am traveling to country X, where I would need Y minutes of calls, Z text messages and most importantly Q megabytes of data. How can I find the cheapest/most reliable SIM card for my needs?


Where do I ask questions about the Windows operating systems? Be it Win 8, 7 or XP.  The questions that I want to ask may not be strictly related to a problem I am facing, but related to files and features of the OS itself or asking just because of my curiosity. For example, I want to know the purpose of the file "Bootvid.dll" in a Win 8 OS.  Or, for example, I want to what "hal.dll" is.  Are these questions appropriate for Stack Overflow or Super User? If not, please recommend some SE sites in which I can post such questions, because I am interested in getting into the guts of the Windows OS. Open to all suggestions.

There is Ubuntu and Unix/Linux site but is there special 'stack' site for Mac and Windows?  For context, the question I am looking to ask: I accidentally connected a Windows NTFS formatted HDD to a Mac. And the Mac (may be) quick-formatted it. I think that the information is there, but the FAT table is gone. How I can recover the information.


I am pulling my hair out due to this VERY weird behaviour I am seeing. I hope it's not something obvious I have overlooked or I will shoot myself in the knee. Check out this fiddle.  What you won't notice right away is that the browser engine for some reason deletes this form element. <form class="form-row" id="what-the-hell">   ... </form>  It doesn't remove it along with its contents, it just removes the element tags without touching the contents, thus ending up with the vertically aligned form groups instead of horizontally aligned as it should. Now what is even weirder is that when I add this entire element dynamically with jQuery it actually leaves it as it is, without removing it and the inside elements align horizontally as they should (since it's a row layout element, that's its purpose). So what am I missing here? edit: It appears nesting forms is not allowed, although my code works when dynamically nesting them.

Is it possible to nest html forms like this  <form name="mainForm">   <form name="subForm">   </form> </form>   so that both forms work? My friend is having problems with this, a part of the subForm works, while another part of it does not.


Trying to remember a scifi book name about man (soldier?) who lands on remote planet and fights the hostile alien flora and fauna, until he is overpowered, then he awakes when a bug-like alien inserted his feelers into his ear. He tries to pull them out and fails as it causes an intense pain. The man is sure that the alien going to eat his brain(?) and he is done for, while he suddenly hears a voice and the alien says it cleared some kind of a block (cork?) that the man had and now he can communicate with them telepathically (apparently the said block is present at all the humans preventing them from communicating telepathically).  After learning more about the aliens and discovering they are actually sentient and friendly, and are under the human attacks, the man eventually joins their fight against the invading human forces. The aliens are masters in biology manipulations, and they adapt his body to survive on the hostile planet without his exoskeleton, and they also add some improvements, for example metal claws, which help in fight with the invaders.   The bug alien becomes man's best friend, working with him through the whole story. Later in story, a woman joins him, who also has her telepathic block cleared and her body adapted to the planet, and fighting modifications added (as much as having argon-based lasers shoot from her hands?), and the man gets romantically involved with her.  In the end of the story, the aliens with the man's and woman's help are able to repel the human invaders, and start studying the human space ships, planing to build their own biological forms of these ships and reach the stars.  I've read the book about 20-25 years ago and these the key points that I remember, will appreciate any pointers!

I'm looking for a book in which the main character was sent to a prison type planet made of crystal. He wakes up with a symbiotic creature plugged into his ear. The creature is able to communicate through plug in. The creature manufactures new crystal parts for the main character to survive, but does it when he's sleeping; such as changing out his eyes and later internal organs.  Read it in the mid 80's, but I think it was written earlier. Any help on this title would be appreciated. Thanks


I am doing binary logistic regression on a dataset with very heavy class imbalance. Class 1 is only 1% of data. When I train logistic regressor without class weights I get ROC AUC Score of 0.6269. Which is decent. However, when I see my confusion matrix I see that my model never predicted any 1's at all. So why is my AUC so high? I though AUC is meant to be a good measure for such a case.   Confusion matrix  Predicted      0    All True                    0          32109  32109 1           1223   1223 All        33332  33332   I know Confusion matrix makes the probability threshold 0.5, so is score saying there is some threshold for which model will give higher recall? How can I get this threshold?            Class  precision    recall  f1-score   support             0       0.96      1.00      0.98     32109            1       0.00      0.00      0.00      1223   I only care about precision and recall of class 1.

I have a question regarding classification in general. Let $f$ be a classifier, which outputs a set of probabilities given some data D. Normally, one would say: well, if $P(c|D) > 0.5$, we will assign a class 1, otherwise 0 (let this be a binary classification).   My question is, what if I find out, that if I classify the class as 1 also when the probabilities are larger than, for instance 0.2, and the classifier performs better. Is it legitimate to then use this new threshold when doing classification?  I would interpret the necessity for lower classification bound in the context of the data emitting a smaller signal; yet still significant for the classification problem.  I realize this is one way to do it. However, if this is not correct thinking of reducing the threshold, what would be some data transformations, which emphasize individual features in a similar manner, so that the threshold can remain at 0.5?


How do I double each line of input piped in?  Example:  echo "foobar" | MYSTERY_COMMAND foobar foobar

Would like to have each line in a file repeated a fixed number of times.  e.g. have each line repeated four times:  a b c   becomes:  a a a a b b b b c c c c   I've done some searching, and there are a lot of questions and answers along the lines of doing the reverse, e.g. merging duplicate lines into single lines, and maybe a few about doubling lines by printing them again.  It would be easy to do this in C, but I wish I knew more about the native commands so I wouldn't have to resort to these kinds of one-off throw-aways all the time.


What is the 15-pin black port that old sound cards have? Here is an example

Stumbled across what appears to be a 15pin serial cable when cleaning out the equipment room today.  I'm familiar with 25 pin and  Any idea what these are commonly used for?


I am using siunitx and booktabs, but I need a bit more vertical space between my units. Here is a picture of my problem:  Here is a MWE: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{siunitx} \sisetup{range-phrase=-,             detect-all,             decimalsymbol=comma,             round-mode=figures,             round-precision=3,             range-units=single,             per-mode=fraction,} \usepackage{booktabs}  \begin{document}  \begin{table}[htbp]     \centering         \begin{tabular}[]{llr}             \toprule              Parameter & Symbol & Wert   \\          \midrule              A       &A2         &\SI{1096}{\kg \per \cubic \meter } \\              B       &B2         &\SI{0,422}{\watt \per \meter \per \kelvin} \\              C       &C2         &\SI{3220}{\joule \per \kg \per \kelvin}    \\              D       &D2         &\SI{0,0274}{\kg \per \meter \per \second}      \\              \bottomrule         \end{tabular} \end{table}  \end{document}

How do you guys go about controlling column padding in tables?   Update  To clarify, I'm looking for a way to control both vertical and horizontal padding. So, if I had a simple table like in the following code snippet, I could pad the columns and make them look a bit less... ugly. :P   \begin{tabular}{|l|l|}     \hline     column 1 & column 2 \\      \hline     I really would like this less & crammed\\     \hline \end{tabular}   I tried this by using the command \vspace but it leaves gaps in the vertical lines.


I was supposed to use that  $a^4 \equiv 1 \pmod 5$, but that's not helping me, specifically, I don't know how to prove that $243^{505}$ is not as $5k, k \in \mathbb{Z}$.

I've read about Fermat's little theorem and generally how congruence works. But I can't figure out how to work out these two:   $13^{100} \bmod 7$ $7^{100} \bmod 13$   I've also heard of this formula:  $$a \equiv b\pmod n \Rightarrow a^k \equiv b^k \pmod n $$  But I don't see how exactly to use that here, because from $13^1 \bmod 7$ I get 6, and $13^2 \bmod 7$ is 1. I'm unclear as to which one to raise to the kth power here (I'm assuming k = 100?)  Any hints or pointers in the right direction would be great.


Three Rings for the Elven-kings under the sky,   Seven for the Dwarf-lords in their halls of stone,   Nine for Mortal Men doomed to die,   One for the Dark Lord on his dark throne   In the Land of Mordor where the Shadows lie.   One Ring to rule them all. One Ring to find them,   One Ring to bring them all and in the darkness bind them   In the Land of Mordor where the Shadows lie.   In-universe, who composed this, and when?  It should be Sauron, since the poem is on the One Ring. But at the time of its forging, the "lesser" rings had not yet been given to the Men and Dwarves (since Sauron himself gave it to them after retrieving them from the elves of Eregion).

It is  that the three Elven rings were not made by Sauron. The  on the One Ring, made by Sauron, was in  related to its power, even if we cannot say if it was by fancy (it makes for a nice trick :) ), if it was required by the spell or whatever: it is just like that. What is clear is that when Sauron put it on and the Elves understood the plot, a lot of action started rolling.  Now my point is: the ring poem (while being great, of course) seems slightly inaccurate.  We know that it is a verse "long known in Elven-lore", as Gandalf explains to Frodo in Shadows of the Past.  Was it written by the Elves? Why am I even asking, since Elves clearly love poetry and songs? Because:   It explicitly mentions, at least two times, the (translation of the) evil inscription on the Ring. It is describing the actions and the purposes of the Lord of the Rings: but the Lord only gave out the Seven and the Nine, but not the Three which were exceptional: he had power over them because they were "made" with the same techniques but he had not planned them, they were made independently and one can imagine that they "caught him by surprise".    So, isn't it a bit strange that the verse long known in Elven lore seems to place the Three on the same footing, as if the purpose of the One Ring had been from start to rule them all?  Isn't a bit strange that Elves used for their verses the very words of the spell (which were surely regarded as very evil: in our world it would be similar to quote in a poem words spoken by some dictator...)?  P.S. Yes, it is conceivable that Sauron would make some rings for the Elves, to keep them under his control: but this still had not happened and things went in a different direction.


I am attempting to test discharge of a large battery pack. I am trying to set up an arduino that controls the discharge by using a bank of 75W bulbs. I have set up my system like shown in the picture. The issue is that the second I turned on the mosfets with the Arduino the first mosfet blew fairly quickly. In my mind this set up should work, but its oviously not...what am I doing wrong? I'm using some spare FQPF20N60 mosfets I had. From what I can tell the Vgs(th) on this mosfet is 5V and is well under the Vgs which is 10V.

I've made a very simple MOSFET LED driver that uses the PWM of an  to switch a MOSFET which controls the power for about 16 meters of LED strip.  I am using .  I am controlling RGB LEDs, so I use three MOSFETs one for each colour and when all 16 meters of LED strip is running I'm drawing about 9.5 amperes.  9.5 A/ 3 channels = 3.17 A maximum load each.   The MOSFET has a fully on resistance of 0.8 Ω, so my heat should be my I2R loss of  3.17 amperes^2 * 0.08 ohms = 0.8 watts   Datasheet says I get 62.5 °C of heat per watt, maximum operating temperature is 175 °C and expected ambient temperature is less than 50 °C  175 °C - (0.8 W * 62.5 °C/W) + 50 °C = 75 °C for margin of error   I am running these MOSFETs without a heat sink, and I have left it running all night on a program that just cycles red green blue white non stop and it didn't overheat. I am expecting this circuit to be able to run 16+ hrs per day.  I am using a 12 V powersupply for the LEDs and a 5 V control signal from the Arduino, so it shouldn't be possible for me to exceed the drain gate voltage of 60 V or the gate source voltage of 20 V.  After I was playing with it by my desk in my airconditioned office today I found that I couldn't turn the red channel off as I could earlier in the day. And measuring gate to drain with no power connected I found 400 Ω on the red channel and unmeasurably high resistance on the green and blue channels.  This is the schematic I'm working with. It's the same thing just repeated three times and the 5 V is a PWM signal from the Arduino and the single LED without a resistor is just a stand in for the LED strip which has resistors and a solid setup that I didn't feel I needed to model.    I think it failed after I plugged the Arduino in and out of its pin headers about 50 times though I'm not sure what significance that has as the Arduino still works.    So given that it worked for a few days including one day of high load, my questions:   Could hotswapping the Arduino in and out of this circuit somehow damage the MOSFETs, but not the Arduino? Could ESD somehow be the culprit here? My desk is a resin coated wood or laminated wood. It should be noted that the source of all three MOSFETs is the common GND. I don't have a fancy soldering iron, and I have no idea if it goes above 300 °C. However, I used lead solder and I spent as little time as possible on each pin and I would solder pin one of the first MOSFET and then pin one of the second MOSFET, etc, not doing all pins from one chip consecutively and if too much solder heat was the issue why wouldn't that have created the issue immediately? Why has it popped up now? Is there something I have missed or an oversight in my calculations?


Is this possible?  According to  there is (or used to be) a way to submit a request for a Poké Stop.   Looking at the  linked there is no option for this any more.     Was this request removed or is the information in the linked post incorrect?

How do I add a Pokestop to an area that has none? It is an area where there are tons of businesses but unless I drive about a mile from my work area there are no Pokestops.   I want to add one since we have 1000's of people in the work area, a lot of them play Pokemon Go, and we all can't leave work to drive a mile away to get to a Pokestop area.   Plus it would be nice to be able to capture Pokemon on our breaks.


In the Academia SE, I can talk about academic professionalism, expectations, and advice. I'd like to know what SE site discusses similar topics related to careers/jobs. I have some questions I'd like to ask or research regarding answering certain questions in interviews, wording something on my resume, and getting endorsements.

The  specifically says not to ask  for career advice but people do it anyway.  Should I consider the Help Center outdated or only loosely enforced?    And what about a career advice site on the network?  There are 70+ sites, and most of them are for relatively narrow interests (which is not a criticism, I enjoy looking through the many sections).  A career section seems like it would be very popular.  Also, a careers section would help keep career questions off the other sites.


We know that $\lim_{n\to\infty}(-1)^n=(-1)^{\infty}$ doesn't exist. Now take $\lim_{n\to\infty}(-1)^{2n}=(-1)^{\infty}$. This limit exists, because $\lim_{n\to\infty}(-1)^{2n}=\lim_{n\to\infty}((-1)^2)^n=1$. Does this mean that $(-1)^{\infty}$ is an indeterminate form?

From : In calculus and other branches of mathematical analysis, an indeterminate form is an algebraic expression obtained in the context of limits. Limits involving algebraic operations are often performed by replacing subexpressions by their limits; if the expression obtained after this substitution does not give enough information to determine the original limit, it is known as an indeterminate form.    The indeterminate forms include $0^{0},\frac{0}{0},(\infty - \infty),1^{\infty}, \ \text{etc}\cdots$   My question is can anyone give me a nice explanation of why $1^{\infty}$ is considered to be an indeterminate form? Because, i don't see any justification of this fact. I am still perplexed.


On Pokemon go I can't seem to get off of the map. I want the screen to turn into my camera so that I can catch the Pokemon. How do I do it?

After I began Pokemon go, I clicked "no" if you want the camera to be on. I don't want to make a new account to activate it, so is there anyway to activate it after initially declining to use it? If not, should I make a new account?


When I stick a USB drve in a Mac they write all these dot files to it. Is there a way to prevent this?  Why does apple do this.

At work we're letting one of our very tech savvy clients actually help out a little with a few development projects specific to him. However, he uses his own personal Macbook, and as he edits files on our (Windows) networks, his Macbook always creates a bunch of unnecessary meta files that we end up deleting later.  For instance, it creates a file called .DS_Store in any directory he opens, as well as "dot underscore" files for each file he edits. So for instance, if he's editing a file called "Main.php", his Macbook will create another file called "._Main.php".  I know  to , but none about how to prevent creation of these hidden files prefixed with dot underscore.  Is there any way to turn that off on Macs? Any way to prevent it from creating those files in the first place?


I'm looking for a fan fiction story where Harry Potter is wrongly sent to Azkaban for a crime he didn't do.   No one believes him except Fred and George, who at one point even tried to break into Azkaban themselves to free him. New evidence comes to light and Dumbledore tells everyone Harry is innocent and they bring Harry back to Grimmauld Place and he's basically Catatonic but eventually wakes up.   When he is back to being sane, Dumbledore immediately wants Harry to help stop Voldemort since he's the boy who lived, except Harry wants no part in this.  Fred and George take Harry to their shop in Diagon Alley where they live and help him out.  In this story Dumbledore is still alive and wants to immediately use Harry to stop Voldemort even though he has just spent all this time in Azkaban. Sirius is alive too.   Again a main part of this story is that Fred and George help Harry. They have belived in his innocence all this time and now that they were right they aren't very happy with Dumbledore and the order

I'm looking for a fan fiction story where Harry Potter is wrongly sent to Azkaban for a crime he didn't do.  No one believes him except Fred and George, who at one point even tried to break into Azkaban themselves to free him. New evidence comes to light and Dumbledore tells everyone Harry is innocent. They bring Harry back to Grimmauld Place and he's basically catatonic, but eventually wakes up. When he is back to being sane, Dumbledore immediately wants Harry to help stop Voldemort since he's the Boy-who-Lived, except Harry wants no part in this. Sirius is alive too.  Fred and George take Harry to their shop in Diagon Alley where they live and help him out.  The main part of this story is that Fred and George help Harry. They believed in his innocence all this time and now that they were right they aren't very happy with Dumbledore and the Order.  After the twins help him get out of Grimmauld Place, Harry runs into the Prewett twins and then we discover that they had survived the first war with memory loss and one of them is married with children and Harry becomes pen pals with the daughter while she is attending Hogwarts and one of the sons really dislikes Harry and the other one wants to be brave and fight like him. I remember him saying at one point that he wasn't sure if Harry possessed 'bravery or stupidity'.   There's this whole scene where Death Eaters attack Kings Cross Station and harry leads them away. When the Prewett brothers catch up to them, one of them scolds Harry for doing something so stupid and Harry walks away and ends up at a bus stop (i think?), having zoned out again (he's been doing it since his release from Azkaban). When the Prewett twins tell the Weasley twins what happened, George yells at them for making Harry run off.   I remember a lot from this story, but i cant't seem to find it anywhere. Please help?


Is there a program that will help with fstab. Not sure how to mount a external harddrive with defualt options. Need help changing fstab for hdd. I screwed up editing mount options. Mounting with termimal this happens: mount /dev/sdc  mount: /dev/sdc: can't find in /etc/fstab.  Mounting with Disks this happens: Error mounting filesystem Error mounting system-managed device /dev/sdc1: unknown filesystem type 'nosuid,nodev,nofail,noauto,x-gvfs-show' (udisks-error-quark, 0) Error removing old /etc/fstab entry Didn't find entry to remove (udisks-error-quark, 0) Thank you.

I could use a pointer on fixing the fstab problem to restore earlier working order. I dont have owner in mnt directory and its all snafu. Thank you very much. I tried changing the mount point of a external HDD. Failed. This is the end. mount /dev/sdc  mount: /dev/sdc: can't find in /etc/fstab.  When mounting it with Disks this appears: Error mounting filesystem Error mounting system-managed device /dev/sdc1: unknown filesystem type 'nosuid,nodev,nofail,noauto,x-gvfs-show' (udisks-error-quark, 0) Editing mount options in Disks this appears: Error removing old /etc/fstab entry Didn't find entry to remove (udisks-error-quark, 0) Thank you again.


i'm new to java and it's my second quarter class.  however I don't understand how to fix this null exception.  I can finish my program but it's just bugging me why i can't compile it  enter code here      Character letter = null;     String[] boy_Names = null;     String randName = null;     Character[] strConvert2Char = null;     String names = boyNames(boy_Names, randName);     String[] name = null;     Character[] charChar = convertString2Char(names, strConvert2Char);     char cC = Character.toLowerCase(checkChar[j]);      String emptyUnderscores = null;     int underscoreLength = boyNames(name, emptyUnderscores).length();     Character[] checkChar = new Character[underscoreLength];      System.out.println("Character[underscoreLength]" + underscoreLength);       System.out.println("\n\nPlease Guess a Letter: ");     String[][] hangmanMenu = null;     Scanner inputStream = new Scanner(System.in);     for (int i = 0; i < 25; ++i) {         for (int j = 0; j < 25;) {             System.out.println("checkChar" + checkChar[j]);             Character nextChar = inputStream.next().charAt(i);             char nC = Character.toLowerCase(nextChar);              char cC = Character.toLowerCase(checkChar[j]);              if (nC == cC == true) {                 System.out.println("TRUE" + "j: " + j);                  j = j + 1;             } else {                 if (Character.toLowerCase(nextChar) == Character.toLowerCase(checkChar[j]) == false)                     j = j + 0;                 System.out.println("FALSE" + "j: " + j);              }           }     }   i seem to be running null exceptions at the checkChar[j];    any help or info on this would help!  i've debugged it and i seem to be running null and if someone could help be run a better syntax on comparing two characters to equal false or true through a for loop, that would help me a lot!

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I have a sitemap.xml on one of my domains. It contains the following:  <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url>     <loc>http://www.domain.com</loc>     <lastmod>[date in 2013]</lastmod>     <changefreq>monthly</changefreq>     <priority>0.8</priority> </url> <url>     <loc>http://www.domain.com/blog</loc>     <lastmod>[date in 2013]</lastmod>     <changefreq>monthly</changefreq>     <priority>0.5</priority> </url> <url>     <loc>http://www.domain.com/blog/blog-post-title-1/</loc>     <lastmod>[date in 2013]</lastmod>     <changefreq>monthly</changefreq>     <priority>0.5</priority> </url> <url>     <loc>http://www.domain.com/blog/blog-post-title-2/</loc>     <lastmod>[date in 2013]</lastmod>     <changefreq>monthly</changefreq>     <priority>0.5</priority> </url>     Google in caching http://www.example.com perfectly but for some reason, it doesn't seem to be caching /blog very well. I would expect that the /blog would appear in the same search results that the search phrase for domain.com does - but it doesn't. It doesn't appear anywhere near the first couple pages for that search phrase (the search phrase is my personal name and it's a unique name so there's not much competition).  When I search "firstname lastname blog" - it comes up, but when I search "firstname lastname" only domain.com comes up.  Am I correct in thinking that something might be wrong with my sitemap.xml? I suspect that Google is not correctly caching /blog for some reason.

We use a  on Stack Overflow, but I have mixed feelings about it.  Web crawlers usually discover pages from links within the site and from other sites. Sitemaps supplement this data to allow crawlers that support Sitemaps to pick up all URLs in the Sitemap and learn about those URLs using the associated metadata. Using the Sitemap  does not guarantee that web pages are included in search engines, but provides hints for web crawlers to do a better job of crawling your site.  Based on our two years' experience with sitemaps, there's something fundamentally paradoxical about the sitemap:  Sitemaps are intended for sites that are hard to crawl properly. If Google can't successfully crawl your site to find a link, but is able to find it in the sitemap it gives the sitemap link no weight and will not index it!  That's the sitemap paradox -- if your site isn't being properly crawled (for whatever reason), using a sitemap will not help you! Google goes out of their way to make :  "We cannot make any predictions or guarantees about when or if your URLs will be crawled or added to our index"  "We don't guarantee that we'll crawl or index all of your URLs. For example, we won't crawl or index image URLs contained in your Sitemap."  "submitting a Sitemap doesn't guarantee that all pages of your site will be crawled or included in our search results"   Given that links found in sitemaps are merely recommendations, whereas links found on your own website proper are considered canonical ... it seems the only logical thing to do is avoid having a sitemap and make damn sure that Google and any other search engine can properly spider your site using the plain old standard web pages everyone else sees. By the time you have done that, and are getting spidered nice and thoroughly so Google can see that your own site links to these pages, and would be willing to crawl the links -- uh, why do we need a sitemap, again? The sitemap can be actively harmful, because it distracts you from ensuring that search engine spiders are able to successfully crawl your whole site. "Oh, it doesn't matter if the crawler can see it, we'll just slap those links in the sitemap!" Reality is quite the opposite in our experience. That seems more than a little ironic considering sitemaps were intended for sites that have a very deep collection of links or complex UI that may be hard to spider. In our experience, the sitemap does not help, because if Google can't find the link on your site proper, it won't index it from the sitemap anyway. We've seen this proven time and time again with Stack Overflow questions. Am I wrong? Do sitemaps make sense, and we're somehow just using them incorrectly?


Good day, I am fairly new to linux and I wanted to get to the directory shown in my terminal after executing ls. Now when i tried cd /foldername/ it gives an error bash: cd:/foldername: No such file or directory when it literally is there.  is the actual sample pic for reference of the error I'm getting. Any help and suggestions are much appreciated, thank you!.

I am a novice user and I am trying to install Oracle Java. The process calls for me to access /usr/local/java, but here is the problem. I get as far as /usr/local, then this is the message I get:  leonard@leonard-MT6452:/usr/local$ dir bin  etc  games  include  java  lib  man  sbin  share  src  leonard@leonard-MT6452:/usr/local$ cd /java/ bash: cd: /java/: No such file or directory  leonard@leonard-MT6452:/usr/local$ rm -r ~/java rm: cannot remove ‘/home/leonard/java’: No such file or directory   Help?


Is this statement true? Each analytic function on an open set can have at most countable number of zeros. Can you give a me proof please? Thank your sir and Madam.

One of my assignment questions which I could not solve was following.  Question : If f is a holomorphic function on a region X which is not identically zero show that the zeroes of the function form an atmost countable set .  I was confused while solving the question . So I search MSE and found this solution :  Answer of User : Daniel Roberts says:"If the set {z∈U|f(z)=0} were uncountable, then it would have an accumulation point "  My question: Why any uncountable set must have a limit point ? Can anyone please give a rigorious proof.


How do you describe a person who gives the most importance to little details (of little value) while ignoring the aspects of much greater importance?  It would describe one who places more importance on, say, presentation/reporting than on actual content, showcasing small and less important work as opposed to the most difficult, innovative and challenging work.  Is there a word or phrase which can be used to describe this behavior?

I'm looking for an idiom or saying that I could use when people are focusing too much on small details and not seeing the big picture.  A couple that come to mind are "being penny-wise and pound foolish" and "rearranging deck chairs on the Titanic". However, the former doesn't fit what I'm thinking of because the present activity might not be wise. The latter implies too much about impending doom.  For example, let's say some company is spending all their time refining a small detail in their product, while ignoring a major opportunity shift in the industry. What phrase could I use there?


In English we have some phrases like:  Make like a banana — and split  Make like a tree — and leave  With these kinds of phrases sometimes the second part is left unsaid; if you say, "make like a banana," the person listening most likely knows the second part (or ending).  Is there an official term for these kind of phrases?  Or are these just "make like a"-jokes?  Are there phrases with the same pattern but aren't "make like a"-jokes?

In my area, it's not unusual to hear expressions like     I'm going to make like a banana and split.     ...make like a tree and leave.     ...make like a baby and head out.     ...make like a prom dress and take off.   When they are self-referential, they are humorous partings between friends.  When directed at others, they are insulting.  Are these just simple humorous similes, or is there something more complex going on? Are these only used for parting phrases, or are they constructed for other situations as well? Do these represent some common type of humor?


I know this is more of a 'aops' type of question but here we go, I went to this math competition last year and there was this one problem that clearly I didn't solve but it recently came back to my mind and I want to know how to go about such problem:  Find the last 4 digits of the number: $$2^{{10}^{2018}}$$  My intuition is that one should probably use modular arithmetic on this one, the first things that came to my mind when I saw this one where: Chinese remainder Theorem and Binomial sums, I wasn't able to do much unfortunately... I've read through the "How do I compute $a^b$ (mod c) by hand?" question but most of the answers rely on a and c being coprime which in my case $(2,10^4)=2$ is not true, the answers cover a few cases when a and c are not coprime but nothing very similar to my case...

How do I efficiently compute $a^b\bmod c$:  When $b$ is huge, for instance $5^{844325}\bmod 21$? When $b$ is less than $c$ but it would still be a lot of work to multiply $a$ by itself $b$ times, for instance $5^{69}\bmod 101$? When $(a,c)\ne1$, for instance $6^{103}\bmod 14$?  Are there any other tricks for evaluating exponents in modular arithmetic?  This is being asked in an effort to cut down on duplicates, see  and .


I am new to Linux. I have read the basic docs.   I have just installed Filezilla. I first tried apt-get but the repository does not appear to be up to date. I then downloaded it from the Filezilla web site, unzipped, and I am now able to use the program from unity.  I am trying to understand the command line though... if I type:  Desktop/Filezilla/bin/filezilla   The program opens but throws a bunch of errors in the console:  (filezilla:2767): Gtk-Critical **: IA__gtk_widget_set_size_request: assertation 'width >= -1' failed   I would like to know how to "map" the location of the executable to a simple command like:   $filezilla   And also if there is a reason for the errors when I type in the path directly. Sorry if I am missing something easy but thanks for helping a newbie :)

I'd like to know if there is a way to run  program/shell script without typing full path:  /opt/idea/bin/idea.sh


Now that Unity is no longer going to stay forever, which is the Desktop Environment that can be most easily tweaked to give a very close Unity Like Experience?   I am looking for features such as   One beautiful left Launcher(gives good amount of usable screen estate) Left Window Buttons(minimises waste mouse movement all over the screen when combined with Left Launcher)  Top panel for all system info and indicator stuff Minimalist and modern design   Hope I find something like this before Unity is completely gone.

that it will drop Unity 7 from Ubuntu 18.04 onwards, reverting back to the Gnome desktop environment. I know all the larger desktop environments quite well, Gnome, KDE and Xfce; however, Unity is the one I am more comfortable with and on which I I feel more productive.   I would therefore like to know if there any desktop environments forked from Unity 7 that could be installed on Ubuntu. I understand we are still one year away from the shift, but it is never too early to test the alternatives and eventually choose a project to contribute to.


class Solution:     def gameOfLife(self, board):         return self.livingNeighbors(board)      def livingNeighbors(self, board):         m = len(board)         n = len(board[0])         nLivingNeighbor = [[0]*n]*m         neighbors = [(-1,-1),(-1,0),(-1,1),(0,1),(1,1),(1,0),(1,-1),(0,-1)]         for i in range(m):             for j in range(n):                 n_liv = 0                 for r,c in neighbors:                     row = i + r                     col = j + c                     if (0 <= row < m) and (0<= col < n) and (board[row][col] == 1):                         n_liv += 1                 print("n_liv = " + str(n_liv))                 nLivingNeighbor[i][j] = n_liv         print(nLivingNeighbor)          for i in range(m):             for j in range(n):                 if board[i][j] == 1:                     if nLivingNeighbor[i][j] < 2 or nLivingNeighbor[i][j] > 3:                         board[i][j] = 0                 if board[i][j] == 0 and nLivingNeighbor[i][j] == 3:                     board[i][j] = 1         return board   I tried to update the elements in 2d list nLivingNeighbor by using nLivingNeighbor[i][j] = n_liv  And I used [[0,1,0],[0,0,1],[1,1,1],[0,0,0]] to test the code. The result turned out to be  n_liv = 1 n_liv = 2 n_liv = 3 n_liv = 5 n_liv = 3 n_liv = 1 n_liv = 3 n_liv = 2 n_liv = 2 n_liv = 3 n_liv = 2 [[2, 3, 2], [2, 3, 2], [2, 3, 2], [2, 3, 2]]   n_livupdated in each iteration, however, all rows of nLivingNeighbor are the same. Is it because I didn't apply deep copy? How can I fix it?

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


I'm doing just a basic setup using an environment node with an hdr file and a object but when I render its still in the panoramic view and it seems the background isn't rendering aswell what can be the issue.

I'd like to use a background image for my world, but I'm not sure how to do it.   Right now I am using the sun as a lightpoint and it looks like sky and a flat plane (not realistic). I was thinking of just using a mountain background image for the world.  I've done that through textures etc. but I don't see ANYTHING in render even though it shows in worlds?  What am I doing wrong?    Also what's a cheap quick fix for cases like mine so it looks like the world isn't JUST blue sky?  Thanks guys!


So I got this question:  Let $A$ be uncountable infinite set, and let $B$ be a countable subset of $A$.  Prove that $A\setminus B$ is uncountable.  So I figured that $A\setminus B\subset A$ and hence $|A\setminus B|\leq|A|$, and all that left to prove is that $|A|\leq|A\setminus B|$  but now I need to find an injective function from $A$ into $A\setminus B$ and I'm having trouble thinking about it.

Problem statement  Prove that if $A$ is an uncountable set and $B$ is a countable set, then $A\setminus B$ must be uncountable.  What I think  The statement does not mention $A$ and $B$ relationship. I think there are two possibilities:   If $A \cap B = \emptyset $, then $A\setminus B$ is trivially uncountable If $A \cap B = B$, then $B \subset A$ and as a bijection can not be made between $A\setminus B$ and $\mathbb{N}$, $A\setminus B$ is uncountable.   And there is where I'm stuck. How can I prove that a bijecton can't be made?  TIA.


Probably this was already answered. But I did not find it. How can I use verbatim inside \newcommand{} or \begin{environment}...\end{environment}. In my MWE, the last two lines produce errors.  \documentclass{article}  \newcommand{\FIXME}[1]{#1} \newcommand{\FIXMA}[1]{\verb+#1+}  \begin{document}     \noindent     \verb+test test test+ \\     \FIXME{test test test}     \FIXME{\verb+test test test+}     \FIXMA{test test test} \end{document}

I'm trying to write a \newcommand for verbatim:  \newcommand{\codeline}[1]{\begin{verbatim}{#1}\end{verbatim}}   and use it as  \codeline{int foo;}   but it gives an error "File ended while scanning use of \@xverbatim". How to fix it?


I'm very happy to have been awarded the Tenacious badge and, as with many other users, have struggled to understand why I got it. After reading a number of related posts, I understand that now but I'm wondering if I still keep the badge if any of my existing zero-score answers get upvoted in future.  Can anyone clarify?

What are badges? How do users get badges? How can users get tag badges? Can badges be lost/revoked/taken away after they are awarded? If so, how and when? How can I suggest a new badge?   For more information, see "" and the  in the .


I want to add a div for my content between a fixed footer and header.  The height of the header and footer may change. So I don't want any paddings or margins that refer to the height of the footer or header.  In other words: I want to be able to change the size of the footer or header in a single place without usage of css preprocessors .  I have seen many examples but they all used hardcoded references to the height of the header or footer. I don't want these.  Is this possible at all? If so I would like to know.  Here a example of what I'm trying to do:

I am working on a web application where I want the content to fill the height of the entire screen.  The page has a header, which contains a logo, and account information. This could be an arbitrary height. I want the content div to fill the rest of the page to the bottom.  I have a header div and a content div. At the moment I am using a table for the layout like so:  CSS and HTML    #page {     height: 100%; width: 100% }  #tdcontent {     height: 100%; }  #content {     overflow: auto; /* or overflow: hidden; */ }

...

...

     The entire height of the page is filled, and no scrolling is required.  For anything inside the content div, setting top: 0; will put it right underneath the header. Sometimes the content will be a real table, with its height set to 100%. Putting header inside content will not allow this to work.  Is there a way to achieve the same effect without using the table?  Update:  Elements inside the content div will have heights set to percentages as well. So something at 100% inside the div will fill it to the bottom. As will two elements at 50%.  Update 2:  For instance, if the header takes up 20% of the screen's height, a table specified at 50% inside #content would take up 40% of the screen space. So far, wrapping the entire thing in a table is the only thing that works.


I know that $$\Gamma(z)\cdot\Gamma(z^*)=|\Gamma(z)|^2\tag{1}$$ and $$\Gamma (z)\cdot \Gamma (1-z) =\frac{\pi }{\sin{\pi z}}\tag{2}$$ but I still can't find closed form for $\Gamma(i)$

What is  the value of $\Gamma(\mathrm{i})$ ? $\Gamma(z)$ is Gamma function. Here $\mathrm{i}^2=-1$.Can you help me with this problem ?


I'm parsing TrackMania's .Gbx replay files. It's mixed with bytecode and XML  header part that I'm interested in. I'm trying to extract that part from replay file. For most replays it works just fine. But I encountered specific replay that breaks regex.  import re  string = r''' <map uid="Y48WnfHlw9SkYptpMIVkd0PUpRm"  name="$fffTM$09FProLeague$fff xtasis -$09F GWF$fff2018 " author="w_1r" authorzone="World|Europe|Netherlands|Gelderland"/><desc  envir="Stadium" mood="Day" maptype="TrackMania\Race" mapstyle="" displaycost="2149" mod="" /><playermodel id="StadiumCar"/><times  best="92373" respawns="1" stuntscore="7" validable="1"/><checkpoints cur="13" onelap="13"/> ''' header = r'(<header)(.*)()' print(re.findall(header, string))   Other parts of file seems like don't matter, since even with hand copied header part, regex doesn't work.   Could anyone help to find what I'm missing?

For example, this regex  (.*)<FooBar>   will match:  abcde<FooBar>   But how do I get it to match across multiple lines?  abcde fghij<FooBar>


Context: Consider a circuit with only two linear time invariant capacitors. If I charge one the capacitors and then throw a switch that closes the circuit, there will be some redistribution of charge. The capacitors are ideal and there is no resistance in the circuit.  Problem  I calculated the energy before the circuit was closed and after the circuit attained a steady state. There was some energy dissipation.  My question is: In what form is the dissipated energy leaving the circuit?

The energy stored in a capacitor is $$ U= \dfrac{1}{2} CV^2 $$    So when I have a 1F supercap charged to 1V the energy is 0.5 J. When I connect a second supercap, also 1F in parallel the charge will distribute and the voltage will halve. Then    $$ U = \dfrac{1}{2} 2F (0.5V)^2 = 0.25 J $$  What happened to the other 0.25 J?


Can someone please explain to me "The difference" in output voltage between the full wave and half wave rectifiers. Im asking about circuits with a single diode and 2 diodes .. NOT bridge circuit. And when they are functioning as "filter" circuits using a capacitor....

I am curious if there are practical differences between a DC power supply based on a half wave rectifier or a full wave rectifier.  I mean I have a few small DC power supply units which should give 12V 0.1A each. They all have a transformer 240V->18V, then 1 diode or 4 diodes, then 78L12 (0.1A regulator) and one or two capacitors (typically 220uF or 470uF).  My question is if the power supply can give a good quality DC voltage with just a half wave rectifier (a single diode) when a 470uF capacitor and 78L12 is added, or if bridge rectifier (4 diodes) is better.  I also have one old 12V 0.2A power supply based on a Zener diode instead of 7812 regulator. It also has 18V going to just a single diode, then 33R resistor which limits current to 0.2 Amp, then Zener diode parallel with a 1000uF capacitor. Again: Would it be better to have 4 diodes there, or is the half wave rectification good enough here thanks to the 1000uF capacitor?  (All my power supplies work well, I am just curious "why" and "how" these things work.)  Update:  I found two more interesting information:   Capacitor should be approximately 500 uF for each .1 Amper of output (or more). This applies to full wave rectifier. Since I saw the same values in half wave rectifiers, it isn't enough and they are bad design. 4-diode rectification cannot be used when we want to have a combined 5V/12V output (or any other two voltages) with a simple transformer, because it can't provide a common ground for two different circuits. (A more complicated real example: I have got a power supply with four output wires from transformer -7/0/+7/+18 Volt. Then it uses 2-diode rectification to get full wave 7V output, and 1-diode rectification to get half wave 18V output. The 18V line can't be "upgraded" to 4-diode rectification here.)


I need to pass a series of Class type arguments with associated callbacks to a method without defining additional classes or interfaces.   I tried something like:  void foo(Map<Class, Function> callbacks){     for(Class clazz : callbacks.keySet()){         if(!(callbacks.get(clazz) instanceof Function<clazz, clazz>)){             System.out.println("callback type mismatch");         }     }     //(own logic) }   or  void foo(List<<T>Map<Class<T>, Function<T, T>>> callbacks){     ... }   which is erroneous. Any ideas how to overcome this issue (or why it is not possible without additional classes)?

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<Class<T>, T> defaultValues;      // These two methods are just fine     public static <T> void setDefaultValue(Class<T> clazz, T value) {         defaultValues.put(clazz, value);     }      public static <T> T getDefaultValue(Class<T> 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.


When I wrote the answer, the bounty period still had two days to go according to the message. Yesterday it started showing the "grace period has 'x' hours left" message.  Today even after the grace period has ended, it still hasn't awarded half the bounty as per the documentation. Is there some other reason for this? The question has not received enough attention?

The bounty to one of my answers wasn't awarded to me when in fact the user that asked the question accepted my answer 2 days before it ended. Why would this happen? The bounty help states that if the user that asked the question selects an answer that the user who answered the question would receive the bounty.  This is the question:    The notice says:     This question had a bounty worth +[x] reputation from [user] that ended yesterday. Grace period has ended


Until Plasma 5.4.2 (wily) widgets could be unlocked and showed a side menu when hovering over them with the mouse. The side menu allowed moving, resizing and removing the widget. With Plasma 5.5.5 (xenial) the side menu does not appear anymore.

It's surely my fault, but I am not able to resize the folder view widgets I've put on the desktop.  In the previous release (14.04, KDE 4) the folder view widgets all had auto-appearing hanldes for setup, rotation and resize, among other features.  Now I have no clue how to do it. Any idea?


In the following utterance:  “You know all you’re getting off it then is maybe the CD-ROM which surely that’s not worth grabbing”.  I’m trying to say that they use non standard grammar by using the demonstrative “that” (in the bold) which would normally not be there. But what is the precise standard ‘rule’ that is not being followed in the bolded text (not the rest of the utterance) hence making it non standard? (Rule is in quotations as I don’t mean to say that it’s necessarily incorrect.) E.g. In “I didn’t eat no apple” is non standard due to the double negation. Note that this is spoken, not written.

The following is from Michael Swan's Practical English Usage:  Relative clauses can also be combined with if-clauses in sentences like the following. I am enclosing an application form, which I should be grateful if you would sign and return.  Then, can relative clauses also be combined with other kinds of adverbial clauses, for example since-clauses in sentences like the following?  It seems something is wrong with this PC, which barely a month has passed since I bought.


I am working on a coursework and I'm facing an exception when I try to load from a text file.  I am trying to store the IDs and the Questions.  The output should be :   {285 = Fill in the blank. A Node is generally defined inside another class, making it a(n) ____ class. } {37 = How would you rate your programming skills?}    This is inside the textfile :  258 MC Question Fill in the blank. A Node is generally defined inside another class, making it a(n) ____ class. Answer Private Inner Public Internal Selected 2  37 L5 Question How would you rate your programming skills? Answer Excellent Very good Good Not as good as they should be Poor Selected -1     public static void main(String[] args) throws IOException {   try (BufferedReader br = new BufferedReader(new FileReader("questions.txt"))) {     Map < Integer, String > map = new HashMap < Integer, String > ();   String line = br.readLine();     while (line != null) {    String[] temp;     temp = line.split(" ");    int id = Integer.parseInt(temp[0]);     line = br.readLine();    line = br.readLine();     String question = line;    line = br.readLine();    line = br.readLine();     while (line.trim() != ("Selected")) {      line = br.readLine();     }     line = br.readLine();    int selected = Integer.parseInt(line);    line = br.readLine();     map.put(id, question);    System.out.println(map);   }  }  }   When running the code I'm getting :      Exception in thread "main" java.lang.NullPointerException     at   daos.test.main(test.java:47) C:\Users\droop\Desktop\DSA\New   folder\dsaCW2Template\nbproject\build-impl.xml:1076: The following   error occurred while executing this line:   C:\Users\droop\Desktop\DSA\New   folder\dsaCW2Template\nbproject\build-impl.xml:830: Java returned: 1   BUILD FAILED (total time: 0 seconds)

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I just failed a review audit for attempting to add a comment to a pretty good answer. (The intention was to ask a clarifying question.)  What's the etiquette for this? Are comments only supposed to be made if they are negative?

I just failed these   in First Post, I read the question and thought it seemed reasonable but the user was deleted so to be on the safe side I clicked add comment and I failed the audit.  I'm not sure why adding a comment would be considered a negative action, is the correct option to click No Action Needed or edit?  What was I supposed to do in this situation?  Adding a comment should not be a review audit fail.


How to align different numbered formulas to the left.like the picture:   How to align different formulas to the left and have different numbers. My code like this will only make it have a common number.  \begin{equation} \begin{aligned} \gamma_{x} &=-i t^{\prime}\left(\lambda-\lambda^{-1}\right) \\ \gamma_{y} &=0 \\ \gamma_{z} &=\Delta-\lambda t-t \lambda^{-1} \end{aligned} \end{equation}

Here is my split equation:  \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \begin{split} a_{ijk} =& \frac {Pr(M_{I} =2  \&  M_J=1 \& M_K =1 | I=i , J=j , K=k)}{Pr (M_I =1 \& M_J =1 \& M_K=1 | I=i , J=j)} \\             =& \frac {\mu_{ijk211}}{\mu_{ijk111}}\\ \end{split} \end{equation} \end{document}   I want to align this equation to the left. Is this possible in an equation environment?


You should have passed the exam.   Can be understood as:   You are very smart; the exam is very easy for you; but you didn't pass the exam. You are very lazy; the exam wasn't that hard for you, but you failed.   How to correctly use should in many contexts like this?  Update:  Answer to "Can you elaborate how you arrive at the second interpretation?"  google "define:should", the first result tells us:        used to emphasize to a listener how striking an event is or was. "you should have seen Marge's face"      emphasizing how surprising an event was.   "I was in this shop when who should I see across the street but Tobias"

What is the difference between saying:   I should think so. I would think so. I think so.   And also what does using should in this way mean?     It is strange you should say you have seen her, seeing as she left yesterday and hasn’t been back since.


I wanna install tuxcut it says i need package python-qt4. I try sudo apt install python-qt4 but it unable to found package python-qt4.

I use a chess application called "Lucaschess" and it needs PyQt4 module to work. Is it possible to install Pyqt4 on Ubuntu 20.04? I understand that Ubuntu no longer supports this package but is there anyway which I can work around?


I'm having this peculiar problem now in which I try to 'refresh from server' on my Eclipse copy of a Sandbox Environment in order to retrieve a Permission Set and all I get is a Permission Set that has so many things missing inside it.  The 'refresh from server' seems it doesn't work because the contents of the Permission Set only has the <UserPermissions>, it doesn't have all <classAccess>, <fieldPermissions>, etc...  Is this an Eclipse bug? I was able to retrieve the Permission Sets on this Sandbox a month ago without any problems but now I can't get correct contents for my Permission Sets.  Lastly, I checked the Package.xml and the value inside is only this:  <types>         <members>*</members>         <name>PermissionSet</name> </types>   I tried adding the specific PermissionSet on the Package.xml and I still can't retrieve correct Permission Sets.  Thanks.

In Eclipse Force.com IDE I created a Force.com project that was configured to pull the Permission Set folder only. The Permission Sets have been pulled, but in what appeared to be a trimmed form - all had about 373 lines of code.  When I have deployed those Permission Sets to a SI environment is when I noticed that they were incomplete - what could be called skeletons of them have been deployed, but most of the configuration was not there.  Then I have chose to pull all Project Contents in Eclipse from Production. Those Permission Sets grew to nearly 4000 lines of code. I presume they must be a more complete version of them. I'm not sure as I haven't committed them to the repo and deployed yet.  Items that have been added are:  <classAccesses>, <fieldPermissions>, <objectPermissions>, <pageAccesses>, <tabSettings>   Can someone please explain to me why pulling Permission Sets only pulls them in trimmed form as opposed to pulling them with all other Project Contents?  Many thanks.


I'm attempting to dynamically expose deeper levels of navigation by injecting html into empty divs. While the html is being successfully injected into the 2nd nav level, I can not get the html to inject into the 3rd level div. I believe that the problem exists because the event listener is ignoring the dynamically generated content, but I can't figure out a way to fix it. Below is the JS. I have also provided a simple jsfiddle of what I am trying to accomplish. Click the blue links to expose each successive level of navigation. It fails at the 2nd level.   $('#L1A').click(function () {     $('#L2 > div.menuWrap > ul.menuItems').html('
Campus Life

Overview

Housing

Fitness & Recreation

Health Services

Campus Library

Life in Philly

Activities Office

Student Life Office
'); });  $('#L1A-2A').click(function () {     $('#L3 > div.menuWrap > ul.menuItems').html('
Housing

Overview

Policies

Renters Insurance

Move-In Day
'); });   By the way - I know there is probably a better, less hacky way to inject all that html. However, it's only for a prototype and at this point I don't have the time to figure out a better way. Thanks for your help in advance.

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


Let a, b, c be the three side lengths of a triangle. Prove that  $$\frac{a}{b+c-a}+\frac{b}{a+c-b}+\frac{c}{a+b-c}\geq 3$$  Under what conditions is equality obtained?

Let $a$, $b$ and $c$ be the three sides of a triangle. Show that $$\frac{a}{b+c-a}+\frac{b}{c+a-b} + \frac{c}{a+b-c}\geqslant3\,.$$  A full expanding results in: $$\sum_{cyc}a(a+b-c)(a+c-b)\geq3\prod_{cyc}(a+b-c),$$ or $$\sum_{cyc}(a^3-ab^2-ac^2+2abc)\geq\sum_{cyc}(-3a^3+3a^2b+3a^2c-2abc),$$ but it becomes very ugly.


I might be mixing up several books, I hope I'm not, it's been 20 years since I read the books.  I want to say it was a series of books. Each book could have been written by a different writer.  From memory it starts off in the late 1800's/early 1900's a man has gone to Africa to search for his lost brother. Weird/implausible stuff starts happening as they travel up a river, I want to say the Congo, and eventually they enter another realm. As they chase after clues to his brother they traverse a reality roughly each book.  At some point I want to say there is train imagery used as well as an iceberg with reference to Mary Shelly's monster(I could be mixing this up with another book)

I'm trying to remember the name of a novel/series I read back in the mid-eighties.  I can't remember the author other than that it was a known older author.  I initially thought maybe Saberhagen or Harrison, but can't find it in their bibliographies.  It involved a collection of 4-5 people from different times/places.  The distinctive bit I can remember was that one of them (not the main character) was a cyberpunkish woman from the "future" of 1999 who spoke in futuristic dialect of English that the other characters, including the protagonist, from the "present" (from the eighties) could not understand.  Unfortunately, I don't remember much else of the plot other than that they were making their way through ruins.


I am following an example from a book using Boolean modifier to cut hole in an object. I have two 3D objects overlapping and when I apply "difference" operation, the first object disappears. It's only one edge of the first object that's causing this problem- when I move the second object to other edges it works.  I am very new to Blender, is there anyway I can attach my Blender file for all to see? Thank you

I'm trying to model an , but it's not going so well when it comes to the magazine of the weapon.   Next to the magazine is a mesh. I want to cut holes in the mag with that mesh. But the magazine just goes invisible or connects with the mesh when trying to execute the Boolean Modifier. I have tested to invert the normals and some other stuff, but it isn't working.


This morning I heard Jeremy Corbyn's speech at the Labour Conference.  Here is a section of that speech.  Can anyone tell me what tense he is using and why?  "Now is the time that government took a more active role in restructuring our economy. Now is the time that corporate boardrooms were held accountable for their actions,  And now is the time that we developed a new model of economic management to replace the failed dogmas of neo-liberalism …"  Is this a Britishism?  (I am American.)  Thanking your all in advance for any insights you can offer.

Why do we use the simple past but not the present or future in the following expressions:  Don't you think it's time we went a little further Don't you think it's time we ate Don't you think it's time we went home


I'm writing a python program to take user input for input file and output directory and then take a dd image of the input file using the subprocess module. I have written the following code. I am not able to use the variables i use in one def, in some other def part. Please help me out with this as i'm new to Python.  def open_dir():     o_file = subprocess.call(["zenity","--file-selection","--directory","--title=Select Destination Directory"])     o_var = StringVar()      o_var.set(o_file)     def quit_root():     root.destroy()   def get_input():     msg1 = subprocess.call(["df","-h"])     msg2 = StringVar()     msg2.set(msg1)     msg = Message(labelframe, textvariable=msg1)     msg.pack()       in_file=subprocess.check_output(["zenity","--entry"])     var=StringVar()     var.set(in_file)   def dev_img():     global var     global o_var     input_file=var     output_file=o_var+"device.img"     out = subprocess.check_output(["dd","if="+input_file,"|pv|","of="+output_file,"bs=1024"], stderr=subprocess.STDOUT)     var1 = StringVar()     var1.set(out)     label1 = Message(labelframe, textvariable=var1)     label1.pack()   Please suggest me some way so that i can use the 'var' and 'o_var' variables from open_dir() and get_input() and use those varibales in dev_img().

How can I create or use a global variable in a function?  If I create a global variable in one function, how can I use that global variable in another function? Do I need to store the global variable in a local variable of the function which needs its access?


The task: $\xi, \eta, \zeta \sim N(0,1)$ and independent. Prove, that $\frac {\xi +\zeta\eta}{\sqrt {1+\zeta^2}} \sim N(0,1).$ (1)  It is clear, that with fixed $\zeta$ we get, that (1) has expected value = 0 (as the sum of normal distributed values) and variance = 1 (as the sum of $(\frac {1}{\sqrt {1+\zeta^2}})^2$ and $(\frac {\zeta}{\sqrt {1+\zeta^2}})^2$). And what to do with un-fixed value I don't know. There was a small tip -imagine, that $\zeta$ is discrete value (for example getting 3 different values) and use the full probability formula $(P(B)=\sum P(B|A_{j})P(A_{j}))$.

I am trying to find distribution of random variable:  $$\frac{X_1+X_2 X_3}{\sqrt{1+X_3^2}}$$  where $X_i \sim \mathcal{N}(0,1)$ and independent.  My thinking so far is to use random variable algebra and to find distributions step by step. However, I don't know what to do with the variable: $\sqrt{1+X_3^2}$ (it seems like some variant of $\chi$-distribution).   Moreover, I'm worried that my thinking is to complicated and that the solution should be more elegant.


I'd like the line numbers to show automatically whenever I use nano. I've seen the set const command in ~/.nanorc but I want to see the line numbers in the column to the left, activated by meta-# within nano. Is there a way to automatically use meta-# whenever I use nano without having to do it myself?  Thanks

Is there a way to turn on line numbering for nano?


we know Z is a PID but there exists no ring isomorphism between ZxZ and Z. So based on this observation can we conclude that ZxZ is not a PID ? I dont think we can because if A and B are isomorphic rings then we can say with certainty that both A & B have the same algebraic properties but if they are not isomorphic then it dose not necessarily mean that there can not exist some common property between A and B where some other property/properties are bound to differ. Am I wrong here?

I need to find an example of a ring that is not a PID but every ideal is principal. I know that $\mathbb Z\times\mathbb Z$ is not an integral domain, so certainly is not a PID, but here every ideal is principal. I already proved that if R and S are ring every ideal in R x S is I x J with ideals in the original ring. But I cant follow from that that $\mathbb Z\times\mathbb Z$ has only principal ideals.      Explicitly, if $I$ is an ideal $(a)\times(b)$ which would be its generator $(c,d)$ in $\mathbb Z\times\mathbb Z$?    Thanks.


I would like to rename these files;  2000.jpg B001.jpg  9002.jpg D006.jpg   to these names below   ICON000.jpg  ICON001.jpg  ICON002.jpg  ICON006.jpg   respectively.

I have the below list of files  aro_tty-mIF-45875564pmo_opt aro_tty-mIF-45875664pmo_opt aro_tty-mIF-45875964pmo_opt aro_tty-mIF-45875514pmo_opt aro_tty-mIF-45875524pmo_opt   that I need to rename to  aro_tty-mImpFRA-45875564pmo_opt aro_tty-mImpFRA-45875664pmo_opt aro_tty-mImpFRA-45875964pmo_opt aro_tty-mImpFRA-45875514pmo_opt aro_tty-mImpFRA-45875524pmo_opt


What happens if I install a virtual machine additions package (e.g. Virtual Machine Additions for Microsoft Virtual PC 2007, Integration Components on Windows Virtual PC, and Guest Additions on Oracle VM VirtualBox) on a host PC? Will there be any adverse effects, or will my system work fine?  In other words, what happens in the backend on the virtual machine when I enable integration features like mouse pointer integration, window resizing, and folder sharing?  Disclaimer: I know that it is possible that this question could be marked as a duplicate of , but that one is asking about Ubuntu and VirtualBox specifically. My question is more general, and it also asks about how integration is internally implemented.

I have a bootable USB drive with Ubuntu installed.   This morning I Installed VirtualBox and booted my Ubuntu drive in a VM. I then installed the guest additions in Ubuntu.   My question/curiosity is, what would happen if I boot the drive again outside of the VirtualBox VM, using a physical computer?  Will my Ubuntu work normally or is something going to change?


Recently I noticed one person who gave two answers in one hour. In the first answer he/she just added one link and another answer he just added few words in the answer. Stack Overflow provides a comment feature so I think they should use this instead of giving very short answers without description or more info about answer.   So my confusion is if it's okay to flag these particular types of answers, who just give answers for getting reputation only.

Related:  (not a dupe, that's a feature request and was closed as a dupe of another one)        (old) post does indeed say that Link-only answers can be flagged as NAA, but there are a lot of posts like  which define Not An Answer is a way that it doesn't apply to link-only answers.  Can we get some up-to-date consensus on this? That link only answers are not allowed is .


Prove:$$0<a_k\in \mathbb R\quad and\quad\prod_{k=1}^n a_k =1,\quad then\quad \prod_{k=1}^n (1+a_k) \ge 2^n$$  (*) I guess that the minimum of $\prod\limits_{k=1}^n (1+a_k)$ happens when all $a_k$'s are $1$, but can't prove it. Thanks.

Suppose $a_1, a_2,\dots , a_n$ are $n$ positive real numbers with $a_1a_2 \dots a_n = 1$.   Then what is the minimum value of $(1 + a_1)(1 + a_2). . .(1 + a_n)$ ?    I think $(1 + a_1)(1 + a_2). . .(1 + a_n)$ takes its minimum value when $a_1=a_2=\dots=a_n=1$ and thus the minimum value is $2^n$.  I don't know how to prove it. Please help.


let f be continuous on R. Is there an open interval on which f is monotone? explain why?

So I am wondering, if we have a continuous function $f : A \to B$, does a range $[x, x + h]$ exist for each $x\in A$ , $h = h(x)>0$ so that $f$ is monotonic in that range?


I used the command \ cite in my entire thesis. I cannot count the number of times that each reference appears in the thesis after being described in the Bibliographic References as shown in the Figure below. How to make?

How to get, for instance,  [19] S. Roth and M. J. Black. Fields of experts: A framework for learning image priors. In IEEE Conf. on Computer Vision and Pattern Recognition, 2005. 1, 2, 7, 8  where the last numbers (1, 2, 7, 8) are the pages where I cited the paper in MY TEXT?  This would be like a reversed reference, or a index for bibliography.


There is a way of removing the background in Inkscape using Bezier curves. For my project, this will be a lengthy task.  I have a white logo on a black background, I wish to have a white image of the logo on a transparent background. Is there a way to trace the white image using colour. There are only solutions for this with a white background, not a black one.  If this is possible, could you describe the process using Inkscape?

I have two versions of a black and white image and would like to remove the background in both. I used Trace Bitmap in Inkscape with the settings below - the white background was no problem, but in the black image it keeps removing the white part that I want to keep. Any ideas how I can switch this, or another way to remove the black background and keep the white logo? Thanks!


I'm trying to submit form that were created through jquery, but I can't get submit event from this form. Here is my code,   $('#get_test').click(function(){     $.post('ajax-request.php',{            act: 'start_test'     },function(data){          var jstring = $.parseJSON(data);         for(var i = 0 ; i < 5 ; i++){             if (i == 0) {                 $('#test').append('

');                 $('.nav.nav-pills').append('
' + (i + 1) + '
');                 $('#test').append('<form name="quiz_form" id="quiz_form" method="POST">');                 $('#test form').append('

');                 $('.tab-content').append('
'+'
Russian word: ' + jstring[i].russian_word + '

');                 $('#home').append('<input type="text" name="in_word'+i+'" placeholder=" Input translation" />');             } else {                 $('.nav.nav-pills').append('
' + (i + 1) + '
');                 $('.tab-content').append('
'+'
Russian word: ' + jstring[i].russian_word + '

');                 $('#menu' + i).append('<input type="text" name="in_word' + i + '" placeholder=" Input translation" />');                  if (i == 4) {                     $('#test form').append('<input type="button" name="check_button" value="Check" id="check_quiz"/>');                 }             }         }     }); });   $('#quiz_form').submit(function() {     alert('sdsdsdsd'); });

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


What's the difference between the two and when should I use each:  <person>      <firstname>Joe</firstname>      <lastname>Plumber</lastname> </person>   versus  <person firstname="Joe" lastname="Plumber" />   Thanks

At work we are being asked to create XML files to pass data to another offline application that will then create a second XML file to pass back in order to update some of our data. During the process we have been discussing with the team of the other application about the structure of the XML file.   The sample I came up with is essentially something like:  <INVENTORY>    <ITEM serialNumber="something" location="something" barcode="something">       <TYPE modelNumber="something" vendor="something"/>     </ITEM> </INVENTORY>   The other team said that this was not industry standard and that attributes should only be used for meta data. They suggested:  <INVENTORY>    <ITEM>       <SERIALNUMBER>something</SERIALNUMBER>       <LOCATION>something</LOCATION>       <BARCODE>something</BARCODE>       <TYPE>          <MODELNUMBER>something</MODELNUMBER>          <VENDOR>something</VENDOR>       </TYPE>    </ITEM> </INVENTORY>   The reason I suggested the first is that the size of the file created is much smaller. There will be roughly 80000 items that will be in the file during transfer. Their suggestion in reality turns out to be three times larger than the one I suggested. I searched for the mysterious "Industry Standard" that was mentioned, but the closest I could find was that XML attributes should only be used for meta data, but said the debate was about what was actually meta data.  After the long winded explanation (sorry) how do you determine what is meta data, and when designing the structure of an XML document how should you decide when to use an attribute or an element?


I just installed Ubuntu 14.04.01 LTS on my secondary partition on my Solid State Drive. I noticed that when I went into System Settings --> Displays --> Detect Displays, my system is not detecting the second Acer monitor I have set up.   Other details that my be relevant is that I have a Nvidia GTX 750 TI and the Dell monitor is connected to the video card via DVI and the Acer monitor that is not detecting is connected to the video card through HDMI cable cord.   Please let me know if there is anything I can do to trouble shoot this. I'm sure it is not a hardware issue because the dual monitor set up works on my windows 8.1 OS partition. Happy holidays!

I realise there are lots of other questions about this, but they are all about the basic setup. I have gotten most of the way there but I have a very specific question: I want to run full Unity on the external (HDMI) monitor, and I don't care if the laptop display is unusable.  I have a Dell XPS 15 with Nvidia GT 540M with Optimus. (DAMN OPTIMUS!!!!) I have Bumblebee installed. I am able to run the system on the laptop display, and I can use optirun to run programs like glxspheres in high-performance mode. When I plug in the external monitor, I see nothing, and xrandr does not detect it ("HDMI1 disconnected (normal left inverted right x axis y axis)").  Here's what I've done so far (working from Bumblebee's  guide). I followed the "extra screen" advice there, so I have edited bumblebee.conf and xorg.conf.nvidia as instructed. Now, if I run:  export DISPLAY=:8 LD_LIBRARY_PATH=/usr/lib/nvidia-current:$LD_LIBRARY_PATH optirun glxspheres   I see the glxspheres demo on the external monitor (without any window dressing). Woohoo!  Now the next step is to shut down Unity on the laptop display and test that glxspheres still works. So I hit Ctrl+Alt+F1 to go to the non-graphical terminal. Then:  sudo service lightdm stop export DISPLAY=:8 LD_LIBRARY_PATH=/usr/lib/nvidia-current:$LD_LIBRARY_PATH optirun glxspheres   Again, I see glxspheres on the external monitor.  Now the Bumblebee guide tells you to do "optirun wmii& (or other like startlxde)" but I don't want to change to another window manager. How can I run Unity on the external monitor?  I tried optirun unity and I got most of the way there. This starts up Unity on the external monitor. I can see the desktop, and the mouse works. I can run other programs inside Unity. There are just a couple of problems:   Certain keyboard combinations don't get detected by Unity -- looks like anything involving Ctrl as well as the Fn key. (e.g.: Ctrl+Alt+T didn't work to get a terminal; Fn+F11 didn't work to change the volume.) Keyboard strokes appear in the terminal as well as Unity. I don't want that since there may be passwords being typed. If I switch to another screen (e.g., Ctrl+Alt+F8), the audio stops working, so this is not a viable solution to #2.   I feel like these three issues are related. I think the main problem is that I shouldn't be directly running Unity, but instead, running lightdm. I've tried optirun lightdm but it doesn't work at all. Hoping someone knows. If not, hopefully at least this question will help people almost-run Unity on an external monitor.


I am trying to customize my checkbox and radio buttons. is what I have come up so far:     I want to know if this is clickable enough? Is there any rulebook to consider while designing user controls?

I am trying to style all the HTML elements by making a custom style sheet. Till now, i have succeeded in making only the radio-buttons and check-boxes.  is the link for the demo. I wanted to know what are the formal guidelines for UI designing while styling these controls so that they appear more clickable. And what more could be done to make the example more pleasant looking.


Can I copy Stack Overflow design, layout and color combination to create a new website?

SO is not Open-Source, but I like the whole idea of Stack Overflow :   Giving bounties for Questions Up/Downvoting Questions The Badges The intelligent use of Ajax-Technologies Highly Rated users have administrative powers Reputation system Editing posts like a wiki   So I would like to program a (what is it called) Q&A site / board / wiki system. Am I allowed to?


I have recently reviewed several subsequent edits for the same person placing an "ios" tag on multiple iDevice questions.  I saw at least 5 before I decided to stop reviewing and flagging him at "too minor", and simply ask here.  I suspect he's likely just editing on auto-pilot for the badge.  Do they get flagged as poor editors after some time, or is this legit behavior and should nothing be done about him (and similar)?

I have been paying more attention to the suggested edits pending approval area in my shiny new 10K tools, and I have noticed (just a few) very poor suggested edits.  Reputation is a rough measure of how much the community trusts you. Awarding people +2 reputation makes sense because of this. You're reputable because you suggested an edit that (at least two of) the community agrees with.   However, I think people should also be penalized for a rejected edit. Perhaps -1 reputation, or something more creative (like 5 rejected edits in a week results in -1 reputation).  In my opinion, the other side of reputation is not represented in the suggested edit process.  To me, this is similar to deciding an answer is useful (upvoting) and deciding an answer is not useful (downvoting).  Thoughts?


I have created a tabular in latex and I would like to have flow lines on it, pointing from one element to an other. I do not care how it looks like, I just want to show there is a flow from one element to an other and so on. I would also like to do the same for Karnaugh maps. No matter how much I've searched the web, there hasn't even been someone to ask this sort of question.  Does anyone have any ideas how this could be done?

I want to create a table with arrows between some cells, for which I've used  and TkiZ. I have the following problems:  Text in cells aligned vertically to the center and at the same heigh (TikZ nodes are not inline with normal cells text in a same row). Inability to align to the center with \begin{center}•\end{center}. I don't know how to fix the size of the cells.  This is what I currently have: Code \documentclass{article} \usepackage{tabularx} \usepackage{tikz} \tikzset{every picture/.style={remember picture}} \begin{document} \begin{tabularx}{\textwidth}{r|c|c|c|c|l}     &$D_1$&$D_2$&$D_3$&$D_4$&foo\\ \cline{1-6}     $O_1$&\tikz[baseline]{\node (a11) {50};}&\tikz[baseline]{\node (a12) {0};}&&&50\\[2em] \cline{1-6}     $O_2$&&\tikz[baseline]{\node (a22) {60};}&&&60\\[2em] \cline{1-6}     $O_3$&&\tikz[baseline]{\node (a32) {10};}&\tikz[baseline]{\node (a33) {30};}&\tikz[baseline]{\node (a34) {10};}&50\\[2em] \cline{1-6}     $O_4$&&&&\tikz[baseline]{\node (a44) {50};}&50\\[2em] \cline{1-6}     bar&50&70&30&60&210\\ \end{tabularx} \begin{tikzpicture}[overlay]     \path[thick,->] (a11) edge (a12);     \path[thick,->] (a12) edge (a22);     \path[thick,->] (a22) edge (a32);     \path[thick,->] (a32) edge (a33);     \path[thick,->] (a33) edge (a34);     \path[thick,->] (a34) edge (a44); \end{tikzpicture} \end{document}   Besides, I get the following warnings:  Underfull \hbox (badness 10000) in alignment at lines 13--13 Overfull \hbox (15.0pt too wide) in paragraph at lines 13--22


Is there a way to simplify $(x_1+x_2+\dots+x_m)^p$?  Thank you!

How to simplify this best  $(a_1 + a_2 +a_3+... +a_n)^m$ for  $m=n, m<n, m>n$  I could only get  $\sum_{i=0}^{m}\binom{m}{i}a_i^i\sum_{j=0}^{m-i}\binom{m-i}{j}a_j ... $


While looking at  and it's answers I thought that it would be a good idea to write an extension method for System.Console that contained the desired functionality.  However, when I tried it, I got this compiler error      System.Console': static types cannot   be used as parameters   Here's the code:  using System; using System.Runtime.CompilerServices;  namespace ConsoleApplication1 {     public static class ConsoleExtensions     {         [Extension]         public static string TestMethod(this Console console, string testValue)         {             return testValue;         }      } }   Is there another way of creating extension methods for static types? Or is this just not possible?

I'm a fan of extension methods in C#, but haven't had any success adding an extension method to a static class, such as Console.  For example, if I want to add an extension to Console, called 'WriteBlueLine', so that I can go:  Console.WriteBlueLine("This text is blue");   I tried this by adding a local, public static method, with Console as a 'this' parameter... but no dice!      public static class Helpers {     public static void WriteBlueLine(this Console c, string text)     {         Console.ForegroundColor = ConsoleColor.Blue;         Console.WriteLine(text);         Console.ResetColor();     } }   This didn't add a 'WriteBlueLine' method to Console... am I doing it wrong? Or asking for the impossible?


I am trying to get snap to corner on Ubuntu.  I am following the instructions below trying to get GNOME extension working on a browser. I am up to step 2 and have tried Chrome and Firefox, with both giving me a extensions.gnome.org refused to connect or unable to connect error.     How can I install GNOME extensions through the browser?.

How do I install GNOME Shell extensions?  Is it possible to update, remove and manage the extensions?


I started a survival world where I would try to get every achievement possible.  I'm currently stuck on the achievement called "on a rail" I have placed 20 stacks of normal/power rail in 1 direction (east) I have not got the achievement for traveling 1km in a single direction, however when I check my stats it says I've traveled 10km?  What is needed to unlock this achievement?

I'm a little confused by the On A Rail achievement in minecraft. Do I need to go to a point 1km manhattan/euclidean distance from where I started. Or If I went down 500m of track went back 500m of different track and ended up 2-3 meters from where I started would that count?


Apologies if this is a duplicate post.  I did try searching to see if someone already asked/answered this but didn't find anything.   What does || mean in bash?  For example, in researching steps to troubleshoot a driver issue, I came across this command:   modprobe -q vmxnet3 && echo "vmxnet3 installed" || echo "vmxnet3 not installed"  I get that the first part is querying modprobe and returning a response of "vmxnet3 installed" if it receives a successful return code... but... what's the last part doing?

I often see tutorials online that connect various commands with different symbols. For example:  command1 |  command2 command1 &  command2 command1 || command2     command1 && command2   Others seem to be connecting commands to files:  command1  > file1 command1  >> file1   What are these things? What are they called? What do they do? Are there more of them?    .


I am building a Rust application that uses the .  When I click the executable after doing cargo build, I get an error saying that the DLL isn't in the path. I did put the DLL in the path to see if it worked and it did but it opened a command window with the GUI which it doesn't do that when I run cargo run.   I don't know a lot about how Rust builds executables and I don't know where Rust keeps the dependencies so I would like to know how I can get all my dependencies in a single path. Having something that can grab all the dependencies for me would be nice because the dependency has other dependencies that I probably need to add and I really don't know what they are.  I plan on making an installer for my Rust application and I will need all of the dependencies for it to work.

If I have a Windows executable, how can I find out which dlls it will load?  I'm just talking about which ones that will be loaded statically, not ones it might load dynamically with something like LoadLibrary.


Im doing a monthly payment project and I cant get the dollar amount to go to two decimals. I'm new to coding and dont know if theres something obvious I'm missing here. Heres my code: double monthlyP = (1 + monthlyRate);//P = Payment double power = Math.pow(monthlyP, numMonths);        monthlyP = power * monthlyRate; double monthlyP2 = power - 1; double FmonthlyP = (monthlyP/monthlyP2) * principle;//F = final        FmonthlyP = (FmonthlyP * 100)/Math.round(100);  It keeps outputting 1319.0 insted .23. I've tried putting the Math.round in the front of the multiplication part and behind it and I cant get it to work.

What I would like is a method to convert a double to a string which rounds using the half-up method - i.e. if the decimal to be rounded is 5, it always rounds up to the next number. This is the standard method of rounding most people expect in most situations.  I also would like only significant digits to be displayed - i.e. there should not be any trailing zeroes.  I know one method of doing this is to use the String.format method:  String.format("%.5g%n", 0.912385);   returns:  0.91239   which is great, however it always displays numbers with 5 decimal places even if they are not significant:   String.format("%.5g%n", 0.912300);   returns:  0.91230   Another method is to use the DecimalFormatter:  DecimalFormat df = new DecimalFormat("#.#####"); df.format(0.912385);   returns:  0.91238   However as you can see this uses half-even rounding. That is it will round down if the previous digit is even. What I'd like is this:  0.912385 -> 0.91239 0.912300 -> 0.9123   What is the best way to achieve this in Java?


I was watching Brandon Rhodes talk on Dictionary where I found him using a generator expression  diff = ('^ '[a==b] for a,b in zip(k1, k2))   where k1 and k2 are binary representations of some numbers. For every bit in k1 and k2 which are not identical this generator expression puts a '^ ' to mark the position. I haven't been able to understand this expression. What it means?

If Python does not have a ternary conditional operator, is it possible to simulate one using other language constructs?