These answer are no longer valid!  and  and   Can someone post a picture of where the logout button is, I've searched everywhere for it! I really can't find it.  In this post () they mention that it is in the site switch, but I can't find it there either


Which kind of math font set is used in the picture?

I like the math font set used in the picture very much, so what is the math font set name and where can I find the font set package or LaTeX Release, thanks.  PS: Is is not the MathTimeProII.


Did Firefox (v 39.0) drop support for "Global Menu"?

... and if so, how to fix / re-enable support? Or would this be fixed by subsequent point releases of Firefox?


32-bit vs 64-bit vs ARM in regards to programs and OSes

So when I run Raspbian (basically a ARM Debian derivative with LXDE), I can install any normal package using aptitude. But if, for example, I wanted to download a .deb file, I would have to choose 32-bit or 64-bit and download that, and try to run it on Raspbian (it wouldn't work).   Why does installing packages from the official repositories work on ARM systems? Why is it not incompatible?  I'm also a little confused about the difference between hardware and software bits. ARM is hardware, right?


How to stop Windows Search from auto excluding repository folders?

Windows search indexer is adding most paths to repository folders (both .git and .svn) to the exclusion list.  I can remove them manually of course, but each time i rebuild the index - they are re-added.  I can add them as indexed locations, but i'd have to do that each and every time I add a new repository and I add them in varying locations depending on relation.  Why is windows excluding these and how can i alter that behavior?  seems to have something to do with    wonder how its identifying them as repositories.  As repos from C:\user\dropbox\path\to\repo are excluded automatically, where items from c:\msys64\home\user are not.  If i can understand what triggers it being identified as such, i can perhaps understand the difference and how to fix the behavior.


In Dan Brown's Inferno, Zobrist hides a biological hazard in a cavern. But why does he leave a clue (though it's a hard clue) for that place? He had already planted that and he wouldn't want anyone to get a clue of that place.   Dan Brown figured the clue. So why did he take such a risk?


How did Newton know that there is force between two mass?

Newton's Law of Gravitation states:     $$F=\frac{GM_1M_2}{r^2}$$   How did he recognize that there is a force between two masses?


Do I need a visa to visit Belarus if I have a Russian visa?

I am a U.S. citizen living in Russia with a multi-entry student visa. I noticed that on my migration card it lists the Russian Federation as well as the Republic of Belarus. Do I need to get another visa if I want to visit Belarus, or is what I already have sufficient?


Solving the matrix equation $AP=PB$, where $A$ and $B$ are similar

Currently I'm stuck with this problem:     The following matrices are similar to each other.      $$A=\begin{bmatrix}-3&0\\8&4\end{bmatrix},\qquad B=\begin{bmatrix}-4&4\\-2&5\end{bmatrix},\qquad C=\begin{bmatrix}k&1\\m&-2\end{bmatrix}.$$      How do you find the matrix $P$ such that $AP = PB$?       And how can you calculate the values of $k$ and $m$?      Thank you in advance.


Will accelerating a massive particle generates a blackhole?

I have a naive question about blackhole. If I accelerate a massive particle very close to the speed of light, the particle will have large energy-momentum tensor. Will it become a blackhole?


Using Regex to split string with quoted substrings

I am trying to match the below text using Regex,  "1bbl" 2bbl "is as" 0.22 "3"   When I match I am not getting the output as expected in my list.  string val = "\"1bbl\" 2bbl \"is as\" 0.22 \"3\""; var reg = new Regex(@"([a-z0-9\s]+)"); Match match = reg.Match(val); List<string> list = new List<string>(); while (match.Success) {     list.Add(match.ToString());     match = match.NextMatch(); }   Current Output:  "1bbl" " 2bbl " "is as" " 0" "22 " "3"   Expected Output:  "1bbl" "2bbl" "is as" "0.22" "3"


remove locked by android device manager message

I have played with Android device manager and I have blocked my phone. I have deblocked but everytime my phone enters into standyby it apears me the message "locked by android device manager" and I have to enter the password again.  Do you know how to remove this message?


Proving that there are infinitely many irreducible polynomial in $\mathbb{Z}_{5} [x]$

Pinter's textbook "A book of abstract algebra" asks to prove the following:     There are infinitely many irreducible polynomials in $\mathbb{Z}_{5} [x]$.     Here's my attempt to prove it any field $\mathbb{F}$:  Let $F$ be a field. Suppose that there are finitely many irreducible polynomials in $F[x]$, say, $r_1 , r_2 , \ldots , r_n $. Then $r_1 r_2 \ldots r_n +1 \in F[x]$. Hence, by the factorisation into irreducible polynomial theorem tells us that  $$r_1 r_2 \ldots r_n +1 = k( r_1 r_2 \ldots r_n)$$  for some $k \in \mathbb{F}$. But then $r_1 r_2 \ldots r_n$ would be an associate of $1$. Thus each of $r_i$ must be a constant polynomial which contradicts the definition of a irreducible polynomial.    But I suppose this is not what the author wanted. I was wondering if there's any way to generate such irreducible polynomials over $\mathbb{Z}_{5}$. It looks to me as if $x^n+1$ where $n$ is even is a irreducible polynomial but I couldn't prove it. Any hints?


Evaluating the indefinite integral $\int\log\!\left(x+\sqrt{x^2-1}\right)\!dx$

I came across the following integral, and I don't know how to solve it. $$ \int\log\left(x+\sqrt{x^2-1}\right)dx $$ I tried the "obvious" substitution of $x=\sec\theta$, which gives you: $$ \int\tan\theta\sec\theta\log\left(\tan\theta+\sec\theta\right)d\theta $$ However, this doesn't simplify it much, in the sense that I have no idea how to solve this now! Take out the common factor of $\sec$ from the log, or perhaps do $u=\tan\theta+\sec\theta$, but both of these lead to dead ends (at least for me).  In case you are wondering, Wolfram|Alpha claims the answer is: $$x\log\left(x+\sqrt{x^2-1}\right)-\sqrt{x^2-1}+c$$


How can I construct a field of $p^n$ elements?

I was asked specifically to construct a field of $81$ elements. Can someone explain how the process for this works? And how should I approach more questions like this?


How to enable natural scrolling in xfce4?

Is there any setting to enable natural scrolling for my touchpad?  I can find the setting under XFCE settings for the mouse, but it doesn't work for the touchpad. Is there a way to enable it for the latter?


Let $X$ be a normed vector space.   Show that if a subsequence of a Cauchy sequence converges, then the whole sequence converges. Use the part 1 to show that $S = \{x\in X : \|x\| = 1\}$ is complete if and only if $X$ is Banach.     I have found the first part in a book, but I do not how to prove part 2. Thanx regards


What is the easiest way to compare strings in Python, ignoring case?  Of course one can do (str1.lower() <= str2.lower()), etc., but this created two additional temporary strings (with the obvious alloc/g-c overheads).  I guess I'm looking for an equivalent to C's stricmp().  [Some more context requested, so I'll demonstrate with a trivial example:]  Suppose you want to sort a looong list of strings. You simply do theList.sort(). This is O(n * log(n)) string comparisons and no memory management (since all strings and list elements are some sort of smart pointers). You are happy.  Now, you want to do the same, but ignore the case (let's simplify and say all strings are ascii, so locale issues can be ignored). You can do theList.sort(key=lambda s: s.lower()), but then you cause two new  allocations per comparison, plus burden the garbage-collector with the duplicated (lowered) strings.  Each such memory-management noise is orders-of-magnitude slower than simple string comparison.  Now, with an in-place stricmp()-like function, you do: theList.sort(cmp=stricmp) and it is as fast and as memory-friendly as theList.sort(). You are happy again.  The problem is any Python-based case-insensitive comparison involves implicit string  duplications, so I was expecting to find a C-based comparisons (maybe in module string).  Could not find anything like that, hence the question here. (Hope this clarifies the question).


Does a compact embedded manifold achieve all unit normals?

Fix some compact $n-1$ dimensional manifold $M$ without boundary embedded in $\mathbb{R}^n$. For any unit vector $v\in \mathbb{R}^n$, does there exist  a point $p\in M$ at which the unit normal vector is $v$?   I think the result holds if $n=2$, because the only compact  $1$-dimensional manifolds embedded in $\mathbb{R}^2$ are diffeomorphic to the  circle, so should achieve all unit normals. Intuitively, it seems reasonable that this should hold for $n=3$ as well.   This feels like it's just basic geometry and there should be a proof for it around somewhere, but I haven't found it yet.   I think an equivalent question goes something like: if the level set $S=f^{-1}(y)$ of a differentiable function $f:\mathbb{R}^n\to \mathbb{R}$ is non-empty and 'finite' in some sense, does $\frac{\nabla f}{\left|\left|\nabla f\right|\right|}$ achieve all values of the unit sphere $\mathbb{S}^{n-1}$ on $S$?


$d\mid a,b \iff d\mid\gcd(a,b) \ $ [GCD Universal Property]

I know that the definition of gcd of two numbers $ a, b $ is $G$ ,where  $G\mid a$, $\;G\mid b  $ and  If $d\mid a$, $\;d\mid b $, then $ d\mid G.$  Now, using this how do I prove that in $\mathbb Z$, this definition coincides with the definition that $G$ is the GREATEST (w.r.t. usual ordering) common divisor?  So to prove that I write, say $G=dq+ r,\;  0\le r<d$. My aim is to show that $ r$ is $0$. So I have to construct some $G+x $ which is also a divisor of both $ a$ and $b$, to get a contradiction. How do I get $ x$?


Iterating over python Dictionary using For Loop and having two values in a single iteration

I have a dictionary  Example: dict = {'one':1 ,'two':2 , 'three':3}   I want to use/have two values within single iteration of for loop.  End result should be like this  # 1 2 (First iteration) # 1 3 (Second iteration)  # 2 1 # 2 3  # 3 1  # 3 2    Can someone please tell how I can achieve this in python dictionary.   for i in dict.values():    # how do i Access two values in single iteration and to have result like mentioned       above   Thanks


How do i get rid of Browse2Save hijacking

While I was surfing the internet, suddenly firefox displaying annoying pop up ads by Browse2Save. Browse2Save ads are always showed up when I entered other sites.  I tried to remove it but can't find the program the source of Browse2Save ads. Browse2Save doesnt exist on add\remove program.  My antivirus didn't scan any suspicious on my system.  How to completely get rid of it ?  UPDATE  I've found  that describe the solution, but now i cannot locate my Application Data folder. It was missing, even i unhide all folder.


What is the difference between front-page.php and home.php?

When developing a theme wordpress grant us to use front-page and home page templates, so what is the major difference between these two templates as they seems like identical. I also want to know what will be the purpose of index.php file if we have front-page.php or home.php to work like our main index file, I mean server accepts the index file to index as main page or home page so if we name the file front-page or home how it will possible for site indexing.


My boyfriend wants to come to Canada for 6 months. How much money will he need to be able to come here?

My (American) boyfriend wants to come to Canada for 6 months and we had just found out he needs a specific amount of money to visit here to show he can support himself for the 6 months.  How much money will he need? We need help figuring this out because we aren’t exactly sure. He won’t need to pay for anything though. He will be staying with me and won’t need to pay for living or food or entertainment.


"A manual written to help students to understand the module"

Or should it be without the second "to" like this: "A manual written to help students understand the module"? I'm guessing that either is generally acceptable but is there a traditional grammar rule about this? Thanks


Where does the misconception that Y must be normally distributed come from?

Seemingly reputable sources claim that the dependent variable must be normally distributed:     Model assumptions: $Y$ is normally distributed, errors are normally   distributed, $e_i \sim N(0,\sigma^2)$, and independent, and $X$ is fixed, and   constant variance $\sigma^2$.              Secondly, the linear regression analysis requires all variables to be   multivariate normal.              This is appropriate when the response variable has a normal   distribution         Is there a good explanation for how or why this misconception has spread? Is its origin known?  Related


How to separate json response in different variables?

How do I separate this response in one variable, like I required from below response URL only in one variable? However, "BE050-A28" this value is dynamic in every response.  {   "vehicle": {     "BE050-A28": {       "url": "https://europe.com/iris/iris.jpg?COSY-EU-100-1713d0VXqNSFqtyO35PobzIDneWql9TQw2Mpxikzmxxom7ssM0uBRBbB2Z0iD%25W%25NZWm7ymWdhK0h8f%25v8%257EyLibLlYa4IG2rH"     }   } }  var responsePayload = Platform.Function.ParseJSON(Stringify(response)); var responseUrl = Stringify(responsePayload.vehicle.url); Write("responseUrl : " + responseUrl);


What is the best way to install openstack

I am trying to set up an openstack environment, but I am a bit confused due to the different mechanisms to do this.  I have an environment with 8 nodes, and MAAS is installed at one node.( Ubuntu 15.04 with MAAS installation. The other 7 nodes are 14.04 LTS)  Now what ?    Use this procedure  and go for Landscape Autopilot to setup openstack ? There are also other choices in the install procedure Install JUJU and use JUJU GUI to install Openstack ?  Install openstack step by step from shell ?  Openstack-autopilot (? is this the same as landscape-autopilot?)   Other ways ?


$\frac{\partial f}{\partial x} = \frac{\partial f}{\partial y}$

Consider function $f(x, y)$ smooth enough satisfying the following equation: $$\frac{\partial f}{\partial x} = \frac{\partial f}{\partial y}\ .$$ It is obvious, that any function of the form $f(x + y)$ suits the above condition. How can I prove, that these are all functions or find a contradiction?


The Average Height of an American is (Hypothesis Test)

Problem The average height of an American was reported to be 70. Many believe that college students are shorter than average. A random sample of students produced the following data:    $n=140$, $mean = 65.39$, $s = 4.64$    Find the test statistics  Steps Taken to Solve I decided that this type of problem was a 1 sample T-test. These are my steps to the Hypothesis Test.     Null Hypothesis = No difference, so $M = M_o = 0$ Alternative Hypothesis = $M < 50$     $t = \frac{50 - 0}{\frac{4.64}{\sqrt{140}}} = 166.7467$     Is this approach correct so far?


Logitech mouse scrolling weird after Sierra update; soggy inertia effect in native apps, choppy in third-party apps

The update to macOS Sierra wrecked scrolling with my Logitech Mouse (which uses Logitech Control Center).  The scrolling behaviour is erratic because I'm actually assaulted by two issues:   In native macOS applications, like Apple Pages, there is an ”inertia-ish” effect that slows down the scroll and introduces some sort of acceleration-like movement akin to the worst nightmares from Windows 10. In third-party applications, like Google Chrome, the scrolling is quite fast but not fluid; it's choppy and non-linear with sudden jumps and stops. Because of this, it feels like the computer is laggy when scrolling a page, but it's probably due to the way the software scrolls.    Sierra just came out, but I'm not that hopeful that Logitech are capable of tending to issues like these, so I'm afraid I will have to do something about it myself.  I have tried checking the settings of System Preferences > Mouse and System Preferences > Logitech Control Center > Vertical Scroll but came up with nothing except temporary band-aid tweaks to make it feel better.  Edit, Broken Mouse Buttons: Also related to this, is the issue that the Forward/Back buttons on some Logitech mice have stopped working. I was able to mitigate this issue by binding those buttons to keystrokes in Logitech Control Center, e.g. (⌘ + ←) and (⌘ + →) for Google Chrome. Possibly, something like , , or  could be used to intercept the OS functions Forward/Back in case the keyboard shortcuts above aren't global for all applications. Regardless, with BetterTouchTool, you can set application-specific keystrokes and bind them to mouse buttons.


To whoever wills ... Vs. To whomever wills

So, is it "whoever" because it is the subject of the predicate "wills", or is it "whomever" because it is the object of the preposition "to"?


I want to type special characters such as □ and ■. The problem is, these aren't on my keyboard. What do I do to type them?  It is understood to press Ctrl + Shift + U, but isn't done to press 25a1 after. I used my left hand to press Ctrl + Shift and right hand to press U. I can't proceed further.


We all know the $n$th prime can be approximated by.  $nln(n)$    by Prime number theorem. We also got inequalities for the estimate .  But my question is what is the best possible estimate for $n$th prime under all the necessary strong assumptions like Riemann hypothesis?


How much is the universe blueshifted at a black hole event horizon?

If Alice falls into a black hole wearing a wrist-watch, an outside observer Bob sees Alice freeze at the horizon, her watch seems to have stopped. This also means that all light that originates from Alice is redshifted asymptotically to zero Herz. Now my question is what Alice sees when she is just a few femtometers above the event horizon and looks back at Bob. Is Bob blueshifted and does his watch seem to spin to the end of time in a wink of her eye? Can Alice see the universe evolve to the end of time and see the black hole below her evaporate? In other words: if Alice is redshifted to zero to Bob, should not Bob be blueshifted to infinity to Alice? I believe the actual amount of blueshift is not explained by the answers to question:  ?


Is mysqli_real_escape_string enough to prevent SQL injection?

I have the following php script to insert a form user input data into the database. Is mysqli_real_escape_string enough to prevent SQL injection if I don't wish to use prepared statements to bind parameters to "?" placeholder?     <?php    $link = mysqli_connect("localhost", "root", "", "bizcontact");     $name = mysqli_real_escape_string($link, $_POST['name']);    $company = mysqli_real_escape_string($link, $_POST['company']);    $position = mysqli_real_escape_string($link, $_POST['position']);    $contact = mysqli_real_escape_string($link, $_POST['contact']);    $email = mysqli_real_escape_string($link, $_POST['email']);    $gender = mysqli_real_escape_string($link, $_POST['gender']);     /* check connection */    if (mysqli_connect_errno()) {    printf("Connect failed: %s\n", mysqli_connect_error());    exit();    }     $sql = "INSERT INTO businesscontact(name, company, position, phone,  email, gender) VALUES('$name', '$company', '$position', '$contact', '$email',  '$gender')";    if (mysqli_query($link, $sql)){    echo "success";    }else{    echo(mysqli_error($link));    };     /* close connection */    mysqli_close($link);    ?>   UPDATE      $stmt = $link->prepare("INSERT INTO businesscontact(name, company, position, phone, email, gender) VALUES(?,?,?,?,?,?)");     $stmt-> bind_param("ssssss", $name, $company, $position, $contact,  $email, $gender);     if($stmt->execute()){     echo "success";    }else{     echo(mysqli_error($link));    }


Unable to center a div inside a container using bootstrap

I am building a scorecard where I will have overall score depicted inside a circle in the middle of a screen while the details would be in the next row.  I am using bootstrap 3 and here is my code below  <!doctype html>              <meta charset="utf-8">     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">           <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">      <title>Utora Scorecard</title>

             57

                   Here is how it looks in the browser    Now I want this circle to be in middle of the screen but unable to do it.  I tried using text-center, center-block, margin-left etc on the div but nothing worked. How can I center the circle such that even though the browser size changes, it remains in the center?


Prove that if $p\in \mathbb{Z}$ is irreducible, then it is also prime.

The question is:      Prove that if $p \in \mathbb{Z}$ is irreducible, then $p$ is also prime.    Irreducible is defined as follows: $n \in \mathbb{Z} $ is irreducible iff the only way to write $n=ab$ for some integers $a$ and $b$ is if $a = \pm1$ or $b = \pm1$. Prime is defined as follows: an integer $n$ is prime iff whenever $a,b \in \mathbb{Z} $ and $p\mid ab$ then it must be true that $p\mid a$ or $p\mid b$ (or both).    Hint: Prove that if $n\mid ab$ but $n$ does not divide $a$, then $\gcd(a,n) = \pm1$. Then use Bézout's theorem and prove $n\mid b$.


Where do Aliens from the Alien franchise get bio mass?

It just seems to me like these things can grow in size without injesting anything. The most outrageous example I can think of is that thing from the med pod in Prometheus (even though not the same species as the Alien alien), but they all seem to be able to do it.  Has any canonical explanation ever been given for this or is it just space magic?


I computed a feature x that I use to predict y which is a probability of being a certain class.  Raw data in R format for (x,y) is pasted here:   (500 samples)  plot(x,y) looks like this:    It seems similar to a  I asked, so I am tempted to try , which I understand is the "Least Squared Fit"on log(y) (because y is a probability).  Am I correct?  (My objective is to minimize the MSE.)


It is saying this:  Error mounting /dev/sdc2 at /media/sudheer/Untitled:   Command-line `mount -t "exfat" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,   iocharset=utf8,namecase=0,errors=remount-ro,umask=0077" "/dev/sdc2"    "/media/sudheer/Untitled"'  exited with non-zero exit status 32: mount: unknown filesystem type 'exfat'


I am a 22 year old currently renting accommodation with my partner in the UK, and we are wondering if now is a good time to buy a property, and whether or not we can afford it.  As background, my salary before tax is £70,000 p.a. and my partner's is £36,000 p.a. This year I have a guaranteed bonus of £30,000 (i.e. written into my employment contract) before tax. After this, my target bonus is £10,000 p.a.   We are looking at houses around £500,000/£550,000 in the area just inside the M25 and when we are ready to buy, we will have savings of £55,000 for a deposit and £20,000 for stamp duty and legal fees.   Looking at Mortgage calculators such as provided by , based on these figures it would appear that we may be eligible for a mortgage up to ~£530,000, which should be enough. A mortgage of this amount will require repayments in the order of £2300-£3000 per month. After tax, our joint earnings per month is about £6345, without bonuses.  I am aware that interest rates are currently low, and am conscious that recently 3 members of the Bank of England MPC voted in favour of raising the base rate; so I do not want to miss out on preferential mortgage rates.  Moreover, if we do not buy a house, we will be spending money on rent, probably ~£1500 per month and this will just be expenditure with no assets at the end to show for it.  So my question is: based on this information, should we be looking to buy ASAP, or wait to accumulate more savings and buy a house using a smaller mortgage?


How do I find the order of a subgroup of $G$ under the canonical epimorphism?

I'm trying to prove the converse of Lagrange's theorem holds for when $G$ is an abelian group such that $|G|=n$.  What I have is if $k > 1$ and $k|n$, there is a subgroup of prime order $p$ ($p$ is such that $p|k$) of $G$, say $N$, which is normal in $G$.  Consider the canonical epimorphism $\phi: G \to G/N$. Then $G/N$ is abelian group of order $n/p <n$, and I have by induction hypothesis that the converse holds for every abelian group of order less than $n$ so there is a subgroup of order $k/p$ of $G/N$, say $H$. How do I prove that $|\phi^{-1}(H)|=k$?


Inverse proportional to cosmological scale factor

How can I show using calculation that the temperature of the universe is inversely proportional to the cosmological scale factor?  I am just curious, as my textbook states this fact but does not show the calculations, and so I was thinking how one could show this?  I would appreciate the help.   EDIT: so I know for a fact that the equation:  $$z+1=\frac{R}{R_0}$$  Where $z$ is the Doppler shift and $R$ is the cosmological scale factor in the present and the $R_0$ is the scale factor at $t_0$. but we also know that:  $$\frac{R}{R_0}=\frac{\lambda}{\lambda_0}$$  But we know from Wien's Law that: $$\lambda T=2.9\times 10^{-3}$$  Hence we have: $$\frac{R}{R_0}=\frac{\lambda}{\lambda_0}=\frac{T_0}{T}=z+1$$  This is all I can extract at this point the relationship between temperature and the scale factor, I do not know if I am on the right track, or if this is correct at all? I would appreciate if someone can help me check and help me go further from here to show that the relationship between $T$ and $R$ is inversely proportional.


Let A be a subset of the positive real numbers. It is required to prove  that there exists a metric space whose non-zero distances are exactly the set A. Any suggestions and hints on how to proceed will be highly appreciated. Please try not to post the exact solution.


Referring to specific individuals gender-neutrally

I am reviewing a set of CVs for a senior position. I need to provide a short summary of each CV with a proceed/drop recommendation. Here is a sample:     Ford Prefect: From his CV, he seems to have successfully moved away   from functional role A to functional role B. He has been performing role B for the past 5 years; the last instance when he performed role A was when he was employed with Slartibartifast, Inc. which he left in 2011. Since the requirement   calls for candidates with advanced experience in role A, he is not   suitable for this role.   Now, I do want to write this in a gender-neutral manner. Right now I make a guess about the gender of the candidates from their names and use the appropriate pronouns, but I don't want to do that. I am also wary of looking up social media profiles (LinkedIn etc.) to identify gender. What could be the best way to structure the above summary to do this?


OS doesn't auto-detect usb stick(Kingston dt rubber 3.0 32GB)

I had an USB pendrive plugged in the laptop when the laptop froze. After that time I can't access my USB pendrive. It doesn't work on other computers either.   I checked disk management and it says "no medium".    I have checked drive letter, NOT the problem. I have re-installed the drivers, NOT the problem.  My other usb still works on my laptop so not broken usb ports.


I have some C# code that I have compiled into a .dll to use as a resource for other programs.  How do I import that into my Java project for use and then how do you reference the code in the dll. I am using Eclispe for Java.


To prove this identity, $$\sum_{d \mid n}\phi(d)= n \qquad \text{for} \, n=1,2,3,\ldots$$ where $\phi (n)$ is the Eulers totient function, I tried this by breaking it into two parts, n is either an prime no or a composite no.   If the no is a prime no we have  $\phi(1)$ + $\phi(n) = 1 + n - 1 = n $, however if n is composite we can write it in the form $n = p_1^{c_1} p_2^{c_2} \ldots p_k^{c_k}$,   So we will have $ \phi(1) + \phi(p_1) + \phi(p_2^2) + \ldots + \phi(p_1^{c_1}) $+ $\phi$(other prime terms with their combinations), how to solve this for composite no


Windows pagefile size with large RAM and SSD

I just upgraded my Windows 7 machine from 12GB to 24GB RAM - both for running more VMs and for future proofing.  My C drive is an SSD with 129GB formatted size.   I was surprised to find out that the SSD only has 68GB free (most of my files are on D: to G:). Researching I found 24GB of my precious C: SSD are taken up by the virtual memory pagefile in the root.  Do I need such large amounts of virtual memory when I have 24GB or RAM? I bought this size of memory so I'd not have to go to disk.


How to prevent apps from opening the browser in Windows XP?

It's quite annoying during an uninstall or application exit to have the app open a web browser with a survey or the like.  I'd like to prevent this from happening, if possible?  There's  up already, but it doesn't have any good answers :(  I presume this question is generic to most recent versions of Windows up to 8 as well, but since the machine is XPSP3 I thought it best to be as specific as possible.


MySQL Error: You can't specify target table 'users_words' for update in FROM clause

Please have a look at my MySQL clause.  UPDATE `users_words` SET `priority` = (SELECT MAX(`priority`)+1 FROM `users_words`) where `userid` = 89 AND `wordid`="agree"   Here I am going to update the priority field by adding 1 to the existing maximum priority field value. But I am getting the error You can't specify target table 'users_words' for update in FROM clause.  How can I fix this issue?


It is possible for a wizard to be chosen by two wands, this makes me wonder if the reverse is true.  Can two or more persons having similar qualities be CHOSEN by a single wand? Moreover, is it necessary that a wizard would be chosen by a wand at all? What if the wandmaker hasn't created that particular wand by that time that would choose him.  Update:  If the wandmaker makes a wand specifically for a child, how can he be sure that the wand would choose him/her at all. At such a young age, how can a wandmaker make an idea about the child's specific qualities and temperament?


Let $E=F(x)$ for a field $F$ of characteristic $0$.   Show that $F(x^2) \cap F(x^2-x) = F$ as subfields of $F(x)$.    I could use a hand with this... Thanks


SharePoint 2013 Promoted Link tile sizing?

I am trying to resize promoted links tiles to 250px x 250px however am struggling to find a correct method of doing so. These have pictures and title/information text. I've seen some Javascript methods however there appears to be a limitation on how big these tiles can be.  The solution below worked however I am now trying to sort the hover over animation.  The below image shows the tiles I've just created on the bottom row - we'd like them to display the mouseover the same as on the top row and only show the tile description and not the title itself. But only show this on mouse-over. So the tile would be completely clear before hand.


I am using Asus zenfone 5 running 4.4 kitkat, i have moved many games with obb files to sd card but when i was trying to move nfs most wanted to sd card but i noticed that it doesn't have an obb file rather it has multiple game files in android data folder, when i moved it to sd card via settings the data wasn't moved it is still occupying 1.95 gb on my internal storage, please help me move the game, and yes, my phone is under warranty so i don't want to root it


Output to stdout and at the same time grep into a file

I have a script that outputs text to stdout. I want to see all this output in my terminal, and at the same time I want to filter some lines and save them in a file. Example:  $ myscript Line A Line B Line C  $ myscript | grep -P 'A|C' > out.file  $ cat out.file Line A Line C   I want to see output of first command in terminal, and save the output of the second command in a file. At the same time. I tried using tee, but with no result, or better, with .


Computer automatically disconnects from wifi: I have to restart to get back online

My Lenovo Ideapad G50-70 will automatically disconnect from the Internet at random moments on 14.04. The network will first just stop working without any warning, and after a while, it will disconnect by itself. The strange thing is, I can't manage to get the computer back online without restarting the whole computer; it will not be able to connect to the network at all. Simply turning wireless/networking off and back on doesn't help at all. I've tried following old instructions to update drivers (as shown here:  ), but it didn't help.  lspci -nnk | grep -iA2 net:  ~$ lspci -nnk | grep -iA2 net 01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 10) Subsystem: Lenovo Device [17aa:380a] Kernel driver in use: r8168 02:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter [10ec:b723] Subsystem: Lenovo Device [17aa:b736] Kernel driver in use: rtl8723be   It would be awesome if somebody could help me out! I really don't want to use Windows 8 instead. :/


Is cold dark matter made of Higgs bosons?

(2010) hypothesizes that Higgs bosons might be absolutely stable, allowing them to serve as a cold dark matter candidate:     The Higgs boson is in the backbone of the standard model of electroweak interactions. It must exist in some form for achieving unification of interactions. In the gauge-Higgs unification scenario the Higgs boson becomes a part of the extra-dimensional component of gauge fields. The Higgs boson becomes absolutely stable in a class of the gauge-Higgs unification models, serving as a promising candidate for cold dark matter in the universe. The observed relic abundance of cold dark matter is obtained with the Higgs mass around 70 GeV. The Higgs-nucleon scattering cross section is found to be close to the recent CDMS II and XENON10 bounds in the direct detection of dark matter. In collider experiments stable Higgs bosons are produced in a pair, appearing as missing energies and momenta so that the way of detecting Higgs bosons must be altered.      –, Yutaka Hosotani (2010-03-31)   Has the hypothesis in the above article been proved? What about WIMPs?


How to safely remove a USB external drive?

How I can safely remove a USB external drive?  Ubuntu 12.10 does not come with this option, only to "Unmount" the disk, but not "Eject".    I have tried both USB sticks and with my external hard drive.


Indian passport expiring - Travel to Canada

My mother would be traveling to Canada from March to June 2020 on Indian passport and Canadian visitor Visa.  However, both passport and Visa would expire in July 2020.  Can she travel with existing documents or does she need to get it renewed?


How to type "~", the curly symbol used for "Home" in Linux, in latex?

I'm sorry if this is duplicate; I couldn't find it.


Ratios in Regression, aka Questions on Kronmal

Recently, randomly browsing questions triggered a memory of on off-hand comment from one of my professors a few years back warning about the usage of ratios in regression models. So I started reading up on this, leading eventually to Kronmal 1993.  I want to make sure that I'm correctly interpreting his suggestions on how to model these.   For a model with a ratio with the same denominator on both the dependent and independent side: $ Z^{-1}Y = Z^{-1}1_n\beta_0 + Z^{-1}X\beta_X + \beta_Z + Z^{-1}\epsilon $   Regress dependent ratio on the (inverse) denominator variable in addition to the other ratios Weight by the (inverse) denominator variable  For a model with dependent variable as a ratio: $ Y = \beta_0 + \beta_XX + Z1_n\alpha_0 + ZX\alpha_X + Z^{-1}\epsilon $   Regress numerator by original variables, denominator, and denominator times original variables [what about categorical variables?] Weight by (inverse) denominator  For model with only independent variable ratios: $ Y = \beta_0 + X\beta_X + Z^{-1}1_n\beta_{Z^{-1}} + W\beta_W  + Z^{-1}W\beta_{Z^{-1}W} + \epsilon $   Include numerator and (inverse) denominator as main effects, ratio as interaction term.    Are my interpretations here correct?


Let $a_n>0$. Prove that $$\varlimsup_{n\to\infty}n\left(\frac{1+a_{n+1}}{a_n}-1\right)\geq 1.$$  I argue by contradiction. If it is not ture, then $$\exists\ N,\ \forall\ n\geq N, n\left(\frac{1+a_{n+1}}{a_n}-1\right)<1\Rightarrow 1+a_{n+1}-a_n<\frac{a_n}{n}.$$ What contradiction shall I get then....


Java Code isn't working properly when it should

So i have been trying to help myself learn Japanese by making a randomizer. When I try to run this code it says there are errors but I've looked through and I can't find any. For some reason it doesn't see that the Ename is the same as answer. they are both string variables so I don't understand why it wont work properly. I would love to learn why it isn't working. Thank you for those more knowledgeable than me.  import java.util.Random; import java.util.Scanner;  public class Game { Scanner in = new Scanner(System.in);  public int enemyCount = 4; // always need to be one less than the enemy  public String Jname;//Japanese Character public String Ename;//English Character   public static void main(String[] args)  {      new Game();  }  public Game(){      battleMainMenu(); }  public void RandomEnemy()  {       Random random = new Random();      int rnd = random.nextInt(enemyCount);      if (rnd == 0)     {          Jname= "あ";          Ename= "a";      }     else if (rnd == 1)     {          Jname ="い";          Ename ="i";       }     else if (rnd == 2)     {          Jname="う";          Ename="u";      }     else if (rnd == 3)     {          Jname="え";          Ename="e";      }     else if (rnd == 4)     {          Jname="お";          Ename="o";      }      System.out.println("\nYou walk around and encounter a "+ Jname );  }  public void battleMainMenu()  {     RandomEnemy();      System.out.println("\nTo defeat this enemy you must write "+ Jname +"'s name in english. " + Ename);// Enames here for debugging purposes     System.out.println("Your options are : 'a', 'i', 'u', 'e', 'o' ");     System.out.println("Type one of the options in lower case. ");      String answer = in.nextLine();     System.out.println(answer);     System.out.println(Ename);     if (answer == Ename)     {         System.out.println("\nCorrect!\n");      }     else     {         System.out.println("\nIncorrect!\n");         battleMainMenu();     } }   }


Rep in hamburger is not updated for a single site

We know reputation is recalculated for questions. My reputation also increased in all the sites and updated in the hamburger where you put list of the sites.    My reputation on Science Fiction & Fantasy is also recalculated to 1547.    This change. still showing the old reputation. This is only the issue with a single site.   Should I blame the cache?


Prove that $\sqrt[3]{2} +\sqrt{5}$ is algebraic over $\mathbb Q$

Prove that $\sqrt[3]{2} +\sqrt{5}$ is algebraic over $\mathbb{Q}$ (by finding a nonzero polynomial $p(x)$ with coefficients in $\mathbb{Q}$ which has $\sqrt[3] 2+\sqrt 5$  as a root).  I first tried letting $a=\sqrt[3]{2} +\sqrt{5}$ and then square both sides. But I keep on going into a loop by continuing to  square it over and over again. Then I tried $a^3=(\sqrt[3]{2} +\sqrt{5})^3$. Just can't seem to get rid of the radicals.


What does "your votes will change the publicly displayed post score." mean?

I just tried to upvote and saw this:    Thanks for the feedback! Once you earn a total of 15 reputation, your votes will change the publicly displayed post score.   I know that Stack Exchange keeps track of the votes from unregistered users - does it do the same for sub 15 rep users? And if so, do these votes go into another list or the same one as the unregistered votes.  Finally, I know that the unregistered votes list is not used for anything - is the sub 15 rep one used for any internal calculation (e.g. People reached)?     answers most but not all of my questions - Is the sub 15 rep one used for any internal calculation (e.g. People reached)?


Introduction  I was tempted to make an historic novel of this question, but decided against it, since someone might not understand the subtle quality of the novel I was about to write.  History  I was checking the  for some civic duty, more specifically Question without Answers section. I looked for question that needed some kind of action (comment asking for clarification, edits, tagging, voting, flagging, etc.), and stumbled upon . It was a good question (but with lack of formatting) and was edited previously, but what struck me more was the fact that it has an answer.  Decision making  I analyzed the question deeply, read the comments and I decided that I could take 3 actions:   Comment again and hope OP takes action. Edit the question and add an answer as community wiki. Flag for moderation.   I rationalized that (1) will not achieve anything since comments already tried 3 times to make OP pay attention (in 2009, 2012 and 2013) and make a proper answer. (3) Was a bit too much, since the problem was actually simple and no something that could trigger alien invasion. So, I did (2), based in a previous question about "" in Meta U&L.  Taking action  So, created the answer as Community wiki (Simonatmso.net raised concerns about what I was trying to do but even so failed to review the edit), and  to delete the answer embedded to the question and did some light grammar check. But 3 out 4 seemed that didn't noticed what was going on (lack of coffee? too many reviews at the same time?) and rejected the edit with "This edit changes too much in the original post; the original meaning or intent of the post would be lost". I couldn't catch how the OP change the meaning if the changes were introduced by  and I was just giving closure to the question.  As you all can notice (or I hope so), it was too odd that 3 different persons, in the same situation, did the same action even when they were in wrong (I attribute this to the lack of coffee). So, please offer more coffee to reviewers, or they are given enough so need something even more powerful (energy drinks?).  If I was in wrong, I do apologize for making you all waste your time reading my rant, but any answer (guidance) is always welcomed.


I am using example given here by @stephan .  Works great however I want to get rid of dots and page numbers.  I added this to the preamble   \let\Contentsline\contentsline  \renewcommand\contentsline[3]{\Contentsline{#1}{#2}{}}   that removed the page numbers, but do not know how to remove the dots. I would appreciate your help. Its hard to get result without understanding the basics.


A different way to measure cardinality of infinite sets

One of the counter-intuitive things about measuring infinite sets is that the cardinality of a subset may be equal to the cardinality of the original set, contrasting with the finite world where a subset is always smaller.  For example, there are just as many odd numbers as there are integers, which is key to finding room at the Hilbert Hotel, when finite intuition says there should be half as many.   My question is: is there a different way to measure the cardinality of infinite sets such that the "intuitive" relationship $S \subsetneq T \implies |S| < |T|$ holds?  Does it help if you limit yourself to countable sets?


Prove: Let f be differentiable on $[a,b]$.If $f'(a)>0$ and $f'(b) <0$, then exists $c\in(a,b)$ such that $f'(c)=0$ (Do not assume that $f'$ is continuous).  My attempt: If $f(a) = f(b)$, then by Rolle's Theorem, it's done. Assume $f(a) \neq f(b)$, say $f(a) < f(b)$. I want to prove that $\exists x_0 \in (a,b)$ s.t. $f(x_0)=f(b)$, so using Rolle's Theorem again I can get the answer. But I cannot find how to prove it.  Any suggestions will be appreciated!


If a SHA256 hash with high entropy is then hashed with one made from low entropy, is the resulting hash higher/same/lower entropy?

If one were to create a SHA256 hash using 256 coin flips converted to hex (which, as I understand it, is as "entro-phized" as one can capture in SHA256) then take that hash as a string, combine that with a hash of the word "cat" and hash the resulting 512 character string, would the resulting hash from that exercise be any less random than our "perfect" hash we began with?  My thinking is the final string would capture the same amount as the original randomness as what we started with because the "extra" entropy can not be captured and is lost. Is this the case and am I thinking about this correctly? Would hashing something with high entropy with something simpler ever cause a lower amount of randomness or does it only go up?  Thanks to anyone who can help explain this a little better.


Special (non-english) character in name. What to do as author? Internationalize or not?

In German, as well as in other languages, people have Non-English characters in their names. e.g. ß, the umlauts etc..    I frequently face problems when flying, opening bank accounts, etc., particularly abroad, since replacing the ß with ss changes more more than 25% of my family name as compared to how it's written in my passport.  Obviously it is desirable to write one's name for submissions, the way one's name is written correctly. Can one expect to run into problems, and will sooner or later end up with different publications being published under different spellings of the name, or is it safe to go for the correct spelling?


Identification of an insect from midwest US

I have been seeing them more and more frequently indoors.  I am currently in the Midwest United States, weather has been unusually warm for December, and there are many trees nearby. Can someone please help identify this?   The pictures are of the same bug, but from different angles.


How can I stop losing mapped drive connections to SimpleShare NAS device from Windows 7?

I have 4 mapped drives to a "SimpleShare" network storage device. 2 have no passwords and 2 have passwords. On Windows 7 Pro PCs, Randomly, 1 of the password protected drives loses connection. The dropped drive changes on different PCs.


EICAR like antivirus test for Windows 64 bits

Is there any antivirus test program like EICAR for 64 bit Windows?  I'm trying to check my antivirus protection downloading the  test program as usual. The antivirus pops up an alert on the download (that's ok), but I cannot run the EICAR.COM program because it's an 16-bit program and I'm running Win7 64bit.   I can run the program on  but it's not the same thing as running it directly from the OS.


I've been trying to block ANY queries in my BIND server with no success.  I followed this post  which says that I can use minimal-responses but it doesn't work.  None of the answers fit my current configuration.  view world {     match-clients   { world-clients; };     allow-recursion { none; };     recursion       no;     allow-transfer  { key XXXXXX; };      minimal-responses yes;      forwarders      { };      include         "/etc/bind/world.conf"; };


Though at the time I saw it I did not know it, this would be called "anime" today. It was in English, and I don't remember if the characters lips matched the audio track. I couldn't have been older than about 3rd grade, so that puts it around 1985ish I believe.  It was released theatrically in the United States, I do not know if it was a limited release. I saw it in Cincinnati, Ohio. No idea what movie theater chain.  The story was rather typical, young man who goes on the hero's journey. Definitely science fiction elements (flying vehicles, maybe spaceships). He comes across or is given a sword hilt without a blade. He learns to use it, and when he does it acts as if the blade is there. At the finale, he has lost the hilt entirely and, thinking that he has lost, almost gives up. But a (voice in his head, his mentor, can't remember what) something tells him to try despite this, and it's as if he has the sword even without the hilt. He then triumphs.  Can anyone identify this movie?


How to stop preview from making smoothed lines?

Whenever I go to handdraw a line, it gets smoothed out and I need to correct it


How to access folder named "x y" (x space y) using Ubuntu Bash script in Windows?

I am using Bash script. When I run cd x y, I get an error that x is not a directory. However, files having names without spaces are selected.


Missing the package libidn11, can't figure out how to repair or reinstall it

I've been running into a lot of problems on my Ubuntu 18.04 installation with a package named libidn11. Not having a functioning version of it gets in the way of installing other packages or upgrading installations such as my installation of R. How would I go about fixing this problem without choosing the nuclear option (fresh reinstallation of Ubuntu)?  E: The package libidn11 needs to be reinstalled, but I can't find an archive for it.  Simply trying to reinstall in  doesn't work, and I get the same error message shown above.  EDIT: See @steeldriver's comment  arta@lappy-486:~$ apt policy libidn11 libidn11:   Installed: 1.33-2.1ubuntu1.1   Candidate: 1.33-2.1ubuntu1.1   Version table:  *** 1.33-2.1ubuntu1.1 100         100 /var/lib/dpkg/status      1.33-2.1ubuntu1 500         500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages   EDIT 2: Here is the output of sudo apt update:  arta@lappy-486:~$ sudo apt update [sudo] password for arta:  Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease Hit:2 https://repo.nordvpn.com/deb/nordvpn/debian stable InRelease                                                  Get:3 http://dl.google.com/linux/chrome/deb stable Release [943 B]                                                  Hit:4 http://archive.ubuntu.com/ubuntu bionic InRelease                                                                                Ign:5 http://ppa.launchpad.net/kxstudio-team/hydrogen/ubuntu bionic InRelease                                                                 Get:6 http://dl.google.com/linux/chrome/deb stable Release.gpg [819 B]                                                  Err:9 http://ppa.launchpad.net/kxstudio-team/hydrogen/ubuntu bionic Release                                                                     404  Not Found [IP: 91.189.95.83 80] Get:7 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease [15.4 kB] Hit:8 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease        E: Repository 'http://dl.google.com/linux/chrome/deb stable Release' changed its 'Origin' value from 'Google, Inc.' to 'Google LLC' N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details. Do you want to accept these changes and continue updating from this repository? [y/N] y Get:10 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1,103 B] E: Repository 'http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease' changed its 'Label' value from 'Oracle Java (JDK) 8 / 9 Installer PPA' to 'Oracle Java (JDK) 8 Installer PPA (DISCONTINUED)' N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details. Do you want to accept these changes and continue updating from this repository? [y/N] y Reading package lists... Done                                                                                E: The repository 'http://ppa.launchpad.net/kxstudio-team/hydrogen/ubuntu bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.


Im trying to rename a site collection by changing the url by using this PowerShell   $site = get-spsite -identity http://xxx:9000/sites/SCOne $site.Rename("http://xxx:9000/sites/SCOneNew")   I got this message     Exception calling "Rename" with "1" argument(s): "Cannot rename a site collection     with recycled items. Empty the site recycle bin of site collectio   The recycle bin is empty now but I still can't rename and I get the same message.   I have tried this PowerShell to get count of items in recycle bin    $site = get-spsite http://xxx:9000/sites/SCOne Write-Host $site.RecycleBin.Count.ToString();   but it says     you cannot call a method on a null-valued expression


I am trying to install Ubuntu on my Macbook pro 9.2 with OSX Yosemite 10.10.2. I have been running around and I can just not figure it out. Can someone please give me a tutorial or explain how I can install it relatively easily ?


If $\deg(Q) \geq \deg(P) + 2$, then $\int_\gamma \frac{P(z)}{Q(z)} dz = 0$

I have the following question:  Let $P$ and $Q$ be polynomials with $\deg(Q) \geq \deg(P) + 2$. Show that there is an $r > 0$ such that for any closed curve $\gamma$ outside the disc of radius $r$ centered at the origin that  $$\int_\gamma \frac{P(z)}{Q(z)} dz = 0$$ I can prove the claim in the special case that $Q(z)$ is a power of $z$. This can be done by separating the fraction and noting that each term has a primitive (because each integrand will be of the form $1/z^k$ where $k \geq 2$). However, I do not know what to do for the general case. I have tried factoring out the highest power of $z$ in $Q(z)$ and try to reduce to the previous case. However, when I do this I am unable to find an antiderivative.


How is the nature of logical principles commonly defined in contemporary philosophy?

In contemporary philosophy, how exactly is the nature of logical principles defined? For example, the way I've commonly seen logical principles construed are as true propositions which described the most general laws of reality. The previous definition does seem very intuitive to me; if we understand logical principles as being concerned with truth, and if we accept a correspondence theory of truth, then logical principles simply describe fundamental laws regarding various states of affairs occurring in reality. (e.g. If state of affairs S1 obtains and state of affairs S2 obtains, then state of affairs S3 must also obtain given logical law L).  However, I've mostly heard the previous view expressed among laypersons. I'm interested to know how most philosophers would think about the nature of logical principles.


ConcurrentModificationException with ArrayLists and HashMaps

I've been having problems with a database functional dependency algorithm I have been developing. I am trying to calculate functional dependencies given the current level of the lattice and the list of column heads (not really relevant).  I am trying to iterate through a list of string headers, as well as looping through the characters of each string. Reasoning with this, I then use these values to remove a string from a List<String> value in a map. The Map has structure <String, List<String>> and I want to simply remove a value from the List<String> values of the HashMap. colHeads is a List<String>.  I am getting ConcurrentModificationException when I start to loop through the list:  for (String x: level) {         for (char a : x.toCharArray()) {             if (cPlusHash.get(x).contains(Character.toString(a))) {                 if (checkFD(Arrays.asList(x.replace("a", "")), Arrays.asList(Character.toString(a)))){                     fds.add(x.replace("a", "") +", "+ a );                       cPlusHash.remove(x, Character.toString(a));                        for (char j : x.toCharArray()) {                         if (colHeads.contains(Character.toString(j))) {                             colHeads.remove(Character.toString(j));                         }                     }                     for (String b : colHeads) {                         if (cPlusHash.get(x).contains(b)) {                             cPlusHash.remove(x, b);                         }                     }                 }             }         }   I am getting the error thrown on the first line of this snippet of code. I am confused as I'm not actually trying to modify the value of the List I'm iterating through.


Who fixes issue reports of Stack Exchange?

There are moderators who apply a "status tag" (also known as red tag) on questions tagged as bugs and feature-request, e.g. (, ,  etc.)  Are these moderators also the developers of Stack Exchange issue reporting system?


Let $M=S^2$ then the hairy ball theorem, states that there is no non-vanishing smooth tangent vector field on even-dimensional $n$-spheres. Hence, we can multiply any smooth vector field $v\in\Gamma(TS^2)$ by a function $f\in \mathcal{C}^\infty(S^2)$, which is zero everywhere except where v is, obtaining $fv=0$ despite $f\neq 0$ and $v\neq 0$. Therefore, there is no set of linearly independent vector fields on $S^2$ over $C^{\infty}(S^2)$-module. I think the same argument goes for the vector space over an algebraic field $K$. Moreover we can not express all the vector field as $g = fv$ where $f \in K \text{ and }v,g \in \Gamma(TS^2)$. If I am right does there exist any basis for vector space over the sphere?


I have been trying to create a transparent lens using the eevee rendering engine in 2.8 but the transparency slider has no effect. Has this feature not been implemented yet? I've looked all over the Web for an answer with no luck. I'm a noobee so am probably doing something wrong.


Following an online tutorial that uses an object named "icosahedron" from Add > Mesh > Regular Solids > Archimedean > Icosahedron. This object is not available in my version of Blender (2.74). Presenter asks me to include an add-on named "Add Mesh: Regular Solids", which again is not listed in my User Preferences dialog. What can I do about it?


What does rm -rf do when used to remove files or directories?  How do the -r and -f options work together?


What equipment is necessary/preferred for real estate photography?

What equipment is necessary for real estate photography, and what is preferred?  I'm starting into real estate photography, and I'm trying to figure out what I need and what I will want to plan on adding to my kit as I go.  I'm thinking especially along the lines of lighting equipment and lenses (focal lengths).  For example, is an ultra-wide actually necessary? Or is a general walk around sufficient.


I am trying to load a layer after its creation, by using runadload(), but I am getting the error: AttributeError: module 'processing' has no attribute 'runandload'.  Here's the partial script:  processing.runandload("native:saveselectedfeatures", {         'INPUT':boundary_layer,         'OUTPUT':'memory:'})   I am on QGIS3.4 Mac version and the processing version is 2.12.99. I tested the same script on QGIS3.6 to no avail. Is it that runandload() has been replaced in version 3, and if yes, what is the substitute?


what is f option means when using with fgrep

I came across this line of coding of previous developer's script and do not understand.  Could anyone please tell me what it means?  fgrep -f ${OLD_LOG} ${NEW_LOG} > ${SAME_FILE} 2>&1


Does it make sense to interact 2 dummy variables?

I am running a logistic regression, where the dependent variable is marital status. And I assume that educated women are different from women with e.g. high school degree and are less likely to marry. Does it make sense to interact 2 binary variables? I remember that we usually interacted a continuous and a binary variable, that is why I am hesitating to include this interaction and how to interpret it. Please help.


Can I use Stack Exchange logos on a t-shirt or other apparel?

I happened to notice while on the Super User site that one user's picture shows him wearing a shirt with the Super User logo on it. Interested, I wanted to find out where he got it from. Looking through old questions on Meta, I found out that there used to be a shop.stackexchange.com site that sold Stack Exchange gear. Unfortunately, they no longer sell any merchandise.  Is there any site where I can purchase a Stack Exchange site shirt/hat/etc.? If not, could I create a shirt/hat/etc. myself with one of the sites' logos on it? If so, where can I locate the logos in their largest size?


How to sum $\sum_{x=0}^{N-1} \cos{\left( \frac{2\pi x}{N} \right)}^{2}$?

I've tried solving it, but I'm not familiar with these kind of progressions and I couldn't get to a result. Also, I've found that the result is just $N/2$, but I don't get why would that be the answer, as it doesn't work for $N=1$ or $N=2$. Appreciate your help :)


A variational problem with a lagrangian , what is the lagrangian?

given the 2 PDE  $$ \Delta u-au_{tt}+u_{t}=0$$  and $$ \Delta u + Du*Df=0 $$  here $ \Delta u $ is the Laplacian $ Du= grad(u) $ is the gradient and * means scalar product $u_{t} = \frac{\partial u}{\partial t}$  my doubt is what term should i include to get the linear part of the equations $ u_{t} $ and $Du*Df $ from the Euler Lagrange equations in $ R^{n} $ thanks


A trivial correction to my currently-under-review paper - What to do?

I have several small corrections to apply to a paper which is currently under review. The errors are - as far as I can say - not very significant. There is a citation which it would be good to include, but maybe is not crucial (I only recently discovered a paper which deals with a somewhat related problem), plus a number of typos that I recently discovered.  What is the correct way to proceed? Should I update the paper and send the corrected version to the publisher, or would it be better to wait for the referee reports and apply these corrections together with the ones the referees request? Or have I lost my chance to correct the paper when I sent it for publication, and have to accept that I can't apply the corrections I want?   There is a  where the accepted suggestion is to send in the corrections; however that is a significantly more serious correction than in my case. My field is mathematics, if this matters.  Edit: This question is very similar to  with the slight difference that there they consider an error in a paper and worry about a possible rejection, and here I'm mostly concerned about modifying a paper in a way that (in my opinion) makes it better but not necessarily more correct.


ArcObjects - Create and Draw a Transparent Polygon

I'm trying to create a transparent Polygon in ArcMap; however, it's never transparent.  Here's the code I have.   // Create polygon IPolygon polygon = new PolygonClass(); // create & add points,......  // Create lineSymbol ISimpleLineSymbol lineSymbol = new SimpleLineSymbolClass(); // set color & style,....  // Create fillSymbol ISimpleFillSymbol fillSymbol = new SimpleFillSymbolClass(); fillSymbol.Outline = lineSymbol; fillSymbol.Color = //set to color red//; fillSymbol.Color.Transparent = 0; fillSymbol.Style = esriSimpleFillStyle.esriSFSSolid;  // Draw Shape myMap.DrawShape(polygon, fillSymbol);   RESULT ==> A solid red polygon is drawn.  The Transparent setting is ignored.  Thoughts?


Need help getting on windows and uninstalling ubuntu

Im using a Hp pavilion dm1 and I installed ubuntu using a usb stick because my laptop doesnt have a disk drive, I installed ubuntu on a new partition and chose to copy my files to it when installing. But when I looked through my documents I couldnt find any of my files. My firefox keeps freezing my laptop and its screwing me over. I cant get back onto windows 7 for some reason, ive tried many things.  Is there a way for me to uninstall ubuntu and get windows 7 back with all my files? Thanks!


How many chains are there in a finite power set?

Let $A$ be a finite set with $n$ elements. How many chains are there in $\mathcal P(A)$ -- that is, how many different subsets of $\mathcal P(A)$ are totally ordered by inclusion?  It's easy enough to count maximal chains; there are $n!$ of them. But counting all chains gets me into horrible inclusion-exclusion situations even if I try to do it by hand for small $n$.  Of course this is also the number of chains in a Boolean algebra with $2^n$ elements, or the number of chains in a finite lattice with $2^n$ elements.  By hand computation, the number of chains for $n$ running from $0$ to $6$ is $2, 4, 12, 52, 300, 2164, 18732$. This sequence appears to be unknown in OEIS.


One word for someone who always does what he loves

I am looking for one word to describe someone who always does what he loves.   Loving means enjoying something very much, free-spirited means not restrained by convention. Is there a hybrid word?   I mean a word that describes someone who is independent and always does what he loves. Please also try to not make the word too esoteric. Also, the word needs to be positive.  How will it be used?  I am submitting an application for college, and they require me to supply a word to describe myself. I have always done what I love. So, I require a word to describe someone who loves what they want. There is no sentence, in particular, just a prompt asking me to describe myself in one word.


How to write inline formula involving tilde sign

How to write following inline formula in LaTeX: r~[0,1]


In my astro class we are learning about red/blue-shifting and I was wondering how to related to stars. So if a star is moving in some direction, the light leaving the direction of motion would be blueshifted, while the light coming out the back of the star would be red-shifted. The problem is then, doesn't the light leaving in the direction of motion carry more momentum due to its lower wavelength. So we have an unbalanced situation. So shouldn't the star slow or even stop over time?  My intuitive guess is that it has something to do with the two different relative frames, one from the star and one from an external observer. That or something do with with the changing mass of the star? Like it really is slowing down but it is losing mass at the same time so it balances out.  Not really expecting an answer but just wondering where my thinking is wrong.


$(\mathbb{Q},+)$ isn't direct product of two non-trivial groups

I know that this has been posted before. I would like to know whether my argument is correct or not. I am presenting a new argument, so this question shouldn't be marked as duplicate.     Suppose that $Q \cong H \times K$ such that neither H or K is trivial. This is achieved through isomorphism $\psi : H \times K \rightarrow \mathbb{Q}$.   I claim that kernel $\psi = H\times \{0\}$. That is, if we assume that H is non-trivial.    Proof   $$\small\frac{p_{(h,k)}}{q_{(h,k)}} = \psi((h,k) = \psi( (h,0) + (0,k) ) = \psi((h,0)) + \psi((0,k)) = \frac{p_{(h,0)}}{q_{(h,0)}} + \frac{p_{(0,k)}}{q_{(0,k)}} = \frac{p_{(h,0)}q_{(0,k)} + p_{(0,k)}q_{(h,0)}} {q_{(h,0)}q_{(0,k)}} = 0$$  $p_{(h,k)} = p_{(h,0)}q_{(0,k)} + p_{(0,k)}q_{(h,0)} = 0$. This gives us $p_{(h,0)}q_{(0,k)} = -p_{(0,k)}q_{(h,0)}$. We can choose k such that $p_{(0,k)} = 0$. Therefore $p_{(h,0)}q_{(0,k)} = 0$ implies that $p_{(h,0)} = 0$. Therefore $H\times \{0\} \subset \operatorname{ker}(\psi)$ giving us a contradiction that $\psi$ is an isomorphism.


Why do I get "-eq: unary operator expected false"?

I get   $ ./5_divisible_by_1_to_10.sh  ./5_divisible_by_1_to_10.sh: line 16: [: -eq: unary operator expected  false true   for:  divisible_by () {   under_test=$1   from=2   to=4   divisible=0   for ((check=from; check<=to; check++)) {     if [ $(($under_test % $check)) -ne 0 ]; then       divisible=1     fi     }   return $divisible }  divider=10 x= divisible_by "$divider" if [ $x -eq 0 ]; then  # <--- Line 16   echo "$x true" else   echo "$x false" fi divider=12 if divisible_by $divider; then   echo "true" else   echo "false" fi   The second call for 12 works ok but the first call using 10, where I am trying to display the result gives the error.  Adding quotes around $x, i.e "$x" gives a different error:   $ ./5_divisible_by_1_to_10.sh  ./5_divisible_by_1_to_10.sh: line 16: [: : integer expression expected  false true


I want to write some LaTeX code and insert it in a snippet, so I used \lstset in my main code, like this:   \documentclass[11pt]{article} \usepackage{listings} \usepackage{color}  \lstset{ language=TeX,  backgroundcolor=\color{white},  basicstyle=\ttfamily,  breakatwhitespace=false,  breaklines=true,  captionpos=b,  commentstyle=\usefont{T1}{pcr}{m}{sl}\color{red},  deletekeywords={},  escapeinside={\%},  firstnumber=1,  frame=leftline, framerule=2.0pt, keywordstyle=[1]\color{red}\ttfamily\bfseries,  morekeywords=[1]{\documentclass},  keywordstyle=[2]\color{blue}\ttfamily,  morekeywords=[2]{\begin, \end},  keywordstyle=[3]\color{green}\ttfamily,  morekeywords=[3]{\item},  numbers=left,  numbersep=10pt,  numberstyle=\tiny\color{red},  rulecolor=\color{black},  showstringspaces=false,  showtabs=false,  stepnumber=2,  stringstyle=\color{green},  tabsize=2,  }   \begin{document} This is the snippet code: \lstinputlisting{demo_code.tex}  According to this code, for example, "documentclass" should look like  {\color{red}$\backslash$documentclass} instead of $\backslash${\color{red}{documentclass}}  Likewhise, "begin" should look like {\color{blue}$\backslash$begin} instead of $\backslash$\color{blue}{begin}  \end{document}   And this is the demo code inserted in the main code:  \documentclass[12pt]{article}  \begin{document}      \begin{itemize}         \item this is the first item         \item this is the second item         \item this is the third item     \end{itemize}  \end{document}   So, the problem is that I don't know how to insert in the keywordstyle,  commands with backslash symbol.


How can I download, install and open Anydesk? From the homepage of Anydesk to the Software Center of Ubuntu and installation / download everything is fine but then I couldn't open it.


I have a sum() function. I need to catch all overflow.  I searched website but didn't find a good way to do so.  So...any thoughts?


Reason for the inability of root to send a fatal signal to PID 1/init

Why can't root send a fatal signal to PID 1/init process (sudo kill -9 1)?  As stated .


Can Eevee utilise one than one GPU when rendering?   I've got a Mac pro 5.1 (Mojave) & have connected up 3xRX580 8GB GPU. Blender only uses one GPU when rendering, but DaVinci Resolve uses all 3 GPU to 100% (300%!) capacity.   Is there anything I can do to 'make' Blender 2.8 use the available GPUs?


Timestamping each line of a file with a date taken from the file itself


Suppose B = $B_1 \cup B_2. $ Show that $A \times B = (A \times B_1) \cup (A \times B_2)$.

Is it always true that    $(A_1 \cap A_2) \times (B_1 \cap B_2) = (A_1\times B_1) \cap (A_2 \times B_2)$ and $(A_1 \cup A_2) \times (B_1 \cup B_2) = (A_1 \times B_1) \cup (A_2 \times B_2)$?   **I've already showed the first part, just trying to prove true/false for parts a and b, thanks!


I'm trying to create a program that removes a given character from an array and then prints out the new array and whenever I print it out I get weird results like [I@120acab  public static int[] removeVal(int[] numArray, int val) {     int purge = 0;     int keep = 1;     int arrayVal = 0;     for (int item : numArray)     {         if(item == val)         purge = purge + 1;         else         keep = keep + 1;     }         int[] newArray = new int[keep];     for (int taco : numArray)     {         if(taco != val)             newArray[arrayVal] = taco;             arrayVal = arrayVal + 1;     }     return newArray; }


What's the lifespan of a file descriptor?

As described , redirections use open() to write to a file. There's an inner (?) file descriptor created in the shell, and then used when needed.  Is the inner descriptor created for the whole duration of the script or the shell lifetime? Is it destroyed after some time, a number of operations, etc?  I mean in particular file descriptors for the files that the shell itself opens for its builtins' operations. Is the descriptor created and the file opened for each operation? How long are they kept? Example:  #!/bin/bash >>x echo something ...do many other things not related to the file x >>x echo something more   Is the first descriptor instance kept until the second operation?  What about the shell I use in in a terminal? I sometimes keep one session open for days, maybe even weeks. Does it still keep the descriptors for all the files I operated on with shell built-ins?


A condition for $\hat f$ to be integrable

Let $f \in L^1 (\mathbb R^n)$. Suppose that $f$ is continuous at zero and that the fourier transform $\hat f$ of $f$ is non-negative. Does this imply that $\hat f \in L^1$ (and hence, by the inversion theorem, that $f$ is continuous)? If so, how could I go about proving it?


Let people accept a 100% correct answer without delay

Today I asked a question and someone kindly answered it after 2 minutes. It was a good and correct answer. I put it in my code and it did work.  Then I tried to accept it but system wants me to wait 10 minutes. I don't understand this delay for a situation like this, in which you know for sure the given answer is correct.  Maybe this delay should be removed. In this busy world many of us, when we see a correct answer, will just put in in our code and then leave it for good.   I believe the sooner we can reward the person who answered our question the better.


The Stack Imgur service is no longer resizing images correctly

I noticed at the start of August 2018 that new images like https://i.stack.imgur.com/MJrvX.png no longer resize when an m is placed before .png.   Original image: https://i.stack.imgur.com/MJrvX.png Auto shrunk by page formated to about 609 pixels (desktop), but still full size.  l suffix: https://i.stack.imgur.com/MJrvXl.png . ~~ FAILS ~~  m suffix: https://i.stack.imgur.com/MJrvXm.png . ~~ FAILS ~~  t suffix: . ~~ FAILS ~~  s suffix: . But notice that image displayed is from the middle of the original image, where there is no detail -- ~~ FAILS ~~    Additional proof that this once worked on PNG images can be seen in:   Please restore this resizing functionality ASAP.


Adjective meaning "argumentative for argument's sake"?

Quite often, the phrase "x for x's sake" is used in English, and so one could describe someone as being "argumentative for argument's sake" to describe someone who is arguing for the sake of arguing.  However, is there an adjective that means the same thing?  For example, it could be used in the context:     I don't want to be [X], but [argument...]   ... indicating that your argument is necessary and not intended to irritate.


I ran the default install of CEntOS 6.5 on my machine a couple months ago and have since added programs and files which I don't want to get rid of. I'd like to dual boot Ubuntu 14.x and am wondering what to do with the /boot partition. The hard drive is currently partitioned like so:  sda: 256 GB SSD   sda1: /boot 500 MB sda2: /LVM physical volume ~237 GB   /root /home swap     My question is: Is it OK to share the /boot partition between distros? or do I need to have a separate /boot partition for Ubuntu? If so, is it necessary to put the /boot partition at the beginning of the drive?


How to fix bright pixels around light sources?

I'm working on a scene in blender and i have applied emission to a plane as main light source(which is located on the right hand side) and also emission coming from the tip of the candle light object. However when i render it i get these orange dots around the candle emission as you can see in the image. I have tried to up the sampling but they are always there. Any ways to fix this?


Last of element of list is being truncated in python?

!curlhttps://raw.githubusercontent.com/MicrosoftLearning/intropython/master/elements1_20.txt -o elements1_20.txt elements = open('elements1_20.txt', 'r') elements_lines = elements.readlines()  count = 0  for line in elements_lines:     elements_lines[count] = line[:-1].lower()     count += 1  print(elements_lines)  ['hydrogen', 'helium', 'lithium', 'beryllium', 'boron', 'carbon', 'nitrogen', 'oxygen', 'fluorine', 'neon', 'sodium', 'magnesium', 'aluminum', 'silicon', 'phosphorus', 'sulfur', 'chlorine', 'argon', 'potassium', 'calciu']   As you can see the last element of list is not showing in full? can somebody help me to do so.


Struggling to install package via apt-get or Ubuntu Software Center

OS: ubuntu 14.04 LTS $ uname -a Linux egorov 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux  My goal: To install libass-dev package via apt-get or Software Center Problem description: When I try $ sudo apt-get install libass-dev  I'm getting Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  libass-dev : Depends: libfreetype6-dev but it is not going to be installed               Depends: libfontconfig1-dev but it is not going to be installed E: Unable to correct problems, you have held broken packages.  When I try "Ubuntu Software Center" -> "libass-dev" -> "install" following error appears:  This is not the only package with such problems. MB smth wrong with my app repo. I tried: sudo apt-get autoclean sudo dpkg --configure -a sudo apt-get install -f sudo apt-get -u dist-upgrade  and some similar advices but none of them helped.


How to remove/hide elements from the admin menu?

I would like to hide Pages and Comments from the editor.  I tried to override them with my custom types' menu_position but it doesn't work in WordPress 3.7.1 any more.  I found another way: removing the entries from admin menu by altering the global $menu variable on menu_order filter. Unfortunately it produces errors in menu.php: array_flip() gets passed a null.  I'm guessing that WordPress assumes that default values are still there.  Is there some way of filtering the menu entries when they are rendered? Even better: is there a way of setting the default post types public option to false?  class RemoveAdminMenuItems {  /**  * List of values used for key identification  *   * @var array  */ public $remove_keys = array();  /**  * List of values used for key identification. Identified keys will be removed.  *   * @param array $remove_keys  */ public function __construct($remove_keys) {      $this->remove_keys = $remove_keys;      add_filter( 'custom_menu_order', '__return_true' );     add_filter( 'menu_order', array($this, 'reconstruct_menu'));  }  /**  * Method modifies the admin menu before it gets rendered.  *   * @global array $menu  */ public function reconstruct_menu() {      global $menu;      foreach ($menu as $menu_key => $menu_value) {         foreach ($this->remove_keys as $remove_key) {             $key = array_search($remove_key, $menu_value);             if ($key) {                 unset($menu[$menu_key]);             }                 }     }  }   }


How to set default value for a select in lwc

Regarding the following code:   <div class="slds-select_container" title={line.record.Order_Line_Status__c}>     <select class="slds-select" value={line.record.Order_Line_Status__c}>         <option value ="Awaiting Invoice">Awaiting Invoice</option>         <option value ="Invoiced/Awating Payment">Invoiced/Awating Payment</option>         <option value="Payment Received">Payment Received</option>         <option value="Cancelled">Cancelled</option>     </select> </div>   lwc doesn't allow me to set the value attribute on select, like react does. So I am wondering how should I be setting a default value on a select in lwc?


How to install Rigs Of Rods on Ubuntu 14.04?

How do I install Rigs of Rods on Ubuntu 14.04? I do not want to use wine, but when trying to install from the PPA, it said the package was not found.


Should a new 64GB USB Flash drive have 64,000,000,000 bytes available and does it slowly decrease this number over time? (internal maintenance, etc)

First regular Hard Drives (spinning disks):  When looking details of a brand new hard drives, I've noticed that the available space usually ends with xxx,000,000,000  For example, a 750 GB drive is usually at least 750,000,000,000 bytes.  Maybe a few extra bytes.  In other words, 750*1000*1000*1000  (not 1024 multiples).  The operating system calculates by dividing by 1024 multiple times. Upon dividing 750,000,000,000 bytes by 1024 ^ 3  the result is 698.49 GB (which is what I would expect my Operating system to display as the actual size of the drive due to this "1024 based sizing math").  Now onto USB Flash drives:  So, when I connect a brand new USB flash drive should I also correctly expect to see (in the case of a 64 GB size) 64,000,000,000 bytes for the overall size of the drive? (on a couple brand new flash drives I'm seeing considerably less which is why I'm asking this question)  Regarding internal USB flash drive maintenance:  Over time, when you use a flash based storage device, I've come to the understanding the drive will do internal maintenance (wear leveling, etc).  But, I'm trying to determine if the extent of missing sectors that I'm seeing is normal on a couple of brand new flash drives.  One is missing over 700 MB and the other is missing over 5.2 GB    Does that mean that the overall amount of sectors available to the Operating system or partitioning tools shrinks over time as sectors are removed from availability (due to being marked bad, etc)?  BACKGROUND:  When discussing storage space size, many people instantly assume the 1024 vs 1000 based math for calculating size is the question at hand (it is not). I realize for the Operating system to report 64GB  that would mean the drive actually would need to have 64 * 1024 * 1024 * 1024 = 68,719,476,736 bytes  so that when you divide by 1024 three times you get back to the number "64" GB. And that is not what the manufacturers do.     In Summary:  Note: Referring to the raw storage capacity of the drive; disregarding MFT, file system overhead, etc...   RAW sectors and therefore raw bytes available to the device...  The main questions are:   For a USB Flash drive, would you expect at least 64,000,000,000 bytes (125,000,000 sectors * 512 = 64,000,000,000) to be the size of the drive (as displayed in Windows Disk Management, or Linux Gparted, etc). Also, does the total amount permanently shrink over time through normal use (drive maintenance)?


Below I run what I expected to be an invalid command: var=3 date, which in fact isn't.  $ var=3 date Sun May 26 17:10:22 UTC 2019 $ echo $? 0   But the variable wasn't assigned the value 3:  $ echo $var  $   I expected to say that var=3 wasn't a valid command. What am I missing?


CheckBox .isChecked() not accessing code

I'm using a checkbox on an activity to determine what List needs to have the object added to it.  Intent i = getIntent(); String intentFlag = i.getStringExtra("flag");  if(listFlag.isChecked() && intentFlag == "main"){     newProduct.put("shoppingList", true);     newProduct.put("mainList", true); } else if (listFlag.isChecked() && intentFlag == "shoppingList"){     newProduct.put("mainList", true);     newProduct.put("shoppingList", true); } else if (!listFlag.isChecked() && intentFlag == "main"){     newProduct.put("mainList", true);     newProduct.put("shoppingList", false); } else if (!listFlag.isChecked() && intentFlag == "shoppingList"){     newProduct.put("mainList", false);     newProduct.put("shoppingList", true); }   At the moment, the only intentFlag that can be returned from the Intent is "main", however, code within the IF statement is never reached. Looking at the Debug, it's returning "main"  Am I doing something obviously wrong?


Find occurrences of characters in a Java String

I would like to count the occurrences of a character in a string, suppose I have the string "aaaab", how would i count the amount of a's in it?


Is it correct to say "The carpenter will bring a hammer and be able to use it."

I'm sorry about the title - I'm not sure which rules of grammar apply to this question.   I'm trying to decide the correctness of the following sentences.     1) The carpenter will bring a hammer and be able to use it.   2) The carpenter will bring a hammer and will be able to use it.     Sentence 1) looks like it could be parsed incorrectly as:      The carpenter will bring [a hammer] and the carpenter will bring [be   able to use it].   Sentence 2) could suffer from a similar parsing error.  Is either sentence grammatically correct, in that the sentence parses to the following?     The carpenter will bring a hammer and the carpenter will be able to use the hammer.


Looking for a way to notify users the list of packages to be updated

I understand /usr/lib/update-notifier/update-motd-updates-available shows the number of packages that needs to be updated but I am looking for a way that shows me the list of all the packages.


SQL query to get Rows values to a column

I am looking for a SQL query to get sql row data to a column.   SQL Table Data  CustomerId     Name             Type        FoodName =============   =============   =========   ========== C0001           Thomas          BREAKFAST   Milk C0001           Thomas          BREAKFAST   Bread C0001           Thomas          BREAKFAST   Egg C0001           Thomas          LUNCH       Rice C0001           Thomas          LUNCH       Fish Curry C0001           Thomas          LUNCH       Lessy C0002           JOSEPH          BREAKFAST   Bread C0002           JOSEPH          BREAKFAST   Jam C0002           JOSEPH          BREAKFAST   Tea   The above is the SQL Table Data and I need this data in following format. Can anybody help me to create a SQL Qyery to get below output ?  CustomerId      Name            BREAKFAST           LUNCH    ============    =============   ================    ==========  C0001           Thomas          Milk, Bread, Egg    Rice, Fish Curry, Lessy  C0002           JOSEPH          Tea,Bread, Jam   Please help me to create SQL Query to get the above output.  I Tried the following query  with DietList(CustomerId,Name,BREAKFAST, DINNER) as ( select distinct CustomerId 'CustomerId', Name as 'Name' ,(     select a.foodName + ',' as [text()] from      (select AdmnNo,foodName from DietCard) as a          where c.CustomerId = a.CustomerId and c.DietSchedule = 'BREAKFAST' and  convert(varchar, [c.ScheduleDate], 112) = '20180402'      for xml path('')         ) 'EVENINGTEA' from DietCard  ) ,(     select a.foodName + ',' as [text()] from      (select AdmnNo,foodName from DietCard) as a          where c.CustomerId = a.CustomerId and c.DietSchedule = 'DINNER' and  convert(varchar, [c.ScheduleDate], 112) = '20180402'      for xml path('')         ) 'DINNER' from DietCard  ) select * from DietListList where BREAKFAST is not null or DINNER is not null   Thanks in Advance.


I'm not sure how this is a duplicate of anything that was mentioned.  The script I'm trying to run needs Sudo to work, none of the answers say anything about getting a script that needs "super user" privelages to run at startup.  None of the answers have worked so far, I think Upstart would need my password in it somewhere to run the sh.  I'm trying to run a sudo sh at startup, none of these methods seem to work.  I tried adding   sudo //usr/local/include/temp_throttle.sh 80   to Startup Applications. It doesn't run or even ask for password.  I tried   gksudo //usr/local/include/temp_throttle.sh 80   to Startup Applications. It pops up asking for a Password for almost half a second then dissappears but doesn't run.  I tried making a .desktop file and tested it, it runs it but not in sudo so it doesn't work.  Just tried putting my .sh in /etc/init.d/ and used update-rc.d. It runs the script at startup but without sudo privlages so it doesn't work.  I'm not sure what to do to make this work.  Note, Upstart is installed and working but will not launch this script properly.


There are many discussions over how to align multiple align environments with interspersed texts. However, I want to label multiple aligned blocks such that each number will center vertically for each aligned blocks and at the same time align across blocks.  Here is a MWE that achieves either at one time. The first part simply uses one giant align environment with some \nonumber directive. The second one use equation to wrap aligned but lose alignment info. How should I achieve the best of both worlds?  \documentclass{article} \usepackage{amsmath} \begin{document}   % Part I   \begin{align}           x^2 + y^2 &= 1 \\                 z^2 &= 0 \nonumber \\     x^2 + y^2 + z^2 &= 1   \end{align}    % Part II   \begin{equation}     \begin{aligned}       x^2 + y^2 &= 1 \\             z^2 &= 0 \\     \end{aligned}   \end{equation}   \begin{equation}     \begin{aligned}       x^2 + y^2 + z^2 &= 1     \end{aligned}   \end{equation} \end{document}


If $b \in \mathbb F$, then $\{(x_1, x_2, x_3, x_4) \in \mathbb F^4: x_3 = 5x_4 + b\}$ is subspace of $\mathbb F^4$

If $b \in \mathbb F$, then $U = \{(x_1, x_2, x_3, x_4) \in \mathbb F^4: x_3 = 5x_4 + b\}$ is subspace of $ \mathbb F^4 \iff b = 0$.  I know the thread "" already exists. I tried slightly different approach and only in one direction, but unsure if that qualifies as a proof of the direction:  Suppose $u = (x_1, x_2, 5x_4, x_4)$ and $v = (y_1, y_2, 5y_4, y_4) \in U$. Let $a \in \mathbb F$. Then $a(u + v)  = (a(x_1 + y_1) + a(x_2 + y_2) + 5a(x_4 + y_4) + a(x_4 + y_4))$. So, $a(u + v) \in U$ Since $a \in U$, scalar $0 \in U$. Then $0(u + v) = 0$, so then the vector $0 \in U$.  Des this method work? Thanks.


Ubuntu 20.04 nordvpn installation problem

I try to install nordvpn on ubuntu 20.04 but it keeps showing me something like this luzw@PL005029:~$ sudo apt install nordvpn [sudo] password for luzw:  Reading package lists... Done Building dependency tree        Reading state information... Done The following NEW packages will be installed   nordvpn 0 to upgrade, 1 to newly install, 0 to remove and 71 not to upgrade. 6 not fully installed or removed. Need to get 0 B/13,8 MB of archives. After this operation, 42,6 MB of additional disk space will be used. debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable Setting up dash (0.5.10.2-6) ... debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable dpkg: error processing package dash (--configure):  installed dash package post-installation script subprocess returned error exit status 1 Errors were encountered while processing:  dash E: Sub-process /usr/bin/dpkg returned an error code (1) luzw@PL005029:~$   Does anyone know how to fix it?


In the spirit of a free-form Friday on StackOverflow, I'd like to know if I should consider learning ConTeXt.  What got me into LaTeX way back in 1994 was having structural markup that made longer documents easier to write.  What got me into XeTeX was being able to use my Mac's fonts just like I could in a word processor.  What makes ConTeXt users passionate about it or at least willing to forsake LaTeX?  Edit: Thanks for all the answers and great discussion in the comments.  The whole page deserves a green check.  Success! I am now interested in ConTeXt.


What is the difference between a field and a column?

Although I have always regarded the terms as interchangeable, I have read somewhere that they’re not the same. I suppose this means that a record is not exactly the same as a row either.  I teach that the main difference is how you visualise the data — it is a column if you think of a table, but a field if you think of a form.  What is the real difference between them, and to what extent does it matter?  Thanks


measurability of supremum of a class of functions

Let $f:X\times Y \mapsto R$ be a measurable function on product space $X\times Y$, where $X$ and $Y$ both are some metric spaces. Define $g(x) := \sup_{y\in Y} f(x,y)$.   [Q.] Is $g$ a measurable function on $X$? If not, what is the sufficient condition to be measurable?


In R (nlme/lme4), how do I compare two linear models with different sample sizes and different groups?

First off, I have a dataset with sparse longitudinal data. There are 30 individuals with 1 sample, 30 individuals with 2 samples, and 5 individuals with 3 samples. Various categorical variables are known for each individual and I want to see if these variables are correlated with a drug level (a continuous variable). Let's just focus on one categorical variable: homelessness. The main issue is that the number of people who are homeless is not equal to those who are not so I cannot perform a simple wilcoxon signed rank test or most other paired tests. As a result, I generated a linear model to see the relationship between homelessness and the drug levels using a random slope/intercept for each individual and another for those who are not homeless. Of course, if I just perform an ANOVA(linearmodel1, linearmodel2) I get the result:  "all fitted objects must use the same number of observations".  Edit:   As pointed in comment by @Roland (see link below in comments), one approach is to combine the data and make 2 models: 1 with the variable homelessness and 1 without. Using polynomial regression this can be done with:  ###Create some example data mydata1 <- subset(iris, Species == "setosa", select = c(Sepal.Length, Sepal.Width)) mydata2 <- subset(iris, Species == "virginica", select = c(Sepal.Length, Sepal.Width))  #add a grouping variable mydata1$g <- "a" mydata2$g <- "b"  #combine the datasets mydata <- rbind(mydata1, mydata2)  #model without grouping variable fit0 <- lm(Sepal.Width ~ poly(Sepal.Length, 2), data = mydata)  ###model with grouping variable fit1 <- lm(Sepal.Width ~ poly(Sepal.Length, 2) * g, data = mydata)  #Compare models anova(fit0, fit1) enter code here  #But this doesnt work in nlme fit1 <- lme(Sepal.Width ~ Sepal.Length * g, data=mydata) #It throws an error: "invalid formula for groups"  ######Not sure if this is the correct way ###nlme #model without grouping variable model0 = gls(Sepal.Width ~ Sepal.Length,data=mydata) #model with grouping variable model1 = lme(Sepal.Width ~ Sepal.Length ,random = ~1|g,data=mydata) anova(model0,model1) ###lme4 #model without grouping variable fm0 <- lm(Div ~ TimeRaw,ddmerged) #model with grouping variable fm1 <- lmer(Sepal.Width ~ Sepal.Length+(1|g),mydata, REML=FALSE) anova(fm0,fm1)   But how do I create two models with and without a specific group using nlme/lme4?  Thanks in advance


Decrease size of display used in Macbook Pro

The screen of my Macbook pro cracked from the bottom left, and vertical + horizontal lines appeared. While waiting to repair it, is there any way to decrease the used space from the display to fit only in the non-damaged area? For example 90% width (right to left), 90% height (top to bottom).


I'm new to programming. First, the following is my code:  x = 11  def f():     x = 22     print(x)     class C:         print(x)  f()   I got three printed results, "22 22", as output. When I changed my code like this:  x = 11  def f():     x = 22     print(x)     class C:         print(x)         x = 33         print(x)  f()   I got "22 11 33" instead of what I'm expecting: "22 22 33".  It seems like when I add a local x in the nested class, the order of variable searching is changed. I believe there's some tricks about scopes that I don't know yet. Can anyone explain this to me?


Here is the question      Prove that the set of limit points of a set is closed.   I'm not even understand the question fully.  Is question meaning  $\{E= {N_\epsilon(p) }\}$? if you said $p$ is the limit point?  How do you approach this question?


Can I load ActiveRecord-Objects in predetermined ordering?

Is it possible to construct a scope like this  User.where(:id => [5,4,3,2,7,1000] )   in a way, that  a) the results are in the order of the ids passed. (This is the simple part, since you can just load the records, and sort the result accordingly)  b) the result is not an array but a scope in itself (The tricky part ;)  Update: Solutions that only work on MySQL are welcome.


Where is the network data is stored on linux system?

is there a way I can find information about my wifi connections? Which networks I was connected to and when? I had tried to look for this information under proc/net but found nothing. (To be more specific I want to find this information on my android device.)


At this point, when starting with new implementations is it better to go with Lightning Framework for UI and better UX, or to continue with Visualforce based UIs?