A cyclic inequality $\sum\limits_{cyc}{\sqrt{3x+\frac{1}{y}}}\geqslant 6$

Given positive real numbers $x,y,z$ satisfying $x+y+z=3$, prove that $$ \sqrt{3x+\frac{1}{y}}+\sqrt{3y+\frac{1}{z}}+\sqrt{3z+\frac{1}{x}}\geqslant 6. $$


I have decided to switch from Powerpoint to Beamer, and for my first presentation I'd like to use the , and the same colors as in this goggle slide template:  .  I tried to do some research about it, the closest answers I found are the question  and the . I tried this code:  \documentclass{beamer} \usepackage[frenchb]{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc}  \usetheme{metropolis}  \definecolor{bluegreen}{rgb}{3, 166, 155} \definecolor{pitchblack}{rgb}{0, 0, 0} \definecolor{lightbeige}{rgb}{255, 251, 241} \definecolor{mediumgray}{rgb}{183, 183, 183}  \setbeamercolor{background canvas}{bg=pitchblack} \setbeamercolor{normal text}{fg=lightbeige} \setbeamercolor{headline}{bg=bluegreen, fg=mediumgray}  \begin{document} \begin{frame}     \frametitle{The title}     Lorem ipsum... \end{frame} \end{document}   I does everything I want, except that the title bar's background color is lightbeige:    What did I do wrong? Or what argument should I pass to \setbeamercolor to get it right? Thanks in advance :-).


I am having a problem with Blender since I started using it: when I have a solid object (for example a cube) I cannot zoom in inside the surface; when I zoom in after the zoom reaches the surface it continues zooming in into the surface, but it never penetrates it. The only way to see inside the geometry is placing the camera inside and select the camera view. This problem happens equally in object and edit mode.   Please note that my problem is not that the zoom cannot get any further, but rather that I cannot penetrate to enter the inside of a closed solid (like a cube). This is something very common, particularly in architectural design, where you often start with a cube and the scene happens inside the cube.  Of course this problem is in no way a deal breaker for I can always place the camera in the right position and view through it, but that is rather limiting for I cannot get any other angle of the interior of my geometry than the camera angle; and besides it would be handy to be able to zoom in into the geometry before I set any camera; even to navigate to the adequate view and then set camera to view. I know this is possible for I see all the time in tutorials as a thing so basic that no explanation is required.  Can anybody help?  Thanks!  Sept


Using Align environment with partial numbering

The following will produce 3 lines numbered (1), (2) and (3) on the right: \begin{align} x = 1\\ y = 1\\  z = x + y     \end{align}  while using \begin{align*} ... \end{align*} will produce the same lines without numbers. What if I want to produce the same three lines but with only the last one numbered, or only the first and second lines numbered, etc ?


Should I write my comment as an answer if it appears to be true answer?

I know comments are for getting details about question and so but some questions have little answer like "you forgot to put a ',' in here". When i wrote this and then it solves the problem should i write my comment as an answer to get reputation. I mean I  know Stackoverflow isn't just for getting reputation. I don't think i should do this, its just +15 eventually, and this site is not Facebook, people shouldn't be answering question for reputation. I just wanted to ask for future, since I'm new to this community.


How can I find the answer to $\varphi(2^{400} + 2)$?

How can I find the answer to $\varphi(2^{400} + 2)$ ?  So far I have $\varphi(2^{400}) = 2^{400} - 2^{399} = 2^{399}(2 - 1) = 2^{399}$ I'm guessing the answer will be in the form of an exponent like this  But I do not know how to use the added $2$ in the original equation.  Any help is welcomed, thanks  EDIT: As pointed out in the comments, this may be possible to factor. Could it be factored into prime numbers and use the formula $\varphi(p^{k}) = p^{k}-p^{k-1}$ ?


I have a macOS 10.6.5 and am trying to upgrade it but don't know how to, what can I do?


I'm trying to execute something every week in my code... My code is below, and I need a function like "sleep_until(date)" if there is such function in Python. Please help me! import time import datetime from datetime import timedelta  while True:     dateFrom = datetime.datetime.now()     dateTo= dateFrom + timedelta(days=7)       ######################     # my code     ######################      time.sleep_until(dateTo)# Expected code


If I had an initial upwards velocity and thrusted upwards to exactly counter-act gravity at all times, would I eventually escape Earth's gravity?

If I understand it correctly, the escape velocity of a body is the velocity I would need to escape that body's gravity if I did not continuously thrust against its gravity.  So this question boils down to two things:  Is it possible to escape a body's gravity without reaching escape velocity, and if so will my scheme work?  Presuming instead that I'm not on Earth but am somewhere within the event horizon of a black hole, then everything I've read says that this wouldn't be possible once you cross the event horizon of a black hole, since "nothing can escape".  Is that right?  If the answer to question 1. is that the scheme would work, why are black holes special?


Heartbleed - Centos 6.5, Apache - should I recreate pair of default certificate and key

I am using Centos 6.5, Apache 2.2.15 with SSL. Due to heartbleed I have updated openssl to release 16.el6_5.7 and I have restarted the httpd service. I am using default Apache certificate and key:  */etc/pki/tls/certs/localhost.crt  /etc/pki/tls/private/localhost.key*   So my question is: after updating openssl should I create new pair of certificate and key or is it safe to use default?  Thank you.


Is there any shortcut for a boolean function in Python?

I know in PHP or Java you can do something like this  int usefulCharacters = text == null ? 0 : text.length();   So in Python i want to check if after using the filter(item,iterable) function and return true if item is appeared in the iterable:  Note: valid_indices is in rdd format so i have to convert it into a list so it will be iterable  is_index1 = (filter(index_md5,valid_indices.collect()) ? true:false)   Seems like Python doesn't like the "?" syntax though. Please advise, i'm learning Python and thank you!


sigma is unknown, so it must be estimated by using sigma approximately equals (1/4) * (range)

Suppose you want to estimate the average age of all Boeing 737-300 airplanes now in active domestic U.S. service. You want to be 95% confident, and you want your estimate to be within one year of the actual figure. The 737-300 was first placed in service about 24 years ago, but you believe that no active 737-300s in the U.S. domestic fleet are more than 20 years old. How large of a sample should you take?  Solution says that E = 1 year, the z value for 95% is 1.96, and s is unknown, so it must be estimated by using s approximately equals to (1/4) * (range). As the range of ages is 0 to 20 years, s = (1/4)(20) = 5.


running a bash file states:date: command not found

I've installed a version of Ubuntu Server and although I'm fairly still fresh with Ubuntu, I'm trying to create a bash file to run a program in the background. More importantly, I'm trying to get a file nameto display correct and create it before I start running the program (I like my debug stuff).  However, here is my bash script:    #!/bin/bash  PATH="/var/log/servers/Game/"  FILENAME="startup"  EXT=".log"  DATE=$(date +%d-%m-%Y)  NEWFILE=${PATH}${FILENAME}_${DATE}${EXT}   I have verified that the file does exist in the PATH directory. However, the issue is with the date command. When I run the script bash -x game.sh this is what is displays.   + PATH=/var/log/servers/Game/  + FILENAME=startup  + EXT=.log  ++ date +%d-%m-%Y  game.sh: line 5: date: command not found  + DATE=  + NEWFILE=/var/log/servers/Game/startup_.log  + echo /var/log/servers/Game/startup_.log   I don't understand why it would say the command doesn't work, when I can go to the main console and run date and get a valid response.  Any help is greatly appreciated!


If $f(x)$ is a polynomial such that if $y \in\mathbb{Z}$, then $f(y)\in\mathbb{Z}$, show that there exist $n$ such that $n!f(x)\in\mathbb{Z}[x]$


Should the currently selected item in a combo/dropdown box also be included in the list of choices?

For example, you have a combo box which contains 10 elements including the one that is currently selected. When you prompt to drop down the list to choose another, should the currently selected item also be in this list?


How did Cooper Station sustain agriculture?

The Cooper Station is able to sustain a healthy atmosphere and crops.   The fundamental motivation to get humanity out of Earth in Interstellar is the blight induced hunger. Moreover, in the movie they show a NASA lab where the corn is being infected with blight and they seem to have no way to stop it. It seems to me that whatever technology they used to achieve this result in Cooper Station would effectively resolve the plot.  Do we know how they achieved a healthy atmosphere and crops and why this couldn't be done on Earth?


Python2: List splitting syntax - tail of a list

Why does sequence[1:0] return an empty list when sequence[1:] or sequence[1:n] (where n >= sequence length) returns the tail of the list successfully?  I'm pretty sure it's to do with the way that python iterates over the loop, but I can't fathom why it wouldn't work, considering it works for numbers less than zero.  Example:  >>> l = [1,2,3,4] >>> l[1:] [2,3,4] >>> l[1:100] [2,3,4] >>> l[1:0] [] >>> l[1:0:1] [] >>> l[1:-2] [2]


Can I use plural nouns after any in the following sentences?   1- We don't have any options except to go there.   2- I don't have any friends except John.   3- I didn't meet any officers except him.


Rules for removing last vowel when adding "-able"?

Possible Duplicate:          Both are correct for these words:        But these words are incorrect:            Are there rules for this?  The case for keeping the "e" seems to be that the "ga" in "acknowledgable" would be read as "gall" rather than "germ", but "minglable" shouldn't cause that problem.  I'm also not sure why we couldn't keep the "e" in words like "storable" or "makable".


How to organize the JavaScript Code in ASP.NET MVC applications

We are to add some Ajax functions on a view page. Say, click a delete or insert button and an Action will be called to perform a CRUD job behind the scene and then refresh the items list after that operation.  In many existing examples, the javascript code is embeded in the view page within the <script> tag. Since there are usually many functions that one view may need. Say, when insert a record, there will be function to collect the form data, validate the data (this part can be very long), and call the action by $.ajax(). For this reason, we are thinking about place all those javascript into a separate .js file.  So, what is the professional practice in this? Should we place the .js files under the same folder with its Views? Or should be place all of them into the Script folder and reference from there?   Should we create seperate .js files for each individual view or combine all the .js files for different views into a large file?  Also, we love how we can group C# code using #region so as to collapse. Is there anything similar in JavaScript? It just grows lengthy too easily.  Thank you for any helpful advice.


Remove empty elements from an array in Javascript

How do I remove empty elements from an array in JavaScript?   Is there a straightforward way, or do I need to loop through it and remove them manually?


Does tea stay hotter with the milk in it?

A little thought experiment, similar to : Imagine you are making a cup of tea when the door bell rings. You've poured the boiling water into a cup with a teabag in it. As you're just about to pour milk in to the mix, the door bell rings.  My question is: what will keep the resulting drink hottest after my chat with the person at the door: quickly pouring the milk in, or leaving it in the carton until after the interruption ends?  Being a bit of a mathematician I'm happy to have the questions answered with a formula in terms of $t$ the length of the interruption, $m$, the temperature of the cold milk, $w$ the temperature of the hot water, $a$ the ambient temperature etc. I guess you'll have to use a model of how an insulated body loses/gains heat... feel free to use simplifying assumptions like the environment stays the same temperature etc.  My starting point from a physics point of view, is that heat is lost (or gained) proportional to the temperature difference between the object and the environment. So I imagine that would create some sort of exponential curve?


Integration of $\int\sqrt{\tan\theta} \cdot d\theta$ is what.  I have tried to substitute $\tan\theta$ as $t$ but to no avail.  I do not know how to proceed. Please help.


Is my random variable discrete or continuous?

Suppose I have a discrete set of (finite) data (values are only positive integers) (which always remains discrete whenever the observation/survey is taken), divided into some identical categories . Now, I want to calculate the mean values of some random variable for each category, hence getting a sequence of mean values. Considering mean as a random variable (let's call it $M$), it's taking decimal values also (obviously possible). But I am not sure if $M$ is a discrete or a continuous random variable.   My intuition suggest me that it should be discrete. Since, my original data from which I calculated the sets of mean is discrete so the mean can take finitely many values which I suppose is not the case with a continuous random variable where the mean can take infinitely many values within an interval. So is my intuition right or wrong?  Is it true that a discrete random variable takes finitely many values and continuous R.V. can take infinitely many possible values?


What is a simple example of an unprovable statement?

Most of the systems mathematicians are interested in are consistent, which means, by Gödel's incompleteness theorems, that there must be unprovable statements.  I've seen a simple natural language statement here and elsewhere that's supposed to illustrate this: "I am not a provable statement." which leads to a paradox if false and logical disconnect if true (i.e. logic doesn't work to prove it by definition). Like this answer explains: .  The natural language statement is simple enough for people to get why there's a problem here. But Gödel's incompleteness theorems show that similar statements exist within mathematical systems.  My question then is, are there a simple unprovable statements, that would seem intuitively true to the layperson, or is intuitively unprovable, to illustrate the same concept in, say, integer arithmetic or algebra?  My understanding is that the continuum hypothesis is an example of an unprovable statement in Zermelo-Fraenkel set theory, but that's not really simple or intuitive.  Can someone give a good example you can point to and say "That's what Gödel's incompleteness theorems are talking about"? Or is this just something that is fundamentally hard to show mathematically?  Update: There are some fantastic answers here that are certainly accessible. It will be difficult to pick a "right" one.  Originally I was hoping for something a high school student could understand, without having to explain axiomatic set theory, or Peano Arithmetic, or countable versus uncountable, or non-euclidean geometry. But the impression I am getting is that in a sufficiently well developed mathematical system, mathematician's have plumbed the depths of it to the point where potentially unprovable statements either remain as conjecture and are therefore hard to grasp by nature (because very smart people are stumped by them), or, once shown to be unprovable, become axiomatic in some new system or branch of systems.


How to send stderr to stdout with a pipe to another command?

I'm trying to capture all of the output of a build operation, and send it to myprogram. I seem to only be able to capture part of it. This is what I'm trying:  make clean && make DISABLE_ID3TAG=1 CFLAGS="-O2 -DNDEBUG -W64" | myprogram &2 > 1   I also tried:  make clean && make DISABLE_ID3TAG=1 CFLAGS="-O2 -DNDEBUG -W64" &2 > 1 | myprogram   Basically I want to send everything to stdout and then do something with that. Currently I'm only capturing part of the output, and the other part is going to the screen. How can I pipe everything to another program?


A button to view questions that have my favorite tags

I have tried to search if someone has already posted a question like this. Not having found anything I try to ask my second question on Meta.  It is possible to have a button (like the All Questions button) that shows only the questions marked with (the current user) favorite tags?  For example, if I have marked as favorite the tags C#, VB.NET, WinForms, Net etc... I really wish to have a single button (possibly between the Questions and Tags header buttons that shows the questions that have these tags.


The variance matrix of the unique solution to linear regression

By minimizing the mse, we get that the unique solution to this optimizing problem is $\beta = (X^TX)^{-1}X^Ty$. Why is its variance matrix $Var(\beta)=(X^TX)^{-1}\sigma^{2}$, where we assume that the observations $y_{i}$ have constant variance $\sigma^{2}$ ?


Expectation of Max and Min of Two Uniform Random Variables

I'm looking for someone to walk me through how to solve E[ZW] if Z = max[X,Y] & W = min[X,Y]. X & Y are independent, uniform variables over the interval [0,1].  I solved E[Z] = 2/3 and E[W] = 1/3.   E[ZW] should equal 1/4 but I keep getting the wrong answer. I have searched the forums and used other people's answers to try and solve it but have gotten the incorrect numbers.  Thank you in advance!


She said, "I like dogs." He said, "I like cats." I would like to combine these two sentences.  Do I put a period after dogs? Is it     She said, "I like dogs." and he said, "I like cats."   or     She said, "I like dogs" and he said, "I like cats."


Why are the zeroth order terms in degenerate perturbation theory the eigenstates of the perturbing Hamiltonian?

I have for quite some time now tried to find a satisfactory answer to this, but I haven't yet. In perturbation theory, with small parameter $\lambda$, we expand the eigenstate as  $$| E \rangle=| E^{(0)} \rangle + \lambda | b \rangle + ...$$  Where $| E^{(0)} \rangle$ is an eigenstate of the unperturbed Hamiltonian. The problem is that when there is degeneracy, there is a choice of these eigenstates. I know the answer is that they are chosen to be eigenvectors of the perturbing Hamiltonian, but my question is why.


How do I delete all of the music on my iPhone 5?

I have tried to delete all of the music off through iTunes and through settings. the computer and settings says it is gone but when i go to the music app it is all still there just not downloaded. all of my songs are shown but they have the cloud icon with the arrow pointing down next to them. I went them all gone to the point that I can't even see them on my phone. How do i do this?


For a long period I thought the default behavior of the sort program was using ASCII order. However, when I input the following lines into sort without any arguments:  # @   I got:  @ #   But according to the ASCII table, # is 35 and @ is 64. Another example is:  A a   And the output is:  a A   Can anybody explain this? By the way, what is 'dictionary-order' when using sort -d?


I’m a bit intrigued by the new detailed activity monitors and progress indicators in Windows 8 (copying files, the task monitor, network activity, etc.) It got me thinking: surely there must be some better alternatives to the built-in Activity Monitor.app?  “Better” as in more detailed and nicer graphs. Specifically, it would be interested and see percentage disk I/O (out of disk capacity), memory usage, and CPU usage in the same nice way   The Building windows blog has an article  in Windows 8.  I just think that OS X’s task manager — which I have always found superior — just doesn’t cut it anymore compared to what is coming in Windows 8.


Given ∃x.¬p(x), use the Fitch System to prove ¬∀x.p(x).

What I am thinking was I need two formulas, AX.p(X) => something AX.p(X) => ~ something   I guess something maybe is the p(x) and the other is ~p(x) since we was given EX.~p(x)..But actually it can't work for me. And I guess maybe is EX.~p(x) and ~EX.~p(x)..But if I am doing that then the it will go to deadend..so I give up..;(  Wish someone can help me.   For note about EE: 1: EX.p(X) 2: AX.(p(X) => something) 3: something EE1,2 But something cann't have the free variable from p..in this sample, then soemthing cannot including X..so if something is p(X) it cannot use EE, but if p(Y) then can use EE.


Example of an infinite semigroup where $\mathcal{D} \neq \mathcal{J}$

Let $S$ be a semigroup and take elements $a, b$ in $S$. Consider the following two Green's relations $a\mathcal{J}b \iff SaS = SbS$ $a\mathcal{D}b \iff \exists c \text{ such that } aS = cS \text{ and } Sb = Sc$ In any finite semigroup we have $\mathcal{D} = \mathcal{J}$, so what are some examples of infinite semigroups where they aren't equal?


Limit of $\cos(x)/x$ as $x$ approaches $0$

As the title says, I want to show that the limit of  $$\lim_{x\to 0} \frac{\cos(x)}{x}$$  doesn't exist.  Now for that I'd like to show in a formally correct way that   $$\lim_{x\to 0^+} \frac{\cos(x)}{x} = +\infty$$  I'm sure this is right since $\displaystyle\lim_{x\to 0^+} \cos(x) = 1$ and $\displaystyle\lim_{x\to 0^+} x = 0$, but since $\displaystyle\lim_{x\to 0^+} x = 0$ I can't just say:  $$\lim_{x\to 0^+} \frac{\cos(x)}{x} = \frac{1}{\displaystyle\lim_{x\to 0^+} x}$$   Things I tried: expand the fraction and use L'Hospital's rule (This didn't seem to yield results even though I tried quite a few things, should it? If it does, should it always work? It worked for similar problems) and going by the definition of the limit which didn't work for me either.  I'm grateful for any hints for doing this problem and similar problems especially.


Is uncertainty principle due to entropy?

Is uncertainty principle due to entropy or thermodynamics at all , I was wondering


Adding Interaction Terms to Multiple Linear Regression, how to standardize?

I am currently running a multiple linear regression, and I am bit confused in regards to how to properly add interaction terms to the model by hand. All of the variables I am using are continuous and have different scales and units.  So far, the way I have done it has been to   Standardize the observations for each variables Multiply corresponding standardized values from specific variables to create the interaction terms and then add these new variables to the set of regression data Run the regression   Is this the correct way to go about doing this? Should I standardize the interaction term variables also after calculating the 'raw' terms?


Showing $(C[0,1], d_1)$ is not a complete metric space

I am completely stuck on this problem: $C[0,1] = \{f: f\text{ is continuous function on } [0,1] \}$ with metric $d_1$ defined as follows:  $d_1(f,g) = \int_{0}^{1} |f(x) - g(x)|dx $.  Let the sequence $\{f_n\}_{n =1}^{\infty}\subseteq C[0,1]$ be defined as follows:  $    f_n(x) = \left\{    \begin{array}{l l}      -1 & \quad \text{ $x\in [0, 1/2 - 1/n]$}\\      n(x - 1/2) & \quad \text{$x\in [1/2 - 1/n, 1/2 +1/n]$}\\   1 & \quad \text{ $x\in [1/2 +1/n, 1]$}\\    \end{array} \right.  $  Then $f_{n}$ is cauchy in $(C[0,1], d_1)$ but not convergent in $d_1$.  I have proved that $f_{n}$ is not convergent in $(C[0,1])$ since it is converging to discontinuous function given as follows:  $    f_n(x) = \left\{    \begin{array}{l l}      -1 & \quad \text{ $x\in [0, 1/2 )$}\\      0 & \quad \text{$x = 1/2$}\\   1 & \quad \text{ $x\in (1/2 , 1]$}\\    \end{array} \right.  $  I am finding it difficult to prove that $f_{n}$ is Cauchy in $(C[0,1], d_1)$.  I need help to solve this problem.  Edit: I am sorry i have to show $f_n$ is cauchy  Thanks for helping me.


Show "Insufficient Privileges" directly when clicking 'Edit' (override), not on 'Save'

If a user clicks 'Edit' on an opportunity which he isn't allowed to edit, the "Insufficient Privileges" page directly appears. This is good. If a user clicks 'Edit' on a custom object (which has an edit override that points to a visualforce page), he first sees the form without problems, and the "Insufficient Privileges" page only appears when he tries to save it. This behaviour is misleading for the users, because they think they can manipulate the data and put effort into it, and only afterwards they realize that this wasn't possible after all.  An idea was to check at page load if the user has edit permissions and otherwise redirect him to the "Insufficient Privileges" page.  Might there be another way? Thanks!


Prevent suggested edits under 10 reputation on protected questions

Recently, . The specific  is protected:  protected by  ♦ Apr 27 '11 at 1:10 This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.  Great, so 10 reputation is required to answer the question. This doesn't stop anonymous and new users from spamming edit suggestions. Could the same restriction be applied to suggested edits to the protected question and its answers? As this would only apply to protected questions, which evidently attract not-so-good attention, it would not hinder new and anonymous users' ability to edit for the most part.


What software can I use to write on PDFs?

I'm used to OS X where the system PDF viewer will let you draw and write text on top of any PDF document. You can then flatten it and save as a new PDF. It saves paper and time so you can fill in any form without printing it and scanning it back to the computer.  It also lets you insert a scanned image of your signature.  Is there software for Ubuntu that would do that?


thank you for reading.  I was trying to use some commutators in an array when I found this error :     ! Missing number, treated as zero.  a l.9 [a] A   number should have been here; I inserted '0'. (If you can't figure out   why I needed to see a number, look up 'weird error' in the index to   The TeXbook.)      ! Illegal unit of measure (pt inserted). Dimensions can be in units of   em, ex, in, pt, pc, cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a   new one! I'll assume that you meant to say pt, for printer's points.   To recover gracefully from this error, it's best to delete the   erroneous units; e.g., type `2' to delete two letters. (See Chapter 27   of The TeXbook.)      ! Missing = inserted for \ifdim. I was expecting to see '<', '=', or   '>'. Didn't.   With the following code :  \documentclass{article}  \usepackage[english]{babel}  \begin{document}  $$\begin{array}{c} first ligne\\ [second ligne] \end{array}$$  \end{document}   The code creates a pdf with some text on the second page and some black space on the right of it.  It does compute well when you remove the left bracket [, or when you use the brackets on the first ligne.  Is this related with a \\ [ on two consecutive lines ?


Run as Administrator greyed out on shortcut

I have a shortcut to a program that only works when run as administrator but in the shortcuts advanced options "always run as administrator" is greyed out. I've looked at the other similar questions but none apply to my issue. UAC is enabled, I am an administrator and i have no idea how to run it in cmd.


If $M$ is a subspace of a Hilbert space, then $(M^\bot)^\bot$ is the closure of $M$.

I have found a few questions similar to this one, namely , but I am not assuming that $M$ is closed, so I believe this warrants a separate question. I know that I would like to use the orthogonal composition theorem, but I am not sure how to arrive there. Any hints for what proof approach I should take are appreciated. Is it as simple as a double inclusion proof?


How do I programmatically disable "Connectivity Checking"?

I just installed Ubuntu 18.04 and going through all my dotfile-scripts to properly configure Ubuntu automatically as much as possible. Looping through gsettings I was able to configure most settings as I want them but I haven't found anything in gsettings related to "Connectivity Checking" which is new in Ubuntu 18.04 LTS (at least not included in 16.04 LTS).  I can turn off Connectivity Checking through Settings -> Privacy but how can I do this programmatically? Just uninstall network-manager-config-connectivity-ubuntu? I was able to turn off other privacy settings through gsettings.  Viewing the file list of this package at  indicates that there is just one settings file (/usr/lib/NetworkManager/conf.d/20-connectivity-ubuntu.conf) but it does not show any possibility to enable/disable the feature.  Any help is appreciated.


The following Python code:  def foo():     t = []     for i in range(1, 3):         def bar():             return i * i         t.append(bar)     return t  for f in foo():     print(f())   Outputs: 4 4. Why isn't the first call output 1? I thought the closure bar() could save the current value of i.    BTW, the almost equivalent Lua code:  function foo()     local t = {}     for i = 1, 2 do         local bar = function() return i * i end         table.insert(t, bar)     end     return t end  for _, f in ipairs(foo()) do     print(f()) end   Outputs 1 4 as what I expected.


How to define & access a nested dictionary data across multiple namespace C#

I have the following data, i want to define in a elegant way and fast access.  Dictionary<string, string> myDictionary =  new Dictionary<string, string> {    {"a", "1"},    {"b"  "2"} };   Now the "1" and "2" defined in 2 different modules x and y. I'm thinking of nested dictionary here. I'm looking for elegant way to define.  My thinking:      //FileA -  Namespace1     Dictionary<string, string> dcA = new Dictionary<string, string>     {         {"LOC1", "ADDR1"},         {"LOC2", "ADDR2"}     };      //FileB -  NameSpace1     Dictionary<string, string> dcB = new Dictionary<string, string>     {         {"LOC3", "ADD3"},         {"LOC4", "ADD4"}     };      //FileX - NameSpace 2     static Dictionary<string, string> dc1 = new Dictionary<string, Dictionary<string, string>>     {         {"LOC1", dcA.GetValue("LOC1"},         {"LOC2", dcA.GetValue("LOC2"},         {"LOC3", dcA.GetValue("LOC3"},         {"LOC4", dcA.GetValue("LOC4"},     };      string myString;     string key = "LOC1";     if (!dc1.TryGetValue(key, out myString))     {         throw new InvalidDataException("Can't find the your Addr for this LOC");     }     Console.WriteLine("myString : {0}", myString)      //Expected output as      myString : ADDR1   Yes i want to combine 2 dictionary to a new dictionary. The problem is i can access value of new dictionary like this dcA.GetValue("LOC1"}. Trying to see if there a better solution or data struct which i'm not thinking at all.


Which values can be expressed by a linear coin combination

Given two types of coins, with values $a,b$ prime to each other, which coin values can we pay if we have $x$ coins of type $a$ and $y$ of type $b$. By the Lemma of Bézout, we should be able to pay all sufficiently large values $t$ in coins if $x$ and $y$ are large enough. But I'm interested especially in the small values of $t$- which values of $t$ can be represented in this fashion?


Show score results at the end of a string

I know there are many similar questions if not the same, but I cant get my head around it. I am wanting to get "mScore" which is a variable in my main activity to show on the end of a string which is in my results layout. This is to get their final score and show on my results page as "You Scored : mScore"  Here is some of my code   public int mScore = 0;   if (mButtonChoice1.getText() == mAnswer) {                 mScore = mScore + 1;                 updateScore(mScore);             }   private void updateScore(int point){     mScoreView.setText(""+mScore); }   Again apologies for possible duplicate but I did not understand the other answers and am hoping i will understand better when it's specific for my situation. Only started learning java a week or 2 ago so i'm a bit slow.


Induction: Showing that an integer number is for any natural N

It is known that x+(1/x) is an integer number. Show that (x^n)+(1/(x^n)) is also an integer number for any natural n.   I'm sort of stuck on starting the induction step. Help is much appreciated!:)


How to install Kali Linux tools in Ubuntu 16.04 LTS?

I want to install Kali Linux tools in Ubuntu 16.04 LTS. But I'm getting this error message. How do I solve this issue?


When I write the following :  \documentclass[psamsfonts]{amsart} \usepackage{amssymb,amsfonts} \usepackage[all,arc]{xy} \begin{document} \[Q(M) :=\left[  \xymatrix{   &\Xi(j^*M) \ar@{->>}[rd]^{can}\\   j_!j^*M \ar@{^{(}->}[ru]^{can} \ar[rd]_{can}   &    & j_*j^* M \\   & M \ar[ru]_{can}  } \right] \] \end{document}   This is what it looks like:    I ended up getting Q(M) aligned to the first line of \xymatrix{}, and a huge empty space is inserted to the top of the content of \xymatrix{} in order to make Q(M) aligned to the middle of the bracket. This is ugly.  How can I solve this?


How to extend the background of an image?

I have an image with a woman, and I need to make an ad (size 260mmx125mm). I want to put the woman to the left side, but then right side becomes empty. So, how I should solve the problem? I have picked the color from image, but it is definitely different than in the actual picture.  Should I use the Clone Stamp Tool in Photoshop, or there is a better way to do this?  By the way, it will be used in print, so I need a good quality.


Reasons why serial algorithm is slower than parallel version without extra threads?

I made a serial MergeSort and a parallel MergeSort. Both divide the input list in a left and right half and call sort on those. The source code is almost identical; the difference between them is that parallel MergeSort has an if-statement that checks if it needs to make threads or just calls sort like the serial version. Codesnippet:      if (threadDepth < maxThreadDepth) {         // make threads that call sort     } else {         sort(left, threadDepth + 1, maxThreadDepth);         sort(right, threadDepth + 1, maxThreadDepth);     }   When I use maxThreadDepth = 0 the if-statement is always false and the parallel works the same as the serial version.  I calculate the time both algorithms take and see something very strange. When maxThreadDepth = 0 the parallel version is faster than the serial version! I expected it to be slower, since it has an extra if-statement to process. Even when the JVM optimises this if-statement (it knows it is always false), it should never be faster!  I ran both algorithms 1000 times and kept track of the time they took like this:  List<Long> times = new ArrayList<>(); for(int i = 0, i < 1000, i++){     long start = System.nanoTime();     serial.MergeSort.sort(...); // or parallel.MergeSort.sort(...)     long end = System.nanoTime();     times.add(end - start); }   I discarded the first 900 times and calculated the average time it took both algorithms to run. Does someone have any idea why the no-extra-threaded parallel version is faster than the serial? As input, I used a list of integers with various sizes (1000, 10000, 100000) and all of them had this suprising behaviour.


Strange behaviour: Getting many upvotes/downvotes in a row

I experienced something strange on  two times:   2016-05-24: Got three downvotes in a row (in 2 minutes) for three different and completely unrelated questions I asked years ago. 2016-05-13: Got four upvotes in a row (in 1 minute) for four different and completely unrelated answers I asked years ago.   Could this be a due to some bug or hack or anything like that? It's really surprising to see the same behavior repeated for old questions/answers with no activity.  Or could it simply be someone who checked my account and went to see the questions/answered I posted and played with the up/down vote button...?


Does anyone know of any low-poly 3D art tutorials?

I've always been fascinated with low poly art styles. Throughout many years I tried to teach myself pixel art, but when low poly art was introduced to me during a time when I was looking for inspiration on a new project it was just fascinating. Here is an example of what I'd like to attempt:  Does anyone have any good resources or tutorials I can follow? The tools I have at my disposal include:  Access to University Photoshop through virtual desktop  Pixelmator I am looking for tutorials centered on 3D low-poly art that can be exported in order to view on the web as a 2D image. Here is another example from Google's Cubeslam game. I'm not quite sure what process their team approaches to make the art,


Modify the header in a document - Header out of margins

I need to modify the header for this chapter but avoiding modifications in other chapters and the  ToC.   MWE:  \documentclass[11pt,letterpaper,oneside]{book} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \usepackage{lipsum} \begin{document} \chapter{Integración del MCC con herramientas de Gestión de Mantenimiento Asistido por Computadora} \lipsum \end{document}   The "issue"


How to mention a paper as a citation which is to be published and not present as a preprint?

Background: I have written a paper X. In X, I mention 3 future works which I had thought to take a lot of time to solve. But somehow I managed to finish those early. Now I want to write a Paper Y on these future works. But I want to submit paper Y before paper X is published. Question: How can I mention Paper X in Paper Y? Note: I can not put paper X in a pre-print server because the conference does not allow it. (Domain: Machine Learning/Computer Science).


Usage of $\leadsto$ compared to other symbols

I noticed that not a lot of authors of math books don't use the $\leadsto$ to denote the next step. As far as I understand it, that is supposed to mean "the next step of the proof is". Instead, I notice that they use $=$ to mean the same thing, or also $\implies$ or $\iff$. Which symbol is the most appropriate for stating the next step? Can we use $\implies$ and $\leadsto$ interchangeably? Is this accepted in formal proofs?


I'd like to use a the session id to update a specific entry in my database (as foreign key).  Session id:  $_SESSION['id'] = '1';   PDO  $sql = "UPDATE table_user set f_name = :f_name, l_name = :l_name where id = :id and fk_user = {$_SESSION['id']}";   Is this method safe for manipulation? It seems a little bit weak to me but I never worked with session ids as foreign key. Any suggestions are are very welcome. I'm sorry if this question is bad.


What are the tricks that make stackexchange's pagespeed that fast?

I seriously think that one of the main secrets of this site's success is that it loads pages very fast. Unlike other websites, I don't have to wait much when having to visit to StackExchange websites. The speed is noticeable.  If we use Pingdom Website Speed Test, we find that the load time is 571ms which is a phenomenal speed.    I'm curious to know what are the main tricks/tactics that this site uses to be load that fast.


Is there a way to add separators to sidebar?

I have many locations in my finder sidebar:      It has became messy, so I would like to add a separator between locations. Is that possibile?


How can make the mesh smooth. With the mirror and subsurf modifier i want to have a round smooth sphere shape at the end. Note : I dont want to apply the modifier     Edit mode     Object Mode    Any solution or suggestion to end the verts to get smooth shape.


When should I rebuild the indexes in my relational database (SQL Server)?    Is there a case for rebuilding indexes on a regular basis?


Can I disable the trackpad on a MacBook Pro?

I have a mid-2007 MacBook Pro, the one with the trackpad that had the physical button on along the bottom edge. The trackpad is not well and using it can cause it to stick and freak out OS X.  Is there a way to disable the trackpad that's a little more low-level than ? A BIOS setting perhaps? I'd like the trackpad to never be useable on the unit, whether an external mouse is connected to it or not.


How do I kill a slime in a radius of 50?   I looked up a bunch of different solutions but none of them seemed to work. So I figured that is because they are outdated. Anyone able to help would be awesome. I'm using version 1.12.2.   I tried the following:     /execute @e[type=Slime,r=50], /kill @e[r=50,type=slime], /tp @e[r=50,type=slime] ~ ~-200 ~.   Any ideas?


What causes windows 7 activation requests?

The statement: "You must activate windows within 3 days to continue using all windows features." often pops up in my notifification area on Windows 7.  My windows are legal and I have activated them twice allready. I believe that windows remembers hardware of computer during last activation and shows this warning everytime it detects hardware change.  In my case detected hardware changes are probably caused by running windows from VirtualBox. I have dual boot setup. I can boot to both windows 7 and linux. When I want to use some Windows feature in linux I don't reboot the computer but start my windows 7 from VirtualBox which uses the raw disk insted of virtual one.  I hope that you can tell me which hardware change causes the activation request so i can do something about the popup message.


What are better lenses for portrait photography (1.8D or 1.8G) for Nikon D750?

I am planning to start home-based wedding photography business and the compiling a list of gear to purchase.I have planned to purchase D750 as my primary body but I can't seem to decide on which lens to go for portrait photography i.e. 1.8D or 1.8G  Which one is an all in one option taken that I am a beginner and really tight on budget as well.


finding an element in an array based on user input

Hi new to python and programming in general  I'm trying to find an element in an array based on user input  here's what i've done   a =[31,41,59,26,41,58] input = input("Enter number : ") for i in range(1,len(a),1) :     if input == a[i] :        print(i)   problem is that it doesn't print out anything. what am I doing wrong here?


I have deleted multiple files from my system.  The Recycle Bin icon on the Desktop is also showing full but when I am exploring the Recycle Bin it is not displaying any items in it.  I am using Windows 7 Ultimate Edition.  How to fix this type of issue?


Why can't write 4Gb file onto flash drive with 10Gb free?

Trying to write 4Gb video file onto flash drive with 10Gb free and it says    How can it be?  Flash drive is writable. Smaller files can be created / written.


App Crashing by NullPointerException with ContentResolver retrieving SMS

The app is crashing when I try to call getAllSmsFromProvider method (in MainActivity) from another class (Senders.java).  Here's the method:  public ArrayList<ArrayList<String>> getAllSmsFromProvider() {     List<String> lstSenders = new ArrayList<>();     ContentResolver cr = getContentResolver();     ArrayList<ArrayList<String>> messages = new ArrayList<>();      Cursor c = cr.query(Telephony.Sms.CONTENT_URI, // Official CONTENT_URI from docs             new String[]{Telephony.TextBasedSmsColumns.ADDRESS, Telephony.TextBasedSmsColumns.BODY}, // Select body text             null,             null,             Telephony.Sms.DEFAULT_SORT_ORDER); // Default sort order      int totalSMS = c.getCount();      if (c.moveToFirst()) {         for (int i = 0; i < totalSMS; i++) {             String number = c.getString(0);             number = number.substring(number.length()-10,number.length());             if (lstSenders.contains(number)){                 c.moveToNext();             } else {                 lstSenders.add(number);                 ArrayList<String> convo = new ArrayList<>();                 convo.add(number);                 messages.add(convo);                 c.moveToNext();             }         } }else {         throw new RuntimeException("You have no SMS in Inbox");     }     c.moveToFirst();     if (c.moveToFirst()) {         String number = c.getString(0);         number = number.substring(number.length()-10,number.length());         int index = lstSenders.indexOf(number);         messages.get(index).add(c.getString(1));         c.moveToNext();     } else {      }      return messages; }   Here's the Senders.java class calling this method:  public class Senders { public String senderNumber; public String mostRecentSMS;  public Senders(String number, String mostRecentSMS){     this.senderNumber = number;     this.mostRecentSMS = mostRecentSMS; } public static ArrayList<Senders> getSender() {     ArrayList<Senders> sender = new ArrayList<>();      MainActivity mainActivity = new MainActivity();     ArrayList<ArrayList<String>> messages = mainActivity.getAllSmsFromProvider();      for (int i = 0; i < messages.size(); i ++){         sender.add(new Senders(messages.get(i).get(0), messages.get(i).get(1)));     }   getallsmsfromprovider returns messages, an arraylist of arraylists. each arraylist within the arraylist of messages contains two important things, the sender's number and the most recent text sent/received (indexed at 0, and 1, respectively). So the for loop within senders is trying to add that to an arraylist that will be used to populate a list adapter.  Here's the error i'm receiving after crash:  Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.ContentResolver android.content.Context.getContentResolver()' on a null object reference 11-07 12:43:29.454 10266-10266/com.jesse.android.textingapp E/AndroidRuntime:     at android.content.ContextWrapper.getContentResolver(ContextWrapper.java:97) 11-07 12:43:29.454 10266-10266/com.jesse.android.textingapp E/AndroidRuntime:     at com.jesse.android.textingapp.MainActivity.getAllSmsFromProvider(MainActivity.java:84) 11-07 12:43:29.454 10266-10266/com.jesse.android.textingapp E/AndroidRuntime:     at com.jesse.android.textingapp.Senders.getSender(Senders.java:22)  11-07 12:43:29.454 10266-10266/com.jesse.android.textingapp E/AndroidRuntime:     at com.jesse.android.textingapp.MainActivity.onCreate(MainActivity.java:32)   As you can see, there's something wrong with my instantiation of mainActivity and use of getallsmsfromprovider within senders.java, as when I comment out calling getallsmsfromprovider from Senders.java, the app launches fine.


How can I dissolve adjacent polygons based on minimum attribute value?

I'm trying to merge the polygons (administrative boundaries) in a dataset untill they reach a minimum value. Lets say that the polygon dataset consists of the number of people per polygon and I need each polygon to contain at least 100 people. In that case I want the polygons with a value less than 100 to merge with an adjecent polygon, preferably in this order:   merge polygon with one adjecent polygon that contains less than 100 people if adjecent polygons of less than 100 people are not available, merge with a polygon that contains 100 or more people. if after the merge the minimum number is not reached yet, repeat the process untill no more adjecent polygons are available.  The end result should be a polygon dataset in which as many polygons as possible have at least 100 people per polygon.   I hope this discription is clear enough. Let me know if you need more info.   I'm using ArcMap 10.2.1. I already tried the dissolve tool, but this doesn't have the option to dissolve based on a minimum value. I saw that during an edit session in ArcMap you can merge polygons manually, but I found no way to do this in a model or a python script. If necessary I'm open to use other tools such as QGIS or SpatiaLite.


E: Sub-process /usr/bin/dpkg returned an error code (2) - every time I use apt-get install

I am running 64-bit Ubuntu 13.04. I tried to install cairo-dock as follows:   sudo add-apt-repository ppa:cairo-dock-team/ppa -- went well, no errors. sudo apt-get update -- went well, no errors. sudo apt-get install cairo-dock cairo-dock-plug-ins -- error   This is the console output:  Reading package lists... Done Building dependency tree        Reading state information... Done The following extra packages will be installed:   cairo-dock-core cairo-dock-data cairo-dock-plug-ins-data   cairo-dock-plug-ins-dbus-interface-python cairo-dock-plug-ins-integration   compiz-plugins curl libetpan15 libgldi3 Suggested packages:   cairo-dock-plug-ins-dbus-interface-mono   cairo-dock-plug-ins-dbus-interface-ruby   cairo-dock-plug-ins-dbus-interface-vala gnote The following NEW packages will be installed:   cairo-dock cairo-dock-core cairo-dock-data cairo-dock-plug-ins   cairo-dock-plug-ins-data cairo-dock-plug-ins-dbus-interface-python   cairo-dock-plug-ins-integration compiz-plugins curl libetpan15 libgldi3 0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded. Need to get 10.3 MB of archives. After this operation, 26.7 MB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 **link** raring/universe cairo-dock-data all 3.2.1-0ubuntu1 [468 kB] Get:2 **link** raring/universe libgldi3 amd64 3.2.1-0ubuntu1 [352 kB] Get:3 **link** raring/universe cairo-dock-core amd64 3.2.1-0ubuntu1 [1,125 kB] Get:4 **link** raring/universe cairo-dock-plug-ins-data all 3.2.1-0ubuntu1 [4,190 kB] Get:5 **link** raring-updates/main curl amd64 7.29.0-1ubuntu3.1 [149 kB] Get:6 **link** raring/universe libetpan15 amd64 1.0-5 [286 kB] Get:7 **link** raring/universe cairo-dock-plug-ins amd64 3.2.1-0ubuntu1 [871 kB] Get:8 **link** raring/universe cairo-dock-plug-ins-integration amd64 3.2.1-0ubuntu1 [59.9 kB] Get:9 **link** raring/universe cairo-dock-plug-ins-dbus-interface-python all 3.2.1-0ubuntu1 [16.0 kB] Get:10 **link** raring/universe cairo-dock all 3.2.1-0ubuntu1 [8,738 B] Get:11 **link** raring-updates/universe compiz-plugins amd64 1:0.9.9~daily13.06.19~13.04-0ubuntu1 [2,764 kB] Fetched 10.3 MB in 2min 1s (84.8 kB/s)                                          Selecting previously unselected package cairo-dock-data. **dpkg: unrecoverable fatal error, aborting:  reading files list for package 'linux-headers-3.8.0-19': Input/output error E: Sub-process /usr/bin/dpkg returned an error code (2)**   The install gets stuck on the dpkg line. This error occurs every time I try to install a program using apt-get install.


when retrieving data a part of it doesn't appear because of the sign " ' "

I'm trying to retrieve data from mysql database using php and mysqli  but when the result show up there is some fields that are not complete for example: the field in the database is: domaine de l'agricultule but when it show up is like: domaine de l      echo "<input type='text' name='domaine' size='80' dir='ltr'    value='{$row['domaine']}'/>";   help please where i the problem!


User friendly ubuntu distribution for Old PowerBook G4 15"

I have Mac PB G4 15" 1.5 with 512mb RAM, and need to use it office style, maybe some graphic processing but nothing fancy, I need, a user friendly distribution that could bring out the best of this nice machine.


How do I change a CSS button into a button with URL link? Ive read I need to also add HTML codes?  The only code for the button I can find is this one:   .ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight { position: relative; margin-bottom: 1px; color: #FFF; background-color: #2265B9; background-repeat: repeat-x; background-image: -khtml-gradient(linear, left top, left bottom, from(#FCEEC1), to(#EEDC94)); background-image: -moz-linear-gradient(top, #FCEEC1, #EEDC94); background-image: -ms-linear-gradient(top, #FCEEC1, #EEDC94); background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #FCEEC1), color-stop(100%, #EEDC94)); background-image: -webkit-linear-gradient(top, #069CFF, #0A6AB6); background-image: -o-linear-gradient(top, #FCEEC1, #EEDC94); background-image: linear-gradient(top, #FCEEC1, #EEDC94); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fceec1', endColorstr='#eedc94', GradientType=0); border-color: #EEDC94 #EEDC94 #E4C652; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); border-width: 1px; border-style: solid; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); }   Im not sure if this is a correct question or correct codes.


Is there a difference in Ubuntu 32 bit vs. 64 bit?

Because I accidentally installed 32 bit, and I used 64 bit last time. I'm not sure, it bugs me. Any reassurance?


When can “because” introduce a non-restrictive clause?

Even if rare, when can this happen? Any trustworthy examples?  11. Do Not Use a Comma Before “Because” Do not use a comma before “because” unless “because” introduces a nonrestrictive clause. That rarely happens. Incorrect: This is contradictory to the common practice, because, according to that practice, the title of ownership will not be transferred to the buyer until payment is completed. Correct: This is contradictory to the common practice because, according to that practice, the title of ownership will not be transferred to the buyer until payment is completed.  Bahrych, Merino. Legal Writing and Analysis in a Nutshell 5th edition (2017). p. 226-7.


Divide the numbers 1,2,…,n into two sets of equal sum.

My approach:  If sum(1 to n) is divisible by 2, then it is possible to divide the set.  If n is even take 1st and last element and add to 1st set, then add 2nd and 2nd last to 2nd set...and so on, In then end to balance out both set I remove 1 from 1st set and add it to 2nd.  I don't know how to do it if n is odd.  For odd: eg: n=7 4 1 2 4 7 = 14 3 3 5 6 = 14


Calculate the sum of all files and all directories in a folder in php

for a filemanagement i calculate the size of each file and the directories in a specific folder.  I calculate the size of the files like below:   sizeFormat(filesize($dir . '/' . $file))   and the size of the directories (included subdirs) like below:  sizeFormat(recursive_directory_size($dir . '/' . $file))   How can i calculate now the sum size of all files and directories in that specific folder?


An annoying aspect of working with a "strict" grading system (e.g., 90%+ = A, 85% = A-, 80% = B+, etc.) is what I call the "grade grubbing" phenomenon: the people who feel compelled to raise complaints about the grading because they didn't get the final score they want—but have no real argument in support of a higher grade. This is not about legitimate requests to reconsider because of a mistake but instead students searching for any reason why they deserve the X points they need to get a better grade. It’s exemplified by the kind of argument that begins “I know it’s wrong but . . . .”  I do not have the power to change the grading structure—that is imposed from higher up.   Are there any satisfactory methods of discouraging such behavior? I don't want to stop people with legitimate issues from asking for regrades (mistakes happen!), but I would like to avoid having to deal with the student who tries every which way to get the few points they need to move up a level.


How to put a tilde under the symbol in math mode?

It is very easy to put a tilde over the symbol in math mode. Simply type $\tilde{a}$. But how to put a tilde under the symbol in math mode?


Quotient ring of Gaussian integers $\mathbb{Z}[i]/(a+bi)$ when $a$ and $b$ are NOT coprime

The isomorphism $\mathbb{Z}[i]/(a+bi) \cong \Bbb Z/(a^2+b^2)\Bbb Z$ is , when the integers $a$ and $b$ are coprime. But what happens when they are not coprime, say $(a,b)=d>1$?      — For instance if $p$ is prime (which is not coprime with $0$) then $$\mathbb{Z}[i]/(p) \cong \mathbb{F}_p[X]/(X^2+1) \cong \begin{cases} \mathbb{F}_{p^2} &\text{if } p \equiv 3 \pmod 4\\ \mathbb{F}_{p} \times \mathbb{F}_{p} &\text{if } p \equiv 1 \pmod 4 \end{cases}$$ (because $-1$ is a square mod $p$ iff $(-1)^{(p-1)/2}=1$).  — More generally, if $n=p_1^{r_1} \cdots p_m^{r_m} \in \Bbb N$, then  each pair of integers $p_j^{r_j}$ are coprime, so that by CRT we get $$\mathbb{Z}[i]/(n) \cong \mathbb{Z}[i]/(p_1^{r_1}) \times \cdots \times \mathbb{Z}[i]/(p_m^{r_m})$$  I was not sure how to find the structure of $\mathbb{Z}[i]/(p^{r}) \cong (\Bbb Z/p^r \Bbb Z)[X] \,/\, (X^2+1)$ when $p$ is prime and $r>1$.  — Even more generally, in order to determine the structure of $\mathbb{Z}[i]/(a+bi)$ with $a+bi=d(x+iy)$ and $(x,y)=1$, we could try to use the CRT, provided that $d$ is coprime with $x+iy$ in $\Bbb Z[i]$. But this is not always true: for $d=13$ and $x+iy=2+3i$, we can't find Gauss integers $u$ and $v$ such that $du + (x+iy)v=1$, because this would mean that $(2+3i)[(2-3i)u+v]=1$, i.e. $2+3i$ is a unit in $\Bbb Z[i]$ which is not because its norm is $13 \neq ±1$.  — I was not able to go further. I recall that my general question is to known what $\mathbb{Z}[i]/(a+bi)$ is isomorphic to, when $a$ and $b$ are integers which are not coprime (for instance $a=p^r,b=0$ or $d=(a,b) = a^2+b^2>1$).  Thank you for your help!


4 down vote favorite  I have noticed after deleting an original page in WordPress with lets say a permalink of your_domain.com/contact/ and then trying to recreate the same page with the same name/slug, my WP is generating a "-2" at the end of the link, like: your_domain.com/contact-2/.  I don't understand why, since the original page was deleted. Why is WordPress treating new pages as if the original still exists? There is nothing in 'trash'.  I repeat there is nothing in 'trash'.


Reputation by month page on Mathematica is wrong?

The reputation by month page(s) on  appear to be wrong.  Presently it looks like this:    According to the hover-over that is "2016-08-01 to today."  The quarter page, which is "2016-07-01 to today":    Observe that users , , , , , , and  have the same reputation on both pages.  This would indicate that these users gained no reputation for the entire month of July, but a review of the reputation pages will demonstrate that this is false.


Getting rid of unnecessary space between letters and equal sign in caption

Suppose we have this code  \begin{center}         \begin{tikzpicture}[shorten >=1pt,node distance=2cm,on grid,auto]              \node[state,initial, accepting] (q_0)   {$q_0$};              \node[state] [right=of q_0] (q_1) {$q_1$};             \path[->]              (q_0) edge node {$a,b$} (q_1)             (q_1) edge [loop above] node {$a,b$} ();          \end{tikzpicture}          \captionof{figure}{This DFA represents $L_1 = \{\lambda\}$} \end{center}   That produces:   How do I get rid of the spacing between between the L_1 = and { }?  Is this because of the centering?


SQL Server Profiler - How to filter trace to only display events from one database?

How do I limit a SQL Server Profiler trace to a specific database? I can't see how to filter the trace to not see events for all databases on the instance I connect to.


OK, so I'm learning probablilites for the first time, and of course I'm having lot of conceptual difficulty (eg How does the outcome depends on how you define randomness, why for example Monty Hall problem is true).  Can you suggest some good probability book which doesn't hand waves these issues, and treats probability from a historical viewpoint, and also readable by beginners ?  (BTW, I have the book ""40 Puzzles and Problems in Probability and Mathematical Statistics"" for intersting and hard exercises, but you can suggest some hard and challenging problem book also as a sidenote)  (Sorta analgous to Hardy's book A course in pure mathematics for learing calculus)


I added this to /etc/crontab on a few different linux & freebsd systems:  # monthly reboot: 3rd Tuesday of every month 56 07 15-21 * 2 root /sbin/shutdown -r now   I want a reboot on the 3rd TUESDAY of every month.  However, all the systems rebooted on the 3rd Wednesday of this month (the 19th).  What am I doing wrong?  Update: Thanks to Ranon's answer below, looks like the below revision will work, can anyone confirm or is there an even better way of doing it?  # monthly reboot: 3rd Tuesday of every month 56 07 15-21 * * root test $(date +\%u) -eq 2 && /sbin/shutdown -r now


Find Value of $\int _{0}^{\frac{\pi}{4}} \sqrt{\tan x}{\sqrt{1-\tan x}}\,\mathrm dx$

Find Value of      $$I=\int _{0}^{\frac{\pi}{4}} \sqrt{\tan x}{\sqrt{1-\tan x}}\,\mathrm dx$$   My try:  Use substitution $\tan x=\sin ^2y$ we get  $$\mathrm dx=\frac{\sin 2y}{1+\sin^4y}\,\mathrm dy$$ we get  $$I=\frac{1}{2}\int_{0}^{\frac{\pi}{2}}\frac{\sin^2 2y}{1+\sin^4y}\,\mathrm dy$$  any way to continue now?


How to let latex only run one user defined command and save the ouput to a tax file

I want to let latex only run one of my defined commands and output results to a tax file.  For example, the following tex file:  \documentclass{article} \usepackage[usenames,dvipsnames]{xcolor}  \newcommand{\note}[3][]{{\color{Orange}#1}{\color{Red}#2}{\color{Cyan}#3}}  \begin{document}  \note[text1]{text2}{text3}  hello world \textbf{here} .  \end{document}   I want latex to only run the \note command and output the results:  \documentclass{article} \usepackage[usenames,dvipsnames]{xcolor}  \newcommand{\note}[3][]{{\color{Orange}#1}{\color{Red}#2}{\color{Cyan}#3}}  \begin{document}  {\color{Orange}text1}{\color{Red}text2}{\color{Cyan}text3}  hello world \textbf{here} .  \end{document}   into a new tex file for example compiled.tax  Is there anyway to achieve this?  Thanks in advance.


I have a string like below and I want to split it and get the value before pipe (|).  var str = "110|paris";   I just want to store like below,after split  var value = 100;


Can I travel within the US with an expired visa?

I am an international student and authorized to stay in US for 2 years on my I-20 form. My visa expired on June this year and I need to fly to some states outside Georgia to visit colleges. Can I fly within the US?  If I can, what kind of document will the airport check when I depart? Will they notice my expired visa and turn me in to Homeland Security? In other words, will I get into trouble?


How to add one more condition in my trigger

trigger VINfromAccountandContact on Case (before insert) {     Set<id> setConids = new Set<id>();     Map<id,id> mapAccidVsVIN = new Map<id,id>();     for(Case c:trigger.new){         if(c.Contactid <> NULL){             setConids.add(c.Contactid);          }     }     if(!setConids.isEmpty()){         for(Contact_Vehicle_Ownership__c cv :[SELECT id,Account_Name__c,Contact_Name__c,VIN_Lookup__r.id FROM Contact_Vehicle_Ownership__c WHERE Contact_Name__c IN:setConids]){             mapAccidVsVIN.put(cv.Contact_Name__c, cv.VIN_Lookup__r.id);         }     }      for(Case c:trigger.new){         if(mapAccidVsVIN.containsKey(c.Contactid)){             c.VIN__c = mapaccidVsVIN.get(c.Contactid);         }     } }   I want to add this condition when accountid is not equal to Null can any one help how do i add this condition


I am working on converting VF component to LWC. I use lightning out to display LWC on VF page. The data I get is the Id of lookup fields (account and user). I want to display it as it is displayed in VF component. The VF component shows name and also shows details on mouse hover. Can this be done for LWC datatable?  VF and it's corresponding LWC    Pop Up on Mouse Hover    Data received by VF component and LWC    HTML  <template>     <lightning-card title="Visit Report" icon-name="standard:catalog">         <div class="slds-table_bordered slds-table_striped slds-scrollable slds-m-around_medium">             <lightning-datatable data={data} columns={columns} key-field="id"                   hide-checkbox-column="true"                  onrowaction={handleRowActions}></lightning-datatable>         </div>     </lightning-card> </template>   Javascript  const columns = [     {         label: 'Action',         initialWidth: 50,         type: 'button',         typeAttributes: {             label: 'View',             name: 'view',             variant: 'base',         }     },     { label: 'Engagement Report', fieldName: 'Name', type:'text' },      {         label: 'Account',         type: 'button',         typeAttributes: {             label: {fieldName: 'Account__c'},             name: 'account',             variant: 'base',         }     },     { label: 'Visit/Report Date', fieldName: 'Visit_Date__c', type: 'date',         typeAttributes: {             day: '2-digit',             month: '2-digit',             year: 'numeric',             hour: '2-digit',             minute: '2-digit',             hour12: true         },     },      { label: 'Format Type', fieldName: 'Visit_Type__c', type: 'text' },      { label: 'Temperature Reading', fieldName: 'Temperature_Reading__c', type: 'text' },      { label: 'Send Copy to Editorial Team', fieldName: 'Send_copy_to_Editorial_team__c', type: 'text' },      {         label: 'Created By ID',         type: 'button',         typeAttributes: {             label: {fieldName: 'CreatedById'},             name: 'createdBy',             variant: 'base',         }     },     {         label: 'Last Modified By ID',         type: 'button',         typeAttributes: {             label: {fieldName: 'LastModifiedById'},             name: 'modifiedBy',             variant: 'base',         }     },  ];  export default class RelatedVisitReport extends NavigationMixin(LightningElement) {     @api recordId;     @track data;     @track error;     @track columns = columns;      @wire(visitReport, { contactId: '$recordId' }) wired(result) {         if (result.data) {             this.data = result.data;             this.error = undefined;         } else if (result.error) {             this.error = result.error;             this.data = undefined;         }     }     //code to handle row actions of datatable }


Review queue on mobile site - why do we still not have this feature?

Currently, the mobile version of the site has no link to the review system, is it possible to have that available? I often use Biology SE on my phone and perform a fair amount of review tasks, but to get to the review system I have to use the desktop version of the site. It would make it easier for users to keep on top of the review tasks if this facility was more accessible.    Could stack exchange add the review queue to the top bar in the mobile site?  E.g.


Usually in c++, when traversing through an array you would count up and use the index. However, I am wondering why using the array as an index works as well. For example,  #include <iostream> using namespace std;  int main() {     int a[] = {5,7,3,2,0};     int i = 0;     for(i = 0; i <5; i++)     {         cout<<i[a]<<"\n";     }     return 0; }   The output would be the same as using a[i]. Why is this?


How to install Radeon Open Source Driver?

I have an MSI Radeon HD 7850 card. MSI provide no Linux support, and the AMD driver gives me an Unsupported Hardware watermark that does not show up in screenshots.  I uninstalled the proprietary driver and found that Unity 3D no longer works, and I really only picked Ubuntu because of the excellent shortcuts provided in the recent versions.   Trying to locate the open source driver has been a pain for me. According to the documentation I have read it is pre-included in Ubuntu 12.04, yet there is no Unity 3D support. I tried using the newest drivers from AMD's website, but that also had the watermark.  Does anyone know how I can get the open source driver? If not, does anyone know how to remove the watermark. I'm on the verge of going back to Windows.


What is the result of $\lim\limits_{x \to 0}(1/x - 1/\sin x)$?

Find the limit:   $$\lim_{x \rightarrow 0}\left(\frac1x - \frac1{\sin x}\right)$$  I am not able to find it because I don't know how to prove or disprove $0$ is the answer.


Upgrading and installing packages through the Cygwin command-line?

I'm a blind computer user that uses Cygwin.  The installation program isn't very accessible: upgrading, installing, and removing specific packages is quite hard to do since you have to use simulated mouse keystrokes to click and scroll.  Is there a way to either manually install/upgrade packages or install/upgrade them through the command-line?


How to replace JSON value using preg_replace?

This is my JSON file sample.json  {   "lbl_name":"Your name",   "dynamic_name":"Hi, {{ name 1 }}, {{ name 2 }} and {{ name 3 }}" }   and  $content = file_get_contents(sample.json); $translate = json_decode$content, true); $replaceContent = preg_replace('/\{{[^)]*\}}/', '%s', $translate); print_r($replaceContent);   I am getting result  Array ( [lbl_name] => Your name [dynamic_name] => Hi %s )    I want result should be   Array ( [lbl_name] => Your name [dynamic_name] => Hi %s, %s and %s )    Thanks


I know complex numbers but what is the meaning of "complex" in "Complex Number"? Does "complex" mean "complicated here? Are complex numbers used in easy real world problems? Give me examples please.


How to add an arrow between two edges in a graph?

How to make this type of diagram? I'm using tkz-graph, but I can't find a way to add this vertical arrow.


I could not enter my mac, because I did not remember the password and then I changed it and tried to enter several times, but it does not let me.  I only have the close button and the password box.  I have written several times the new password and it does not take it and the other thing that I do is close the screen.  I have shutdown and restarted and nothing happens.  What can I do?  please help me :(


Why is every holomorphic bijection of the Riemann sphere a Möbius transformation?

Just based on some reading, I know that every Möbius transformation is a bijection from the Riemann sphere to itself.   I'm curious about the converse. For any holomorphic bijection on the sphere, why is it necessarily a Möbius transformation? Is there a proof or reference of why this converse is true? Thanks.  (I would appreciate an explanation at the level of someone whose just self-studying complex analysis for the first time.)


Apostrophe for indicating possessive. How do I convince my professor?

I've read  and . I know that the underlying question has been answered, my problem is of a different nature: I'm currently writing my master's thesis in CS and my professor thinks that the apostrophe possessive is only applicable to people. He claims to have spoken to a linguist from Cambridge who confirmed his opinion. Neither my professor nor I am a native speaker and the thesis is being written in Germany. Now, I know that he won't care if I just send him a couple of links to the answers here.   So my question is: How do I convince my professor? Are there any "more scientific™" sources that I can point to?  Examples of phrases:   If each plant's humidity is displayed publicly [...] [...] shows an overview of the node's structure. Due to an issue in the network stack's IPv6 subsystem [...]


There are 2 ways to get values from UI in JS controller.   component.get("v.name"); component.find("name");   My question is when both can serve the same purpose, which one to use and when?


I'm having trouble figuring out the Fourier series of $|\cos(x)|$ from $-\pi$ to $\pi$.  I understand its an even function, so all the $b_n$s are $0$  $$a_0 = \frac 2 \pi \int_0^\pi |\cos(x)|\,dx = 0$$  $$a_n = \frac 2 \pi \int _0^\pi  |\cos(x)| \cos(nx) \, dx = \frac 2 \pi \int_0^\pi \cos^2(x)\,dx.$$  since for all $j,k$ not equal the integral is zero.  so only $a_1$ remains. is this correct?   How would I evaluate $\sum_{n=1}^\infty (-1)^{n-1} /(4n^2 - 1)\  {}$?


Is it possible to use the fact that $\sum_{n=1}^\infty \frac{1}{n^4} = \frac{\pi^4}{90}$ to compute $\sum_{n=1}^\infty \frac{(-1)^n}{n^4}$?


If you sum an expression over an uncountable set $\sum_{x\in \mathbb{R}}f(x)$, then do we need $f(x)=0$ on all but a countable subset in order for the sum to have a finite value?  If not can you give an example of a function everywhere nonzero that has a transfinite sum with a finite value?  Possible keywords: Transseries, Écalle–Borel Summation, analyzable function  , GA Edgar, 2009


8 ball hitting another ball in a game of pool

if I call my pocket for an 8 ball shot. I shoot my 8ball toward the pocket. its going toward the pocket but hits another ball that's on the table and still goes in do you lose the game.  not a combo shot to make the 8ball  it just hits it on the way


Children's science fiction book series and tv show

I'm looking for a sf story that was broadcast on BBC children's TV in the early 1980's, probably as part of the long running Jackanory series. Based on what i recall of other events at the time of watching I think this was 1982. The story is of a group of children who are either orphans or in a boarding school and who build a spaceship from the scrap of other ships and (I think) an asteroid. They launch it into space and have subsequent adventures. One scene that particularly sticks in my mind was the oxygen failing on the ship and the children all falling asleep except for a girl who is bullied by a robot into fixing the problem. I'm reasonably sure that the author of the stories would be British as it was an adaptation for the BBC. I also have a feeling that this was adapted from a series of children's books with each volume being compressed into one episode. It ran Monday to Friday for one week. I vaguely recall a female narrator. The story was interspersed with still drawings and acted scenes with children. I'm looking for the title of the story (stories) in either TV or book form and the author. Note, the description of acted scenes and drawn illustrations makes this sound like Captain Zep: Space Detective, another BBC show. It was not this one although they would have been made at similar times. Hope there is enough detail here for a answer. Thank you!


Does $f(\mathbb{Q}^n) \subseteq \mathbb{Q}$ hold only for rational functions?

Let $f$ be a $C^{\infty}$-function from an open subset $U$ of $\mathbb{R}^n$ to $\mathbb{R}$. If $f(\mathbb{Q}^n\cap U) \subseteq \mathbb{Q}$ can we conclude that $f$ is a rational function?


Evaluate $ \lim_{n\to \infty} \sum_{r=1}^{n}\frac{1}{n+r}$ by expressing as Riemann sum

$$ \lim_{n\to \infty} \left(\frac{1}{n+1} + \frac{1}{n+2} + ..+ \frac{1}{2n}\right)$$  How do i find the limit by expressing it as a definite integral of an appropriate function via Riemann Sums?  I do know that for riemann sums  $\Delta x = \frac{b-a}{n}$ and $ x_i^* = a + \frac{b-a}{n}$  So i would need something like this   $$\lim_{n\to \infty}\sum_{i=1}^{n}\frac{b-a}{n}\cdot f\left(a+i\frac{b-a}{n} \right)$$  But how should i go about solving the question?


Can some one please give me a hint to prove that every group of order $p^2+p$ is not simple?


Is it possible for a system to have negative potential energy?

With respect to both gravity and electromagnetism, to the best of my understanding potential energy is added or subtracted from a system based on the distance between two objects such as charged or massive objects.  Would this then imply that when oppositely charged objects or two massive objects are brought together within a small enough radius that the drop in potential energy would be greater than the combined mass of the two objects making the net mass/energy of the system negative?


how to always set my footer in the bottom is it possible with css only

I have a div class .footer which is my website's footer till now I do not have any content on my webpage so it is on the top of my page after my navigation. please tell some CSS so I can make my footer at the bottom of my page.


Cannot convert datagridview datasource to datatable

I've bind the data to a datagridview from a json like this:  dynamic result = JsonConvert.DeserializeObject<List<productData>>(temp); mproductDataGridView.DataSource = result;   Later i want to do some filtering:  mproductDataGridViewstring rowFilter = string.Format("[{0}] = '{1}'", "type_id", "configurable"); DataTable dt = (DataTable)mproductDataGridView.DataSource; dt.DefaultView.RowFilter = rowFilter;   There is an error (i translated):  cannot convert system.Collections.Generic.List to System.Data.DataTable object   Anyone know what is the problem? how to fix this?


Chek IF column EXISTS within an inline SELECT statement

Is it possible to check for a column existence within an inline statement?  Please note this is not a duplicate to common question "How to check if column exist." This relates to a possible INLINE solution.  There are may ways to do this but since this needs to be written for BCP [out] command I cannot use SPs and the compatibility has to match MSSQL 2000.  Would anything similar to the following have chance to work?  SELECT [col1], [col2], CASE    WHEN (SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'Table'  AND COLUMN_NAME = 'col3') = 1    THEN [col3]    ELSE null END FROM [MyDb].[dbo].[Table]   or sub-query way like this....      SELECT     [col1],     [col2], SELECT(if exists (SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'Table' AND COLUMN_NAME = 'col3') BEGIN SELECT [col3]...


I was talking about this with a friend yesterday, though the actual example was "thou and I", which sounded weird. I thought it should be "thee and I", due to "I" being a subject pronoun. I eventually conceded, but I'm still not sure - could you say (arguably) that "thou/you", when paired with "I", is an object? Or are they still both subjects?  Similarly, is "it" still the subject in a sentence like "the dog and it"?


How to export Visio graphic for Tex document?

Visio can export many different image formats but only .emf and .pdf as vector graphics. Tex can only handle .eps and .pdf vector graphics and therefor .pdf is the file format to go.  But there is the problem. All PDF exports allways have a big white margin around them and can't be imported in Tex like this.  How to export a Visio graphic properly to use it in Tex?


Where can I find a camera for a photographer with a severe acquired disability?

I need advice regarding cameras very easy to use and possibly impact resistant. A friend of mine, who is a very enthusiastic photographer because of an accident now has a severe disability. He can not use his right hand, and he has difficulty, more generally, in doing complex movement with the left one. I would like to buy a new camera for him that would be very easy to use. For instance, I'd like a camera with very few buttons and a larger "screen". Do anyone know if such a camera exists for disabled users or even for children? Do you have any advice on where to search for cameras with support for disabled people?


Voting with less than 125 reputation points

I have found that if I upvote an answer, it gets upvoted, but if I downvote I receive a message that the vote is hidden until I have sufficient reputation points.  Here's an example from an answer on  - on which I have .  If I upvote:    It simply gets upvoted - isn't that nice!  The trouble is if I downvote an answer, I get a message saying my vote is hidden until I have 125 reputation points:    And here is an example of a question on , on which I have :      So either this is a straightforward network-wide bug, or this is a Stack Exchange policy to hide downvotes from users with less than 125 reputation points - in which case perhaps the wording of the message is ambiguous?


Phrase for saying something is impossible at all?

I am looking for good way of translating my native language way of saying something is impossible and will never be possible, i.e., Kan lungtat a par hunah le which literally means 'When our grindstone comes into blossom'. The grindstone which is used for sharpening knife can never sprout and grow tall and come into bloom. For example, So when someone asks for the impossible, we respond 'When our grindstone blooms' for emphasizing the impossibility. Is there an equivalent phrase in English?


I have the cubic function $$ \lim_{x \to -2}(x^3+4x^2+4x-1)=-1 $$ which I manage to break down into $$x(x+2)^2 < \epsilon.$$ How do I proceed with this? I try to define $x$ by setting $\delta < 1$ but get negative outputs which I frankly do not know what to do with.


I am trying to figure out if its possible to -- from within the command-line -- enable/disable the webcam, with a command that can be ran through a keybind? My laptop, a Thinkpad T450 doesn't have a hard switch to turn off the webcam, and it is a security feature I'd really like to have. Preferably something that can be done without a computer restart would be ideal! Thanks!


Difference between nevertheless and nonetheless

I am never quite sure whether to use nevertheless or nonetheless; they seem almost synonymous to me, but I think I might be missing a subtle distinction. Is there a difference, and if so, how do I determine which is right in different circumstances?  I am specifically thinking of sentences such as these:        I am busy Saturday; nevertheless I will come to your party anyway.   I am busy Saturday; nonetheless I will come to your party anyway.      There is a question  that deals with a specific idiomatic usage, but I was thinking of the general type of usage, as given in the party example above.


Keep a process in RAM (prevent it from swapping)

I want to keep a process in RAM. It should never go into swap. Is this possible?  The process is a Java program. I'm running CentoS 7.


How can super massive black holes have a lower density than water?

I heard on a podcast recently that the  at the centre of some galaxies could have densities less than water, so in theory, they could float on the substance they were gobbling up... can someone explain how something with such mass could float?  Please see the below link for the podcast in question:


is it possible to create a section in vf page and add lightning components to it. Split a screen into two and then add lightning components.


I've confused about the word "them" in the middle of the sentence:     They know all about them   Westovers in Idaho.   Could you please tell me what the meaning of "them" here is?     Does it mean "they know about the oils which are made by Westovers in Idaho"?   The full text is here:      Dad had always said he wanted to build a room the size of a cruise ship   but I’d never thought he’d have the money. I looked to Mother for an   explanation but it was Dad who answered. The business was a roaring   success, he explained. Essential oils were popular, and Mother had the best   on the market. “Our oils are so good,” he said, “we’ve started eating into the   profits of the large corporate producers. They know all about them   Westovers in Idaho.”   Educated by Tara Westover


Correct way to use WGS84 (lat/long degrees) in QGIS

I created new project in QGIS (v3.2.1) Added a OSM Standard layer with QuickMapServices plugin. Current CRS is EPSG:3857   Now I want to use map in degree units. As far as I understand I need to convert CRS to WGS 84. So I pressed the button:  Project Properties | CRS dialog box appeared. I filtered CRS by string '84'. There were two potential candidate geographic coordinate systems in that list: EPSG:4326 and IGNF:WGS84G  It looks like both of them do not fit because of the map distorted in both cases. The original view (EPSG:3857) was following:  After changing to CRS to EPSG:4326 it became look like:    How to solve my problem with degree coordinate systems?    The following is the image of layer context-menu:  It has not Save as element.


How do I change the screen resolution in Ubuntu? I am dual booting Vista and Ubuntu. The preferences tab only has one resolution option for my computer.


How do I get the star element in the room with the eight closed eyes?

I'm stuck underground. I've collected all remaining elements (water, sun and forest), and now I'm trying to get that "star" element:    I guess I should find an eye or something to put on that blind tentacle, but I've looked throughout the level and found nothing. How I can solve this puzzle?


Searching whole system for files with specific inode

I technically know how to do all these things, but combining it is problematic. Inode is saved in first line of text file (I can eventually read it directly from file), I need results saved to the same file.  How can I do this?


How to use yum to get all RPMs required, for offline use?

I have one server with net connectivity, where I can use "yum install $PACKAGE". I want some yum command, like yum cache-rpms $PACKAGE $DIRECTORY such that all required RPM files will be downloaded to $DIRECTORY, which will also have a file (Install.sh) stating the order in which to install these RPMs, on many other servers without net connectivity. Install.sh may even be a shell script, which has the same behaviour as yum install $PACKAGE, except that it will not use the network, but will only use $DIRECTORY.  Possible?  I am looking for a general solution where yum and RPM is available, but for specificity: It is on a set of CENTOS 6.7 servers.


Can we shorten the direct sum of modules?

Let $L,M,N$ be R-modules.  If $L\oplus M \cong L \oplus N $ does this imply $M \cong N$.


If $a^a$ divides $b^b$, then $a$ divides $b$?

Consider $a$ and $b$, both positive integers. Is it true that $a^a$ divides $b^b$ implies $a$ divides $b$?   I can't seem to figure out this proof. My intuition is to use the fundamental theorem of arithmetic to break each number into its prime components, however I haven't been able to come up with a solution. Any help would be appreciated.


I need advice...  I am an Android developer with 1 year of experience. After a last project I can't find a job because everybody is looking for much more experienced developers.  I did some manual QA jobs also in the past - that's why now I am considering to move into QA again (there are lower enter barriers in this field). But I'm affraid what most HR companies alredy familiar with my CV and "Android developer" profile (I live in relatively small city). And if some HR manager will receive my CV for QA position- he/she will decide that I'm developer/ not tester/ overqualified... How can I overcome this and receive some calls for QA positions?  Thanks for any thoughts!


Is there a problem with filtering questions after selecting them for the site homepage?

I occasionally open an incognito window on my  just to check if there are any interesting questions on tags I have ignored. Today a large number of negatively-scored posts have been edited, and when I visited the homepage I saw only 3 posts, instead of the expected 15 (see image below).  Checking against the most recently active questions page, these 3 are the only non-negatively rated questions in the most recently active 15 questions. Does it make sense to filter out the negative questions after picking the set of 15?  It seems counter-intuitive to me, and I would instead expect to see the most recently active 15 questions that are not negative. (It also doesn't look great to show a potential new user just 3 questions; the site looks a bit abandoned.)


Best practice for typesetting quantifiers?

When I work with quantifiers I noted that are very close to the other symbols and the result does not look good, for example  $\exists a\in\mathbb{R}\exists b\in\mathbb{R}\forall c\in\mathbb{R}\forall d\in\mathbb{R}$   Which is the proper form to write quantifiers?


How to access data from wire service on component load?

While working with @wire, I figured out that the data returned from the apex method is not available to use on component load. However, after load, when I I called a method(triggered through event), the data from apex method became accessable.   @wire (getCurrencySymbol)     objCurrency({data,error}){         if(data)             this.sCurrency = data;         else             this.sCurrencyError = error;     } get currencySymbol(){         // eslint-disable-next-line no-console         console.log('this.sCurrency get : ',this.sCurrency);         return this.sCurrency;     }   The data is not accessible inside js using any of the lifecycle hooks.   What I want here is to use this.sCurrency which should hold returned data inside another method which is called from connectedcallback and do some processing. Also, if I use {currencySymbol} on html, it displays the value returned from apex method but is still not accessible inside the other method(which I haven't added in the below code snipper).  Any idea how this can be accomplished?


Is it possible to define a Ruby singleton method using a block?

So, I want to define a singleton method for an object, but I want to do it using a closure.  For example,  def define_say(obj, msg)   def obj.say     puts msg   end end  o = Object.new define_say o, "hello world!" o.say   This doesn't work because defining a singleton method via "def" is not a closure, so I get an exception that "msg" is an undefined variable or method.  What I would like to do is something like using the "define_method" method in the Module class, but as far as I can tell, this can only be used to define a method on a class... but I want a Singleton Method...  So, I would love to write it something like this:  def define_say(obj, msg)   obj.define_singleton_method(:say) {     puts msg   } end   Does anyone know how I can achieve this without having to create a method to store a Proc and then use the Proc within a singleton method? (basically, I want a clean, non-hacky way of doing this)


How to assess an unknown journal's quality?

[I apologize if it has been asked, I think it must have been but I couldn't find a similar question.]  I often receive invitations / calls for papers to write papers in journals. 95% of these cases are obvious spam publications, but in about 5% I see a letter that's not entirely generic, e.g. they mention my previous publications in the subject** and they write something that appears genuine about the publication. They also write the name of the editor in chief.   My question is how to assess this new journal's quality? I mean, nice journal pop up once in a while and just because it's a new journal, does not mean it's necessarily "fake news".   Here are a few points I thought about:   Wait a few months/years until I see reputable people publish in it, but then I will have missed my shot, possibly. Inspect the editor's reputation. If she/he appears reputable (e.g. have published in journals I know to be good), then the journal is okay. Inspect the publisher's "parents", for example if it's ACM, Springer, IEEE, etc., then maybe it's worthwhile (but then, I can't say definitively either way).   I would appreciate any points on the subject.  ** yes, these messages can nevertheless be generated automatically.


Let $x_n=(1+\frac{y}{n})^n$. It is well known that $x_n\rightarrow e^y$ as $n\rightarrow \infty$. Now, if we consider $X_n=\left(1+\frac{y}{n}+o(\frac{1}{n})\right)^n$, then it makes sense that $X_n\rightarrow e^y$, too, because $o(1/n)$ vanishes faster than $1/n$ as $n\rightarrow\infty.$ However, how can this be shown rigorously? Does this also hold more generally? I.e., if $f(1/n)\rightarrow z$, do we then also have $f(1/n+o(1/n))\rightarrow z$?


I often search for closed questions and sift through the ones that are not duplicates to see if any of them need to be killed. Technically, closure is the first step towards deletion and the only closed posts that are actually useful are duplicates (unless it's a crappy one).  For the rest, if the community hasn't bothered to reopen it after a while or if the OP has made no effort to edit their question, I delete it if it has no redeeming content. For example, the only closed posts seen on  are exact dupes.  But this does become tedious when there are several results for various close reasons with duplicates interspersed between them. I'd like to be able to search as:  closed:1 duplicate:0   so that it gives a list of questions closed as OT/NaRQ/NC/TL. This will be similar in behaviour to migrated:0|1.   This will also be useful for 10k+ users on all sites (2k+ in beta) in the network, especially SO, so that they can search for questions to spend their delete votes on— especially closed, non-dupe questions in the tag they specialize in. More often than not, I hesitate to vote on questions that are outside my area of interest (unless it is crappy).


Prove the relation $\frac{1}{x}$=$\int^\infty_0$ $e^{-xt}$ dt, for $x>0$. Use it to prove $\int^\infty_0$ $\frac{\sin(x)}{x}$ dx = $\frac{\pi}{2}$

Prove the relation $$\frac{1}{x} = \int^\infty_0 e^{-xt}\,  \text{d}t, \text{ for } x>0.$$ Use it to prove $$\int^\infty_0\frac{\sin(x)}{x}\, \text{d}x = \frac{\pi}{2}.$$  "Hint: Use appropriate double integrals as in calculus. When the double integrals are proper, the conditions for switching the order of integration are valid. Then take the limits." I'm assuming that's for the second part but I could be wrong.


Restrict access to a sub-folder while sharing access to a folder on team drive

was asked by Henk Straten on 5 July 2017 and answered by Zach Saucier:  I have a Google Drive folder that I want to share with 2 more people. However I would like to restrict one the folders. So let's say we have John and Josh, how can I can I share the whole google drive folder with John and Josh and only a sub-folder within the drive with Josh?  My follow up question is: Can any Manager make these changes? I can add and remove members in the parent directory but the "Share" option is grayed out in the sub-directory.


Why doesn't position and momentum commute?

I'm trying to understand the reason for Heisenberg's uncertainty principle which I read is a "fact of nature" rather than an experimental limitation. I found this  in which the accepted answer talks about quantum objects as being wavepackets which seems to satisfy the criteria for HUP and how position and momentum can be related by Fourier transforms. However we can reach this result without even considering quantum objects as wave-packets from commutator relations between position and momentum. I'm aware of how to calculate the commutator of position and momentum from their definition in Schrodinger's equation. What I am seeking is the reason why they can't commute. The introductory textbooks (Griffith's: Introduction to Quantum mechanics and Arthur Beiser's: Modern physics) I've read so far don't seem to mention the reason why they don't commute and take it as an axiom. I would like some justification for it.


I've seen lately that new question editing is stored somewhere for later use if we wander off the new question without posting it and then return back to the page. Which is a good functionality addition in it's own right.  What I'd like to also have is the Discard this draft functionality that would clear form data and forget it. Somehow we find an answer in the meantime and the question isn't valid any more.  So having a Discard saved draft or something similar would be a nice contra-functionality to auto-save to remove stored data. The way it's implemented now seems too hidden hidden and unpredictable to users.  Additional edit  When adding hidden auto functionality usually means creating the opposite as well by either giving the possibility to preference of not having automatism at all or giving the possibility to clear what's been auto saved.  Let's see how GMail doesn't work (and I think we all agree that from UX perspective it does the job as expected:   User clicks Compose message User starts writing a new email message User decides to not send the message and checks their inbox User clicks Compose message again A clean form is presented to user (old one being part of drafts)   I'm not suggesting we should have something like Saved drafts but we surely should have the possibility to clear previous question draft.  Since this new functionality was introduced I should point out that I would use the discard functionality more frequently than the saved one. I do welcome saving messages, but discarding of saved drafts is anything but a rare situation one might want to do. It wouldn't be a problem if this was a 1% against 99%. To me it's more like 50/50.  Best possible solution  When providing saved drafts there should (from the UX perspective) be the opposite functionality as well. Namely discarding of it. But first thing we should be asking ourselves is:    do users more frequently need pre-filled saved question draft or do users more frequently need empty form with the possibility to populate it with a saved draft   User testing should provide the usage frequency between the two and the one that's more likely to happen (my guess is that there would be a big difference between the two) should be implemented. So one of these:   Pre-populate question fields with saved draft on question form load, while also providing a button to clear the draft and start writing anew without the need to manually clear all the fields (which would be the optimal solution in case of a single field form) Question form should always load empty while also having a button that would pre-populate it with a saved draft.   I think this would be the best consensus related to saved question drafts and their usage. But as we've seen this issue has been swept under the rug for an indefinite time.


Why $x^{a\cdot b} \equiv x \pmod{n}$ where $b$ is the inverse of $a$ in $\mathbb{Z}_n$?

I'm currently studying the RSA algorithm and while I understand why if $b$ is the inverse of $a$ in $\Bbb Z_n $ then $ab  \equiv 1\pmod{n}$.  I don't quite understand why $x^{ab} \equiv x \pmod{n}$. Can I just replace $ab$ with $1$? A proof showing why this holds would be really helpful.


all $A_i$ are connected sets such that $\bigcap\limits_{i\in E} A_i \neq \emptyset$ then $\bigcup\limits_{i \in E} A_i$ is connected

This is my proof  Suppose not. Then, $\cup A_i$ has an open partition $\{U,V\}$ $U \subseteq \cup A_i$ so we only need to show two cases:  $U \subseteq \cup A_j$ with $U \neq \cup A_j$ for some $J \subseteq E$. Then there exists some $A_k$ such that $U \neq A_k$ with $U \cap A_k \neq \emptyset$. Thus $\{ U \cap A_k,V \cap A_k \}$ is an open partition of $A_k$. By assumption, $A_k$ is connected. It's a contradiction with [$\cup A_i$ is disconnected]  $U= \cup A_t$ for some $T \subseteq E$. Since $V \neq \emptyset$, there exists some $A_k$ such that $(A_k-U) \neq \emptyset$. Let $J=T \cup \{k\}$. Then by Case 1, It's a contradiction with [$\cup A_i$ is disconnected]    Is it okay?? I'm not sure about this...