Consider the conversation below. Is the last question correct?     A: What did you think about it?   B: I thought it was terrible.   A: You thought it was terrible?   It sounds a bit strange without the auxiliary verb.


I am  in the process of launching a hot sauce business. . but I would life to know what ingredients  to add in it so that it have a longer shelf life ..


{Request} Russian SE site for English language questions

English SE site for Russian language questions exists. Why no Russian SE site for English language questions? For example, it would be extremely useful to describe differences between synonyms or synonymic phrases. More of all - for people who begin to learn English (asking and explaining in English is difficult for them).


Help creating crontab to help with Disk Space Management IE: Delete files over 1 week old

I need a script I can call in crontab that equates out to ---   find all files < 1 week old | rm files.   I use macrium reflect free edition to back up my windows machines to a samba share dedicated to macrium. But the free edition doesn't come with the ability to delete files older then a week and therefor my drive will eventually fill up or require constant monitoring. I would like to learn how to do this, not just to continue using free Reflect (It's so good I'm just waiting till I can afford a 4 pack @ 140$) but so I can use it for other purposes as well. Any Ideas?  Its tricky because It cant say anything older then April 5th, as that's useless in a week, it needs to be a mathematical equation in the command like, find all files < 1 week old | rm files.  Thanks for your time...  Donut


Installing Ubuntu to pre-created partition

How do I install Ubuntu into a separate pre-created partition in windows 10 and is a 30GB partition sufficient?  This is in relation to


How can be found from which repository package has been installed if source was purged from source list

I have several repositories listed in my source list and some ppa added as sources  Can I know from which one specific package has been installed?  It is still possible if after installation repository was removed from source list?


Convert ISO time yyyy-mm-ddThh-mm.ss+hh.mm?

So here I am trying to figure out how to convert a matching format.  What I have done right now is that I have following code:  xmas_time = '2018-12-24T00:00:00+01:00' utc_date = datetime.strptime(xmas_time, "%Y-%m-%dT%H:%M:%S%z").replace(tzinfo=timezone.utc) etatime = utc_date.astimezone(pytz.timezone('Europe/Stockholm')) merry_xmas = etatime.strftime('%Y-%m-%d %H:%M:%S') print(merry_xmas)   however I am getting an issue saying:  ValueError: time data '2018-12-24T00:00:00+01:00' does not match format '%Y-%m-%dT%H:%M:%S%z'   which I believe I probably did the match format incorrect and here I am needing help how I will be able to solve that!  Output that I would wish is: yyyy-mm-dd hh-mm-ss


How to save only the rows containing redundant content using awk?

I know how to remove the rows containing redundant info in one particular column but not how to save ONLY the redundant   For example:  I have the following text (kk.txt) with 3 columns:  A 3 qs    A 8 qs   A 6 st   B 3 qs   A 5 qs   C 9 st   D 2 st   C 3 st     If I apply,   awk '{if(! a[$1]){print; a[$1]++}}' kk.txt > kk2.txt   It gives me:  A 3 qs   B 3 qs   C 9 st   D 2 st   Instead, I want the opposite:  A 3 qs   A 8 qs   A 6 st   A 5 qs   C 9 st   C 3 st     Any ideas???  Many thanks


How is angular momentum conserved for the orbiting body if the centripetal force disappears?

When the centripetal force on an orbiting body disappears (e.g. if it the body is a ball and the force was exerted by a string and the string rips, or, more unrealistically, if the body is the earth and the sun suddenly disappeared), the body continues in linear motion. How is angular momentum conserved here?


Show that if $f:X\to Y$ is a continuous function if and only if the graph of $f$ is a closed subset of $X\times Y$

Given a function $f:X\to Y$, we define the graph of $f$ as the set   $$G(f)=\{(x,f(x)),x\in X\}$$ Show that if $X$ is compact then $f$ is a   continous function if and only if $G(f)$ is a closed subset of   $X\times Y$.   I know that a set $X$ is called compact when every open cover of $X$ have a finite subcover. Then I need to show that   If $f$ is continous then $G(f)$ is a closed subset of $X\times Y$. If $G(f)$ is a closed subset of $X\times Y$ then $f$ is continous.   How I can show that?


I have a NullPointerException even though I don't have any null objects. Why is this?

I am trying to make a neural network for a reinforcement AI in Java 14, and I have the Main class and the AGENT class separate to improve readability. In the main() method, I create a new AGENT object like so on line 25: AGENT agent = new AGENT();  and when I run the program, I expect to have the object created without an exception and run some function calls, but instead I get a NullPointerException: Exception in thread "main" java.lang.NullPointerException at com.company.AGENT.<init>(AGENT.java:19) at com.company.Main.main(Main.java:25)  When I looked in the AGENT class to try and debug, I found line 19: neural_network[j].add(new Node());  and I was confused, as neither the Node object, the neural_network variable, or the ArrayList contained inside of the neural_network array should have been null. I checked to see if there was a problem with my definition of the neural_network array: private ArrayList<Node>[] neural_network = new ArrayList[5];  but the definition seemed okay. Finally I checked if adding a  parameter to the definition of the ArrayList would help, or if removing the  parameter from the typecast would help, upon doing which I got errors which terminated my program, instead of the runtime error I was getting from the NullPointerException. I am not sure where the null object is that is causing the issue. To reproduce, create an object in the Main class inside of the main() method; inside the object's class, create a private variable with an array of ArrayLists which store a third object, and add new objects of the third type to the ArrayLists.


Is there a permalink I can use for answers/comments?


Is there a way to specialize a template to target primitives?

In specializing a class template, I would like to have one specialization target full-blown classes (complete with constructor, destructor, etc.) and one specialization target primitives (int, float, etc.). The only partial specialization I've seen is with targeting pointer types (via T*). Is there a way to do this?


How to prove that $\lim_{n \to\infty} \frac{(2n-1)!!}{(2n)!!}=0$

So guys, how can I evaluate and prove that $$\lim_{n \to\infty} \frac{(2n-1)!!}{(2n)!!}=0.$$ Any ideas are welcomed.  $n!!$ is the double factorial, as explained in this   post.


Will my Chinese visa still be valid if I renew my passport? If so how does that work?  I have heard that you can travel with your new passport and just show the old passport with the valid visa when entering China. Has anyone done that? Recently?   I have also been told that you have to get a new visa, which seems somewhat logical but frustrating, especially when my Chinese visa is only a few months old.  My Chinese visa was issued in late Nov 2014 and I heard the rules changed between the US and China. My visa says it's good for 10 years and my US passport expires in 5.


can we use 8051 pin as Input and output at a time?

is it possible to use 8051 microcontroller as input as well as output at a time? if i use particular pin as input and then how to make it as output as well.tell me please i born just now in microcontroller


The derivative of $x!$ and its continuity

is the factorial of fractions and negative numbers defined? If yes, then what is its graph? Also please find its domain.  Our teacher said the factorial of a fraction is the fraction itself. He also said the graph is continuous but could not determine the derivative of $x!$.


I have a simply doubt about syntax in Java related with Strings. Could some one tell me what is the difference between the strings in the following code?  String[] firstS = {"word1","word2"}; String secondS[] = {"word1","word2"};   I can not realize what is the difference because doing some for loop both String have the same output.  Thank you so much.


Maximum length of text fields in shapefile and geodatabase formats?

The maximum text string for a field in a geodatabase is 320 characters.    The data I am importing has long character strings and it seems to be truncating when I convert into shapefile at the max text string and messing the fields up.  Is there a way to extend this to 700-1000 characters?


The knowledge of regional languages is necessary for bank officers because they are to understand what their customers say.   I tried google for meaning/usage of the phrase they are to as used in above given sentence but couldn't find anything relevant, I doubt if any such phrase even exists. To my hears using have instead of are sounds better. Please tell if the phrase they are to used in above sentence is correct ? If yes, Does it imply the same meaning as using have instead of are ?


Can't append correct answer to a list in python

I was trying to do following operation on a list 2 times: -> for each index i: arr[i] = d - arr[i] where d is maximum element in list -> append the resultant list to another list   My code: arr = [5, -1, 4, 2, 0] n = len(arr) res = [] for _ in range(2):     d = max(arr)     for i in range(n):         arr[i] = d-arr[i]     res.append(arr) print(res)  Output: [[6, 0, 5, 3, 1], [6, 0, 5, 3, 1]]  Expected Output: [[0, 6, 1, 3, 5], [6, 0, 5, 3, 1]]  Please help!


Suppose I raise a ball (with my hand) to some height. I am doing some work against gravity and storing potential energy in the ball. However, once I loosen my grip, or just sweep my hand away from under the ball, the ball falls down. As long as the force existed, the work done and hence the potential energy gained existed. Force gone, work gone. I know, I know. When the ball fell down it released the PE into KE. But read on. I try pushing a wall. It doesn't move. Physicists come to the spot and shout, HAHA LOSER. No work done. Why did I sweat then? What did I invest my energy into? I mean it gotta go somewhere. I can predict that I may have wasted my energy into heat. But just that? On the other hand, the wall stood still without investing any energy at all. Because of chemical forces. Chemical bonds that held it firm. So only "human" or non-natural forces do work that only exists till they themselves exist? As soon as they withdraw, the work done transforms? Is work supposedly be this kind of a retentive investment? One that an agent is supposed to keep maintaining? Aren't we just supposed to do a work and come back and relax knowing that it'll stay the way it is? Why do states of work done change for non-natural processes whereas it resides in equilibrium for natural ones? Naturally, would it be too unrealistic for one to state that energy is not an investment that persists, but a labour that has to be retained continually? I know also that a possible answer to all my questions would be entropy. Just find which process or pathway maximises universal entropy. Nature chooses that. But then, on a more metaphysical note, why are we, life, even exisiting? It's against naturality...


I read (I think ) that part of relativity theory is that a strong gravitational field distorts the uniform passage of time. If this is true and a lightwave 'travelling' to Earth  passes a star near its intense gravitational field (a gravity 'lens') does the gravitational field distort the 'timing' of the speed of light and for a small duration of time the light-wave slows a bit until it leaves the influence of the star's gravity? If this is so could you say the speed of light itself was slightly less while the lightwave was passing through the star's gravity?


How to remove the element in xml using php depending on their node values

<?xml version="1.0"?> <rights>  <visitor>   <user>updateUsers</user>   <user>deleteUsers</user>   <user>createUsers</user>   <user>readUsers</user>  </visitor> </rights>   This is the xml file i am using. I want to delete the nodes depending on their values. Eg if the user want me to remove the entry for updateUsers then i could remove the <user> that has value updateUsers. I want to do it using php. here is my script  $xmlobj=simplexml_load_file($xmlpath);  foreach($xmlobj->{$owner}[0]->children() as $mychild) {    $childvalues[]=$mychild;                     }  foreach($childvalues as $values) {   if($userentry==$values)   {     //code to remove that node   } }   I am struck with it. Help will be very much appreciated


Prove $P_m X P_n$ is Hamiltonian if and only if at least one of $m,n$ is even

How to prove "Prove $P_m X P_n$ (graph cartesian product) is Hamiltonian if and only if at least one of $m,n$ is even"  Graph cartesian product is Grid graph, if I figure out $P_2 X P_2$ it will be $C_4$ (it is Hamiltonian). How to state this prove ?


Finding the maximum value of $\int_0^1 (f(x))^3 dx$, given certain conditions on $f(x)$ and $\int_0^1 f(x) dx$

How do I find the maximum value of $\int_0^1 (f(x))^3 dx$ given that  $\int_0^1 f(x) dx = 0$ $ -1 \leq f(x) \leq 1$ Domain of $f = \mathbb R$ $f$ is a real-valued function  For some values of $ x \space\epsilon \space (0,1)$, f(x) has to alternate between being positive and negative in a way that results in $(1)$. But given that $|f(x)| \leq 1$, for positive $f(x)$, $(f(x))^3$ has to be lesser than $f(x)$ and vice-versa. So even though positive values of $f(x)$ are diminished when cubed, the negative values, on the other hand, increase in value. How do I use all of these ideas to move towards a solution? The answers given in  seem out of reach to me. I am a stranger to Lebesgue integrals considering my calculus syllabus is restricted to high school calculus. I found this question in a practice question bank for a college entrance exam.


How to show $\gamma$ aka Euler's constant is convergent?

I'm trying to show different convergents, and this is the first one i'm having problems with.   $\dfrac11 + \dfrac 12 + \ldots + \dfrac 1n - \log n \rightarrow \gamma$  Like it's the definition of euler's constant, but how to show that this expression is convergent( i don't mean convergent to specific number, just convergent ).   I tried d'alambert's criterion. This is : if $$\left| \frac{a_{n+1}}{a_{n}}\right | < 1$$ then $a_{n}$ is convergent.   But i end up with something like   $$\frac{H_{n} + (n+1) - ln(n+1)}{H_{n} - \ln(n)}$$ where $H_{n}$ is n-th harmonic number. I have no clue how to work on it further.   Would love to get some hints or solutions on this.    Cheers


Clipping image with Basic (ArcView) level license of ArcGIS Desktop?

Is there a way to trim a geo-referenced air photo to an irregularly shaped boundary?    I tried the clip tool shown in my attachment, but it didn't work.  It looks as though the output extent field requires a rectangularly shaped polygon as the clipping feature.    Can I even do this in ArcView?    I've never had a request to do anything like this before.        I do use Photoshop and other similar software packages.  I could just go in to an environment like this & start painting everything outside of my boundary in white, but then I would have to come back in and geo-reference the image again, and it just strikes me that there must be a faster and easier way (even though I only have ArcView 9.3).


I'm trying to find a free tool (on windows ) that would enable me to change some settings on a TrueType font. Specifically, I'm trying to fix the following errors:  E1311 The macStyle bold bit doesn't match the name table's font subfamily string macStyle bold bit is set, but subfamily is Regular  W2000 The subfamily string is inconsistent with the style of the font OS/2.fsSelection bold bit is set, but subfamily string = 'Regular'  I can do that with fontographer, but would prefer to use something free.  Fontforge doesn't seem to work with this font, when saved it corrupts the cyrillic letters in the font.


Tips and tricks to get started with statistical modeling?

I work in the field of data mining and have had very little formal schooling in statistics. Lately I have been reading a lot of work  that focuses on Bayesian paradigms for learning and mining, which I find very interesting.   My question is (in several parts), given a problem is there a general framework by which it is possible to construct a statistical model? What are the first things you do when given a dataset of which you'd like to model the underlying process? Are there good books/tutorials out there that explain this process or is it a matter of experience? Is inference in the forefront of your mind when constructing your model or do you first aim to describe the data before you worry about how to use it to compute?  Any insight would be greatly appreciated! Thanks.


How do I trim leading/trailing whitespace in a standard way?

Is there a clean, preferably standard method of trimming leading and trailing whitespace from a string in C? I'd roll my own, but I would think this is a common problem with an equally common solution.


I would like to teach a class on the "magic" behind the calculator, so I would like to generate a list of "algorithms" for how a calculator computes the things we want it to. I will get the ball rolling:   Addition and subtraction is done via binary addition and subtraction. Logarithms and exponentiation is done via Taylor series. I'm not too sure about multiplication and division, do calculators do binary multiplication or do they use logarithms?   I hope that teaching students the mathematics behind the calculator would trigger a reaction everytime they use one in the future.


Why JQuery is not working when DOM changes are made even after .on delegation method

I have a jquery function that swaps a bootsrap dropdown to a dropup, if the distance from the element to the bottom of the window is smaller than the height of the dropdown menu. It works fine, until the DOM gets updated and something gets added to the bottom of the window (let's say a new section or some menu gets expanded). The new distance from the element doesn't get accounted. I tried delegation with the .on method to check if the DOM gets updated but that did not fix the issue.  $('.dropdown').on('click', function(){   var elemDistanceToBottom = $(window).height() - $(this).offset().top;   if($('.dropdown-menu').height()>elemDistanceToBottom ){      $(this).closest(".dropdown-fix").addClass("dropup");   } });


Can you cast a spell while holding a shield?

I am a Wizard with 1 multiclass level of Cleric. Can I cast a spell if I have my other hand free? I thought I could but the text of the War Caster feat leads me to believe I might not be able to.


How to find the RAM type in command prompt?

How to find the RAM type (DDR2/DDR3) of the system using command prompt?  I have tried SYSTEMINFO in command prompt but it did not display the RAM type.


How to find out fully qualified hostname in osX (Terminal / Swift)?

i've checked several posts, for example -  ()  My apple machine is connected to the domain and i'm logged on with a domain user. the thing is, that hostname command only gives me the machine name - but i cannot find the domain part.  This is also true if i use the command host 'hostname'.  any clearance would be appreciated.


Jordan normal form for a characteristic polynomial $(x-a)^5$

Write down all the possible Jordan normal forms for matrices with characteristic polynomial $(x-a)^5$. In each case, calculate the minimal polynomial and the geometric multiplicity of the eigenvalue $a$. Verify that this information determines the Jordan normal form.  I found this question in a textbook that I'm using for a test I have tomorrow. I think that I need to use the method for finding the Jordan normal form of a matrix but I can't see how to apply it and I don't have much intuition about the answer...  I'm guessing that there are 5 possibilities since the minimal polynomial can be any factor of the characteristic, but I don't know how to prove this.  Some help would be great for my test tomorrow! Thanks


How does the Linux desktop perform system actions?

The Linux desktop can perform several actions which is otherwise not available to the user when logged in from a terminal. Actions such as system shutdown, and changing system time are accessible only to a sudo user after entering the password. How does this work. Is there a root daemon running which takes command from the login user. Please guide me to the right answer.  I am running Ubuntu 13.10.


How can I make this work on macOS terminal?  sed -i 's/config.action_mailer.default_url_options =.*$/config.action_mailer.default_url_options = {:host => "localhost:3000"}/g' config/environments/development.rb sed: 1: "config/environments/dev ...": command c expects \ followed by text


I went looking for answers to a question I had, but didn't find what I was looking for.  Now that I've found the answer myself, I'd like to share what I've learned.  What's the best way to do this, if nobody else has asked the exact question I did?  Should I ask the question myself, and immediately post my own answer?  Or should I mark the question as a tutorial in the title?  ("Tutorial: How to ABC when using XYZ")


Photon speed going from $0$ to $c$ initially?

I have read many questions which ask whether there can be photons at speed other than the speed of light and all of them are answered no!  But when the photon is created for ex during electron transition from higher to lower energy level, it cannot simply be at initial speed $c$!  Why it cannot be at $c$:  It would not suffice momentum conversation. Suppose one electron releases a photon, then the photon will need to have momentum of $\frac{h}{\lambda}$ and so would the electron in opposite direction, but that would push the electron towards the nucleus which would then again take it to (though unstable) lower energy state which would result in another photon. Since this does not happen, initial momentum cannot be $\frac{h}{\lambda}$  Since initially photon cannot be at speed $c$ it must reach the speed of light, may it be in unmeasurable less time and thus go through all the speeds between $\text{0}$ and $c$  Am I right? If I am right, why are all the questions answered no, then answered no? If I am wrong, where and why am I wrong?


Prove that $|f|$ is integrable on $[a,b]$ and $|\int_a^b f(x) dx| \leq \int_a^b |f(x)|dx$

Suppose that the function $f\; :\; [a,b] \rightarrow \mathbb{R}$ is integrable on $[a,b]$. Prove that $|f|$ is integrable on $[a,b]$ and $$\left|\int_a^b f(x) dx\right| \leq \int_a^b |f(x)|dx$$ I don't know how to go from one step to another... I kind of intuitively understand that its the distance or width between the function's two points on $[a,b]$ but not fully sure where to even start. $$\sup_{x \in I} |f(x)| - \inf_{x \in I} |f(x)| = \sup_{x,y \in I} |\,|f(x)| - |f(y)|\,| \leqslant \sup_{x,y \in I} |\,f(x) - f(y)\,| =  \sup_{x \in I} f(x) - \inf_{x \in I} f(x)$$


Following error is appearing during installation.... "The following packages have unmet dependencies:  libreoffice-core : Depends: libreoffice-common (> 1:3.5.7) but it is not installed "  Pls help.


I was wondering out of these three which would you take  calculus by Spivak  calculus by Hughes-Hallet   calculus by Morris Kline  I'm taking calculus III next semester but I want a better book that's harder than calculus by Larson which I don't like all that much


I used  app in my Android phone. But this app does not support XeLaTeX and requires an internet connection to be used.  Is there any distribution of TeX for Android? How I can install TeX on my Android phone?


dotted line with appropriate length for answering a question?

Kindly have a look at this code   \documentclass{article} \usepackage{fontspec} \defaultfontfeatures{Ligatures=TeX} \usepackage[small,sf,bf]{titlesec}  \setromanfont{Georgia} \usepackage{amssymb}  \newcommand{\checkbox}{$\square$} \begin{document}  If appropriate \checkbox  . Why appropriate, specify? ........... If inappropriate \checkbox . Why inappropriate, specify? .............. If appropriate \checkbox . Why appropriate, specify? ...........\\ If inappropriate \checkbox . Why inappropriate, specify? ...........  \end{document}   How can I make a dotted like, of appropriate length so that it is depressed, fainter, has consistent length so that it occupies the remaining white space in the  line or has specified length.


Why is my thin glass dome taking so much light away from what is inside?

I made a rather simple roughed-up gold material which you can see here. It has nice highlights and looks OK on the teapot, it works a lot better with the actual mesh I'm using, which is a scan of a clay sculpture. Overall it gives a nice gold-leaf effect.    Then I made a thin glass display dome taking half of a sphere, extruding the equator down, and applying subdivision and solidify (0.001 thin, IIRC). I used a simple, all-white, all transparent Principled BSDF glass material with enough of a roughened up clearcoat to simulate it being a little greased up. You can find the .    However, you'll notice that the material under the dome is considerably darker now. It seems like less light is getting through the glass material. I mean, that's OK, I was expecting some light to get lost in the process, but this looks a bit much compared to some of the references I've been staring at for hours: the following, for example, is surprisingly similar to what I'm trying to achieve.    I tried fidgeting with the light settings, and the glass settings, and the light paths, I even tried to increase the max bounces, and change pretty much any number that seemed correlated to light but I couldn't get any closer to the effect I want. Increasing the intensity of the light is not a solution because it affects the rest of the scene. I thought of adding fake lights on the inside of the dome but that opened a whole different set of can of worms so I quickly retreated.  I can't shake the feeling that I'm missing something obvious. I've seen very similar scenes done so I'm confident this can be done. See  for example, though I couldn't figure out exactly how to apply their advice to my scene.  Hints? Pointers to RTFM?


cryptsetup: unknown fstype, bad password, etc. Bug? Ubuntu 14.04.2

I can't log in to my system. At first I had gotten the following error:   cryptsetup: unknown fstype, bad password or options?   Ubuntu spammed this at boot.   Now I can't run the Ubuntu OS installed on that drive at all. All I get is error spam for invalid images and invalid image headers.  When I use a live USB to try to access the files, I can decrypt the drive, but I still can not log in to my system normally.  Aside from the live usb, I can't access it. and even then with the live usb it's difficult; I had to download nemo and open a window with root permission to access my files.


Should I be offered the option to upgrade to 18.04.1?

I understand that the first point release of Ubuntu 18.04, namely 18.04.1 is now available and that my system should now offer it as an update.  My current OS version is 16.04.5 LTS. In System Settings/Software and Updates I have set 'Notify me of a new Ubuntu version' to 'For long term support versions'. I have tried both the main server and the server for United Kingdom, neither offers an update when Software Updater is clicked or via the Ubuntu Software icon.  Can anyone please tell me why I don't get the option of updating to 18.04?  Edit:  I don't remember the details exactly, but I think that my last LTS point release update was offered automatically a lot sooner after the published release date than where we are now with 18.04.1.  Edit 10th August  It appears that there has been some problem with the update process and that it should be fixed next week, see:    Edit 14th August 18.04.1 LTS now available from UK server,


Is there any simple integration for calculating count of points in polygon using QGIS-Python integration?   In other words, are there any pre-defined functions for points in polygon of QGIS using python, so that we can use them in our python script?


Calculating $\int \sin x e^x \Bbb d x$ by parts twice

Integrate $e^x \sin x  $. I know I need to integrate by parts 2 times, but I'm stuck at the second integration. For the first I get  $$-e^x \cos x  - \int e^x\cdot (-\cos x)  \,dx  $$  Correct me if I'm wrong.


We seem to be stuck at an impasse on this issue.  Is funnest a word or not?  If so, does it mean "most fun"?


The maddening brown review number in the navbar displays the wrong number

Currently, the review number does not serve to alert me about review tasks I can perform, only that there are review tasks outstanding. I am already aware that this is a known issue, so I am not here to describe it, as that has been      ,   and I am very open to hearing why my proposal (below) is a bad idea.  The problem with this setup is that I never know when I should click on the reviews to actually perform a task for the community. I would like to formally request that this be changed. The current number of total reviews in process should be moved to the tools tab, with the other non-actionable data. The navbar is simply too much the nervecenter of the user experience to hold onto non-actionable data.  Making this change would accomplish two things: (a) not driving moderators crazy, and (b) getting items that actually need review to be reviewed much faster. We've already developed a rather Pavlovian response to the navbar - this little tweak could alter the speed of review across the whole site.


Hey guys I've been stuck on this problem for a while and I've still got no headway into how I'm supposed to do this. Any tips or guiding points would be helpful.  Let $f$ be a differentiable function such that $f′$ is continuous on $[0,1]$, and $M$ the maximum value of $|f′(x)|$ on $[0,1]$. Prove that if $f(0) = f(1) = 0$, then  $$\int_0^1 |f(x)| dx\leq\frac{M}{4}$$  I've come to a conclusion via Rolle's theorem that there exists a c between 0 and 1 where f'(c) = 0 and that would be a local extrema. But nothing past that other than the fact that the max value of M is 1.


How come my vote cap for "First Posts" is lower than others?

I was reviewing First Posts just now, and I received the following message after my 20th vote:     Thank you for reviewing 20 First Posts today; come back in 8 hours to continue reviewing.   I see other users, with far lower reputation than me, .  Why is it I only have 20 votes?  I saw the  question, but the accepted answer there mentions flag weight, and I was under the impression that Flag Weight is gone (since it is no longer visibile on my profile).  What is the formula that determines the number of First Post votes a person can get per day?


A locally constant sheaf on a locally connected space is a covering space; Proof?

As part of my hobby i'm learning about sheaves from Mac Lane and Moerdijk. I have a problem with Ch 2 Q 5, to the extent that i don't believe the claim to be proven is actually true, currently. Here is the question repeated:     A sheaf on a locally connected space $X$ is locally constant if each point $x \in X$ has a basis of open neighborhoods  $\mathcal{N}_x$ such that whenever $U,V \in \mathcal{N}_x$ with $U \subset V$, the restriction $\mathcal{F}V \rightarrow \mathcal{F}U$ is a bijection. Prove that $\mathcal{F}$ is locally constant iff the associated etale space over $X$ is a covering.   I don't have a problem (i think) showing the "covering" $\rightarrow$ "locally constant" direction of the implication. My problem is in the reverse direction. In fact, in the process of trying to solve this problem i think i have come up with a very simple counterexample.  Here's my attempt at a counterexample:  Let $X = \{a,b,c\}$ be  finite space with open subsets $\{\{\},\{a\},\{a,b\},\{a,b,c\}\}$. I claim this is hyper-connected and locally connected.  Let $\mathcal{F}$ be the sheaf with $\mathcal{F}(\{a,b,c\}) = \{q\}$, $\mathcal{F}(\{a,b\}) = \{r,s\}$, and $\mathcal{F}(\{a\}) = \{t\}$, where $r = q|_{\{a,b\}}$, and $t = q|_{\{a\}} = r|_{\{a\}} = s|_{\{a\}}$. I claim this defines a locally constant sheaf. Indeed we can have $\mathcal{N}_{a} = \{\{a\}\}$, $\mathcal{N}_{b} = \{\{a,b\}\}$, and $\mathcal{N}_c = \{\{a,b,c\}\}$.  Now we can calculate the corresponding etale space $p : E \rightarrow X$ as follows: $E = \{\dot{q}(a), \dot{q}(b), \dot{q}(c), \dot{s}(b)\}$, and has these four distinct elements since $\dot{q}(a) = \dot{r}(a) = \dot{s}(a) = \dot{t}(a)$, and $\dot{q}(b) = \dot{r}(b)$. The action of $p$ follows by construction.  However, $p$ does not appear to me to be a covering space. In particular, the only neighborhoods of $b \in X$ are $\{a,b\}$and $\{a,b,c\}$ and we have $p^{-1}(\{a,b\}) = \{\dot{q}(a),\dot{q}(b),\dot{s}(b)\}$ and this cannot be partitioned into homeomorphic images of $\{a,b\}$ because $2 \nmid 3$. Similarly, $p^{-1}(\{a,b,c\}) = \{\dot{q}(a), \dot{q}(b), \dot{q}(c), \dot{s}(b)\}$ and this cannot be partitioned into homeomorphic images of $\{a,b,c\}$ since $3 \nmid 4$.  So i think i have a locally constant sheaf on a locally connected space whose corresponding etale space is not a covering. What have i done wrong? I have seen the claim mentioned elsewhere so i'm convinced i'm wrong somewhere. Perhaps someone knows where a correct proof is published otherwise?


How to add a custom CSS class to core blocks in Gutenberg editor?

I'm trying to add a class to list blocks (core/list) in Gutenberg. Unfortunately, it looks like because some blocks like lists and paragraphs don't have the standard default class name of wp-block-{name} they can't be renamed using the  filter.  To get around that, I've used the blocks.getSaveContent.extraProps filter, which seems to enable me to add a class to ALL the blocks that don't already have classes. Code below is how I got that working. It's adding added-class-name to blocks likes lists and paragraphs and so on.   function addBlockClassName( className ) {   return Object.assign( className, { class: 'added-class-name' } ); }  wp.hooks.addFilter(   'blocks.getSaveContent.extraProps',   'gdt-guten-plugin/add-block-class-name',   addBlockClassName );   And I'm enqueuing it like so:  function gdt_blocks_class_rename() {   wp_enqueue_script(       'gdt-plugin-blacklist-blocks',       get_stylesheet_directory_uri() . '/dist/guten-addons.js',       array( 'wp-blocks' )   ); } add_action( 'enqueue_block_editor_assets', 'gdt_blocks_class_rename' );   However, what I want to be able to do is add a class to ONLY list blocks? Can that be done at all?


So here the problem goes:     Show that if $x \ge 1$, then $x+\frac{1}{x}\ge 2$.   This is a very interesting word problem that I came across in an old textbook of mine. So I know it's got something to do with   If $x = 1,$ then we have $1 + \frac 11 = 2,$ and clearly, if $x \ge 2,$ then since $\frac 1x$ is also positive, $x+\frac{1}{x}\ge 2$.   So we only have left $1 < x < 2$ to deal with.  But other than that, the textbook gave no hints really and I'm really not sure about how to approach it. Any guidance hints or help would be truly greatly appreciated. Thanks in advance :)


British Airways airport desk & dual nationality

I hold both a Bahraini and a British passport. There is a slight difference ( one letter ) n my first name. To travel from Bahrain to the UK can I show the BA check in desk my Bahraini passport. It has no UK visa in it. Is it appropriate to show the British passport? The Advanced passenger information system that is requested by BA where does it go? To the country entered or that exited or both?


Addition and subtraction of chemical equations

Is there a package that supports the addition or subtraction of chemical equations, perhaps with automatic tabbing and a alignment.  Whilst it is obvious I could set up tables or use mathmode's align feature, it seems so much more efficient to have a package handle the tabbing automatically, since it is rather predictable in this application.  mhchem does not seem to have such a feature...      Another advantage is you could maintain the readability of your equations and you would not have the added clutter associated with tables, especially tabs &, which diminish the readability of your .tex document.  And of course, the line should be automatically inserted before the last row.


Do I need to quote command substitutions when assigning their output to a variable?

I tend to quote command substitutions as shown below even when assigning their output to a variable: var="$(command)"  Is that actually needed though? When does it break? The accepted answer  claims:  DIRNAME="$(dirname $FILE)"  if $FILE contains whitespace or globbing characters [?*.  The link points to Grey Cat Wiki's great page about quoting but that page doesn't mention quoting command substitutions specifically. And while quoting the variable is clearly needed, quoting the command substitution itself doesn't seem to be. However, the same post concludes with:  DIRNAME="$(dirname "$FILE")" is the recommended way. You can replace DIRNAME= with a command and a space without changing anything else, and dirname receives the correct string.  Which is what I've always thought as well and have often ocrrected posts here that didn't quote it. However, the wiki page linked to above also claims that:  There are a few cases where double quotes may be safely omitted: On the right hand side of a simple assignment. You may write foo=$bar without quotes. This is POSIX compliant. [. . . ]  While var=$(command) isn't really a "simple" assignment, I was nevertheless unable to find a case where the quotes were actually necessary: $ var=$(echo "foo bar baz")  ## whitespace works $  echo "$var" foo bar baz  $ var=$(printf "foo\nbar * baz") ## so do globbing characters $ echo "$var" foo bar * baz  $ var1="foo\nbar * baz" $ var=$(printf "$var1")  ## printing a variable doesn't make any difference $ echo "$var"  foo bar * baz  $ var=$(printf '%s\n' "$var1") $ echo "$var" foo\nbar * baz  $ var=$(printf -- '-e %s\n' "$var1") ## strings starting with - also work $ echo "$var" -e foo\nbar * baz  Of course, the quotes are absolutely necessary if the command substitution is being used directly for things like command1 "$(command2)", but that doesn't seem to be the case when assigning to a variable. So, what am I missing? Are the quotes ever needed? What corner case will quoting a command substitution when assigning its return value to a variable protect you from? Or is it always OK to not quote a command substitution if it is the right hand side of a variable assignment operation?


Ubuntu stuck on loading on splash screen

I am on the latest Ubuntu and I’ve looked at similar questions and tried everything they’re saying and nothing is working for me and my cpu is kinda old tho


Do we always use the definite article with inventions?   The paper and the gunpowder were invented in China. (an example from my student's book). Paper and gunpowder were invented in China. (I've seen this sentence in quite a few British and American scientific articles).   Thank you!


add vertical line of equation x=2 and shade a region in graph by pgfplots

I would like to plot these four equations :   $$y=\dfrac{3}{2x+1}, y=3x-2, x=2   y=0$$   and i don't know how to draw vertical line of equation x=2 and  shade a region like the picture below      \documentclass{article} \usepackage{pgfplots} \usepackage{pst-plot} \usepackage{pstricks}  \begin{document}  \begin{table}[h] \centering     \begin{tikzpicture}         \begin{axis}[              extra y ticks       = 2,       extra y tick labels = z,       extra y tick style  = { grid = major },              axis lines=middle,              grid=major,               xmin=-1,                 xmax=3,         ymin=-1,         ymax=3,         xlabel=$x$,         ylabel=$y$,                 xtick={-1,-0.5,0,...,3},         ytick={-1,-0.5,0,...,3},         legend style={at={(axis cs:-.5,0,1)}, anchor=north west,width=90cm, draw=none,opacity=.9, inner sep=2pt,fill=gray!10}]             %\addlegendentry{$f(x)=2^{x}$}             %\addlegendentry{$f(x)={\left(\dfrac{1}{2}\right)}^x$}             smooth,                 enlargelimits=false,         axis line style={latex-latex},  \addplot[thick, samples=100, domain=0:6,blue] {3/(2*x+1)}; %node[right] {$f(x)=2^{x}$}; \addplot[thick, samples=50, smooth,domain=0:6,olive] {3*x-2}; % node[right]{$f(x)={\dfrac{1}{2}}^x$};     \end{axis} \end{tikzpicture} \end{table}  \end{document}   which produces :


How to transfer from Galaxy 5 to PC without loss of quality?

Photos on my Samsung G5 preview screen look much brighter, so much more vivid and saturated, than on my PC screen after I transfer them. Why? Does it have to do with a different color space? How can I transfer them to my PC and edit them in PS CC without any loss of quality?


Could we provide some automatic feedback on (enough) unfriendly/rude comments?

If you have too many recent declined flags, you get a warning when you next start to flag something.  If you fail a review audit, you also get feedback (I think on the spot in that case).  In both cases, the warning is along the lines of "hey, you've had some declines/failures; here's some info to help you do better".  Could we do something like that for recent rude comments?  Moderators now get an auto-flag if too many of a user's recent comments are deleted for bad reasons, but can we put some system-generated feedback closer to the user right at comment-creation time?  Like with flags, the best time to counsel better behavior seems to be when the person is about to type another comment.  My goal is to help users self-correct before mods have to intervene.  Unless you revisit the page, you'll never notice that your comments were deleted, let alone that they were flagged as unfriendly.  I'm tagging this , not , because I'm asking if providing this kind of feedback would make sense before developing it into a full request.  If it makes sense, how do we balance between being too noisy (so users just ignore it) and being too late (so moderators are probably going to have to intervene anyway)?


I would like to properly typeset a file path, e.g.  C:\Program Files\Some program\bin\executable.exe   The first problem I encountered was that LaTeX tries to treat \Program as a command. I tried escaping it with another backslash which created a linebreak.  Then I found this package  but I am not really happy because it typesets system-specific delimiters (i.e. \ for Windows and / for Unix-like) as some weird arrows.  Which leads to my question: what is the preferred way of typesetting a file path in LaTeX?


So, basically I have a library system that has      private int numberOfBooks = 0;      public int getNumberOfBooks() {     return numberOfBooks; }   Of course when you add a new book in the library the numberOfBooks is increased by 1. My other class Student has the following code:      private LibrarySystem libraryBooks;      public void searchByISBN() {     int i = 0;     boolean found = false;     while(i<libraryBooks.getNumberOfBooks()) //THE PROBLEM IS HERE     {         if(books[i].getISBN().equals(in.next()))         {             found = true;             break;         }         i++;     }     if(found)     {         System.out.println("\n Book info: \n ISBN: " + books[i].getISBN() +                              "\n Title: " + books[i].getTitle() +                             "\n Author: " + books[i].getAuthor() +                             "\n Subject: " + books[i].getSubject());                         }        else System.out.println("There is no book with such ISBN"); }   I get a Java.lang.NullPointerException and I don't know why. How can I fix this?


Oracle VM Vitualbox - Extend centos root file system

I first installed the centos on the virtual box and only assigned 8GB to it. Now I've extended the VIRTUAL BOX file system and it has around 25gb.  As you can see below it's showing as tmpfs when I do "df -h" command and when I do "lsblk" it's showing root file system has 20gb. How can I extend the centos-root file system?  And, what is tmpfs?


The State Police Have Busted the thief or The state police has busted the thief?  According to me, It is Have because police is a group of people. So police is plural noun.


Is it better to use Lagrangian mechanics for all cases?

I am in high school and I need to solve lots of problems which involve spring-block systems, pendulums, damped oscillations and so on. I am learning Lagrangian mechanics and I am already quite proficient in solving these problems with Newtonian mechanics by resolving the forces and by energy conservation. I think that the force method is time consuming. I have heard several people say that Lagrangian mechanics can very easily give the equations of motion and I was hoping someone with first-hand experience could tell if I should solve these types of problems with Lagrangian mechanics.


Proving the inequality $\frac{\tan{x}}{x} > \frac{x}{\sin{x}}$

I'm trying to prove this inequality: $$\frac{\tan{x}}{x} > \frac{x}{\sin{x}} $$ for all $x$ in $(0,\frac{\pi}{2})$.  I tried analyzing the derivates, but that's just making it more complicated. Any help would be appreciated.


Convergence in probability: $\lim_{n\to\infty}\int_0^1\cdots\int_0^1\frac{x_1^2+x_2^2+\cdots+x_n^2}{x_1+x_2+\cdots +x_n}dx_1\cdots dx_n=\frac23$

How to prove the following: $$ \lim_{n \to \infty} \int_0^1 \int_0^1 \cdots \int_0^1 \frac{x_1^2+x_2^2+ \cdots +x_n^2}{x_1+x_2+ \cdots +x_n} dx_1 dx_2 \cdots dx_n = \frac23 $$  I would really appreciate if you could help me!


How to intuitively understand eigenvalue and eigenvector?

I'm learning multivariate analysis and I have learnt linear algebra for two semester when I was a freshman.  Eigenvalue and eigenvector is easy to calculate and the concept is not difficult to understand.I found that there are many application of eigenvalue and eigenvector in multivariate analysis. For example     In principal components, proportion of total population variance due   to kth principal component equal    $$\frac{\lambda_k}{\lambda_1+\lambda_2+...\lambda_k}$$   I think eigenvalue product corresponding eigenvector has same effect as the matrix product eigenvector geometrically.   I think my former understanding may be too naive so that I cannot find the link between eigenvalue and its application in principal components and others.   I know how to induce almost every step form the assumption to the result mathematically. I'd like to know how to intuitively or geometrically understand eigenvalue and eigenvector in the context of multivariate analysis(in linear algebra is also good).  Thank you!


Dealing with Categorical variables in Multiple Regression

I have a data having 2 continuous and 4 categorical variables. Each categorical variable has 3 levels. I want to know how to include the variables  in the model. I am using SPSS  Variables:   Sales - Dependent Variable Retail Price Location : TX, CA, PY Display Location in Store : DL1, DL2, DL3 Price Point : 2.5, 4.5, 1.0   I have created 9 dummy variables. 3 for Location, 3 for Display Location in Store and 3 for Price Point.  I am confused on how to use these independent variables. How to add the independent variables into the models. Should I add all the nine dummy variables or two dummy variables of each categorical variables along with Retail Price.  I searched on net but , did not get any solution. I would appreciate any kind of help.  Thanks in advance.


How to prove a set of solution of a continuous function is closed?

E.g. if the set is $S=\{(x,y), g(x,y) = 0\}$, $g$ is a continuous function. How to prove that S is closed?  It seems that the relationship between continuous function and convergent sequence and the Lemma that "A set A in a metric space is closed iff the limit of every convergent sequence in A belongs to A" can be used here. I am not sure how the relationship between continuous function and convergent sequence is applicable here.


How to proof that for all n $ (\sum_{i=1}^n i)^2 = \sum_{i=1}^n i^3 $

What i had so far was this: claim: How to proof that for all n $$ \left(\sum_{i=1}^n i\right)^2 = \sum_{i=1}^n i^3 $$  Proof  To proof:  How to proof that for all n $$ \left(\sum_{i=1}^n i\right)^2 = \sum_{i=1}^n i^3 $$  basis $n=1$:  $$ \left(\sum_{i=1}^n i\right)^2 = \sum_{i=1}^n i^3\\ (1)^2 = (1^3)\\ 1 = 1$$  Induction $n = k$: $$ \left(\sum_{i=1}^k i\right)^2 = \sum_{i=1}^k i^3 $$ My assumption is that this is true  $n = k+1$: $$ \left(\sum_{i=1}^k+1 i\right)^2 = \sum_{i=1}^k+1 i^3\\ \left(\sum_{i=1}^k i +(k+1)\right)^2 = \sum_{i=1}^k i^3 +(k+1)^3 $$  I got stuck here and i dont know how to continue.


Why is it easier to implement bytes as 8 bits rather than 9 bits?

From book to book I always find the same sentence. For example:  8 bits is an even power of 2, which makes it somewhat easier to design computer hardware with 8-bit bytes than with 9-bit bytes.  The Computer Book (Sterling Milestones) by Simson L Garfinkel & Rachel H. Grunspan I cannot find any circuit or detailed explanation why that statement is true. The perfect answer will be a circuit that shows why it is easier to implement. I know about all other reasons i.e., BCDIC, ASCII, IBM System / 360 and etc. But it's just words, I need a proof with circuit. If one say that it is easier to implement, it means nothing without proof. It's like to say 1 + 2 + 3 + ... = -1/12. This statement is true, but it is complete nonsense without proof. Same thing with byte. Show circuit and I will believe.


Why does TLS 1.2 use GCM with additional SHA hash?

I am studying the cipher suites provided by TLS 1.2 and found an interesting question.  TLS 1.2 adopts GCM for encryption and SHA256 or SHA384 for hash (e.g. TLS_RSA_WITH_AES_128_GCM_SHA256). But, GCM already provides data authenticity (integrity).  So, my question is that why TLS 1.2 includes another hash functions (SHA256 or SHA384) to provide integrity. Why not just use GCM for both encryption and hash, like IPsec?


Do I need Schengen travel insurance to visit Portugal if covered by the NHS?

I am a South African citizen living in the UK 22 years with indefinite leave to remain.  Do I need Schengen travel insurance to go to Portugal if I'm covered by the NHS in the UK?


qiskit.providers.ibmq.exceptions.IBMQBackendApiError: 'Error submitting job:....  (Caused by SSLError(SSLError(1, \'[SSL:  WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1056)....   I used a basic Qiskit tutorial within a Conda environment, Python3.7, Ubuntu 18. The was no problem getting it to load account with token and display the following: ibmq_qasm_simulator has 0 queued and simulated qubits ibmqx2 has 241 queued and 5 qubits ibmq_16_melbourne has 3681 queued and 15 qubits ibmq_vigo has 393 queued and 5 qubits ibmq_ourense has 507 queued and 5 qubits ibmq_valencia has 0 queued and 5 qubits ibmq_armonk has 3 queued and 1 qubits ibmq_athens has 13 queued and 5 qubits ibmq_santiago has 17 queued and 5 qubits  This is the section of code which generated the error: from qiskit.tools.monitor import job_monitor backend = provider.get_backend('ibmq_qasm_simulator') config = backend.configuration() job = q.execute(circuit, backend, shots=10) job_monitor(job)  I found one reference to the issue being on their cloud and it suggested using a VPN or different Network. I also setup an IBM cloud account, but there does not appear to be a way to incorporate that into qiskit. The next thing I tried was seeing if the IP address of their cloud link being called would work just in a simple browser window along the lines of a suggestion about safe.io intercepting the SSL on Macs. I also tried a few things related to OpenSSL and reinstalling that bit etc... no luck. The qiskit package was installed using PIP within Conda. QisKit Version: qiskit-terra: 0.16.1 qiskit-aer: 0.7.1  qiskit-ignis: 0.5.1  qiskit-ibmq-provider: 0.11.1 qiskit-aqua: 0.8.1  qiskit: 0.23.1


Leaving USA with other passport than used for entry

I am a dual citizen of Germany and USA and I will enter the USA soon with my US passport which is set to expire in 2 weeks. I plan on staying there for about 1 month before returning to my country of residence, the UK. Will the expiry of my US passport cause any problems? Can I use the German one to leave the USA and enter the UK?


Inserting PDFs into Stack Exchange posts inline

Is it possible to insert PDFs into Stack Exchange posts, or do I have to convert them to images first?  Specifically, I'd like to insert a PDF on . My latex code (.tex) compiles to PDF and I want to display both in a post (so I'm not interested in uploading the file and having it as an attachment to my post).


On-topic list is too hard to find in the new help center

The On-Topic section is really the core of what defines a site.  In the former FAQ sections, it was prominently placed and easy to identify.  Now in the Help Center, it is buried half way down and 3 columns over.  I knew what I was looking for and it still took me several minutes to find.  Such a key piece of information about what defines a site should be much more readily accessible.  I propose that the On-Topic section should be somehow worked in to the main Here's How It Works graphic or at least directly on the Tour page.


Let f be a differentiable function with f(0)=0 and f(1)=1, f'(0)=f'(1)=0. Prove that |f''(x)| > 4 for some x in (0,1). (Without invoking integrals)

Let $f$ be a twice differentiable function such that $f(0)=0$ and $f(1)=1$. Also, $f'(0)=f'(1)=0$. Prove that $f''(x)>4$ for some $x \in (0,1)$.  Any help would be appreciated.  My initial attempts were using Lagrange's Mean Value Theorem first between $f(0)$ and $f(1)$ to show that $f'(t)=1$ for some $t$ in $(0,1)$.  Now applying LMV between $f'(t)$ and $f'(0)$, and $f'(t)$ and $f'(1)$ I could prove it if t lies in either $(0,1/4]$ or in $[3/4,1)$. Don't really know where to go next.


What is the "canary thread" and why is it starving?

The following occasionally appears in /var/log/syslog:  rtkit-daemon[1145]: The canary thread is apparently starving. Taking action. rtkit-daemon[1145]: Demoting known real-time threads. rtkit-daemon[1145]: Successfully demoted thread 1431 of process 1368 (n/a). rtkit-daemon[1145]: Successfully demoted thread 1430 of process 1368 (n/a). rtkit-daemon[1145]: Successfully demoted thread 1368 of process 1368 (n/a). rtkit-daemon[1145]: Demoted 3 threads.   What's going on here?


Since to days ago I'm receiving DDOS atacks in my server. I've installed mod_evasive in apache and it works right! It writes the log and send the email with de IPs.  But there's a problem: Apache doesn't add the DROP rule in iptables (or at least it doesn't appear)  I'm using apache in Plesk, the configuration file is like:  DOSHashTableSize 3097 DOSPageCount 1  DOSSiteCount 50 DOSPageInterval 1 DOSSiteInterval 1 DOSBlockingPeriod 600 DOSSystemCommand "sudo /sbin/iptables -A INPUT -s %s -j DROP" DOSEmailNotify "xxx@xxx.com" DOSLogDir "/var/log/evasive/"   Here is my 'sudoers' file:   apache ALL=(ALL) NOPASSWD: /sbin/iptables -A INPUT -s [0-9.]* -j DROP   But that doesn't help.  Thanks in advance.


SEDE logs me out more often than it used to do

I'm pretty sure that since a month or so,  seems much more eager to get rid of my session and log me out in that process. I don't mind logging in a couple of times per day, if that helps to reduce resource consumption, but the user experience isn't all that great when it happens. Here is why: I'm most often in the middle of writing a query for an MSE question, for example . So I have the edit window open and am creating a new revision of my query. When I click "run," I do notice the button gets grayed-out, as it normally does, but I never get any result back. There is also no error message. To recover from this I have to copy the SQL text I have typed, open a new tab and load SEDE, log in, switch back to the stalled tab, refresh, paste the SQL text, run query. Repeat the process after 10 minutes. If the intended behavior is to log users out of their session on such short notice (I recall sessions lived for 24 hours), can there then be a slightly better handling in the browser of that state, so it is clear you're logged out once you click the run button? I prefer, however, to have the longer allowed sessions back. I'm experiencing this behavior mostly in Chrome on Win 10.


Where is the config (application properties) file for TimeMachine settings and the path excludes?  You know, that what you might click and add in TimeMachine Settings > Options ...  Can't find anything in ~/Library/Preferences. But settings are per user and not system-wide?!  System Command / Library seems to be named com.apple.prefs.backup


A tool that let's you draw rectange on screen, gives dimensions + X-Y?

a tool like:  xprop wmctrl xdotool   but it needs to permit me to draw a shape on the screen.  then it should tell me the dimensions + the x-y coordinates   is there such tool ?


I have a root div here. I want to display the child divs horizontally. How to do this?


Whether to post in stackoverflow or wordpress.stackexchange.com?

Now there are dedicated stackexchange sites for wordpress, drupal etc. I got a question regarding the wordpress and so I asked it in wordpress.stackexchange.com. But as the audience is less, I didn't get an answer.   But I am sure that I would get a response if posted it on stackoverflow. If I pasted the same question, it will be marked as double posting across the network.  So how can I point the stackoverflow users to the wordpress question and get a response?


How to install an homebrew formula without updating homebrew itself?

When I install or reinstall a formula, homebrew automatically update itself before installing the formula.  When working on a slow connection, this is annoying. How can I cancel this automatic update?


My understanding is that "who" is only used to address people. However, i read an article that claimed if we are referring to the organization as a group of people , we can use "who." Please provide your feedback on the examples below.  The customer will send their bills to the company who will then defer them to the insurance company.  The customer will send their bills to the company which will then defer them to the insurance.   I don't think "that" can be used in the context noted above.  I had an interview with a company, which did not offer much incentives.  I had an interview with a company that did not offer much incentives.   Thanks!


should nested class be declared as static if only used in wrapper clas

Sample code:  class A {     public doSomethingFancy() {          .....          doJOb();     }     private doJob() {         B b  = new B();     }      private class B {     } }   class B is only needed for class A.Or is only used in class A.  Is there need to declare class B as static ? yes/no Why?


There are some books on the table. If you group them by 3, you get some number of full groups and 2 books remain; if you group them by 4, you get some number of full groups and 3 books remain; if you group them by 5, you get some number of full groups and 4 books remain. What is the number of books on the table, if it is less than 100?


While experimenting with my 600d, I have noticed that on the same shutter speed, without inbuilt flash I get motion blur in my pictures, but with flash there is little to not motion blur (on the same shutter speed that produced motion blur without flash).  Why does this happen?


How do I Prove (by induction) that the series $1^3+2^3+...+n^3=(1+2+...+n)^2$?

This is a question from my textbook, it goes like this:   Prove (by induction) that the series $1^3+2^3+...+n^3=(1+2+...+n)^2$  Here is my attempt at a solution:  The base case would be: $n = 1 \implies 1^3=1^2$  Then we suppose that the statement works for a certain: $n=k$.  This gives us: $1^3+2^3+...+k^3=(1+2+...+k)^2$ (the inductive assumption) and this can be written as: $1^3+2^3+...+k^3=(\frac{k(k+1)}{2})^2$ by using the sum formula.  Further: $n=(k+1) \implies LHS = 1^3+2^3+...+k^3+(k+1)^3 =$ (by using the inductive assumption) $=(\frac{k(k+1)}{2})^2 +(k+1)^3$ and the $RHS = (1+2+...+k+(k+1))^2$  The proof would be complete if I could show that the $LHS = RHS$ but how do I do that?  Thank you for your help!


We know that if $A$ is a self-adjoint unbounded  operator on a Hilbert space $(H;\left<.,.\right>)$ then $\sigma(A) \subset \mathbb R$. Now, how it can be shown that if $A$ is more positive i.e. $\left<Au,u\right> \geq 0$, then $\sigma(A) \subset \mathbb [0,+\infty[$ ?  Thank you in advance


Full-upgrade to Debian Testing fails due to libc6-dev : Breaks: libgcc-8-dev (< 8.4.0-2~) but 8.3.0-6 is to be installed

I switched the sources to Bullseye and the upgrade went smoothly, but when I do a full-upgrade, I get: libc6-dev : Breaks: libgcc-8-dev (< 8.4.0-2~) but 8.3.0-6 is to be installed  My sources are as follows: deb http://deb.debian.org/debian bullseye main deb-src http://deb.debian.org/debian bullseye main  #deb http://deb.debian.org/debian buster-updates main #deb-src http://deb.debian.org/debian buster-updates main  #deb http://security.debian.org/debian-security/ buster/updates main #deb-src http://security.debian.org/debian-security/ buster/updates main  How can I fix this to finalize the upgrade? P.S. I've looked at a recent issue here:  Which didn't help.


I downloaded this add-on, but can't seem to find where to use it in any of the menus. I'm using version 2.81 of blender. Does anyone know where I can find it in version 2.81? Or does it even work in version 2.81?    It says its located in the Toolbar in the 3D view, but can't seem to find it there. I'll include a picture. Is this the correct toolbar? Or is there another one?


How is INDEX on Composite Primary Key in mysql?

When making a composite primary key for two or more columns, e.g. PRIMARY KEY(col1, col2, col3); will the system INDEX each column individually?  The reason that I am asking this question is that when we use UNIQUE INDEX (col1, col2, col3), it acts as INDEX for the first column only, and we need to create additional INDEXs for other columns. I want to know if that's the case for Composite Primary Key too.


Remove specific duplicates (all but latest)

When removing duplicate rows, using the below query from  tutorial, how would I go about forcing which of the found duplicates to remove?  DELETE FROM dbo.ATTENDANCE      WHERE AUTOID NOT IN (SELECT MIN(AUTOID) _ FROM dbo.ATTENDANCE      GROUP BY EMPLOYEE_ID,ATTENDANCE_DATE)    And this works great. The reason why I am using this one is because the only unique id available is one in the IDENTITY column. And to determine if there are duplicate rows I have to look at a combination of multiple columns.    But if I have a set of duplicate rows how do I / how does SQL Server decide which to remove? And how would I force it to remove all but the one with the highest IDENTITY value?  EMPLOYEE_ID     ATTENDANCE_DATE     AUTOID A001            2011-01-01          1 A001            2011-01-01          2   If I would run the query now it happens to remove the second one, with AUTOID 2. But I am trying to remove all but this one (because this is the one latest added).


To set up MathJax, one recommendation is to post this code into Blogger design:  <script src='http://cdn.mathjax.org/mathjax/latest/MathJax.js' type='text/javascript'>         MathJax.Hub.Config({         HTML: ["input/TeX","output/HTML-CSS"],         TeX: { extensions: ["AMSmath.js","AMSsymbols.js"],                 equationNumbers: { autoNumber: "AMS" } },         extensions: ["tex2jax.js"],         jax: ["input/TeX","output/HTML-CSS"],         tex2jax: { inlineMath: [ ['$','$'], ["\\(","\\)"] ],                    displayMath: [ ['$$','$$'], ["\\[","\\]"] ],                    processEscapes: true },         "HTML-CSS": { availableFonts: ["TeX"],                       linebreaks: { automatic: true } }     }); </script>   But I failed to find header and design in my Blogger.  Can someone show me the process how to paste this code?


Don't let users buy more than one product of the same type in commerce

how can I prevent users from buying more than one product of same product type in Drupal commerce? I need a solution using rules module.  be careful please!!!as I need to limit users on product type (not products) my question is not duplication of any others


I have yet to see this, but was wondering if others have or if it makes sense to list acknowledgments in published papers on a CV.  In some questions on this SE, it seems significant contributions to a paper can occur, yet for some reason (maybe not contributing to writing of the paper), the person is listed in acknowledgments and not co-author.  This seems like something that is of relevance/importance.  In the other case, acknowledgments can be 'thanks for the discussion' in which it may have been a brief conversation with one important realization through the talk.  This seems more like daily life.   Some people seem to list their contributions tot he academic community, such as being a reviewer for a journal.    What would you think if you saw acknowledgments on a CV, or, would it make more sense to categorize acknowledgments into other topics, such as, 'Non-co-authored project participation'.


Find value of the limit: $\lim_{n\to \infty}\sqrt[n]{1^2+2^2+\cdots+n^2}$

Determine value of the limit:  $$L=\lim_{n\to \infty}\sqrt[n]{1^2+2^2+\cdots+n^2}$$  My try:  $$1^2+2^2+\cdots+n^2=\frac{n(n+1)(2n+1)}{6}$$  Hence: $$L=\lim_{n\to \infty} \sqrt[n]{\frac{n(n+1)(2n+1)}{6}}=?$$  But, come here, i do not know how, because please help me.


Convert list of strings into existing variables

I wanted to know how to convert a list of string into existing variables   Example :  from collections import defaultdict d = defaultdict(lambda: defaultdict(dict))   def user_data(user_id, gst, total, uname, adress, service, quantity):     uyt = ['gst', 'total', 'uname', 'adress' 'service', 'quantity']      for r in uyt:         d[user_id][r]= r // where i want to pass it       if __name__ == '__main__':     user_data(1234, '8', "2345", 'mock', 'mumbai', 'fedx', '4' )


Best practice in C++ for casting between number types

What is the best practice for casting between the different number types? Types float, double, int are the ones I use the most in C++.  An example of the options where f is a float and n is a double or an int:  float f = static_cast<float>(n); float f = float(n); float f = (float)n;   I usually write static_cast<T>(...) but wondered if there was any consensus within the C++ development community if there is a preferred way.  I appreciate this is may end up being an opinion based question and there may not be a "standard" way, in which case please let me know that there is no standard way so at least I know that :-)  I know this question has  in relation to casting in general, however, I am interested specifically in numbers and whether there are specific best practices in the approach for number types.


If $\alpha$ is an algebraic element and $L$ a field, does the polynomial ring $L[\alpha]$ is also a field?

If $\alpha$ is an algebraic element and $L \subset K$ are both field, does the polynomial ring $L[\alpha]$ is also a field?  I am trying to prove that the ring of fraction $L(\alpha)$ is equal to $L[\alpha]$. To do this, I use an exercise done in class : Let $K$ a field, $\alpha \in K$ and $L$ a subfield of $K$. Then $L(\alpha)$ is the smallest subfield of $K$ containing $L$ and $\alpha$.  Is anyone could help me?


Is $\mathbb R-\mathbb Q$ open or closed?

The set $\Bbb R-\Bbb Q$ is open, closed or neither? And how would one prove it?  I tried to prove that $\Bbb Q$ is open, so $\Bbb R-\Bbb Q$ would be closed, but I am not sure that $\Bbb Q$ is open.


Let $\lVert\cdot\rVert_1,\lVert\cdot\rVert_2$ be norms on vector space $X$. Prove that they generate the same topology iff they are equivalent.

Note that by "generate the same topology" we mean that any set that is open with respect to $\lVert\cdot\rVert_1$ is also open with respect to $\lVert\cdot\rVert_2$ and vice versa. By "equivalent" we mean that $\exists m,M>0$ such that $m\lVert x \rVert_2\leq \lVert x \rVert_1 \leq M\lVert x \rVert_2$.  This is part of an old preliminary exam in Analysis I'm using to prep for my own prelim. I have already proven that equivalent $\implies$ same topology, but the other direction is causing me trouble. I've been attempting a reductio, supposing that for some open $A$ we have $\inf_{x\in A} \{m>0: m\lVert x \rVert_2 \leq \lVert x \rVert_1\}=0$. I don't see any contradiction here, though.


I entered the command ~/.bashrc and got the message Permission denied. I logged into 'sudo', tried it again, and got the same message.   What can I do to gain access to this file and edit it?


Irrationality of $\pi$ and circumference to diameter ratio.

How is $\pi$ actually defined? If it is defined as the ratio of the circumference of a circle to its diameter then from this definition itself either of the circumference and diameter has to be irrational. The circumference and diameter both are finite but $\pi$ is irrational. An irrational number is a number with never ending numbers after decimal, till now no recurrence has been discovered.   Yet there are methods to represent them in a number line which means they have finite length.  So, if we take a finite length and make a circle around it as diameter, does it mean circumference is irrational but finite? In our everyday life, do we always take rounded off values of circumference or diameter?


'Why you did that' and 'Why did you do that' difference

I asked one person 'Why you did that' referring to something he did in the past, and he responded something like 'Why are you saying that, are you a little kid?'. I was confused and asked him why would he say that, he responded that I need to use 'Why did you do that' instead.   Why 'Why you did that' was incorrect and why he was referring to a little kid thing?


How to eliminate duplicates in certain columns based on logic in non duplicate columns

I am trying to modify this report that I have. The report is supposed to identify changes to attributes of a set of data.  For example, a person and his address with respect to his lease renewals. So imagine that the person was at address-1 from 1-1-2018 through 3/12/2018, then moved to another address-2, initially signing lease for 3/12/2018 through 12/31/2021, but then changed the lease later to 3/12/2018 through 10/1/2018. He then went ahead and extended his lease from 10/2/2018 to 12/31/2020. In this case, i want to not show the initial lease signing period of 3/12/2018 through 12/31/2021. The current table stores all of these records and i don't want this particular row to be shown just so the end user doesn't get confused.   The way I look at it, if i am able to get all the "duplicates" in columns Person, Person_ID, Phone_Number, end_date and then for those duplicate rows only keep the highest start_date, i would be able to be report out the right way. I am, however, stuck in my ability to eliminate the min(start_date) from those rows while showing all of the data.   select      subset.person,      subset.person_id,      subset.phone_number,      subset.end_date,      count(*) from subset group by      subset.subset.person,      subset.person_id,      subset.phone_number,      subset.end_date having count(*)>1 order by person_id;   Now for these rows, i need to select the max(start_date) and keep only those in the report (I think i am stuck there).   So the table essentially shows the following:  Person  Person ID   Phone Number    Address 1   Zip Code    Start Date  End Date Jane    1   8792029484  some address-1  12345   3/5/2016    11/9/2018 Jane    1   8792029484  some address-2  34455   11/10/2018  12/31/9999 Jane    1   8792029484  some address-2  34455   11/10/2018  12/7/2018 Jane    1   8792029484  some address-2  34455   12/8/2018   12/31/9999 John    2   9808845768  another address-1   68687   1/1/2013    11/9/2018 John    2   9808845768  another address-2   89384   11/10/2018  12/31/9999 John    2   9808845768  another address-2   89384   11/10/2018  12/7/2018 John    2   9808845768  another address-2   89384   12/8/2018   12/31/9999   For Jane and John, I don't want the following rows to be displayed:      Jane    1   8792029484  some address-2  34455   11/10/2018  12/31/9999     John    2   9808845768  another address-2   89384   11/10/2018  12/31/9999   Expected result:     Person   Person ID   Phone Number    Address 1   Zip Code    Start Date  End Date    Jane 1   8792029484  some address-1  12345   3/5/2016    11/9/2018    Jane 1   8792029484  some address-2  34455   11/10/2018  12/7/2018    Jane 1   8792029484  some address-2  34455   12/8/2018   12/31/9999    John 2   9808845768  another address-1   68687   1/1/2013    11/9/2018    John 2   9808845768  another address-2   89384   11/10/2018  12/7/2018    John 2   9808845768  another address-2   89384   12/8/2018   12/31/9999


I want to download and install the 32 bit version over my desktop running XP.  The file that it downloads is called       ubuntu-13.10-desktop-i386.iso  It is from ftp.citylink.co.nz, and it is 895 MB.  Windows has no idea what to do with a .iso file, and neither do I.  I certainly can't double click on it and run anything.


If you throw a coin 10 times and each time you get the (number)side, what are the chances for you to get the (number) side again for the eleventh time? Consider that for each through, the laws of probability tend to equalize the two possible chances.


I've often come across posts on forums or other websites where you see people joking in such a manner about running/logging in as root as if it's something awful and everyone ought to know about it. However, there isn't much that a search reveals on the matter. It maybe widely known to Linux experts, but I really don't know why. I remember always running as root when I first tried Linux years ago (Redhat and Mandrake) and don't remember running into any problems because of that. There are actually some distros that have a bright red background with alert signs all over it as wallpaper for the root user (Suse?). I still use the "Administrator" account for regular use on my Windows installation and haven't ever run into any problems either.


How to remove mystartsearch.com from browsers

Today, my sister accidentally downloaded an adware/spyware into my PC. Now, every-time I open up any browsers, I will see mystartsearch.com homepage. I tried all the best I can based on my knowledge using tools like autoruns, process explorer, and etc. I have found it's program file inside program files folder and deleted it. I also reset my web browsers setting and remove suspicious plugins. And also, do checking for suspicious task via task manager and process explorer. But, when I start the browser I still see mystartsearch.com homepage.  How can I totally remove it? Why is it still appear in all my browsers?


Replacing an old 3 way switch with a new dimmer 3 way switch. The old switch had 2 traveler wires connected to it (black and red), the ground wire, and the 'hot' wire. I also noticed 2 neutral wires (both white) that were bundled together and capped. Now, the new dimmer switch has the green screw (for the ground wire), and then 2 screws on each side. According to the instructions, the top left is 'neutral', the bottom left is for a traveler, the top right is for the hot wire, and the bottom right is for another neutral wire. So I'm a bit confused here - I have 2 traveler wires but only one spot on the new switch for one. There are 2 spots for neutral wires, but they are bundled together in the outlet. Thanks FYI - this is an Eaton WFD30 smart universal dimmer... Edit: In the pic, the 2 white wires were bundled together and capped (assume they are both neutrals), the black and red are travelers and the other white with the black tape was the 'hot' wire. Edit 2: Added a pic of the other outlet.  Looks to be wired slightly differently than the one I was installing the dimmer on.  I can out the dimmer on this one, whatever is easier.  This one appears to have 3 white wires bundled together.


How to define prior for beta-binomial A/B test

I would like to run an A/B test using a Bayesian beta-binomial model whereby I would state probabilities such as $P(p_B>p_A)$ in place of using a traditional T-test. I've read that the prior should be constructed as $f(a,b) \sim (a+b)^{-\frac{5}{2}}$.  How exactly is this done?  I'm looking for an actual example of this step of the modeling process.  Here is my A/B test data by day formatted as: date, A enrollments, A conversions, B enrollments, B conversions.  10/1/2015,150,16,148,17 10/2/2015,163,17,165,19 10/3/2015,155,14,157,18 10/4/2015,161,15,153,19 10/5/2015,148,14,150,16


Space Topology, Homeomorphism $ \mathbb{R}^ 2 - {(0,0)} $ plane is a homeomorphism at $ S ^ 1 \times (0, \infty) $

I'm taking a basic topology course, and studying for my exam, I'm stuck with an exercise that I'm not sure how to do it. Says the following:  Show that the $ \mathbb{R}^ 2 - {(0,0)} $ plane is a homeomorphism at $ S ^ 1 \times (0, \infty) $  I took the function  $f:\mathbb{R}^ 2 - {(0,0)} \rightarrow S ^ 1 \times (0, \infty) $, $f(rcost,rsent)= ((cost, sent), r)$  But I'm not sure if I defined it correctly, even I do not know how to prove it is a homeomorphism. Could you give me a suggestion? Greetings.


Constructing $g$ holomorphic differentials on $\omega^3=(z-1) \cdots (z-8)$

Let us have a surface $X$ which satisfy the equation $\omega^3 = (z-1)(z-2)\cdots (z-8)$ It's stated in the task, that there are exactly $g$ holomorphic differentials on the curve. How can I find $g$ and construct them?  The genus $g$ of this curve (I tried to use Riemann-Hurwitz theorem)  The map $X(z,\omega) \to CP^1(\omega)$ has degree 3. and we have 8 branching points with 3 leaves at each. $\chi(Domain) = DegreeOfMap * \chi(Target) - \sum_{points}(BranchingLeaves - 1) $ $2-2g = 3 *(2) - 8*2 $ hence $ 12 = 2g$ and  $g = 6$ I know that in case of hyperelliptic curve there are $g-2$ (If i'm not mistaken) holomorphic differetials and they are of sort $\frac{z^k dz}{w}$. But the form of the curve equation was heavily used. UPD: there is a branhing point at $\infty$, because if we go around all points $ 1 \cdots 8$ at once, we get that cubic root of the right side is multiplied by $\exp{4 \pi /3}$ $2-2g = 3 *(2) - 9*2 $ hence $ 12 = 2g$ and  $g = 7$ (I hope that this is true)


I find it intuitive enough that the radical of $\mathfrak{gl}_n\mathbb F$ is the scalar matrices, but I have trouble finding an easy, but complete proof:  Proof. Let $\mathfrak s$ denote the scalar matrices. Clearly $\mathfrak s\subset\mathrm{rad}(\mathfrak{gl}_n\mathbb F)$. Suppose that $\mathrm{rad}(\mathfrak{gl}_n\mathbb F)$ is generated by more than one element, so that $X\in\mathrm{rad}(\mathfrak{gl}_n\mathbb F)$, but $X\notin\mathfrak s$. We can change basis such that $\mathrm{rad}(\mathfrak{gl}_n\mathbb F)$ is upper-triangular. (The change of basis leaves the scalar matrices invariant.) Then $X$ is upper-triangular.  I want to conclude that there exists a $Y\in\mathfrak{gl}_n\mathbb F$ s.t. $[X,Y]$ is not upper-triangular. How can I see that $Y$ always exists, except by waving hands?


When can I Register a Domain Name that's expired?

A domain name I've been eyeing, has not been renewed by it's registrant this year. The domain was with godaddy.com all these years.  According to godaddy's documentation:     Day 43    We assign the domain name to the winner of the expired domain   name auction, backorder, or closeout. If there are no bidders, we   return the domain name to the registry.   That Day 43 ended on the 19 Nov, 2015, but I still cannot register the domain name, and it shows as Not Available  Whenever I check with whois.godaddy.com, I get the message:     Registrar: GODADDY.COM, LLC    Whois Server: whois.godaddy.com    Creation Date: 05-OCT-2007    Updated Date: 26-NOV-2015   Expiration Date: 05-OCT-2015      Nameserver: No nameserver      Registry Status: redemptionPeriod   What does this mean, and when can I register this domain?


Retrieving and Displaying Data From a Table

At the moment, I have created a code that retrieves data from the database and displays it. However, for some reason, I cannot see the files I want to retrieve on my page. My goal is that the data gets retrieved from the database, and is displayed on the webpage. I do not need to make a connection with the database since Wordpress does that automatically.  My code:  <?php  global $wpdb; // this adds the prefix which is set by the user upon instillation of wordpress $table_name = $wpdb->prefix . "wpex_programma"; // this will get the data from your table $retrieve_data = $wpdb->get_results( "SELECT * FROM wpex_programma; " ); print_r($retrieve_data); ?>
 <?php foreach ($retrieve_data as $retrieved_data){ ?>
<?php echo $retrieved_data->column_name;?>

<?php echo $retrieved_data->another_column_name;?>

<?php echo $retrieved_data->as_many_columns_as_you_have;?>
 <?php  } ?>
   My question: the data is not shown and I believe it is not retrieved. How can I fix that? The table name is correct, and I have data in my database tabel. The print_r($retrieve_data)returns the following: Array ( [0] => stdClass Object ( [id] => 35 [naam] => /public_html/wp/wp-content/plugins/AbonneerProgrammas/FilesUpload/Country Kickin 1.mp3 ) )  My query log:    My database structure:   New:  <?php  global $wpdb; // this adds the prefix which is set by the user upon instillation of wordpress $table_name = $wpdb->prefix . "wpex_programma"; // this will get the data from your table $retrieve_data = $wpdb->get_results( "SELECT * FROM wpex_programma; " ); print_r($retrieve_data); ?>
 <?php foreach ($retrieve_data as $retrieved_data){ ?>
<?php echo $retrieved_data->id;?>

<?php echo $retrieved_data->naam;?>
 <?php  } ?>


Show that for all prime numbers $p$ greater than $3$, $24$ divides $p^2-1$ evenly.  Since $(p+1)(p-1) = p^2-1$ we have that $\frac{(p+1)(p-1)}{24}=k$, where $k \in \Bbb Z.$ Now since $24 = 2^3 \cdot 3$ and the numerator contains always at least one even factor(?) we have that $24=2^3\cdot3\vert(p+1)(p-1).$ Is my reasoning here correct or am I missing something here?


Jquery remove element after creating it originally with jquery

I've got some jquery that creates the following when a button is clicked:

Icon<form class="dropzone" action="upload2.php?id=1_1" id="1_1"></form>

<input type="image" src="images/button-minus.png" class="removethis" id="1__1">

Image<form class="dropzone" action="upload2.php?id=1_2" id="1_2"></form>

   I've also got an 'Add another' button
   <input type="image" src="images/button-plus.png" class="addanother">
   It increments the ids when the 'Add Another' button is pressed but that's not too important here.


Capitalization of names that begin lowercased, at the beginning of a sentence

Possible Duplicates:             Many products these days have names that intentionally begin with lowercase letters.  The most common examples are of the Apple "iDevice" variety, but there are some others - inSSIDer is one.  When beginning a sentence with these names, should the name be capitalized?


Confused about When to Use “these” and “those”

Example #1     This site contains links to books that I read. I recommend   these/those books.   NOTE: The links are on this site, but not on this page. The links are external links.  Should I use these or those? Why?    Example #2     This page contains links to books that I read. I recommend   these/those books.   NOTE: The links are on this page, but you might have to scroll down a little to find them. The links are external links.  Should I use these or those? Why?    Example #3     I read “Book Name + Link”, “Book Name + Link”, and “Book Name + Link”.   I recommend these/those books.   NOTE: The links are external links.  Should I use these or those? Why?


Sign of Estimate (Coefficient) of Interaction Terms

I create a linear regression model with interaction term in the model say: $$y=a_0+a_1x_1+a_2x_2+a_3x_1*x_2+e$$ where $x_1$ is continuous and $x_2$ is binary. Now, I have couple of questions:   If $x_1$ and $x_2$ both are significant and have positive coefficients, that means that if $x_1$ and $x_2$ increase, then $y$ increases. What can I say if $x_1*x_2$ is statistically insignificant? Does it mean that increase in. Does it mean that for $x_2=1$, the effect of $x_1$ on $y$ is not changed, i.e. increase in $x_1$ still leads to increase in $y$? What if the interaction is statistically significant? What can I say if the interaction term is statistically insignificant and negative? Does it indicate that if $x_2=1$, increase in $x_1$ actually leads to decrease in $y$?   Thanks.


Excel formula to sum all entries in a row if value of adjacent cell is equal to third cell

I need to build a formula that will sum the numbers in a series of cells only if the value of an adjacent cell is equal to the value of a third cell.  The latter two values are text.  In plain language, I want the formula to do this:  Look at the values in Sheet 2, Column C. Ignore the ones that aren't equal to the value in cell D3 on Sheet 1. For the ones that are equal to that value, grab the value in column Z of the same row. Add up all those values and spit out the sum into one cell.  EDIT: Thank you, I was not aware of the SUMIF function but was able to get it to work.  =SUMIF(DbT!BZ:BZ,'2013'!B4,DbT!S:S)


Trying to translate  to python 2 and I got stuck with this line:    resp = getattr(requests, method)(     url, **{**self._default_request_kwargs, **kwargs} )   where:   @property  def _default_request_kwargs(self):      if self._logged_in:          return {'cookies': {'BrickAPI': self._session_id}}      elif not self._logged_in and self._session_id:          return {'auth': (self._session_id, 'x')}      else:          return {}   what is the python 2 equivalent of this?


Using user input to to return more than one value from a sturcture

I have a question about structures. I'm trying to have the user input a letter and have the the computer return two values. Here's what I have till now:  #include <iostream> struct coords{ int coordsx1; int coordsy1; } a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p; int main() { char first; int coordsx1; int coordsy1;     a.coordsx=0;    e.coordsx=0;    i.coordsx=0;    m.coordsx=0;     b.coordsx=1;    f.coordsx=1;    j.coordsx=1;    n.coordsx=1;     c.coordsx=2;    g.coordsx=2;    k.coordsx=2;    o.coordsx=2;     d.coordsx=3;    h.coordsx=3;    l.coordsx=3;    p.coordsx=3;     cin >> first;     coordsx1= first.coordsx; // this is the part that doesn't work }   For example if the user inputs 'd' for the variable first, I want the computer to set the value of coordsx1 to be equal to 3 and coordsy1 to be equal to 0 (I haven't done the coordsy1 part yet). Also, is this a good way to return more than one value for a user input?


If I have 25 apples and multiply them zero times, why is it that I end up with zero? I understand zero times means no times, right? I mean, multiply by zero is no multiplication. Can anyone explain, please?


I am confused about the definition of "differential".  Sometimes I see it is a pushforward mapping $df:TM\rightarrow TN$, which gives another tangent vector when acting on a tangent vector.    Sometimes it acts as a cobasis in contangent space, which contracts with tangent vectors and gives a real number, $df:TM\rightarrow \mathcal{R}$    How are the two definition compatible with each other?  Thank you very much.


Initializing hibernate session factory causes exception inside of c3p0

When i try to launch our java/hibernate/tomcat/postgres project, it crashes with null pointer exception in NewProxyDatabaseMetaData.detach() inside of c3p0 connection pool library:  private void detach() {     parentPooledConnection.removeConnectionEventListener( cel );     parentPooledConnection = null; }   parentPooledConnection is null  It happens on session factory initialization. The strange thing the same code works fine for other teammates.   I tried   reinstalled postgresql updated jdbc driver created brand new roles and databases   but no effect. Any ideas?  edit: i know 'what is a null pointer', but this is a crash inside of a connection pool library (c3p0) i don't control, i don't pass null object to the library, i am trying to initialize the hibernate session factory and somewhere deep inside hibernate and c3p0 something happens which closes the connection without parent pool connection.


Using Notebook as second Monitor for Ubuntu Tablet

I am planning my new mobile development working station consisting of a Notebook and a Tablet as second monitor.  Notebook OS: Windows 8.1 Tablet OS: Ubuntu (14 LTS)  I have asked  how I can achieve to simulate the Ubuntu Tablet as second monitor on Windows.  Now I want to know: how can I achieve using the Windows Notebook display, keyboard and mouse for controlling the Ubuntu OS that runs on the tablet. Like a VNC Session started on Windows (targeting the Ubuntu tablet), but instead of mirroring a display, I want to use it as an extension.  Therefore when I start the program on Windows and connect to the tablet, Ubuntu should see an additional monitor.


Manually resized sda1 and OS still uses old size. How would one "refresh" it?

I'm doing this with VMs. I'm using virtualbox and I made the mistake of creating a server with a dynamic disk. I then proceeded to create another virtual disk, a fixed one, into which I cloned the server OS. This because sda1 would not grow in size as it's supposed to in a dynamic disk, instead creating an extended partition and some other.  Having the server on a fixed disk did not help as sda1 remained the same size, only the extended partition got bigger.  So, I added that disk to a desktop version VM I had so I could comfortably use gparted and make the partition bigger manually.  Now, the extended partition and the other one (sda5) I don't remember the filesystem of, had these key symbols, and even running gparted with root privileges wouldn't let me delete or change those in any way.  So I turned to fdisk. I was able to easily delete sda2 and sda5, and then use gparted to make sda1 bigger. I left 1Mb at the end.  The problem I'm having now comes in here. The server will still say it doesn't have enough space to do this or that, even though it does.  server@ubuntu:~$ df -h Filesystem      Size  Used Avail Use% Mounted on udev            2.5G     0  2.5G   0% /dev tmpfs           508M  7.3M  501M   2% /run /dev/sda1       2.8G  2.7G     0 100% / tmpfs           2.5G     0  2.5G   0% /dev/shm tmpfs           5.0M     0  5.0M   0% /run/lock tmpfs           2.5G     0  2.5G   0% /sys/fs/cgroup /dev/sdb1        15G   47M   14G   1% /home/server/sxtngig tmpfs           508M     0  508M   0% /run/user/1000 server@ubuntu:~$ lsblk NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT sda      8:0    0    8G  0 disk └─sda1   8:1    0    8G  0 part / sdb      8:16   0   15G  0 disk └─sdb1   8:17   0   15G  0 part /home/server/sxtngig sr0     11:0    1 1024M  0 rom   As you can see, it has 8Gb but df can't see it. Is there a way I can make the server refresh the disk space? Maybe something in a file I need to change?


Preventing LaTeX from starting a new page before \begin{figure}

I'm writing a document and want to include an appendix of pictures at the end. Each picture has a caption associated with it, and a label. However, each time I try to compile the code, LaTeX automatically creates a page break between the section heading and the first figure. I know that use of \includegraphics can create a page break, but even if I use the figure environment without a picture as below, LaTeX starts a new page between the section heading and caption. Any ideas how I can stop this from happening?  \section{Appendix A} \begin{figure}     \centering     \caption*{BlaBlaBla}     \label{pic1} \end{figure}


db class: how can I avoid sql injection?

I am new to OOP in PHP and started using a DB class. I am wondering how can I avoid SQL injection. In procedural PHP I always do $db->real_escape_string, which does not work here.  DB.class.php  class DB {         protected $db_name = '';     protected $db_user = '';     protected $db_pass = '';     protected $db_host = '';     protected $connection;      public function connect() {         $this->connection = mysqli_connect($this->db_host, $this->db_user, $this->db_pass);         mysqli_select_db($this->connection, $this->db_name);          return true;     }      public function processRowSet($rowSet, $singleRow = false) {         $resultArray = array();         while ($row = mysqli_fetch_assoc($rowSet)) {             array_push($resultArray, $row);         }          if ($singleRow === true)             return $resultArray[0];          return $resultArray;     }      public function insert($data, $table) {         $columns = "";         $values = "";          foreach ($data as $column => $value) {             $columns .= ($columns == "") ? "" : ", ";             $columns .= $column;             $values .= ($values == "") ? "" : ", ";             $values .= $value;         }          $sql = "insert into $table ($columns) values ($values)";          mysqli_query($this->connection, $sql) or die(mysqli_error($this->connection));          //return the ID of the user in the database.         return mysqli_insert_id($this->connection);     } }   One example of usage comes here:  insert-entry.php   require_once 'db.php';  $headline = $_POST['headline']; $description = $_POST['description'];  $data = array(         'headline' => $headline,         'description' => $description     );  $db->insert($data, 'entries');´   What adjustment do I need to make where in order to be sure that SQL injection is avoided?


Regex for accepting greek characters with tone char(')

i'm trying to find a regex for allowing only greek characters to pass. But as you know greek language supports an emphasis tote for the most worlds:  For example the world χρήμα which means money has ' character above η How to detect this char with a regex? My current regex is this:  /^[\sΑ-Ω0-9α-ω!$@#*+=._%,-/]*$/


Is the server without GPU is good for remote desktop?

I want to buy a server 4 cores Intel Xeon E3-1220 v5 (16 GB RAM) but without GPU.  Is it OK to use as a remote desktop computer?  I know that we need GPU to show images on the screen but I don't know on which side do we need a GPU.  Do we need GPU on the server side to normaly show desktop screans via remore desktop or we need GPU on the client side? Or on both sides?


How to set python 3 as default interpreter in Ubuntu 14.04

I am working with Ubuntu 14.04 LTS on EC2. I want to change the default python interpreter from python 2.7 to 3.4.0 which is installed by default.  When I do:  /home/ubuntu$ which python /usr/bin/python   looking in /usr/bin/ I see:    So obviously it's there. How do I set this as default?


Question: Evaluate lim$_{n\rightarrow\infty}$$\left[\frac{\left(n+1\right)\left(n+2\right).....\left(n+n\right)}{n^{n}}\right]^{\frac{1}{n}}$  My Approach Let $a_{n}=\frac{\left(n+1\right)\left(n+2\right).....\left(n+n\right)}{n^{n}}$ $$a_{n+1}=\frac{\left(n+2\right)\left(n+3\right).....\left(2n+2\right)}{\left(n+1\right)^{\left(n+1\right)}}$$ $$\lim_{n\rightarrow\infty}\frac{a_{n+1}}{a_{n}}=\frac{4}{\exp (1)}$$ Using Cauchy's second theorem On Limits Lim$_{n\rightarrow\infty}\left[\frac{a_{2}}{a_{1}}\frac{a_{3}}{a_{2}}..........\frac{a_{n+1}}{a_{n}}\right]^{\frac{1}{n}}$=Lim$_{n\rightarrow\infty}$$\left[\frac{a_{n+1}}{a_{1}}\right]^{\frac{1}{n}}=\frac{4}{\exp(1)}$ Now I don't know how to move forward


I know that with a model that is not identifiable the data can be said to be generated by multiple different assignments to the model parameters. I know that sometimes it's possible to constrain parameters so that all are identifiable, as in the example in Cassella & Berger 2nd ed, section 11.2.  Given a particular model, how can I evaluate whether or not it's identifiable?


Adobe Illustrator CS6 64-bit no longer works on Catalina!

I read somewhere that Adobe Illustrator CS6 is 64-bit and able to run on Catalina.  I did run a 64-bit software check on OSX Mojave to double-confirm that it is 64-bit before upgrading to Catalina.  I am now left with a defunct Illustrator and Photoshop which I needed to rush my stuff!  This is what I see on my dock after Catalina upgrade!


How can I prove $n - 2\sqrt{n} = \Theta(n)$

I want to prove the following $$n - 2\sqrt{n} = \Theta(n)$$  It's $n - 2\sqrt{n} \leq n = O(n)$  How can I prove the same for $\Omega(n)$


Can't open a folder by double click in win 7

I had a problem: my folders and files did not open with a double click. I found here the answer to the question, but the description was not very detailed, and I could not use the advice.


I read this artice : , but I still don't know when moderator elections are held. What does it mean when they say: "when needed"? When there are three users willing to take up the task?


Creating div's and textbox using Javascript

i want to create 2 div and text box in java script like that

  <input type="text">

   is it possible?


Within, between or overall R-square for random effects in Stata

I'm performing a random effects analysis on panel Data, and I haven't been able to find an answer to the question, which R-square should I look at: within, between or random?  I know that for fixed effects I have to use within, but what about for random effects?  I am using Stata.


What's the meaning of the `an entire hard disk drive`?

When I read the definition of :     ImageX is a command-line tool that allows an administrator to capture an image of an entire hard disk drive and its files and folders in a single Windows Imaging Format (WIM) file.     I can understand the its files and folders, but I don't know the an entire hard disk drive, what's the meaning of it?    Edit-01  We know the an entire hard disk drive means an entire physical disk with its contents and filesystem in it.     But how to understand ImageX capture an entire hard disk drive and xxx?   How can ImageX can capture a an entire hard disk drive? is it mean ImageX only capture the contents and filesystem of an entire hard disk drive?   Or contain other information?


I am sorry if my question is too silly, I am totally new to LaTeX.   I have just downloaded TeXstudio 2 days ago and am trying to include some figures/images in the document. I found out about the \includegraphics command but cannot understand how it works at all. Every guide I have found jump to something like   \usepackage{graphicx} \includegraphics[width=0.5\textwidth]{bird1}   and I don't have a clue how I am supposed to use the command except that I need to use the package graphicx.  Where do I have to put my images so that TeXstudio can find it? Let's say I have an image called cat.png located at C:\Users\ASUS\Desktop\PICS, do I just type \includegraphics{cat} and TeXstudio is going to magically find it?