Create user who can only access one directory

I would like to create a user that only has access to one folder and nothing else whatsoever.  I have already created a user but he has access to other parts of the system according to corresponding file settings. I don't want him to have that, I want him only to have access to one folder and nothing else. Everything else should preferably be just invisible to him.  Is it possible to create such a user,and if so, how do I go about doing that?  p.s. Removing 'other' privileges of other users home directory goes a bit of the way towards this end. But this limited user still has access to all the base directories like /etc and such. And he can still see other users home directory, even though he cant access them.


Why does dpkg --list no longer show all installed programs?

I recently tried to install GIMP (photo-editor) using the terminal and I think it required me to install flatpak, which I don't really understand and shouldn't have installed it I guess, because now I can't do what I could before. I have since uninstalled flatpak, but still have same problem. Earlier, when I was using dpkg --list to get the name of a program I wanted to uninstall, I could see a full list of all installed programs. Now I just get this weird list that doesn't look like programs, and it starts in alphabetical order but only starting at the letter "L", e.g.: libgphoto2-6:a 2.5.16-2     amd64        gphoto2 digital camera library  is the first entry. And then: zlib1g:amd64   1:1.2.11.dfs amd64        compression library - runtime  is the last entry. It doesn't seem to be listing programs. Like, I have clementine installed and its no longer listed with that command. I am so confused. To give another example, I installed and uninstalled a media player successfully earlier today using the terminal, using dpkg --list to determine said program's name. I can no longer see any real programs using this or similar commands I have found here. EDIT: apt list --installed gives the same stupid incorrect list. Maybe it's showing libraries instead of programs now??


Separating academic identity from social identity

I would like to start publishing scientific papers soon. This issue pertains to the name I will use when publishing.   Basically, I would like to keep my personal and academic life separate and my question is "how can I do this?".   To make it clearer why I want to do this, I'll mention that my current legal name is associated with a certain subculture which is quite unconventional. I want people searching/Googling my professional name to only be exposed to my "academic identity", and people searching for my legal name to only be exposed to my "social identity". There is nothing illegal going on. I'll give an example which is close to reality but I'll refrain from giving exact information. The example is that my "social identity" is an author of erotic novels while my "academic identity" writes papers in mathematics. That's not too far from the reality. I would assume I am not the first one to have unconventional interests outside academia, the issue I guess is that my legal name is already tied to such an interest, which is a problem. And yes, this is quite amusing; feel free to laugh  I would be thankful for any ideas which would allow me to fulfill both my passions, despite their disharmony.  Basically, I don't want the names to mix together when someone searches for one of them, but I still want to be able to prove that I wrote the papers (in case I want to use them when applying for a job or for grad school). Hopefully there is some way to achieve this.  Other creative ideas to solve this issue are always welcome; maybe I am focusing too much on the name thing and there are other solutions.    I'll wrap this up with some ideas that I had:   I could just use a pen name for my academic papers I guess. I have finished my BSc lately. Problem here is that if I later want to apply to grad school, and I want to show that I have published papers, it could be hard to prove that I have written them (will it? maybe I'll have a pen-name on the papers but prove ownership by other means? like the email address on the paper?). I could use a different spelling of my legal name on the papers (my legal name is not in English anyway, though I graduated from an English speaking university so my BSc has my name in English). That seems like they could still be linked relatively easily though and one could potentially show up when someone Googles the other name. I could take on a new middle name (e.g. I could use a variation of my late grandfather's name, which I would gladly do) and use that as the first name in published papers (that seems like it could potentially work).   Some more comments   My last name is very common; my first name is very uncommon I am aware of course that if I go to grad school they'll probably Google my legal name as well, and of course people who know me personally would be aware of what I do. It would be nice to limit it to those scenarios though.  Yes, I know I should have thought of this before linking my legal name to unconventional topics. I did not tell the whole story though and there was a reason for that.


Transistor current control with positive feedback differential amplifier

Hi Folks,  I want to analyse the functionality of following OpAmp configuration which seems to be employed as voltage - current conversion. Positive feedback (This is not a Failure and is intentionally done so !) from current sense resistor 1 Ohm is being fed back to Op Amp and compared with reference voltage +15V while being added to \$V_{in}\$. The error signal is amplified by open loop gain of OpAmp to drive the transistor emitter current. The transistor emitter current is almost equal to transistor collector current.  I would appreciate if someone can add further to my analysis.  $$V_{out} = A \cdot (V_+ - V_-)$$  $$Ie = \dfrac{V_{out} - V_{be}}{R_e}$$  \$I_c\$ is approximately equal to \$I_e\$, voltage at feedback node is:  $$V_c = 15 - I_c$$  \$V_+\$ is again depending on output current \$I_c\$, which can be solved using simultaneous equations.  The problem is, when this circuit is simulated in LtSpice the gain of OpAmp which is mentioned to be 85dB in data sheet as typical value doesn't comply exactly with the output voltage from simulation but only for a small range of input voltages. For different range of input values \$V_{in}\$, only certain values of calculated output voltages \$V_{out}\$ come out to be same as from simulation and few even exceed \$+V_{cc}\$ which is not possible in simulation as it saturates at \$+V_{cc}\$.  It looks as if either the gain of OpAmp varies with different input voltages or my mathematical modelling has errors.  I would like to share your experience generally about the configuration, and any hints about mathematical transfer function from \$V_{in}\$ to output emitter current of NPN transistor.


What is the better way to name a new interface ? Would you write HasName or Nameable?  Is there a general computer science standard, or only a Java habbit ?


Overview  So say I want an arc between the x and z axis in the same way the following creates an arc between the x and y axis (MVCE):  \documentclass[border=5mm]{standalone} \usepackage{tikz} \begin{document}   \begin{tikzpicture}     \tikzset{       x={(0:1cm)},y={(50:0.7cm)},z={(90:1cm)}     }     \draw[->] (0,0,0) --++ (1,0,0) node[right]{$x$};     \draw[->] (0,0,0) --++ (0,1,0) node[right]{$y$};     \draw[->] (0,0,0) --++ (0,0,1) node[right]{$z$};     \draw (0,0,0) ++(0:.3) arc (0:90:.3);   \end{tikzpicture} \end{document}     One solution to this exact problem is to do scope and tell arc that the y-axis is the z-axis.      \begin{scope}       \tikzset{y=(90:1cm)}       \draw (0,0,0) ++(0:.3) arc (0:90:.3);     \end{scope}   The problem  However, I need this more generic since I don't necessarily know how the y-axis is defined, so I'm looking for a way to do, essentially this:      \begin{scope}       \switchYZAxes       \draw (0,0,0) ++(0:.3) arc (0:90:.3);     \end{scope}   or      \begin{scope}       \tikzset{y=\theZAxis}       \draw (0,0,0) ++(0:.3) arc (0:90:.3);     \end{scope}   The latter is problematic because it seems like I can't send polar coordinates to the \tikszet via a macro (which is the background for  question).  Any ideas? Thanks :)


Find $\min(\operatorname{trace}(AA^T))$ for invertible $A_{n\times n}$

For invertible $A_{n\times n}$ find $\min(\operatorname{trace}(AA^T))$  (a) $0$ (b) $1$ (c) $n$ (d) $n^2$  Clearly for $A=I$, it is $n$, and I am unable to get any lower values, but how do I prove it.


Why is my JSON result method returning response error (500)

I am performing AJAX file upload operation in my ASP.net MVC application in which I also use angularjs.  Service method call:      uploadFile: function() {         var defer = $q.defer();         var fileInput = document.getElementById("files");         var messageHeaders = { 'Content-Type': 'application/x-www-form-urlencoded' };         messageHeaders['X-File-Name'] = encodeURI(fileInput.files[0].name);         messageHeaders['X-File-Type'] = encodeURI(fileInput.files[0].type);         var fileData = fileInput.files[0];          $http({             url: window.ROOT + 'EmployerBenefit/UploadFile',             method: "POST",             data: fileData,             headers: messageHeaders         }).success(function(callback) {             defer.resolve(callback);         });         return defer.promise;     },   Controller Method:  [AllowAnonymous] public JsonResult UploadFile(string attachmentType, int planId = 24527) {     var success = true;     string message = ApplicationMessage.InvalidParameter;     // Validation part removed     if (success)     {         var inputStream = Request.InputStream;         var fileLenght = (int) inputStream.Length;         var fileName = HttpUtility.UrlDecode(Request.Headers["X-File-Name"]);         var bytes = new byte[fileLenght];         Request.InputStream.Read(bytes, 0, fileLenght);         if (!Directory.Exists(Server.MapPath("/Content/Images/" + CommonFunctions.ParseString(planId))))         {             Directory.CreateDirectory(Server.MapPath("/Content/Images/" + CommonFunctions.ParseString(planId)));         }         System.IO.File.WriteAllBytes(             Server.MapPath("/Content/Images/" + CommonFunctions.ParseString(planId) + "/" + fileName), bytes);      }      Response.StatusCode = (int)HttpStatusCode.OK;     return Json(new {success, message}, JsonRequestBehavior.AllowGet); }   Question:  I have an interceptor to handle response errors in a factory, even though I set the response status as OK the interceptor is picking up responseError (500)?  Where am I going wrong?


Something weird. I want to test if a sum of a tuple elements is 1 and then assert if not.   my_tuple=(0.8,0.2,0) assert((sum(my_tuple)==1))   This works. It works for other tuples like ( 1,0,0) or (0.1,0.2,0.7).  But it raises an error for this tuple (0.7,0.2,0.1) eventhough the sum is clearly 1 !!   Do you have any idea about this ?  Thank you


Check if an object belongs to a class in Java

Is there an easy way to verify that an object belongs to a given class? For example, I could do  if(a.getClass() = (new MyClass()).getClass()) {     //do something }   but this requires instantiating a new object on the fly each time, only to discard it. Is there a better way to check that "a" belongs to the class "MyClass"?


TypeError: $ is not a function Error using parallax effect in Wordpress Template

I`m trying to include a parallax Effect into one of my cutsom page templates. The js function is returning the following error in the firebug console:  TypeError: $ is not a function  The error is on the first line wich is:  var parallaxElements = $('.parallax'),  Any help would be appreciated. Here the full code:      var parallaxElements = $('.parallax'),         parallaxQuantity = parallaxElements.length;      $(window).on('scroll', function () {      window.requestAnimationFrame(function () {      for (var i = 0; i < parallaxQuantity; i++) {         var currentElement =  parallaxElements.eq(i);         var scrolled = $(window).scrollTop();          currentElement.css({         'transform': 'translate3d(0,' + scrolled * -0.3 + 'px, 0)'         });      } });  });


I can only open my asus laptop as a guest so can reset my lost password can anyone help


I have just become a DBA for a large company they are currently looking to decommission a 2008 R2 server. Is there any way of being able to find out if the databases are still being used and by which application without taking the databases off line and seeing who yells that it's broken.   Thanks In Advance


prove $\cos \left(\alpha \right)+\cos \left(\beta \right)+\cos \left(\gamma \right)$ equals.... if $\alpha +\beta +\gamma =\pi $

I am looking at the solution of this problem:  $$\cos \left(\alpha \right)+\cos \left(\beta \right)+\cos \left(\gamma \right)=4\sin \left(\frac{\alpha }{2}\right)\sin \left(\frac{\beta }{2}\right)\sin \left(\frac{\gamma }{2}\right)$$ and it says this in the solution as the first step: $$\cos \left(\alpha \right)+\cos \left(\beta \right)+\cos \:\left(\gamma \:\right)=2\cos \left(\frac{\alpha +\beta }{2}\right)\cos \left(\frac{\alpha -\beta }{2}\right)-2\cos \left(\frac{\alpha \:+\beta \:}{2}\right)^2+1$$  I understand that the $\cos \alpha +\cos \beta=2\cos \left({\frac {\alpha +\beta }{2}}\right)\cos \left({\frac {\alpha -\beta }{2}}\right)$ is used, however how is the $cos \:\left(\gamma \:\right)$ transformed? I assume I should use the $\alpha +\beta +\gamma =\pi $ to replace $\gamma$ but can't seem to figure it out? Any help is very much appreciated. x


Two identical TF2 items with different levels?

I discovered two items with different levels. They have identical names, symbols, and descriptions in my backpack:      Why are the levels different? Are the items identical? If there is a difference, what is it?


LTN- STN -LGW - SEN Which Airport has good public transport connection to London center?

If you live or fly to London (center) which of the following airports you choose in respect of time and cost to the center?   STN (Stansted Airport) LTN (Luton Airport) LGW (Gatwick Airport)  SEN (Southend Airport)     I just left Heathrow Airport (LHR) because it is direct connected with metro.


Is the term PoWs (POWs) inconsistent with typical acronym pluralization?

Prompted by recent remembrance day celebrations, it seems to me that the term PoWs is inconsistent with pluralization conventions.  Runs Batted In --> RBI Prisoners of War--> PoW (shouldn't this be the plural?)  I read that laser appears to have become a noun unto itself and is thus pluralized as . Is PoWs an accepted noun or is it an oddly pluralized acronym?   Other acronym pluralization questions that don't address PoW(s) directly:


How can objects with no net acceleration gain energy?

Suppose I have a box on the floor. I lift this box up, being very careful to make sure it rises with a constant upward velocity. (Yes, I will need to accelerate it to start, but assume I do that quickly.) Now, as this box rises with this constant velocity, it gains potential energy, but how? From my understanding, the work done on a body is the integral of its net force over the path it takes. If velocity is constant there is no net force, so there would be no net work done, so somehow this potential energy was created without any work being done ... this makes no sense.  I know this must be wrong since energy is always conserved, but I can't seem to find a flaw in this reasoning.


-1 point on a page where I have never interacted

Can someone kindly shade some light on this?  I see a "-1" reputation in my history from this page:    But I do not recall having ever commented or answered the question.  I have checked in all my actions and the page is not mentioned.


Error in android application after trying to sign up

it's my first time working on android studio for a college project and i'm getiting an error, when I try to sing up i get an exception, this is the client activity which displays an error: package com.example.myapplication;  import androidx.appcompat.app.AppCompatActivity;  import android.content.Intent; import android.database.Cursor; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.ListView; import android.widget.SimpleCursorAdapter; import android.widget.TextView;  public class ClientsList extends AppCompatActivity {     ListView ls;     Helper h=new Helper(ClientsList.this);     @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_clients_list);         ls.findViewById(R.id.clientList);          Cursor c=h.getAllClient();         SimpleCursorAdapter adapter=new SimpleCursorAdapter(ClientsList.this,R.layout.client_item,c,                 new String[]{c.getColumnName(1),c.getColumnName(2),                         c.getColumnName(3)},new int[]{R.id.textViewNom,R.id.textViewPrenom,R.id.textViewCIN},1);         ls.setAdapter(adapter);         ls.setOnItemClickListener(new AdapterView.OnItemClickListener() {             @Override             public void onItemClick(AdapterView<?> parent, View view, int position, long id) {                 TextView t=view.findViewById(R.id.textViewNom);                 Intent x=new Intent(ClientsList.this,DetailClient.class);                 x.putExtra("nom",t.getText().toString());                 startActivity(x);             }         });     } }  the error i get is : java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.myapplication/com.example.myapplication.ClientsList}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.widget.ListView.findViewById(int)' on a null object reference  on line 21 of my client code which is: ls.findViewById(R.id.clientList);  Any help will be apperciated


I am reading the section on Castelnuovo-Mumford regularity from Lazarsfeld's Positivity in algebraic geometry. Theorem 1.8.3 in the book reads as follows: Let $F$ be an $m$-regular sheaf on $P^n$. Then for every $k \geq 0$ (i). $F(m+k)$ is generated by its global sections. (ii). The natural maps $$H^0(P^n, F(m))\otimes H^0(P^n,O_{P^n}(k))\rightarrow H^0(P^n,F(m+k))$$ are surjective. (iii). $F$ is $(m + k)$-regular. The proof claims (i) is a consequence of (ii): it says that, since for $l\gg 0$, $F(m+l)$ is globally generated, the surjectivities in (ii) imply that $F(m)$ itself must be globally generated. I am not able to understand this statement. Choose $l\gg 0$ such that $F(m+l)$ itself is globally generated. Now consider the morphism $$H^0(F(m))\otimes O_{P^n}\rightarrow F(m)\,.$$ We need to prove that this is surjective. Tensoring by $O(l)$, we get $$H^0(F(m))\otimes O_{P^n}(l)\rightarrow F(m+l)\,.$$ A priori we do not know the injectiveness or surjectiveness of the above morphism. But if we take global sections, by (ii), the global sections morphism is surjective. Does this mean $H^0(F(m))\otimes O_{P^n}(l)\rightarrow F(m+l)$ is surjective? If so, I can tensor back by $O(-l)$ and get my required result. Thanks in advance.


Why is this basic solution to a differential equation correct?

I have asked questions before, and have read many questions and answers from others on stackexchange, about how to treat "$dx$" in a differential equation.   people often have the intuition of treating $dx$ in the term "$\frac{df}{dx}$" as if it were a separate subterm of that, even though $\frac{df}{dx}$, or at least $\frac{d}{dx}$ is an operator, and shouldn't be seen as a fraction of two seperable elements.   Nevertheless, when solving the simple differential equation $\frac{dx}{dt}=x$, people often proceed as follows:     $$(a):\qquad \frac{dx}{dt}=x$$   Step 1: multiply by $dt$ and subtract by $x$:   $$(b):\qquad \frac{1}{x}dx=dt $$   Step 2: integrate both sides:   $$(c): \qquad \int\frac{1}{x}dx=\int dt$$   Step 3: Solve the integral:   $$(d): \qquad ln(x)=t+C\implies x=e^{t+C}=x_0e^t$$   So my questions are   we know that the justification of Step 1 as "multiplication" is incorrect, since $dx$ and $dt$ are not seperable elements, so what is the justification for going from equation $(a)$ to $(c)$? When $a=b$, we can conclude that $\int adx=\int bdx$, since this takes the integral of both sides with respect to the same variable, but What is the justification of inserting the integral sign in equation $(c)$, without also adding the differential $dx$ to both sides?


How to use ifconfig to show active interface only

By default ifconfig will show me all available interfaces , but what if I just want to display active ones? Like, en0 only in below.   en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500     ether 14:10:9f:e0:eb:c9      inet6 fe80::1610:9fff:fee0:ebc9%en0 prefixlen 64 scopeid 0x4      inet X.X.X.X netmask 0xffffff00 broadcast 101.6.69.255     nd6 options=1<PERFORMNUD>     media: autoselect     **status: active** en3: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500     options=60<TSO4,TSO6>     ether 32:00:14:e7:4f:80      media: autoselect <full-duplex>     **status: inactive**   Notice ifconfig en0 will not satisfy, en0 is not always the active one ;)  I'm running Mac OS X.


Prove that if d is a common divisor of a and b, then $d=\gcd(a,b)$ if and only if $\gcd(a/d,b/d)=1$

Prove that if $d$ is a common divisor of two integers $a$ and $b$, then $d=\gcd(a,b)$ if and only if $\gcd(a/d,b/d)=1$.   So far I used what was given so I have $a=dk$, $b=ld$ and $\gcd(a,b)=d$ can be written as a linear combination of $ax+by=d$ but I am unsure how to use the information.   Where do I go from here? Can someone show me how to solve this using Bezout's Identity if possible?


How do we know from representation theory that a massless spin-1 particle has only two polarizations?

In chapter 8.2.3 of Schwartz' textbook "Quantum Field Theory and the Standard Model", the author states the following,      Finally, we expect from representation theory that there should only be two polarizations for a massless spin-1 particle, so the spin-0 and the longitudinal mode should somehow decouple from the physical system.    How does "representation theory" tells us about the polarizations of a massless spin-1 particle? Could someone please explain this statement?


Is there any difference between "string" and 'string' in Python?

In PHP, a string enclosed in "double quotes" will be parsed for variables to replace whereas a string enclosed in 'single quotes' will not. In Python, does this also apply?


Finding determinant of matrix involving binomial coefficients

I have been trying to solve a problem and have given my answer in the form of a determinant, namely: \begin{align*} \det\begin{pmatrix} \binom{q}{2} & q & 1 & 0 & \dots & 0 \\ \binom{q}{3} & \binom{q}{2} & q & 1 & \dots & 0 \\ \binom{q}{4} & \binom{q}{3} & \binom{q}{2} & q & \dots & 0 \\ \binom{q}{5} & \binom{q}{4} & \binom{q}{3} & \binom{q}{2} & \dots & 0 \\ \vdots & \vdots & \vdots & \dots & \ddots & q \\  \binom{q}{n+1} & \binom{q}{n} & \binom{q}{n-1} & \binom{q}{n-2} & \dots & \binom{q}{2}  \end{pmatrix} \end{align*} This is probably enough, but I thought I'd challange myself and dust off my old linear algebra skills. Unfortunately, it is not going well. I have attempted brute forcing it by multiplying out coefficients, but I don't think that is the way to go, because I am getting nowhere. Everytime I touch it I seem to be increasing the complexity rather than decreasing it...   Is there a good way to tackle this problem, or is this as good as it gets?  Any help would be much appreciated!


Show that $$\sin^2x\cdot\sin^22x\cdot\sin^24x\cdot\sin^28x\cdots\sin^22^nx\leq\frac{3^n}{4^n}$$  I understand the result of an arithmetic sequence $(\sin1^\circ)(\sin3^\circ)(\sin5^\circ)…(\sin89^\circ)$, how about the geometric sequence case?


English prepositions are difficult even for/to me.   Which one is correct, for or to? Is there a difference? Can they be used interchangeably?


How can I burn an ISO file to a blank disk?

I have downloaded the Ubuntu 10.10 ISO file and am trying to burn it to a blank disc so that I can install it, using Ubuntu 8.04. I have a dual boot system with Windows and Ubuntu.   Here's my experience so far:   Boot up my current install of Hardy Heron Go to install updates. Click on Check and informed that 8.10 is available. Firstly install any other updates. Click on Upgrage, get error 'Could not find release notes' Manually download entire 10.10 image from the internet Attempt to burn to disc using Brasero. Burn fails Can no longer mount any discs Restart Can no longer mount any blank discs, but can mount audio discs Restart, now I can mount blank disks Right click on .iso image and choose "Open with CD/DVD creator" Attempt to burn image to disk Wait 20 minutes while disc is apparently burning, for some reason when it is finished it is still blank Attempt to burn again with Brasero, burn completes. Asks me to reenter disk for checksum. Checksum check freezes after 10 minutes. I attempt to eject disk and it tells me 100% success. After restarting from newly burned CD it shows me a screen with Ubuntu and 5 dots, it stays like that for 10 minutes and then eventually I get an error cannot mount disk.


In Terraria, the mud block seems a little useless, I read on the crappy Wikia page that Mud blocks can be used to grow mushrooms in some fashion.  From :     Mud is slightly darker than normal   Dirt. It will sustain Underground   Jungle grass as well as Mushroom   Grass, but only at below-zero depths.      The largest single source of Mud in   any given world is the Underground   Jungle.   Does anyone know how to do this?  Should I plant mud blocks next to some green growth?


How do you express that your understanding of something is completely changed?

When something blows your mind and changes your understanding of something that you've believed in for years, how do you express it (formally or informally)?


Calculate ln(x) using 8-digit calculator

I have a bit of a unique problem. Well, maybe not a problem because I'm really just curious about it, but...  I have a simple 8 digit calculator. It has +, -, x, /, and a constant operation function. It has no usable memory slot.  I need (lit. would like to know how) to calculate ln(x) on this calculator. Any series I have found lose a lot of precision since whatever is outside the 8 digit range is truncated without rounding. I have used Padé approximants with trig functions, and a continued fraction for exp(), but none of these two methods are adequate for ln(x), either because there is no way around the truncation error or it requires writing down many intermediate values, or it requires memorizing and punching in many constants.  Does anyone know any good way to calculate ln(x) (or any other base, since memorizing one constant is OK) to as many digits as possible as easily as possible on this calculator (bonus points to methods where the value on the screen is immediately, meaning you don't need to write it down)?  For that matter, if you happen to know some good ways to calculate other special functions, I am interested in that as well.  Thanks!


How to disable 'A new version of DivX is available' pop-up?

Everyday I see the annoying popup message in the upper right corner saying:  A new version of DivX is available Update Now / What's New   I'm closing it using X button, but it's appearing again after some short time (every ~10-15 minutes), so it's very annoying. It's basically forcing me the upgrade which I don't want to do currently. Either I don't want to uninstall it (however it's the last resort). Is there any way to disable that kind of popup? Or ignore it for the next few weeks?


One of our websites has a glitch which occasionally takes it down - the back end needs to be restarted.  The replacement is not yet ready for production, so I've created a VBS script which polls the server and restarts the server if:  a) The HTTP status code <> 200, or b) The page loads but a substring is not found on the page.  The HTTP status check times out if the tomcat service fails to respond; I would like to call a function if that occurs.  Is it possible to capture and handle a timeout?  This is a snippet of my relevant code pieces.  xmlhttp.setOption 2, 13056 xmlhttp.open "get", "https://www.mywebsite.com/thisurl", false xmlhttp.send  if xmlhttp.status <> 200 then     call restartTomcat()     call emailAlert() end if   Thank you in advance.


Remote upgrade from 18.04 LTS to 20.4 LTS stopped - How to resume?

I'm doing a remote upgrade from 18.04 LTS to 20.4 LTS over ssh, trying to follow this recipe:  However, it seems the upgrade stopped while cleaning up the packages -- it detached from screen and never got to the "System upgrade complete" message. Running sudo do-release-upgrade -d again says "There is no development version of an LTS available". Since this is remote, I'm afraid to reboot or do the wrong thing. How can I check/resume/fix the upgrade? Here's the last part of the /var/log/dist-upgrade/.../main.log: 2020-09-26 10:20:41,799 ERROR not handled exception: Traceback (most recent call last):    File "/tmp/ubuntu-release-upgrader-soxxvnbe/DistUpgrade/DistUpgradeCache.py",  line 997, in tryMarkObsoleteForRemoval     self.restore_snapshot()    File "/tmp/ubuntu-release-upgrader-soxxvnbe/DistUpgrade/DistUpgradeCache.py",  line 370, in restore_snapshot     pkg.mark_delete()    File "/usr/lib/python3/dist-packages/apt/package.py", line 1509, in mark_delete  apt_pkg.Error: E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.   During handling of the above exception, another exception occurred:   Traceback (most recent call last):    File "/tmp/ubuntu-release-upgrader-soxxvnbe/focal", line 8, in <module>     sys.exit(main())    File "/tmp/ubuntu-release-upgrader-soxxvnbe/DistUpgrade/DistUpgradeMain.py", line 238, in main     if app.run():    File "/tmp/ubuntu-release-upgrader-soxxvnbe/DistUpgrade/DistUpgradeController.py", line 2081, in run     return self.fullUpgrade()    File "/tmp/ubuntu-release-upgrader-soxxvnbe/DistUpgrade/DistUpgradeController.py", line 2058, in fullUpgrade     self.doPostUpgrade()    File "/tmp/ubuntu-release-upgrader-soxxvnbe/DistUpgrade/DistUpgradeController.py", line 1484, in doPostUpgrade     if not self.cache.tryMarkObsoleteForRemoval(pkgname, remove_candidates, self.forced_obsoletes, self.foreign_pkgs):    File "/tmp/ubuntu-release-upgrader-soxxvnbe/DistUpgrade/DistUpgradeCache.py", line 243, in wrapper     res = f(*args, **kwargs)    File "/tmp/ubuntu-release-upgrader-soxxvnbe/DistUpgrade/DistUpgradeCache.py", line 1001, in tryMarkObsoleteForRemoval     self.restore_snapshot()    File "/tmp/ubuntu-release-upgrader-soxxvnbe/DistUpgrade/DistUpgradeCache.py", line 370, in restore_snapshot     pkg.mark_delete()    File "/usr/lib/python3/dist-packages/apt/package.py", line 1509, in mark_delete  apt_pkg.Error: E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.


How to prove $ \prod_{d|n} d= n^{\frac{\tau (n)}{2}}$

how to prove:   $$ \prod_{d|n} d= n^{\frac{\tau (n)}{2}}$$   $\prod_{d|n} d$ is product of all of distinct positive divisor of $n$,  $\tau (n)$ is number (count)of all of positive divisor of $n$


How to have click() work on javascript dynamically created items?

I am currently trying to figure out why the click() does not work on the buttons that have been dynamically created with js. Below is the code I have:         jQuery(document).ready(function()             {                  jQuery.ajax({                 url:ajaxobject.ajaxurl,                 method: 'GET',                 data: {                     action: '2017_application'                 },                 success: function(data)                 {                     var applications = JSON.parse(data);                      for (var i = 0; i < applications.length; i++)                     {                         var content = '
' +                                              '
' + applications[i]['teamname'] + '
'+                                             '
' + applications[i]['firstname'] + '
'+                                             '
' + applications[i]['lastname'] + '
'+                                             '
' + applications[i]['status'] + '
'+                                              '
' +                                                 '<button onclick="window.location.href=\'/info/?teamname='+ applications[i]['teamname'] + '\'">View</button>
' +                                                 '<button class = "app2-accept" tname='+applications[i]['teamname']+'>Accept</button>
' +                                                 '<button class = "app2-remove">Remove</button>
' +                                             '
'+                                         '
';                          jQuery("#app2-table").append(content);                     }                 }             });   When I use click() on the ".app2-accept" nothing happens.      jQuery(".app2-accept").click(function()                  alert("Testing");           });   Can anyone advise how to resolve this?


What is the maximum length of a textarea?

I am trying to increase (or set to a default number) the amount of characters a textarea can have. I know there is a maxlength attribute for HTML5 but I am using an older version of HTML so this is not an option.  Is there any way to do this? What is the default maximum length of characters allowed in a textarea?


Advanced search form with filters for custom taxonomies and custom fields

I'd like to build an advanced search form for a specific custom post type, having filters for the custom post types custom fields, custom taxonomies, and for a separate custom post types properties (fields and taxonomies) which will be links to the first post type using a custom relationship field.  I've recently started off with WPs custom post types, fields, and taxonomies, I love it so far but to make the best of it I'd like to be able to search it properly. Do I need to do it manually? If so, how?  PS. If it matters, I'm using the plugins:  and .  Below I've mocked up an example of how the filtering would look and how it might relate to the post types above.


How to set up Dolphin as default file manager?

I've recently came back to Ubuntu from Kubuntu, but I really like Dolphin. Is there any way how to set it up as default file manager?


I have tried implementing the divide and conquer technique of binary search using recursion. The code for it can be seen below. I think when the program is run, I'm getting stack overflow. If anyone does manage to find a solution, I would greatly appreciate a reason for why this happens.   public class binarySearch{     public static void main(String[] arguments){         int[] array = new int[]{1,2,3,4,5,6,7,8,9};         int findNum = binSearch(array, 9, 0, array.length-1);     }      public static int binSearch(int[] array, int searchNum, int left, int right){         int foundIndex = 0;         boolean found = false;         int mid = (right+left)/2;         if(array[mid] == searchNum){             found = true;             foundIndex = mid;         }         else if(array[mid] > searchNum){             right = mid;             binSearch(array, searchNum, left, right);         }         else if(array[mid] < searchNum){             left = mid;             binSearch(array, searchNum, left, right);         }          if(found = true){             return foundIndex;         }         else{             return -1;         }     } }


How does node.js achieve promise-awareness with local variables inside a for-loop?

I have a for-loop which contains some local variables n that is declared inside the loop. So I expected the value of n to be destroyed once the program goes out of the loop.   However, it appears that the value of n is still available outside of the for-loop. Why is that? Also, when should I expect the value of n (also the value k if uncommented) to be destroyed?  const delayHelper = require('./delayExecutor')  async function main() {   let promises = [];   let records = [1, 2, 3, 4];    for(let i = 0; i < records.length; i++) {     let n = 1000 + records[i];     // let k = 123;     promises.push(delayHelper.delayResolve(() => records[i], 1000).then(data => data + n))   }    console.log(await Promise.all(promises));   //print: [ 1002, 1004, 1006, 1008 ] }  main()   //delayExecutor.js  let delayedResolve = (fun, ms) => {   return new Promise((y, n) => {     setTimeout(() => {       y(fun());     }, ms);   }); };  exports.delayResolve = delayedResolve;


How to set audiobooks to repeat on iPhone

A while ago Apple moved audiobooks from the music app to iBooks. Now I can't listen to audiobooks on repeat. Is there any way of getting back this functionality?


A reverse birthday problem: no pair out of 1 million aliens shares a birthday; what is their year length?

Assume a planet with a very very long year of $N$ days.  There are 1 million aliens at a party in a room, and no one at all shares a birthday.  What can be inferred about the size of $N$?  (This more compact question supersedes )


How to produce a USB stick from my Ubuntu?

I am a new Ubuntu user.  I would like to copy my Ubuntu system with all the programs and installations that I have made into a USB.  The reason is that I cannot install Ubuntu again in all the other laptops that I have, and redo all the installations, because that would take a lot of time.   Any help would be appreciated. Thank you!


Where does Chrome save its bookmarks on Windows?

I'm trying to recover a Windows system from backups and can't seem to find where Chrome saves its bookmarks.   Does anybody know where Chrome saves its bookmarks on Windows?


Kubuntu 17.04 Not installing some Apps from PPA

I recently moved to Kubuntu and I'm having this situation where i'm unablto Install anything from a PPA  sudo add-apt-repository ppa:mc3man/mpv-tests sudo apt-get update && sudo apt install mpv   PPA gets added apt-get update works as it should but Apps don't get installed  W: The repository 'http://ppa.launchpad.net/docky-core/stable/ubuntu zesty Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. E: Failed to fetch http://ppa.launchpad.net/docky-core/stable/ubuntu/dists/zesty/main/binary-i386/Packages  404  Not Found E: Some index files failed to download. They have been ignored, or old ones used instead.   Full output posted here at   Same happened in this situation    I know that MPVplayer and Nautilus are available on default repositories but MPV has newer version on PPA or maybe i'm completely wronge and this is suppose to happen in Kubuntu and they prefer default repositories over PPA, and MPV PPA used to work in Ubuntu Gnome 17.04. How can I resolve this situation?    Strangely this PPA worked   sudo add-apt-repository ppa:rvm/smplayer  sudo apt-get update  sudo apt-get install smplayer smplayer-themes smplayer-skins


Bind to ports less than 1024 without root access

I would like to run applications I'm working on that binds to port numbers less than 1000 without requiring root access.   I'm using Linux Mint and have root access to set it up. I would ideally like to be able to do it over SSH.  Also happy hear if it isn't possible or I shouldn't be doing it, if that is the case.  EDIT: Mostly I'm happy to use higher port numbers for development, but Flash is expecting a socket policy on port 843. Currently I have to run the app as root and therefore I can't run it from my Makefile which is a PITA.


Keyboard key stuck or not being recognized; how to fix

This is an attempt to write a canonical QA for this issue, as per the Meta post:   I expect it to be periodically edited with the goal of becoming a comprehensive information resource.  I have a MacBook Pro that has a key(Shift, Return,   Command, P, etc.) that doesn’t respond when pressed or is stuck in the down position.    It's possible that my favorite beverage was spilled (or some other liquid damage).  It's also possible that I have no idea what happened.  It was working yesterday and suddenly today it's no longer working.  Is there any way to bypass or remap the key?  Can I  have the system ignore it completely?  (This question can also apply to external USB keyboards or the Bluetooth keyboards)


Difference between bijection and isomorphism?

First, let me admit that I suffer from a fundamental confusion here, and so I will likely say something wrong. No pretenses here, just looking for a good explanation.   There is a theorem from linear algebra that two vector spaces are isomorphic if and only if they have the same dimension. It is also well-known that two sets have the same cardinality if and only if there exists a bijection between them. Herein lies the issue...  Obviously $|\mathbb{R}| = |\mathbb{R^2}| = \mathfrak c.$ This is often stated as "there are as many points in the plane as there are on a line." Why, then, are $\mathbb{R}$ and $\mathbb{R^2}$ not isomorphic?  It makes intuitive sense that they shouldn't be. After all, I can only "match up" each point in $\mathbb{R}$ with the first coordinate of $\mathbb{R^2}.$ I cannot trust this intuition, however, because it fails when considering the possibility of a bijection $f : \mathbb{N} \rightarrow \mathbb{Q}!$  Even more confusing: As real vector spaces, $\mathbb{C}$ is isomorphic to $\mathbb{R^2}.$ However there is a bijection between $\mathbb{C}$ and $\mathbb{R}$ (just consider the line $\rightarrow$ plane example as above).  If you can explain the error in my thinking, please help!


The below code doesn't work just because of the lookup column. It is unable to insert items to the list..  <script type="text/javascript"> $(document).ready(function () {  $('#submit1').click(function(){ var idCount=0; var filtervalue=''; var array=[1,2,3];      var filterById = getFilter(array);                       function getFilter(ids) {     var idFilter = "(ID eq ";     var filter = "";     for (var i = 0; i < ids.length; i++) {         if (i == ids.length - 1) {             filter += idFilter + ids[i]+")";         } else {             filter += idFilter + ids[i] + ")"+ "or";         }     }     return filter; }                                        $.ajax({                 url:_spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/GetByTitle('Features')/Items?$filter="+filterById+"&$select=Title,Subsystem/Title&$expand=Subsystem/Title",          type: "GET",             headers: {             "accept": "application/json;odata=verbose",         },         success: function (data) { for(var k=0;k<array.length;k++) {  $.ajax({         url: "https://example.com/teams/_api/web/lists/GetByTitle('Features')/Items",         type: "POST",         data:  JSON.stringify({ '__metadata': { 'type': 'SP.Data.FeaturesListItem' },    'Title': data.d.results[k].Title,'Subsystem': data.d.results[k].Subsystem}),         headers: {              "accept": "application/json;odata=verbose",             "content-type":"application/json;odata=verbose",             "X-RequestDigest": $("#__REQUESTDIGEST").val()         },         success: function(d) {         alert("Items Inserted!");          },         error: function() {alert("Failed to Insert Items!");} }); }        },         error: function (error) {         alert("error");              }     });  })  }); </script>   What should I do for this to work?


Possible Duplicate:             I used to develop desktop applications for Windows, I know how to develop using C++, C#, and Java. I would like to start development for Ubuntu, how to get started?


Embedding qgis2web exports into WordPress?

I exported my QGIS project with the qgis2web plugin as OL3.  Can I embed this folder to a wordpress homepage or can I import it to google maps and add this to WordPress?


How to prove that an arbitrary cycle in the PV diagram has an efficiency less or equal than Carnot's Cycle?

The statement is: Consider an ideal gas with constant number of particles (N is constant), and an arbitrary thermodynamic cycle (closed curve with no self-interesections) in the PV diagram. Show that this cycle has an efficiency less or equal than a Carnot cycle operating between the maximun and minimum temperatures the arbitrary cycle reaches.   We are not supposed to use machines, so I can't do the regular proof by contradiction using a cycle that is more efficient attached to a reverted Carnot cycle as a refrigerator. I am stuck trying to figure out how to discern $Q_{out}$ from $Q_{in}$ in an arbitrary cycle, since I can't assume that $Q_{in}=\int\limits_{T_C}^{T_H} P dV$.


Prove or disprove. Let $G$ be an abelian group. Let $N \triangleleft G$. Then, $ G\cong N \times G/N. $

Prove or disprove. Let $G$ be an abelian group. Let $N \triangleleft G$. Then,    $$ G\cong N \times G/N. $$   I tried to prove this claim, but then it seems that since $G$ is abelian then every subgroup is normal. So every group can be factored as above. But I did not find a counter example.  Any suggestions?  Thanks for helpers!


Prove infinitely many primes congruent to 5 mod(6)

How does one show that there are infinitely many primes congruent to 5 modulo 6 without using Dirichlet's theorem?


What happens if you are refused entry between two countries?

Last month, I was travelling on a backpacking trip across Russia and the Baltic states (Schengen zone). I'm an Indian by nationality. So I had to get the respective single entry visa for Russia and Schengen Europe.  At the border crossing into Estonia by road (at Ivangorod-Narva), I exited the Russian border with an exit stamp (so now I can't go back to Russia since I had a single entry visa). When I was at the immigration checkpoint of Estonia, I was heavily questioned on the intent of my travel to Europe while entering Estonia by road.   Though I finally got into Europe, It got me wondering - what happens if a foreign national is denied entry into a country not at the airport but by land between 2 countries he cannot go into ?  Generally, if you are denied entry at the airport the airline has the obligation to fly you back to your country. But what happens when you are stuck between two countries and you cant get into either ? What happens to you then ?


How to interpret / metric Lasso regression coefficients

Edited Question, since it was a duplicate I used Matlab to make a lasso model for my data that has 41 predictors and 1 response variable, and perhaps I used more variables that I need too or maybe some variables are not meaningful since some regression coefficients are 0.  For the non 0 coefficients, I got some that are 0.2, 0.8, 2.7, etc.  I understood that I can interpret that the higher the regression coefficient higher the importance for that respective variable, is there a Metric or a Rule of thumb that say if a regression coefficient is 10/50/100 times lower than the highest regression coefficient we can "reject" or "not consider" that variable, when implementing the model online? or since it gave a non zero value I should stick with that variable no matter what?


If you go to Italy without a visa and leave at the 90 day mark, how long do you have to stay out of the country before you can return without a visa


It is known that $S^6$ admits an almost complex structure which is not integrable, recently Michael Atiyah posted a proof of non-existent of a complex structure on this sphere.  I am curious now about the other spheres i.e what about $S^{4}$ and $S^{2n}$ for $n\geq4$?  Is there any good introduction reference where one at the undergraduate level can read about that?


adding a background image to a Drupal site

I have a high-resolution white-paper texture background that I want to add to my Drupal site with the default Bartik theme.  I've looked at several posts across the web on how to do this with no clear answer.  I also haven't been able to find a Drupal module to do this. Most of the advice I've read is to modify the theme's CSS files.  But it's not clear which CSS file I should edit.  Colors.css, style.css?  I'm almost certain that the line I need to add is     background-image: url("/images/papertexture.jpg").    But I'm not sure where to add the CSS.


Proof of sum of kernels of concatenated vector

I am reading the Pattern Recognition and Machine Learning book by Bishops. I have some difficulties proving the (6.21) equation. Can someone help me?   N.B: If someone has a better title for this question, i'm opened to it as i couldn't find the good words.


Outputting multiple content fields all wrapped in a div

I'm trying to wrap multiple field items in an HTML container.  So let's say I have "Blog" content type. I have field1, field2, field3, field4 and field5 for this content type.   I want to output field2, field3 and field4 wrapped together in a DIV.  I've been Googling and tinkering for the past 3 hours and I haven't gotten anywhere.  Any help out there?  Drupal 7, Zen subtheme.   I read this and didn't have any luck here either:


As a programmer, how do I move into User Experience Design?

I've been a developer for over 6 years, mainly working in the web context, and generally distributed applications, services, and also front-facing apps. I got into programming originally through Interactive Design studies back in university, but then moved away from that as I'm most definitely not a graphic designer.  However, I really have a passion for visual arts, visual design, UI design, and user experience. When I say UI design, I mean more toward the Information Architecture side of things, as opposed to "graphic design".  With that in mind, How would a programmer make a career move into the User Experience area?  For example:   Would I have to go back to school (I really don't want to do this)? Do I just throw myself into the deep end and apply for jobs? Can I leverage the skills and experience I have as a software developer to help get work? What would a portfolio for a UI/User experience guy look like? What are employers looking for when they look for this kind of position? Would building some UI centric apps/wireframes in my own time help?


Increment the date whenever I select different options from the dropdown

I have a dropdown with 3 options ( critical , major, minor ) .Now if I select critical then the date should be todays date + 3, for example, today is 16-05-2019 so if I select critical the date displayed in the datepicker input should be 19-05-2019 and if I select major the date picker should show (todays date + 7) so it will show 23-05-2019    $(document).ready(function() {    $("#date-in").datepicker().datepicker("setDate", new Date());    $('#priority').on('change', function() {     changeDate();   }); });  function changeDate() {   var date = $('#date-in').datepicker("getDate");   var pvalue = $('#priority').val();    if (pvalue === 'Critical')     pvalue = 3;   if (pvalue === 'Major')     pvalue = 7;   if (pvalue === 'Minor')     pvalue = 30;    date.setDate(date.getDate() + parseInt(pvalue));   $("#date-in").datepicker("setDate", date);  } <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script   src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"   integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU="   crossorigin="anonymous"></script> <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> <select class="form_line_only form-control" name="ho_night" id="priority">   <option selected> none </option>   <option> Critical </option>   <option> Major </option>   <option> Minor </option>  </select> <input type="text" class="date_c" id="date-in">     So I am able to increase the date but it adds on the current value displayed


Suppose we have an equation of  motion as $$\frac{d^2x}{dt^2} = -kx + c,$$ then can it be called a SHM? Since acceleration is still proportional to displacement. But then, how will we define the mean position?


Keyboard not working after suspend to ram (sleep)

On a Sony Vaio VGN CS21S the keyboard doesn´t work after suspend to ram. Suspend to disk (hibernate) works though. Running a fresh install of Natty with Unity.


What is a good Fate Accelerated Benchmark Ladder

In a game of fate where each player has +3, +2, +2, +1, +1, +0. What is a Cheat sheet ladder to have. I.E. There is a large Iron door in the way, the brute says he's gonna force his way through it. This would be "Hard" whereas the other player wants to spend time picking the lock, this would be "Easy" over 2 turns. Then I look at the ladder and use the number for the amount of challange against their approach value. I've seen the Ladder for character creation but I would prefer something with better wording.


How to find which CSS files are used for current page

I have a lot of CSS files on the page. But a lot of these files are not used by styles. Is it possible to determine which files are used by page and which not.


Blender show me a blank window in the render window?

I would like to render my model as image, but when I click on render image, blender only shows me a blank window, I just tested Eevee and Cycles, but there is unfortunately no difference. When I click now on render, Blender gives me only black images.  Would be awesome, if someone could help me!


When catching an arrow tipped with poison (like the ones used by yuan-ti) with an ability like the one the monk has or the one given by arrow catching gloves: does the ability reduce the poison damage? If so, is the total damage or the piercing one caused by the arrow only the damage that must be downed to 0 to catch the missile?


I have a problem with Bibliography on my document.   At start I really had an issue printing it, now that  I found a way like this  \begin{thebibliography}{9} \bibitem {2003ApJ...596.1104V}...   My starting commands (before the documents start) are:  \documentclass[12pt,twoside]{report} \usepackage[utf8]{inputenc} \usepackage[english,greek]{babel} \usepackage[a4paper,width=190mm,top=30mm,bottom=30mm,bindingoffset=6mm]{geometry} \usepackage{amsmath} \usepackage{esint} \usepackage[normalem]{ulem} \usepackage{graphicx} \usepackage{subcaption} \graphicspath{{Images/}} \usepackage{graphicx,wrapfig,lipsum} \usepackage{array} \usepackage{wrapfig} \usepackage{multirow} \usepackage{tabu} \usepackage{wrapfig} \usepackage{hyperref} \usepackage{fancyhdr} \usepackage{hyperref} \usepackage{needspace} \newcommand{\uvec}[1]{\boldsymbol{\hat{\textbf{#1}}}} \usepackage{macros}  \usepackage[style=authoryear,sorting=none]{biblatex}   But when I write   \cite{2003ApJ...596.1104V}   I only get  2003ApJ...596.1104V  I have see everything in google, and found that  I shouldnt use  \usepackage[style=authoryear,sorting=none]{biblatex}   But when I remove it, It doesnt even compile the Bibliography.  Any advice? :(


Do i need to install all the drivers on my dell Windows 7 laptop?

I have recently reinstalled windows 7 on my DELL inspiron n5010 laptop. Do i need to install all the drivers


Injective functions with intermediate-value property are continuous. Better proof?

A function $f: \mathbb{R} \to \mathbb{R}$ is said to have the intermediate-value property if for any $a$, $b$ and $\lambda \in [f(a),f(b)]$ there is $x \in [a,b]$ such that $f(x)=\lambda$.  A function $f$ is injective if $f(x)=f(y) \Rightarrow x=y$.  Now it is the case that every injective function with the intermediate-value property is continuous. I can prove this using the following steps:   An injective function with the intermediate-value property must be monotonic. A monotonic function possesses left- and right-handed limits at each point. For a function with the intermediate-value property the left- and right-handed limits at $x$, if they exist, equal $f(x)$.   I am not really happy with this proof. Particularly I don't like having to invoke the intermediate-value property twice.  Can there be a shorter or more elegant proof?


does $\int _{1}^{\infty}\frac{p(x)}{e^x}$ converge?

We're learning Riemann integrals, and I'm trying to see whteher the following indefinite integral $\int _{1}^{\infty}\frac{p(x)}{e^x}$  converges, when p(x) is a polynomial. I don't know where to start this question - does it depends on p(x)? What theorem should I use?


Noether Theorem and Energy conservation in classical mechanics

I have a problem deriving the conservation of energy from time translation invariance. The invariance of the Lagrangian under infinitesimal time displacements $t \rightarrow t' = t + \epsilon$ can be written as     \begin{equation} \delta L = L\left( q(t),\frac{dq(t)}{dt},t\right) -  L\left( q(t+ \epsilon),\frac{dq(t+ \epsilon)}{dt},t+\epsilon \right) = 0. \end{equation} Using Taylor series, keeping only first order terms this gives \begin{equation}\rightarrow \delta L =- \frac{\partial L }{\partial q} \frac{\partial q}{\partial t} \epsilon- \frac{\partial L }{\partial \dot{q}} \frac{\partial \dot{q}}{\partial t} \epsilon -  \frac{\partial L }{\partial t}  \epsilon = 0. \end{equation} Using the Euler-Lagrange equation and assuming that the Lagrangian does not depend explicitly on time we get \begin{equation}\rightarrow \delta L =- \frac{d}{d t} \left(\frac{\partial L(q,\dot{q},t)}{\partial \dot{q}} \right) \frac{\partial q}{\partial t} \epsilon- \frac{\partial L }{\partial \dot{q}} \frac{\partial \dot{q}}{\partial t} \epsilon  =0. \end{equation} Which we can write as  \begin{equation}\rightarrow \delta L  = - \frac{d}{d t} \left(\frac{\partial L(q,\dot{q},t)}{\partial \dot{q}}  \frac{\partial q}{\partial t} \right) \epsilon  = - \frac{d}{d t} \left(p  \frac{\partial q}{\partial t} \right) \epsilon = 0. \end{equation} But unfortunatly this  is not the Hamiltonian. This computation should yield  \begin{equation}  \rightarrow \frac{d}{dt} \left(    p \dot{q}  - L \right) = 0. \end{equation} But I can't find no reason why and how the the extra $-L$ should emerge. I can see that this term can be written at the place where it is written because we have $\delta L = - \frac{d L}{dt } \epsilon$ and therefore  \begin{equation} \rightarrow \delta L  = - \frac{d}{d t} \left(\frac{\partial L(q,\dot{q},t)}{\partial \dot{q}}  \frac{\partial q}{\partial t} \right) \epsilon  =  -  \frac{d L}{dt }  \epsilon. \end{equation} And then the desired equation would only say $0-0=0$. Any idea where i did a mistake would be much appreciated.


Please before you think that I'm asking the same N% Question read it first and please pay Attention to it.  I'm working on a project where I have more functions which returns double and it may be possible that some of them are the same which is a good thing in my project and if is true then I need a double comparison to see if are equal.  I know that doing an equality comparison if( x == y ) is not a smart thing and we don't need to speak why, but we can check for < or > which is the part of this Question.  Does the language (standard) guarantee this, that the comparison < and > are 100%?  If yes then, the following program can be used:  #include <stdio.h>  int main(void){     double x = 3.14;     double y = 3.14;      if( x < y || x > y){         /* Are not Equal */     }else{         /* Are Equal, foo() will be called here\n" */         foo(x, y);     } }   Does foo(x, y); get executed? BecauseX and Y should be equal here.  EDIT: This question doesn't seek a way to compare two double, it is only the fact that should I use, or should I don't use < > instead of ==


Hi I was going through closure concept in JavaScript. I am finding it difficult to understand it. Can someone please help me?  function a(name) {  return function () {   console.log( "Hello "+ name);  } } var b = a("MyName"); b();   According to closure, inner function will have access to its outer function's variables even after the execution of outer function is compeled and it's no more present in stack. Can some one please explain how inner function is able to access its variable even after execution for outer function is completed. I have tried above code and it's working as expected but I am confused?


How can I restrict apps from using WiFi?

As we know that we can "use mobile data for" a particular app so WhatsApp for instance can be allowed to use mobile data while other apps can't.  How can I accomplish the same for WiFi data use?


Why aren't variables declared in "try" in scope in "catch" or "finally"?

In C# and in Java (and possibly other languages as well), variables declared in a "try" block are not in scope in the corresponding "catch" or "finally" blocks.  For example, the following code does not compile:  try {   String s = "test";   // (more code...) } catch {   Console.Out.WriteLine(s);  //Java fans: think "System.out.println" here instead }   In this code, a compile-time error occurs on the reference to s in the catch block, because s is only in scope in the try block.  (In Java, the compile error is "s cannot be resolved"; in C#, it's "The name 's' does not exist in the current context".)  The general solution to this issue seems to be to instead declare variables just before the try block, instead of within the try block:  String s; try {   s = "test";   // (more code...) } catch {   Console.Out.WriteLine(s);  //Java fans: think "System.out.println" here instead }   However, at least to me, (1) this feels like a clunky solution, and (2) it results in the variables having a larger scope than the programmer intended (the entire remainder of the method, instead of only in the context of the try-catch-finally).  My question is, what were/are the rationale(s) behind this language design decision (in Java, in C#, and/or in any other applicable languages)?


InitiativeQ - new currency some sort of get rich quick scheme?

I was recently invited to join InitiativeQ via a friend on Facebook. The underlying idea makes rough sense to me (as a non finance expert). However their 'hook' seems to be that early adopters will get free money later down the line when the currency launches (the earlier you adopt, the more currency you will receive). Looking at the website, there is a big button with the text Reserve $128,957 (I assume that's their idea of what the dollar value of my reservation will be if it launches).  The website's production quality suggests it is not a scam, however the language suggests strongly that it is. Is this a scam, a get rich quick scheme? Or am I being overly paranoid?


I believe that the only rational solutions of $$y^2 = x^3 - x$$ are the obvious ones $(-1,0)$, $(0,0)$, $(1,0)$, and that this was proved by Fermat using the method of descent.  Can anyone outline a proof, either Fermat’s proof or a different one; or, failing that, point to a suitable reference, preferably available online?


My book states it as $(\sin i)/(\sin r)=n$. However, University Physics has a different say.  It says, $n_{a} \sin a =n_{b} \sin b$. Which of the following is correct?


How to globally change the language in PowerPoint Slide Masters

There are a lot of answers about how to change the language by going into the outline view, marking everything and changing the language. But that's no use if the languages in the Master Slides have not been changed.  How can I change the languages in the Master Slides, without picking one frame after the other and doing it manually?


Calculation of base current resistor resistance for a transistor operating in switch mode?

I have a 9V DC motor and I want to control its speed with an Arduino board with help of a power transistor TIP120. In one of the web-tutorials the writer explains how to calculate the resistor resistance. Here is the link to the page:    In Example 1, if you scroll down to read the paragraph starting with: “Finally let’s take a look at the datasheet for the TIP120. First, we see that Ic(max) = 5 A, and that Vceo(max) is 60, 80, or 100 V, so we are fine so far. Next we check the base current...” you can read his explanation.  Here the writer of the blog uses a logic to calculate the resistor value for the base.  If I use his logic I obtain a resistor value which is very low comparing to other examples in other websites. Here is my scenario using his logic and by looking at TIP120 data sheet:  1-) The DC motor will be fed by a 9V battery and will be controlled by a pwm pin from the Arduino using a TIP120 transistor.   2-) The DC motor draws 500mA with no load; and 2500mA stall current as Imax_load. I measured these with an ampermeter.  3-) In this case the TIP120 satisfies the condition for Vce and Ice_max.  4-) Since Ic/Ib = 250, Ib_max will be 2500mA/250. So Ib_max = 10mA.  5-) Accoridng to TIP120 data sheet, in saturation zone for 2500mA the base emitter voltage will be Vbe = 1.75V.  6-) Since Arduino pin output is 5V, the voltage drop in resistor should be Vr = 5V – Vbe = 5 – 1.75 which means Vr = 3.25V.  7-) We can then use the base current Ib as 10mA < Ib < 40mA. Below 10mA the current will be too low and above 40mA might damage the Arduino. So I also choose a calue as 20mA. This means a resistor value R = Vr/Ib = 3.25V/20mA so that I obtain the proper resistor as R = 162.5 ohm.  I found many tutorials for Arduino and this transistor they use resistors such as 1k or 2.2k ect. For example here at this webpage they use 1k resistor:  There are many other use 1k and 2.2k.  My question is, is his logic and my calculations are right? Can I safely use the resistor I calculate?


Is there a way to check the visibility of a label in QGIS by feature?   Could the pyqgis library help?  I need to search for points where no label is shown:


I'm looking for a more efficient way to manage my tabs in Safari. Specifically something that allows me to move multiple tabs at once to a new window.  I often find myself following a link for a new subject/idea, then another, and so on and so on, until I find myself with a dozen tabs that should really be in their own window, but it's a pain to manually find and drag each one. I'd love to be able to do it in one fell swoop. Any suggestions?


How dangerous is sautéed chopped garlic sitting at room temperature for a week or more?

About a week ago I sautéed garlic in butter on a skillet. I then poured out the sautéed garlic and butter into some pasta. However, there were still a few buttery garlic pieces stuck to the skillet, and I never ended up cleaning it. Today I took out the skillet and saw the garlic from a week ago still stuck to the pan, so I threw them away. However, since I heard that keeping garlic in oil at room temperature is dangerous, I didn’t use the skillet just to be safe. My question is, was that skillet actually unsafe, or am I worrying about botulism for nothing?


My Minecraft screenshots are all missing, I've looked in my .minecraft directory and have come up blank. Does anyone know an alternate location?  I do not believe they are in %appdata%.


Is it possible to use Ubuntu from a USB without installing or editing the boot menu?

I was just wondering if it is possible to install Ubuntu on a USB Flash Drive, and then run Ubuntu from the USB without rebooting, touching the boot menu, or installing. Just using it on Windows 7, from a USB. Then, say the USB is removed, it goes back to Windows 7.  Many of you will probably ask why I would do this when I can just install it, and here's why: I already have Ubuntu installed at home, but I want to run it at school without touching anything I could get in trouble for. Also, I have no administrator rights, except I do know how to use the login screen as an admin account, but I can't download anything. (I enabled command prompt in the login screen in place of sticky keys, and then typed: explorer.exe to bring up the start menu, etc,)  Anyway, again, I was just wondering if this is possible to do. Thanks.


On infinitude of primes of certain form.

We know that there are infinite number of primes so as there are infinite number of primes of the form $4n+3$ where $n\in Z^+$.   A note on Burton's book (Elementary Number Theory) somehow says that it is of high chance to expect that there are also infinite number of primes of the form $4n+1$. However it is not yet proven by the time the book was published.  A quick search on net gives infinitude of primes of the form $3n+1$ and $5n+1$.  The question is: The problem: Are there infinitely many number of primes of the form $4n+1$ still an open problem or it was already proven? If so, where can I find the proof? Thanks a lot.


How to change the lamp strength using python scripting, for cycles renderer?

I have inserted a HEMI type lamp in the scene using python scripting. Now I also want to change the strength of that lamp via python. I am using cycles to render my scene.  I am stuck here, thanks for helping.


My rowId is like the below, it will follow parent and child relationships  1 1.1 1.1.1 2 2.1 . . . 9 9.1 . 9.9 10 10.1   I am using the following code to sort that beans using rowid's  List<MyBean> sortedList = rootItems.stream().sorted(Comparator.comparing(MyBean::getRowId)) .collect(Collectors.toList());   if I sort like the above then it is sorting like the below  10 11 12 . . 19 2 2.1 . . 3 . .   it should not be like this.  I want to sort like the example of rowid's I have given on top.  Someone suggested me to follow his code.. i.e..,   private static final Pattern SINGLE_DIGIT = Pattern.compile("\\b(\\d)\\b"); static String padWithZeroes(String InputString, int digits) {     final Matcher matcher = SINGLE_DIGIT.matcher(InputString);     StringBuffer sb = new StringBuffer();     while(matcher.find()){          matcher.appendReplacement(sb, pad(digits - matcher.group().length())+matcher.group());     }     matcher.appendTail(sb);     return sb.toString(); }  static String pad(int length) {     final char[] chars = new char[length];     Arrays.fill(chars, '0');     return new String(chars); }   If I follow his code it is returning me a string but not the list of objects.. How can I use that code.. Please help me.


Installing Ubuntu Touch on Nexus 7 (2012) now that it is no longer supported

I'm trying to install Ubuntu on my Nexus 7 (2012) Tablet, however, it appears that this tablet is no longer included in the official dev releases. I'm about half way through following the Porting to a New Device Guide and I'm just starting to realize how in-depth this project is about to become, so I was wondering if there was a way to find and install the last devel release for grouper.  This is the result that I got while following the install guide for Ubuntu Touch:  $ ubuntu-device-flash touch --channel=stable --device grouper --bootstrap  2015/06/08 12:48:59 Device is |grouper| Device grouper not found on server https://system-image.ubuntu.com channel stable   I also tried this with devel as well. It makes sense that a uTouch build for Grouper is not in either of these channels, as it is no longer officially supported.  As I'm not against taking the time to learn how to do this properly, if there is not a way to access a build for grouper, does anyone have some good articles to read or advice from their attempts at doing these sorts of things? This will be my first major foray into development or trying something like this.


Short story about aliens trading for hydroponics

I am looking for information on a short story that was written probably in the late 60's early 70's. This was part of a short story collection; I can't be certain but it was possibly edited by Groff Conklin.  The story is told from the point of view of the aliens who meet human explorers on a planet they have both landed on. We can tell because of the description that the narrators provide of the humans. I remember specifically they thought the humans skin was ugly - too thin, they could see parts of the circulatory system through the skin.  The aliens are entranced with the human's hydroponic system, have never seen anything like it. The don't explicitly use the term 'hydroponics' since they've never see one before, but evidently food is in short supply and they really need something like this. The aliens, though, have this really cool pop-up survival tent that incorporates life support, power, etc. The humans and aliens swap hydroponics for the tent. Each think they've taken advantage of the other.  At the end, both high-tail it off the planet fearing the others will realize they've been ripped off and change their minds. The final line, said by the alien, is something like "The way they're behaving would make you believe that they - not we - have committed the perfect crime."


Why does an atom remain uncharged after emission of an alpha particle?

When an alpha particle is emitted, two protons and two neutrons leave the nucleus but the electrons remain the same in number. Why does the atom remain uncharged although it appears it should have a net charge of $-2e$?


Which book is set in a giant spaceship that can create life?

I read a book about a group of travellers who discover a ship that is 30km long (I am not sure about the length of the ship).   The ship belonged to a race who were researchers. The ship can create life from some dna samples in the ship, I remember a tyrannosaurus rex being created and killing one of the characters.   The main character was a bald man who likes cats.


I am trying to install JAVA on my Ubuntu 12.04, and I followed the official instructions:   I am stuck at #3: Unpack the tarball and install Java. I have succesfully run tar zxvf jre-7u7-linux-x64.tar.gz (which just unpacks), but what is the command for installing it?


Let $(C[0, 1], d_∞)$ be the metric space of continuous functions on $[0, 1]$ , where the distance function is defined by   $$d_∞(f,g)=  \sup_{x\in [0,1]}|f(x)-g(x)|$$ Consider the function $T:(C[0, 1], d_∞)\rightarrow (C[0, 1], d_∞)$ defined by $$(Tf)(x):=\int_{0}^{x}f(t)dt$$ Prove that $T$ is not a contraction, i.e. there does not exist $0 < K  < 1$ such that $$d_∞(Tf,Tg)\leq K\cdot d_∞(f,g)$$ holds for any $f, g ∈ C[0, 1]$ .  Well, this problem asks to prove it, but I could disprove it (in a wrong way, but I don't know what is wrong). My solution  $d_∞(Tf,Tg)= \sup_{x\in [0,1]}|Tf(x)-Tg(x)|= \sup_{x\in    [0,1]}|\int_{0}^{x}f(t)dt-\int_{0}^{x}g(t)dt|= \sup _{x\in    [0,1]}\left | \int_{0}^{x}\left \{ f(t)-g(t) \right \}dt \right |$  Then, for some $a\in [0,1]$, $\sup _{x\in [0,1]}\left | \int_{0}^{x}\left \{ f(t)-g(t) \right \}dt \right |=\left | \int_{0}^{a}\left \{ f(t)-g(t) \right \}dt \right |$  $d_∞(f,g)= \sup_{x\in [0,1]}|f(x)-g(x)|$  Then, for some $b\in [0,1]$, $\sup_{x\in [0,1]}|f(x)-g(x)|=|f(b)-g(b)|$ Note that for some partition $P$, $$d_∞(Tf,Tg)= \left | \int_{0}^{a}\left \{ f(t)-g(t) \right \}dt \right |\leq \int_{0}^{a}\left | f(t)-g(t) \right |dt=U(|f-g|)=U(|f-g|,P)$$ $$=\sum_{k=1}^{n}(t_{k-1}-t_{k}) \sup_{x\in [t_{k-1},t_{k}]}\left | f(x)-g(x) \right |\leq a\left | f(c)-g(c) \right | \; \text {for some c}\in [0,a]$$ $$\leq a\left | f(b)-g(b) \right |= a d_∞(f,g)$$ Thus, there exist $K$ since $a$ is arbitrary number in $[0,1]$ Why this is a wrong disproof? P.S. I haven't learned about the Banach space (which I've seen in other proof.)


In the Kittens Game, how long (in real life minutes) do seasons last?


If a photon is a boson and has spin 1, shouldn't it have 3 spin orientations since spin 1 is a triplet?

I've gotten used to the fact that a spin can be described by its total spin and its $z$-component. And I've learned that a particle (really, anything) with spin 1 forms a triplet with three possible states for the $z$-component: +1, 0, and -1.  Now my world is shattering since I keep hearing that a  has indeed spin 1, but only two spin orientations: +1 and -1. This sounds like it clashes with what I have learned.  What am I missing?


I am new to D&D.  I did not find any official ruling concerning the effects of aging in the PHB. I know that in some systems aging can have adverse and/or beneficial effects on stats.  I ask because I am currently playing Monk and at 15th he will receive Timeless Body which prevents "the frailty of old age". What is the mechanic, if any, that this applies to?


How do I get the sample mean and standard deviation?

I am trying to get the mean and standard deviation for the following sample means with the given sample frequencies for each mean. So in a histogram, the x-axis will show the mean range and sample frequency in the y-axis. The sample size for all samples is n=5. I see the answer is the sample mean = 49.831 and sd= 11.43. However, I am not sure what should the formula be to calculate it as I do not have the information on population standard deviation.  Range for mean  Sample frequencies 0-10             0 10-20            5 20-30            315 30-40            1606 40-50            3105 50-60            2935 60-70            1500 70-80            324 80-90            21 90-100           0


My oldest son used my younger son's gmail account to creat his Pokemon go account. Now when my younger son logs into his Pokemon go account it automatically go to the new account that my older son created. Is there anything we can do to resolve this problem?


How to solve the following minimization problem?

For $n$ scalars $a_1,...,a_n$, find the solution of $$\min_{x \in \mathbb R}\sum^n_{i=1} |x - a_i|$$ I denoted $$\delta(x) = \sum^n_{i=1} |x - a_i| $$ and found  $$ \delta'(x) = \sum^n_{i=1} \frac{x-a_i}{|x - a_i|}$$  However, this function is not convex so just finding the critical points won't help. In any case, I still attempted it and got to the following equation $$\mathbf b^T \mathbf c= \mathbf b^T \mathbf a $$ where $$ \mathbf a = \begin{bmatrix} a_1 \\ \vdots \\ a_n \\ \end{bmatrix}, \mathbf b = \begin{bmatrix} \frac {1}{c+a_1} \\ \vdots \\ \frac {1}{c+a_n} \\ \end{bmatrix}, \ \mathbf c = \begin{bmatrix} c \\ \vdots \\ c \\ \end{bmatrix}, $$ with $c$ being such that $$ \delta' (c) = 0$$  I am not sure if I am going in the right direction and if there is a straightforward method for approaching this problem.


If I enter the Stack Overflow site as a new person and I search for "How do I ask a question" that yields no real help in doing so

It might seem obvious to a new person to the Stack Overflow site to simply search for "How do I ask a question?" or "How do I ask a great question?" or "How do I use this site?" yet none of those really help that person do so.  Unless you KNOW to click the "?" icon for help those type searches really give you no help? Can we fix this to at least put forth some links to the site guidelines or something useful to help that new person? (something obvious as a small simple "How" button under the large "Ask a Question" button.  Hopefully this revision gets to the gist of my question.  People come to Stack overflow to 1. Find something already here.  2 Ask a question. 3 something else.  ANYTHING that makes 1 or 2 harder/less intuitive in ANY way is a failure.  THUS, the three "Tags", "Users", "Jobs" are MUCH MUCH less useful to those two primary things than a simple "How to ask" link might be in that place, clearly visible and to the "Users" objective - how easy to add a comment to a less than ideal question i.e.  "See that "How to Ask" link on the left there? Click it, have fun."


snap - how to grant /tmp access to snap chromium?

I usually use /tmp when I download files that I need just this one time so that they're be deleted automatically. But snap chromium sees /tmp/snap.chromium/tmp as /tmp and for the worst of it, the user hasn't permission to open this directory. I know almost nothing of how snap works and am wondering if there is a way to grant /tmp access to some snap application?


Can you improve "past questions have not been well-received, and you're in danger of being blocked from asking any more"?

I was about to ask a question, here on Meta SE, when I was slapped with the above warning. I went into a state of shock and "before I knew it" I had posted a completely different and obviously self-defeating question.  I thought -- and have only just realized, incorrectly so -- that I was being black-listed system-wide. (I just now went to various "main" sites to which I belong and, even on a site at which one of my few questions was ill-received, I am not given any such warning/slap.)  Thus, I ask:   Can you make the warning a little less confrontational, so it has the desired effect yet in a kinder, gentler manner? Can you make the warning point to, or somehow list, the questions which were poorly judged -- as Shog has done below? Can you make it clear that the warning only applies to this (or whichever) site and in no way is a reflection on contributions made on other sites?   I sincerely believe this "feature" needs some tempering.


Is it possible to tell if a terminal is SSH'd into a machine ? some kind of command to do this for me and execute something if I am SSHd?


K & R : Need Explanation in understanding this C code

In the K&R book in chapter 2.9, I am stuck on understanding this sample function getbits()  getbits(x,p,n)   Returns the (right-adjusted) n-bit field of x that begins at position p. Here's the function body  /* getbits: get n bits from from position p */ unsigned getbits(unsigned x, int p, int n) {    return (x >> (p+1-n)) & ~(~0 << n); }   I am actually not facing problems with the bitwise operators but I can't actually get the question. I am stuck on understanding the question mainly not solving it. Ultimately "What do we need to find in this function".


The association bonus should not enable users to vote on every site

The number of upvotes for a question is a flawed measure of question quality, one particular issue is that the amount of exposure a question gets matters a lot. Questions that were linked in the hot questions list tend to get an enormous amount of votes, much more than any questions gets organically on the site itself.  The kind of question that tend to get to the top spot of the hot questions list tend to be simpler, less technical questions with an appeal to a broader audience. The hot questions list distorts the voting even beyond the mere effect the increased views have. It exposes the question to users that might be interested in reading about that topic, but are not active users on the site and wouldn't have seen and voted on the post otherwise.  I think this distortion of voting is harmful, as the result might not be representative of the community of that specific site. For example, while I might enjoy reading some answers on Security.SE, I'm by far not qualified to actually evaluate them. If I voted there, my votes would not provide any actual value as I can only judge the answers in a very superficial way. Another example would be Skeptics where the community requires answers to cite references supporting their claim. This works very well and the community also votes that way, but the moment a question hits the hot questions list, voting becomes unreliable and answer not meeting our standard are upvoted anyway.  I think that this interaction between the hot questions feature and the low barrier to voting on sites where one didn't earn any reputation at all leads to a distortion of voting and dilutes the usefulness of post scores.   My proposal would be to not count the association bonus for the voting privilege. This means that in order to vote a user would have to get at least one upvote on an answer, two upvotes on a question or five accepted suggested edits. I think that this barrier is low enough to barely inconvenience anyone with a serious interest in the site, and significant enough to prevent drive-by voting by non-experts from the greater SE network.


I want to get more RAM for my computer, and I understand that to get the right type of RAM I have to know the memory type and speed (minimum and maximum as far as I understand). So how do I find these things out? And is there anything I need to know about the memory before I can get more RAM which will actually fit with the specifications of my computer? I am running Ubuntu GNOME 16.04 with GNOME 3.20.  Note: I know that there are Terminal commands to find out this information, I just can't remember what they are.


CREATE TABLE IF NOT EXISTS equivalent in SQL Server

CREATE TABLE IF NOT EXISTS works on mysql but fails with SQL Server 2008 R2. What is the equivalent syntax?


Does rooting stop OTA updates for nexus 5

I have nexus 5 with 4.4.4 and rooted it with towelroot. will i be able receive a lollipop OTA update or should i flash a factory image manually. my build number is KTU84Q. Will i get lollipop 5.0 for my rooted nexus 5. i didn't use any custom recovery ..please answer my question.


How do I install  (open source vehicle simulator based on soft-body physics)?  I have compiled applications before like Gedit, Handbrake, XBMC but I can't seem to install/compile Rigs of Rods (and some of its dependencies). This proves to be quite the challenge for me.   I also read  on how to compile in Linux but no luck. I am using Ubuntu 12.04 64-bit.


Best word to convey a panther's forward crouching/slinking motion

I'm looking for the best word to convey a panther's forward crouching/slinking motion when it is sneaking up on it's victim.   By "best", I mean moving stealthily forward while crouching low and silent, ready to spring at any moment, tension held back, foreboding, graceful, poetic, beautiful, yet terrible.   I'm working on a poem in which this word is key. I once knew the word but it now escapes me. No synonyms in any thesaurus suggest the word I knew/forgot. These are the words I've already considered and rejected: avoid, bypass, conceal oneself, crawl, creep, crouch, dodge, elude, evade, glide, go furtively, go stealthily, hide, lie in wait, lurk, pad, pass quietly, prowl, pussyfoot, shirk, sidle, sidestep, skulk, slack, slide, slink, slip, slither, sly, snake, sneak, snoop, steal, and tiptoe. There are more but I tired of writing them all.  I know that I should be asking something that lends itself to being answered and not something that elicits discussion.   The other question mostly duplicates my question, except perhaps for my poetic criterion, but none of the responses to my question or the other one are the one I'm searching for. I'm afraid I've reached the point of diminishing returns.  Sorry for troubling you.


What's the difference between X = X++; vs X++;?

Have you ever tried this before?  static void Main(string[] args) {     int x = 10;     x = x++;     Console.WriteLine(x); }   Output: 10.  but for   static void Main(string[] args) {     int x = 10;     x++;     Console.WriteLine(x); }   Output: 11.  Could anyone explain why this?


I saw there are already a couple of questions on the argument ( and ) but since they are a few months old and since I can't manage to make the option dev.args=list(pointsize=5) works even following the answers I will post it again.  I am trying to decrease the fontsize of my plot labels. But even adding changing the pointsize in the MWE below I can't get the font size change.  \documentclass[a4paper]{article} \begin{document}  \begin{figure} <<dev='tikz', dev.args=list(pointsize=5)>>= x<-1 plot(x) @ \end{figure}  \end{document}


Regular Expression for extracting text from an RTF string

I was looking for a way to remove text from and RTF string and I found the following regex:  ({\\)(.+?)(})|(\\)(.+?)(\b)   However the resulting string has two right angle brackets "}"  Before: {\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 MS Shell Dlg 2;}{\f1\fnil MS Shell Dlg 2;}} {\colortbl ;\red0\green0\blue0;} {\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\tx720\cf1\f0\fs20 can u send me info for the call pls\f1\par }  After: }   can u send me info for the call pls }  Any thoughts on how to improve the regex?  Edit:  A more complicated string such as this one does not work:  {\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 MS Shell Dlg 2;}}  {\colortbl ;\red0\green0\blue0;}  {\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\tx720\cf1\f0\fs20 HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\test\\myapp\\Apps\\\{3423234-283B-43d2-BCE6-A324B84CC70E\}\par  }


After upgrading from Ubuntu 14.04 to 16.04, I have logged into tty1 and now I have this:  Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 3.13.0-generic i686)  [Some more text in here]  user@localhost:~$    What do I type after $ to get to my usual desktop?


Can't convert HDMI to DisplayPort - root cause?

I have a DisplayPort based monitor, and a laptop with a DP out.  I recently got a second laptop with HDMI out, and went looking for a HDMI -> DP converter.  I was very surprised to find that such a thing effectively doesn't seem to exist.   and the  seem to imply that it's just not possible to go HDMI -> DP, without a very expensive converter box (not just an adaptor).  However, I can't find anything that explains why this is the case.  Is DP designed to be backwards compatible but can't interpret HDMI?  Is it a case of HDMI-quality signal not being high enough quality to be convertible?  Some other reason?  Note that this question is not looking for an adaptor - I'm looking for the underlying cause of the lack of them.


Ubuntu uses the information about searches to show the user ads to buy   various things from Amazon. Amazon commits many wrongs (see   ); by promoting Amazon, Canonical   contributes to them. However, the ads are not the core of the problem.   The main issue is the spying. Canonical says it does not tell Amazon   who searched for what. However, it is just as bad for Canonical to   collect your personal information as it would have been for Amazon to   collect it.         Same question has been asked here  But I don't have the tab 'search results' on my 12.04 distro. How can I disable this?   I understand that canonical uses this business plan in order to make a living and I really would help in their research as long as the data is preserved anonymously, but I really want to have control over this option, so when I search for something to buy, then enable it so I can help canonical gather this data, otherwise I would like this option disabled.   Thank you


What is the difference between "break down the wall" and "break the wall down"?

Could anyone tell me the difference between"break down the wall" and "break the wall down"? What would be the correct usage?


Problems with footer and header and pagenumbering

My problem is, that all my footers and headers are gone now :( and the pagenumber.  Here the code:  \documentclass{article} \pagestyle{empty}% for cropping \usepackage{microtype} \begin{document} \begingroup     \noindent     \bfseries     \begin{tabular}{|p{\dimexpr0.5\textwidth-2\tabcolsep}p{\dimexpr0.5\textwidth-2\tabcolsep}|}         \hline         Received:            & Approved:  \cr                              & Date:      \cr                              & Signature: \cr         (for the instructor) &            \cr         \hline     \end{tabular} \endgroup \bigskip \begingroup     \centering     \obeylines     \scshape     \lsstyle     \large Modern Box     \LARGE Aflering 3     \Large John Boxer     \large Institute for Boxes     \large Box University     \large 26/04/2014 \endgroup \end{document}   I have also usepackages for headers and fooders in my preamble. The fooder and header worked before, but now they are gone.  It's good they are gone on the first page. And that the pagenumbering is gone on the front page and on the tableofcontents page is really nice. But now I would prefer pagenumbering (so the pagenumbering starts on maybe page 3 width "page 3 of number"). And please just in the "page ... of ... style".   Are my ideas possible? Are their anyone who can help me?


Can I use an HSA to pay off medical debts incurred before the HSA was funded?

Let's say that in year A I had a medical insurance plan without an associated , and incurred some medical expenses (co-pays, deductibles). I didn't pay them that year; they may even have gone to collection.  In year B, I'm covered by a different medical insurance plan with an HSA. Can I use the HSA to pay the bills from year A? Or are the only eligible expenses incurred after the HSA plan's plan year begins? Or, worse, can I only pay a particular expense using money that was contributed before that expense was incurred?


Why appropriate comment is not compulsory when someone down vote any question or answer?

In SO, I have seen many comments and answers which have down vote(s) without any comment.  Even I also faced same problem in one of my answer. At that time I need to ask like this:     @downvoter: Can you please tell me which thing I have done wrong? So I   can fix it in my answer.   I want to know why SO not making comment compulsory after any down vote or any flag raising time?.   At least Questioner OR Answerer deserve to know why they have down vote?  In Review Processing, moderators should post their comment first before raising any flag to question or answer.     EDITED below portion after answer of    My primary concern is If comment will be compulsory without name of the person at down vote time then questioner or answerer can improve their post. Isn't it? At least they deserve to know why they have down vote.


I deleted "quiet splash" from GRUB_CMDLINE_LINUX_DEFAULT in the GRUB config file.  And when I reboot with the command line, I can see the commands until it reaches target reached restarting now  And then.... nothing, it freezes there. So it is not possible to shut down.  It is a dual boot of Win10 with Ubuntu 16.04  I had a similar problem on launch but I fixed it on adding acpi=off after pushing the E key in the GRUB menu.  EDIT  I changed acpi=off to acpi=noirq and this gave me a freeze on restart and when I did force shutdown and restart it gave me a purple screen with nothing. I had to edit again from the GRUB menu to put it back to acpi=off    What else can I try?


My home server (aging HP Proliant MicroServer, Windows 7 x64) has acquired some Malware from Hell. Turned up in one of those dodgy installers that wraps a legitimate installer in another package, and installs all sorts of nefarious software on your system.  It has proved intractable. Three processes are now running constantly on my machine, using CPU and doing goodness knows what.   And they're unkillable. I can't kill the processes, all I get is an "Access is denied".  The processes are called:   svnlgau.exe  iaawlnv.exe  igfxmtc.exe   I've traced the three executables to these folders:  C:\Users\<user>\AppData\Local\iaawlnv C:\Users\<user>\AppData\Local\igfxmtc C:\Users\<user>\AppData\Local\rtnpeku   All of which are owned by some unknown account and are inaccessible.  Things I've tried:   Changing the owner of the folders to the Administrator Using "Unlocker" on the directories to take possession of them Booting in safe mode as an administrator, killing the processes and deleting the directories Scanning with Microsoft Security Essentials (which can't access the folder either) Scanning with MalwareBytes Scanning with Windows Malicious Software Removal Tool (MSRT) Killing the processes with Kaspersky Task Killer   Short of rebuilding the machine, which would take days, is there anything else I can try?


Is there a word for homonyms across languages?

For example, the words design in English and Dasein (being there) in German look similar, but mean something completely different.


Find bases for the following subspaces of $F^5$:  $W_1 = \{(a_1,a_2,a_3,a_4,a_5) \in F^5 : a_1-a_3-a_4=0\}$ $W_2=\{(a_1,a_2,a_3,a_4,a_5) \in F^5 : a_2=a_3=a_4, a_1+a_5=0\}$  What are the dimensions of $W_1, W_2$?  My attempt:   For the first case:   $$\left( \begin{array}{c} a_1 \\ a_2 \\ a_3 \\ a_4 \\ a_5 \end{array} \right) = a_3 \left( \begin{array}{c} 1 \\ 0 \\ 1 \\ 0 \\ 0 \end{array} \right) +  a_4 \left( \begin{array}{c} 1 \\ 0 \\ 0 \\ 1 \\ 0 \end{array} \right) + a_2 \left( \begin{array}{c} 0 \\ 1 \\ 0 \\ 0 \\ 0 \end{array} \right) + a_5 \left( \begin{array}{c} 0 \\ 0 \\ 0 \\ 0 \\ 1 \end{array} \right)$$  And so these four column vectors form the basis and the dimension is 4.  For the second case:   $$ \left( \begin{array}{c} a_1 \\ a_2 \\ a_3 \\ a_4 \\ a_5 \end{array} \right) = a_1 \left( \begin{array}{c} 1 \\ 0 \\ 0 \\ 0 \\ -1 \end{array} \right) + a_2 \left( \begin{array}{c} 0 \\ 1 \\ 1 \\ 1 \\ 0 \end{array} \right)$$  And these column vectors form a basis and the dimension is 2.  Question:    Is my approach correct?  Is it ok to write these vectors as column vectors like I have? So should I put them in the standard $(a_1, a_2, a_3, a_4, a_5)$ form?


So, I have a VRM that I've exported into a GLB file as of now. Issue is, the eyes iris or pupil isn't movable because of it's pupil being flat, and it's a texture. I've looked up ways to fix this like AnimAll but I don't get it, and it's not really helping. Anyone know how to fix this? -- The thing is, I'm new to the software so I don't know where it is.  I'm in UV Editor, But I have no idea where the UV Warp is, I'm very new to it.


Identify the Game: reach the other side of the board, while avoiding barriers

I was at a friend of a friend's house last weekend and played a cool game.  Here is what I remember:   The game is played on a square board 2 or 4 players The goal of the game is to reach the opposite side of the board from which you start (before your opponent(s)) On your turn you may  a) Move you piece forwards/backwards/left/right (not diagonal) b) Place a barrier which you and your opponent cannot cross.  A barrier is a length two piece that goes between squares.      Anyone know the game?


Where can one ask questions about Internet resources and management organizations?

Where can one ask questions about Internet resources such as Internet management organizations like IANA and RIPE NCC as they relate to concepts like IPv4 addresses and domains?


How to check a variable for MySQL Injection without binding parameters

:)  I'm working on a server list website, but I have a problem about security with a searching bar. I would like to allow users to search servers from my website, so I did a searching bar. But when they are searching, servers are display by a system of pagination which works with affix. Some values affects a MySQL command to execute pagination. So I can't use prepare then bind_param because some param contains WHERE etc. But To be more comprehensive, i show you the code:      if (isset($_GET['searchserver'])){         $searchserver = $_GET['searchserver'];         $truevalue = '%' . $searchserver . '%';         $this->where = "WHERE `name` LIKE '{$truevalue}' ";     }   So, it is working, but I want to check the variable $searchserver before adding it into my $this->where. I would like to know if i can check it, and if it does not contains something different than a server name. (A server name may have numbers and letters but not strange characters like ; : , .) Is it possible ? I can't use bind param..  Thank you for your time and sorry for my bad english !


Why does the city of Minas Morgul glow green?    Please answer with quotes from original Tolkien stories and writings.