A theorem about Cesàro mean, related to Stolz-Cesàro theorem

Original Title: Tauberian theorems and Cesàro sum  Theorem (Landau-Hardy, From Rudin's Principle of Mathematical Analysis Exercise 3.14)  $\newcommand\abs[1]{\left\lvert#1\right\rvert}$ If $\{s_n\}$ is a complex sequence, define its arithmetic means $\sigma_n$ by $$\sigma_n=\frac{s_0+s_1+\dotsb+s_n}{n+1}\qquad(n=0,1,2,\dotsc)$$ Put $a_n=s_n-s_{n-1}$ for $n\ge1$. Assume $M<+\infty$ and $\abs{na_n}\le M$ for all $n$, and $\lim_{n\to\infty}\sigma_n=\sigma$, then $\lim_{n\to\infty}s_n=\sigma$.  The outline of the proof  If $m<n$, then $$s_n-\sigma_n=\frac{m+1}{n-m}(\sigma_n-\sigma_m)+\frac1{n-m}\sum_{k=m+1}^n(s_n-s_k)\tag{*}$$ Notice that $\abs{s_n-s_k}\le(n-m-1)M\,/\,(m+2)$, fix $\epsilon>0$ and associate with each $n$ the integer $m$ that satisfies $$m\le\frac{n-\epsilon}{1+\epsilon}<m+1$$ Then $(m+1)\,/\,(n-m)\le1/\epsilon$ and $\abs{s_n-s_k}<M\epsilon$. Hence $$\limsup_{n\to\infty}\,\abs{s_n-\sigma}\le M\epsilon$$  Questions and thoughts  It seems that the equation (*) comes out strangely. I wonder how to discover such kind of strange identities. So is there any observation, even deeper, to look through that equation?  Thanks!


LightDM cannot start - VMWare can't launch Ubuntu

I tried booting to my ubuntu after a reboot, and I got an error. I am prompted with this screen:    Afterwards, I get these options:    But, no matter what I choose, I end up eventually getting this screen mentioning  Failed to start Clean up any mess left by 0dns-up   and stopping LightDM,     I tried booting with TTY but that didn't work.   I searched StackExchange, and no question mentioned getting stuck here, but on later screens where terminal access is already achieved. Thanks!  EDIT: I have ended up "giving up" on this VM. No solution worked. I managed to boot to TTY eventually, and I extracted the files I actually need using SCP.


Replacing Chrome OS on ASUS C300 for Ubuntu

I have a Asus C300 and I was wondering if it is possible to uninstall chrome OS and replace it with Ubuntu. If it is possible can I also have some instructions on how to do it.


Proving $\sum_{k=1}^nk^3 = \left(\sum_{k=1}^n k\right)^2$ using complete induction

I tried to prove the following statement using complete induction but I couldn't manage to solve it because I got a complex notation eventually. The statement is the following:  $$\sum_{k=1}^nk^3 = \left(\sum_{k=1}^n k\right)^2$$  I hope someone can help me out!


I am having trouble with this question including concepts on number theory and quadratic equations.

Let a,b be Natural numbers where a > 1. Also p is a prime number. If $ax^2 + bx + c = p$ for two distinct integer values of x, then prove that $ax^2 + bx + c \neq 2p$ for any integral values of x.  So this seems to be a pretty straightforward question and I got the final expression that is $p= a (x-y)(x-z)$ where y and z are roots of equations $ax^2 + bx + c - p$, so I got p has three factors while a prime number can only have 2 factors. But I couldn’t understand what would happen if $x-y = x-z = 1$. So essentially I need to try and prove that $y \neq z$. Thank you.


Prove that for $z \in\mathbb C\setminus \{1\}$,   $$\ 1 +z+z^2+...+z^n=\frac{1- z^{n+1}}{1-z}\quad   (n = 1,2,3\ldots)$$  This is a complex analysis problem. I have been out of an official math class for a long time and am struggling to even know where to approach a problem like this, more or less where to start. Any help is greatly appreciated.


If I kept getting closer and closer to the speed of light, what would be the gravitational effects appearing like to an observer?

Now, with special relativity applied to the scenario of me getting closer and closer to light speed, my mass would increase with respect to the observer, and also my length would contract in the direction of motion, again with respect to the observer. Now, if this is allowed to continue, there certainly would come a point where my mass would be observed to be very very high, and my length contracted to below my Schwarzschild Radius, now what would happen in this scenario? Would the observer observe a black hole while observing me? if not, what would the observer actually see?(If the observer sees me as a black hole, shouldn't that technically not happen since nothing is different to me from my own point of view!? )  Would I turn into a black hole? and if not, what would the observer see if I do not turn into a black hole? Would the observer notice any gravitational effects from me?


Captain America said "if you get killed, walk it off!" How to understand "walk it off"?

The Avengers 2 just hit China yesterday. The official translation of the line "If you get killed, walk it off!" is "Someone is trying to kill you, run, run for your life" (This is the English version of that Chinese translation). Such a nonsense. But how to understand the original English sentence correctly?


If the minus of two periodic function tends to zero can prove they are equal?

Assume $f$ and $g$ are two periodic functions, and $f(x)-g(x)$ tends to zero when $x$ tends to infinity. The question is whether $f(x)=g(x)$ for all real number?  It is obviously true when $f$ and $g$ are continuous function, or the division of their period is rational number. However, I can’t see whether it’s true in all situations.


Is there a term for using a correct word having a double meaning that creates ambiguity given the context of the sentence?

Tough to describe this in the title so I'll give an example many English speakers have come across:   Speaker 1: "Should we go left or right?" Speaker 2: "Looks like our friends went left." Speaker 1: "Right. Let's do that."   Though Speaker 1 was probably wanting to agree and say "correct", the use of the word "Right" isn't incorrect but makes this response completely ambiguous.  Maybe this example is very singular since I'm struggling to come up with others. Perhaps if slang were used and up or down were the options given by Speaker 1, a response from Speaker 1 saying "I'm down" would be analogous.  Is there a specific term for this sort of mix-up?


WPF: TextBox resizes inside ScrollViewer

I have a TextBox that stretches to the width of the window:  <Window ...>     <TextBox VerticalAlignment="Top" /> </Window>   However, the textbox should have a minimum width, and I want scroll bars to be shown, if the textbox cannot be displayed fully. Thus:  <Window ...>     <ScrollViewer HorizontalScrollBarVisibility="Auto">         <TextBox MinWidth="200" VerticalAlignment="Top" />     </ScrollViewer> </Window>   This, however, has a negative side effect. If the user enters more text than fits into the text box, the text box increases its size:    Is there a way to avoid this effect and still have the scroll bars if the minimum size of the textbox is reached?


Input: "   10   50 10 40  50   80   60 20 ". I want to convert it into string array then into int array. The problem is that when I split with space, it shows errors as:    1st string is "   10" 2nd string is " 50" 3rd string is "10"   Code:  s = line.split(" "); for(i=0;i<8;i++) {     arr= Integer.parseInt(s[i]);     System.out.println(arr); }   I want it should only string array with no space    1st string is "10" 2nd string is "50" 3rd string is "10"


bigfoot: footnotes appear on earlier page

with the otherwise very useful bigfoot package, I'm regularly getting an undesired result: Sometimes, footnotes appear one page too early.   Here is an MWE (simplified/updated 2017-09-13):   \documentclass[oneside]{book} \usepackage{fontspec} \usepackage[paperwidth=120mm, paperheight=213mm, %     left=17mm,right=15mm,top=20mm,bottom=15mm,  ]{geometry}  \usepackage{lipsum} \usepackage{bigfoot}  \setlength{\parindent}{5.0mm} \setlength{\parskip}{0mm}  \begin{document}  \lipsum[1-2]  \lipsum*[1]\footnote{Hallo}  \end{document}     Removing \usepackage{bigfoot} gives the desired result (but I need bigfoot for other reasons, see the thread ):     This is a very fundamental case that I think should not go wrong. Can anyone help?


Must I enter Europe with Schengen visa from the country where I applied?

If I applied for a Schengen visa from "country A" and I got the visa but I had some commitments in "country B" and I have to finish it before going to Europe should I get back to "country A" to travel to Europe or can I use the visa from any where?


Can a wizard use his familiar's senses to enlarge his "you can see" area?

I am thinking about a wizard who has a rat familiar (from the  spell), and has the  spell prepared. Can he use his familiar's senses to teleport into another room (where the familiar is hiding) by looking through the eyes of the rat and casting misty step?  The wizard could use his action to switch to the familiar's senses and then use his bonus action to cast the spell. This would greatly reduce the "blind and deaf" time he experiences from doing this.


In javascript using the onkeypress method, I would like to restrict the user from inputting anything non-alphabetical

I would like to make it so that a function runs only when the user types any key from a-z. Would I need to use a different method other than onkeypress?


I am using this code which works fine in stripping the http:// part.   <?php $str = get_field('fl_website');$str = preg_replace('#^https?://www.#', '', rtrim($str,'/'));echo $str; ?>   However I need to also strip any second-level links and only keep the main domain name.   For example:  https://www.example.com/sites/annabel/2016/03   needs to be converted to just:  example.com


I'm really stuck on this one:  Show ALL posts grouped by year  2013   title1 title2 title3 title4   2012    title1 title2   Can someone help me with this?


In python   re.sub(r"(?<=.)(?=(?:...)+$)", ",", stroke )    To split a number by triplets, e.g.:   echo 123456789 | python -c 'import sys;import re; print re.sub(r"(?<=.)(?=(?:...)+$)", ",",  sys.stdin.read());'  123,456,789   How to do the same with bash/awk?


Is there a reason why "gn" in "reigning" is pronounced /n/ while in "regnant" it is pronounced [gn]?

Both reigning and regnant are related to the same Latin noun, regnum.  Why is the ‹gn› spelling pronounced [n] in the first word but [gn] in the second?


Proof of $\Box (A\land B) \leftrightarrow \Box A \land \Box B$ in propositional modal logics

I'm searching for an example proof of the above formula as distribution over and in basic proportional modal logic, I.e. in some of the standard systems K, S4 or S5.


Why do I not have the 5/5 for the Curious badge?

I'm pretty sure that I have asked 5 (really 6) well-received questions on this site, my questions are , but for some reason, I don't have the 5 separate days of asking a good question. Why is this? Is this a bug?


How can I set specific folders to list- or icon view in nautilus?

Is there a way to use different folders views each folder ? Some folders i like to see as icons and others is better to see as list.


Proof $(1+1/n)^n$ is an increasing sequence

I need help proving $a_n=\left(\dfrac{n+1}{n}\right)^n$ is increasing sequence on the positive integers. An exercise in the analysis book by Mattuck asks to prove $a_n=\left(\dfrac{2^n+1}{2^n}\right)^{2^n}$ is increasing. But this is easy since $\left(\dfrac{2^n+1}{2^n}\right)^{2^n}=\left(\left(\dfrac{2^n+1}{2^n}\right)^{2}\right)^{2^{n-1}} =\left(\dfrac{2^{2n}+2\left(2^n\right)+1}{2^{2n}}\right)^{2^{n-1}}=$ $\left(\dfrac{2^{n-1}+1+\frac{1}{2^{n+1}}}{2^{n-1}}\right)^{2^{n-1}}>\left(\dfrac{2^{n-1}+1}{2^{n-1}}\right)^{2^{n-1}}$ as desired. I am having difficulty in the general case: I must prove $\left(\frac{n+2}{n+1}\right)^{n+1}>\left(\frac{n+1}{n}\right)^n$. This is equivalent to $(n+2)^{n+1}n^n>(n+1)^{2n+1}$ which is the same as proving $\frac{n+2}{n+1}>\left(\frac{(n+2)(n)}{(n+1)^2}\right)^n$ which is the same as $\frac{n+2}{n+1}>\left(1-\frac{1}{(n+1)^2}\right)^n$ I'm stumped. Thanks in advance. Oh, and I don't want to use the derivative.


Is it possible to use \autoref without thmtools?

I have the following tex file;  \documentclass[a4paper]{article} \usepackage{amsthm} \usepackage{thmtools} \usepackage[hidelinks]{hyperref} \newtheorem{thm}{Theorem} \begin{document}  \begin{thm}\label{thm1} Blah. \end{thm}  Consider \autoref{thm1}.  \end{document}   With this set up, \autoref{thm1} prints "Theorem 1", but if I disable thmtools, it only prints "1". I was led to believe that \autoref is part of hyperref and should not require thmtools. Where am I going wrong? Is there a better way to do this?


Use domain purchased in Azure outside of Azure

I purchased not that long ago a domain through Azure, but I would like to use it on Bluehost.   Is it possible to forward the domain on Azure portal or somehow bind my website on Bluehost with the domain?


Why does this print `3 {}` and not `2 {'a': 3}`?

def f(a=2, **b):     print(a,b)  f(**{'a':3})  Why does this print 3 {} and not 2 {'a': 3}? I can understand why it printed 3 {} if it was f(a=3) but I don't understand the output in this case.


Can I change from a 26 x1.95 tire to a 26 x 1.75 tire on the same rim?

I want to put 26 x 1.75 tires on my mountain bike.  It currently has 26 x 1.95 tires on it.  Will the rims hold the somewhat smaller tires?


Intuition behind directional derivative (geometrically)?

The directional derivative in the direction <0, 1> is < ∂f/∂x, ∂f, ∂y> ⋅ <0, 1>. This makes perfect sense because this comes out to taking ∂f/∂x and multiplying it to 1, and adding it to (∂f/∂y)*(0), which is zero, coming to an end result of ∂f/∂x. I do not understand how this can be generalized. How can we say, for each and every possible function, that the rate of change at a given point in the direction  will be a(∂f/∂x) + b(∂f/ ∂y)? Someone explained the directional derivative as being the sum of the vector's component in the x direction multiplied by a pure step in the x direction, and the vectors component in the y direction multiplied by a pure step in the y direction. For example, how can we say that for every possible function, the directional derivative in the direction <1/sqrt(2), 1/sqrt(2)> is equal to (1/sqrt(2))∂f/∂x + (1/sqrt(2))∂f/∂y? I would think things would vary from function to function. What relationship am I missing here? Please help!


I have file with content like below and want to convert my output like below   Input  1,a,b,c 2,b,c 3,e,f 4,l  Required output  1,a 1,b 1,c 2,b 2,c 3,e 3,f 4,l    Values on first field is unique and no duplicate lines for 1st field in the input.  I am new to scripting and not sure how can we do this.


Are Time Machine backups incremental? And is Time Machine any better on Snow Leopard?

I would like to understand how Time Machine backups work and has this been made any better in Snow Leopard?


GPU rendering not working after upgrading

My pc will not render in any mode using the GPU after upgrading from 2.8 to 2.9 My GPU drivers are up to date and worked until I upgraded. My GPU is a AMD Radeon R9 390. It has been running smoothly with blender until recently. My driver version for the GPU is 20.45.27.02-210118a-363193E-RadeonSoftwareAdrenalin2020 Here is a screen shot with the current version of Blender


How do I convince my students that the choice of variable of integration is irrelevant?

I will be TA this semester for the second course on Calculus, which contains the definite integral.  I have thought this since the time I took this course, so how do I convince my students that for a definite integral   $$\int_a^b f(x)\ dx=\int_a^b f(z)\ dz=\int_a^b f(☺)\ d☺$$  i.e. The choice of variable of integration is irrelevant?   I still do not have an answer to this question, so I would really hope someone would guide me along, or share your thoughts. (through comments of course)  NEW EDIT: I've found a relevant example from before, that will probably confuse most new students. And also give new insights to this question.  Example: If $f$ is continuous, prove that   $$\int_0^{\pi/2}f(\cos x)\ dx = \int_0^{\pi/2}f(\sin x)\ dx$$  And so I start proving...  Note that $\cos x=\sin(\frac{\pi}{2} -x)$ and that $f$ is continuous, the integral is well-defined and  $$\int_0^{\pi/2}f(\cos x)\ dx=\int_0^{\pi/2}f(\sin(\frac{\pi}{2}-x))\ dx $$  Applying the substitution $u=\frac{\pi}{2} -x$, we obtain $dx =-du$ and hence  $$\int_0^{\pi/2}f(\sin(\frac{\pi}{2}-x))\ dx=-\int_{\pi/2}^{0}f(\sin u)\ du=\int_0^{\pi/2}f(\sin u)\ du\color{red}{=\int_0^{\pi/2}f(\sin x)\ dx}$$  Where the red part is the replacement of the dummy variable. So now, students, or even some of my peers will ask: $u$ is now dependent on $x$, what now? Why is the replacement still valid?  For me, I guess I will still answer according to the best answer here (by Harald), but I would love to hear more comments about this.


Proving that if the odd and even sequences converge, where one is decreasing and the other is increasing, then they converge to the same limit

I'm trying to prove this statement for this sequence as a part of a larger proof.  The specific sequence I'm looking at is : $b_{n+1} = 1+\dfrac{1}{b_n}$, where $b_1 = 2$. I'm attempting to show that ($b_{2n}) \rightarrow A \land (b_{2n-1}) \rightarrow B \implies A=B$. I know that this statement is not true in all cases, e.g. if $b_n = (-1)^n$. For this reason, I think I might have to use the fact that for this specific sequenence, $(b_{2n})$ is monotonic increasing and $(b_{2n-1})$ is monotonic decreasing.  Note that I am not assuming that $(b_n)$ converges from the start, and I am not trying to show that it converges to the same value as the subsequences. Is the statement: "if the odd and even sequences converge, where one is decreasing and the other is increasing, then they converge to the same limit" even true in general? If so, how do I go about proving it? I'm completely stuck on how to proceed with the information that I seem to have.


Unable to Change The Commerce Product Name

I Have Issue with Commerce cart  or Order Processing I don;t really. One of the my Module Invoke A Hook called "checkout_apigee_apigee_m10n_insufficient_balance_error_message_alter" Inside this I am Creating an Order with An Order Item, after that I am redirect the user to checkout flow step "payment" . Let Me Explain: I am Creating a Module To Redirect the User to Checkout under some Business Scenarios. Before Sending to Checkout. I am Loading Already Exiting Product and Creating a Commerce_Order_Item , Commerce_Order and Then Redirect to Payment Step For More Details U can see this Code Below: <?php     $store_id = 1;                       $order_type = 'default';             $store = $entity_manager->getStorage('commerce_store')->load($store_id);     $product=$entity_manager->getStorage('commerce_product')->loadByProperties(['type' => 'custom_apigee']);     $product_object = array_values($product)[0];     $variations = $product_object->getVariations();     $variation_object =  array_values($variations)[0]; // 1.Create Order LIne Item for custom values for order like title and price override     $order_item=OrderItem::create([       'type' => 'default',       'purchased_entity' => $variation_object ,//(string)$product_variation,       'quantity' => 1,       'title' => 'Prepaid' ,//$productVariation->get('title')->value, // Overridden the Title       'unit_price' => new Price($cart_value, 'SAR'),       'overridden_unit_price' => TRUE,     ]);     $order_item->save();         // 2.Creating Order       $user = user_load_by_mail("abac@gmail.com");       $order = Order::create([       'type' => 'default',       'mail' => $user->getEmail(),       'uid' => $user->id(),       'store_id' => $store,       'order_items' => [$orderItem],       'placed' => \Drupal::time()->getCurrentTime(),     ]);     $order->save();      //Redirect the User to Payment Step      $response = new RedirectResponse(Url::fromRoute('commerce_checkout.form',[         'commerce_order' => $order->id(),         'step' => 'payment',       ])->toString());       $response->send();  My Issue : As You can see above the code while I Create a Commerce_order_item. I am Overridden the Title of the Commerce Product And The Price . But after Redirecting in to checkout payment step My Title is still not Changed !! But the Price is changed in the checkout . Why it did not changed the Product Title?   Hope Someone Can Help Full Code Repo:


Compare CharSequence with String.valueOf

I have following code:   class Ideone {     public static void main (String[] args) throws java.lang.Exception     {         CharSequence cs = "5.00";         double danswer = 5.0000;         DecimalFormat df = new DecimalFormat("#.00");          if(cs.toString() == String.valueOf(df.format(danswer)))         {             System.out.println("person");            }         else         {             System.out.println("False");             }     } }   Why am i not able to compare in this case? As both are string values? How can i compare the values in this case?


How to view folders with a large amount of files?

I have folder, for example, with 1500000 images. I'm trying to open that folder to scroll through files, look at them and open some that I want to look at in image viewer. But when I open that folder it takes forever to load and display miniatures.   There's just "Loading..." sometimes without an end. Is there way to do so?  I have Ubuntu 14.04.


How to make a title of two or more lines? (revisited)

This is a sequel to . There are three lines in the title, and an awkward gap between the first ('AAAA...') and second ('OF'). How to get rid of it?   PS: I am showing the title THIRD, so I can link to it .  \documentclass[trimmed=true]{bookcover} \usepackage{comment} \usepackage{csquotes} \usepackage{lipsum} \usepackage{graphicx} \usepackage{hyperref} \usepackage{keyfloat} \usepackage{xparse}  %coverwidth=〈length〉 %coverheight=〈length〉 %spinewidth=〈length〉 %flapwidth=〈length〉 %marklength=〈length〉 %bleedwidth=〈length〉 %markthick=〈length〉 %markcolor=〈color〉 %〈10pt|11pt|12pt〉 %trimmed=〈true|false〉  \NewDocumentCommand{\booktitleA}{}{FIRST} \NewDocumentCommand{\booktitleB}{}{SECOND} \NewDocumentCommand{\booktitleC}{}{THIRD} \NewDocumentCommand{\booktitleCfn}{}{precision} \NewDocumentCommand{\booktitleD}{}{FOURTH}  \begin{document}  % One-piece background parts: <---- % bg back flap, % bg back, % bg spine, % bg front, % bg front flap >------------------ % One-piece foreground parts: <---- % back flap, % back, % spine, % front, % front flap, % above back, % above front, % below back, % below front >--------------------  \begin{bookcover}    %\bookcovercomponent{center}{above front}{\color{blue}Remark above front} % You won't see it if [trimmed=true]   \bookcovercomponent{center}{spine}{\rotatebox[origin=c]{90}{\bfseries\large \booktitleA~\booktitleB }}     \bookcovercomponent{normal}{front}{       \begin{center}       \bfseries      {\large \booktitleA}      \vspace*{\fill}      {\huge AAAAAAAAAAAAAAAAAAAAAAAAA\\ OF\\ BBBBBBBBBBBBBBBBBBB}      \vspace*{\fill}      {\large \booktitleC}\footnotemark[1]\\       % https://tex.stackexchange.com/questions/509496/footnote-text-inside-a-bookcover-fails-to-display       \begin{minipage}{0.2 \textwidth}       \hrule       \noindent \footnotemark[1]\scriptsize \booktitleCfn     \end{minipage}        \vspace*{\fill}      \keyfig{lw=0.3,cstar={}}{example-image-a.png}      \vspace*{\fill}      {\huge \booktitleD}      \end{center}     \footnotetext{\booktitleCfn} % Try # 2    }  \end{bookcover}  \end{document}


How to remove lubuntu-desktop from Ubuntu 14.04 LTS

I have installed lubuntu-desktop in my Ubuntu 14.04 LTS. Now I want to get pure Ubuntu. How can I revert back to Ubuntu only ?   Note: I have searched in the google and found solutions for 12.04 / 12.10. But have not found any solution for Ubuntu 14.04 LTS yet. Thats why I asked here.


How to manage high traffic on news portal(cache)?

I have some questions regarding to my news portal, where I have some issues with high traffic.   The issues is: I have daily about 50 k UU, and sometimes I have shots about 20 k UU in one time from socials links. In this case my server is going down due to RAM overload due to number of request to database, and some process in apache is hanging.   I'm looking for some advice what to do, to handle it. My ideas:  1) Simply buy more powerfull server(I will do it) 2) Using proper caching. I'm not sure how to use it in proper way, because I have news portal, so it's always very important how fast users will see new post. Could you give me any adivce ?   Specs of my server:  I'm using wiredtree with SSD 2000: 2,5 GB RAM, storage: 50GB Pure SSD RAID-10, CPU PRIORITY x2, Bandwith 6TB.   EDIT:  More about cache - I don't fully get how should I do it, because it's very important to me, to display new news to users very quickly. And the issue is when I have shot of 20 k UU in one time, and all will start reading it directly from DB, it will overload RAM due to too many request to DB.


In order to install Ubuntu (along side with windows on C:/) I had to partition my D:/ disk using Ubuntu installation steps ( which initially contained data in it), so after completing the installation (setting up / and swap), I found out that the rest of the D:/ partition became unallocated space, hence I lost my data.  So my question is : is there any way that for me to restore this lost data?   Any help is most appreciated.  Thanks


Effects of China immigration authority canceling my visa

I went to China on a study visa. The Chinese immigration authority claimed that my documents were fake and they said I was not admissible to China. They cancelled my visa.  On paper they wrote inadmissible due to fake documents, but they told me the reason is that some videos in my mobile were not allowed in China. All my documents were original.  I wrote a letter to the Chinese embassy, but they did not answer.  Will I have any problems going to any other country?


How can add and remove the class of the element using jquery

I have created a carousel for which I have included a play/pause button. I am using bootstrap and have added the following code.  <button class="btn btn-danger btn-small" id="carousel-button">                                              </button>   Jquery:  $(document).ready(function() {             $("#carousel-button").click(function() {                 if ($("#carousel-button").children("span").hasClass('fa-pause')) {                     $("#mycarousel").carousel('pause');                     $("#carousel-button").children("span").removeClass('fa-pause');                     $("#carousel-button").children("span").addClass('fa-play');                 } else if ($("#carousel-button").children("span").hasClass('fa-play')) {                     $("#mycarousel").carousel('cycle');                     $("#carousel-button").children("span").removeClass('fa-play');                     $("#carousel-button").children("span").addClass('fa-pause');                 }             });         });   I do not understand where it is getting wrong and why the button won't change after clicked.


Null Pointer Exception while trying to run Java multi threaded server

I'm trying to write a java message switch application by using a multi-threaded server and two clients. However I'm stuck at one point as error occurs when I try to run my programmes. Here are my codes for the server:   public class EchoServer extends Thread {  private static ServerSocket serverSocket; private static Socket connection1; private static Socket connection2; private BufferedReader input; private PrintWriter output; final static int portNumber = 4434;  public EchoServer(Socket in,Socket out) throws IOException{      connection1 = serverSocket.accept();      connection2 = serverSocket.accept();      input = new BufferedReader(new InputStreamReader(in.getInputStream()));     output = new PrintWriter(out.getOutputStream(),true); }  public void run() {     String inputLine;          while((inputLine=input.readLine())!=null){             if(inputLine.equalsIgnoreCase("quit"))                 break;             System.out.println("received:" + inputLine);             output.println(inputLine);         }             System.out.println("received quit,exiting");     }  public static void main(String args[]){               serverSocket = new ServerSocket(portNumber);          System.out.println("listening on port:"+ portNumber);          EchoServer echoserver1 = new EchoServer(connection1,connection2);         EchoServer echoserver2 = new EchoServer(connection2,connection1);         echoserver1.start();         echoserver2.start();      } }   I also wrote two classes for client. When I run the server and then the first client, they work as expected. However when I try to run the second client, a NullPointerException is thrown, regarding to the following two lines:          input = new BufferedReader(new InputStreamReader(in.getInputStream()));         EchoServer echoserver1 = new EchoServer(connection1,connection2);   I know it's a rather long piece of codes to look at, but I'm really stuck as I can't see the problem here. The earlier single threaded version of server I wrote worked without error, so I know there's something to do about the multithreaded. Any help and advice is really appreciated. Thanks!


Why the struct is storing more bytes than its definition?

In have this code: #include <iostream>  using namespace std;  int main() {     struct people {char name[50]; int tt; int gg;};          struct people p1;     cout << sizeof(p1);          return 0; }  the output is 60. Why?, I mean, the struct just would need to have 50+4+4=58 bytes. If we change the name[50] to name[20], we have the output: 28 as expected. It is not contradicting that the memory used by the members of the struct are contiguous?.


Proving that $\lim_{n \to \infty} \frac{1}{\sqrt[n]{n!}}=0$

I have to prove this $$\lim_{n \to \infty} \frac{1}{\sqrt[n]{n!}}=0$$ My proof is the following: By using $$n!>n^{\frac{n}{2}}$$ $$\frac{1}{n!}<\frac{1}{n^{\frac{n}{2}}}$$ $$\left(\frac{1}{n!}\right)^{\frac{1}{n}}<\left( \frac{1}{n}\right)^{\frac{n}{2}\cdot\frac{1}{n}}=\frac{1}{\sqrt{n}}\underset{n\to \infty}{\to}0$$ Using the Squeeze theorem $$0<\frac{1}{\sqrt[n]{n!}}<\frac{1}{\sqrt{n}} \implies \frac{1}{\sqrt[n]{n}}\underset{n\to \infty}{\to} 0$$ I think I have done something wrong. Can I even use the first inequality here? and if yes-do I have to prove that too? and is it Ok that I write too little words in my proofs?. Could you please help me?


After getting a PhD at a low-ranked university, would it be harder to get a job at a high-ranked university?

In more detail, let's say I get a PhD degree at a university which is ranked 51-100, according to QS ranking system. Is it possible for me to get a job at higher ranked university, like 1-50 ? Let's say without extraordinary publication record, which I believe the answer would be possible..


Alias doesn't work when I expect it to, works when I don't

I have an "installer" script that installs a couple scripts and a directory for them. This works as expected. In the middle of my script I also have an alias I inject into the local .bashrc so that the script can be called from the commandline:  echo -e "..........Adding Alias" echo "alias Change=~/ChangeTool/Change" >> .bashrc  echo -e "..............Recompiling environment" . ~/.bashrc   I can confirm it does show up in my .bashrc when I run the installer. However, if I rm -rf my script directory, remove the line from (and recompile with . ./.bashrc) my .bashrc, and reinstall, I get "Change command not found".   I then thought to myself "o.k., I'll try again." so I remove the line and recompile bashrc myself. I more .bashrc and it's no longer there. Out of curiosity I tried the Change command and it worked.   Is there just some weird delay with installing aliases?  Edit:  Here is the output on fresh install:  PSTSAUTO@MUXALRM:~$ ./installer.sh  Installing [ ASR9K CHANGE TOOL ] ..........Targeting /home/PSTSAUTO/ ..........Getting raw tarball ..............Extracting the tarball ..........Adding Alias ..............Recompiling environment ..........Install Complete.  PSTSAUTO@MUXALRM:~$ Change Change: command not found PSTSAUTO@MUXALRM:~$ grep "Change" .bashrc alias Change=~/ChangeTool/Change PSTSAUTO@MUXALRM:~$    So it's there but it doesn't work. As stated in code snippet above I did try to source with the . command.


My game's title is similar to other game's title. Will I get sued?

I have a game called 'Shapes Dodge' which is still in development. I figured out the name back in February when I began developing it. Since then I've been checking monthly the Google Play Store for games with similar titles and today I saw my worst nightmare coming true - there are a few games with a similar name:   I am worried about the first two games which both have the name 'Shape Dodge'. So will I get sued if I publish my game with the name 'Shapes Dodge' ('shapes' with 'S' at its end) on the Google Play Store?  I want to emphasize that the content of my game is very different from these games' (different controlls, gameplay, graphics, music, etc), only the title is similar.  Please answer me as simple as possible because I am not very familiar with legislation, laws, copyright, trademark and so on.  Thank you! :)  Edit  So after serios consideration and brainstorming I figured out a new name for my app: 'Dodgy Shapes'. Obvously the amount of similarity with the other apps which contain these keywords () is much less. But do you think it is enough difference so that I won't have any problems in the future?  Again, thanks to all who responded. :)


How do I model the fighter's Great Weapon Fighting fighting style in Anydice?

I was trying to create an AnyDice function to model the Great Weapon Fighting fighting style (which lets you reroll 1s and 2s), but I couldn't get it to work on any arbitrary dice.  I've found this one:  function: reroll R:n under N:n {    if R < N { result: d12 } else {result: R} } output [reroll 1d12 under 3] named "greataxe weapon fighting"   And it works fine. But I don't know how to make the function generic so i don't need to change the d12 every time i want a different dice to reroll.  I've tried  function: reroll R:n under N:n {    if R < N { result: d{1..R} } else {result: R} } output [reroll 1d12 under 3] named "greataxe weapon fighting"   but it is not giving the right probabilities. Maybe if I could fetch the die size inside the function...


If $AB=0$ prove that $\mathrm{rank}(A)+\mathrm{rank}(B)\leq n$

Let $A,B\in M_n(\mathbb{R})$ such that $AB=0$. Prove that   $$\mathrm{rank}(A)+\mathrm{rank}(B)\leq n.$$   From the given information, I only know that $\mathrm{rank}(AB)=0$.


How to create a clean, straight drop shadow?

I've been messing around in Photoshop trying to re-create this nice effect. Does anyone know how to achieve a straight shadow like this?


I've asked the same question on , but got no answer, so that's why I'm asking it here (I've read that simple sql questions should be asked at SO, but I have no choice).  Suppose I have 3 tables: posts, post_categories and categories. I'm implementing some kind of page with filters where I can filter posts by categories. User can select multiple categories. When he selects more than one, they should be summed. I can't get it working. What I have now is simple IN() SQL clause:  SELECT posts.id, post_categories.category_id FROM posts  JOIN post_categories ON posts.id = post_categories.post_id  WHERE post_categories.category_id IN (1,2,3) LIMIT 10;   But it is not matching all ids, it is OR and I need AND. What I need here is to find all posts that have categories with id=1 AND id=2 AND id=3, but instead this query returns posts that have at least one category from the IN() list.


LaTeX: problem with table captions when using the subfig pagkage

I run Arch Linux with texlive version 2019.52579-1. When I compile the LaTeX (Beamer) code below the table caption is "Figure: A simple table." That is, it includes "Figure:" instead of "Table:". The problem does not occur when the subfig package is not used or when the deprecated subfigure package is used instead. Suggestions are welcome. Thank you.   \documentclass{beamer}  \usepackage[utf8]{inputenc} \usetheme{default}  \usepackage{subfig}  \begin{document}  \begin{frame}{A simple frame}  \begin{table}  \caption{A simple table.} \begin{tabular}{ll} \hline a & b \\ c & d \\         \hline                  \end{tabular}  \end{table}  \end{frame}  \end{document}


I'd like to use a sequence of boxes to show how TeX works. I read some time ago that everything (or almost) in TeX are boxes.  So, how to show only the TeX boxes that surround each character, each line, each paragraph?  I'd like something similar to the image below, not fbox which contains blank space around it.


irrational, proving or finding counterexapmle

Prove or find a counterexample: For all real numbers x and y it holds that x + y is irrational if, and only if, both x and y are irrational.  Can anyone give me a hint just about how to start cause i cannot come up on how and where to start.   Do I have to look for 2 irrational numbers and add then , iff, both have to be irrational and how do i come up with a counterexample or a prove? i need help


How to see the convergence/divergence of this integral

I have a question, I want to know for which values of $p\in \mathbb{R}$ this integral have finite value: $$\int_{0}^{\infty} \frac{\sin{x}}{x^p}dx $$ I have shown that for $p=1$ the integral is finite and equals to $\frac{\pi}{2}$, so, if $p\geq1$ is easy to see that the integral converges. The intuition says that if $p<1$, it diverges. But I don't know how to prove that. Any idea?


Graduate school admission without college degree

Can you apply and be admitted to a graduate school without having an undergraduate degree?


Unable to send mail to hotmail from rackspace cloud

I'm having issue sending mail from postfix on a rackspace cloud instance for my domain.  Hotmail says "550 SC-001 (SNT0-MC4-F35) Unfortunately, messages from 198.101.x.x weren't sent. Please contact your Internet service provider since part of their network is on our block list. "  Here is the mail log  Sep 20 08:02:59 mydomain postfix/smtpd[1810]: disconnect from localhost[127.0.0.1] Sep 20 08:02:59 mydomain postfix/smtp[1814]: 59CFF4B191: to=<XXXXXX@hotmail.com>, relay=mx3.hotmail.com[65.55.92.184]:25, delay=0.19, delays=0.1/0.01/0.06/0.01, dsn=5.0.0,  status=bounced (host mx3.hotmail.com[65.55.92.184] said: 550 SC-001 (SNT0-MC4-F35) Unfortunately, messages from 198.101.x.x weren't sent.  Please contact your Internet service provider since part of their network is on our block list.  You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors. (in reply to MAIL FROM command)) Sep 20 08:02:59 mydomain postfix/smtp[1814]: 59CFF4B191: lost connection with mx3.hotmail.com[65.55.92.184] while sending RCPT TO   I have implemented rDNS, SPF and DKIM they all are looking fine. I have checked my IP and domain, on most of the spam black lists and it is listed as ok on those, (not listed as spamming IP)  What should I try next?


Existence of multiplicative inverse in field $\mathbb{Q}(\sqrt{d})$

Let $\mathbb{Q}(\sqrt{d}) = \{a + b \sqrt{d}: a,b \in \mathbb{Q} \}.$ Show that $\mathbb{Q}(\sqrt{d})$ is a field.    Everything seems obvious except for existence of inverses in the multiplicative group of $\mathbb{Q}(\sqrt{d}).$  Suppose $\alpha \in \mathbb{Q}(\sqrt{d}) \Longrightarrow \alpha = a + b \sqrt{d}.$ To prove that $\mathbb{Q}(\sqrt{d})$ contains multiplicative inverses, observe that for a non-square $d$ and $a - b\sqrt{d} \ne 0$  one has $$\frac{1}{\alpha} = \frac{1}{a+b\sqrt{d}} \cdot \frac{a - b \sqrt{d}}{a - b \sqrt{d}} = \frac{a}{a^2-b^2d}- \frac{b}{a^2-b^2d} \sqrt{d}.$$  If $a,b \in \mathbb{Q} \Longrightarrow a^2,b^2 \in \mathbb{Q} \Longrightarrow b^2 d \in \mathbb{Q}$ (since $d \in \mathbb{Z}$) $\Longrightarrow a^2-b^2d \in \mathbb{Q} \Longrightarrow \frac{a}{a^2-b^2d}, \frac{b}{a^2-b^2d} \in \mathbb{Q}.$ Hence $\frac{1}{\alpha} \in \mathbb{Q}(\sqrt{d}).$   Is this correct?


How to force laptop to play through built-in speaker even when headphone jack is plugged in?

When I was attempting to take out my headphones I accidentally snapped the metallic connector off, so it became stuck in my computer's headphone jack slot.  As a result, my computer now thinks there are headphones plugged in even though there are none plugged in.  How do I force my laptop to play through the default speakers that are built into it?


Older post not indexed, new post indexed right away?

I have  a post I created yesterday that was indexed rather quickly by Google. However, I have two other post that I created within the past 4 days that are  not indexed and I cannot find a trace of them within the SERPs.  Any idea what my cause this to happen?


Best Time Series Analysis Book for Self Learning?

I am an M.Stat student and I was interested in Time Series but the course won't be available at my University until the semester after I graduate so I wanted to self teach the topic. I have some exposure to TS because I took multiple Econometrics courses in undergrad (used Introductory Econometrics for Finance by Chris Brooks which covered ARIMA, Garch, and VAR models). I have a hard copy of Time Series Analysis: Univariate and Multivariate Methods as well as two ebooks: Analysis of Financial Time Series by Ruey Tsay and Time Series Analysis and Its Applications: With R Examples by Robert H. Shumway and David S. Stoffer. Which book is the best for self-study? I would not be opposed to buying a different text if someone recommends it. Note: I would like to be able to apply what I learn directly to industry, I have no plans of doing a PhD.


I have a xml file which I want to open and write in. The xml file has this structure:   <?xml version="1.0" encoding="UTF-8"?>            <polygons>                     <polygon name="polygon-1">                  <point>                 <x>38,241885</x>                 <y>-5,965407</y>              </point>               <point>                     <x>38,242251</x>                     <y>-5,965423</y>                  </point>             </polygon>     <polygon name="polygon-2">         .         .     </polygon>   </polygons>      I want to add new polygons into my xml, so I have to read it and then add a polygon at the last position. ¿How can I do this?


How I can make this sine to square wave converter accept higher frequency?   Because when I tested it, it only accepts 10KHZ max. I will need to input a higher level of frequency till 1000KHZ.   Would this mean that I need to swap the resistor values to lower values?   New to digital electronics. Would appreciate if someone could help. U1 is an Op Amp.


equivalent of windows batch echo off in linux

I need to hide content of .sh script and only show echo "messajes". The equivalent of windows batch: @echo off  Examples:  echo "Download..." wget http://mypage.com/files/file.zip echo "Ending..." sed -e '/^#/d' file2.tar.gz | sed 's/^/./' | sort -u > out echo "Done"   I need this result in console:  Download.. Ending.. Done


Definitive grammar resources for usage of neo-pronouns at SE

I am not an English language native, and as such, I may be less sensitive to the difference between open usage of neo-pronouns and plain bad English. In the light of the recent discussions, is it possible to provide grammar resources which I should rely on?  Which of the style guides (e.g. ) should I follow in general in this respect?


I have been emailing a Russian woman for 7 months

My head tells me it's a scam.  She doesn't have a smart phone so all communication is by email. She has already asked for money for air tickets then proof of money in her bank so that she can leave Russia. She now says that she won't be allowed to leave without paying off her debt.  Can someone leave Russia if they owe money to their bank, like having a mortgage?


How can i break out this while loop?  i want it to break it out when i type "finish." But it dose not seems to work.  public class Main {      public static void main(String[] args) throws IOException {          PlayerReader r = new PlayerReader();         PlayerWrite w = new PlayerWrite();         r.Check();          System.out.println("Welcome, Please type enter or type finish to store information");          Scanner sc = new Scanner(System.in);          String str = sc.nextLine();         String cond = "finish";          while(str != cond)         {              w.writeName();             w.writeScore();             if(str == cond)             {                 System.out.println("Information stored");                 sc.close();                 break;             }          }       }   }


As a native English speaker, I find the phrase "The hammer need not to be large for..." sounds strange to my ears.  Instead, I prefer "The hammer need not be large for...".  But what is the rule that makes the former grammatically wrong?  Or, maybe I am in error, and indeed the former is technically correct...


How can I re-enable backspace navigation in Chrome?

The latest version of Google Chrome has changed the hotkey for 'back' from backspace to alt + backspace.  The new combination doesn't work on my laptop, however I would actually rather stick with the older key anyway.  I've read in other questions that Chrome doesn't allow you to customise shortcuts, however is there any way to either re-enable the original shortcut or to override it back to being just backspace?    I'm running Windows 10.


How to vertically center content in a cell?

How can I vertically center the content in the cells of the left table (marked 1) so that it looks like the cells of the right table (marked 2):    My code thus far:  \begin{table}[H]     \setcellgapes{5pt}     \makegapedcells     \caption{Local Area Network vs Wide Area Network.}     \label{tab:lanvswan}     \centering     \begin{tabular}{         >{\centering\arraybackslash}p{3.5cm}         |>{\centering\arraybackslash}p{4.5cm}         |>{\centering\arraybackslash}p{4.5cm}         }         \thead{Características}     & \thead{LAN}                           & \thead{WAN}                                                       \\  \hline         Extensión Geográfica        & Pequeña                               & Extensa                                                           \\  \hline         Dispositivos                & Host, Switches (L2 y L3) y Routers    & Especializados de ATM y Frame Relay, Switches (L3) y Routers      \\  \hline         Tecnologías                 & Ethernet                              & MPLS, ATM, Frame Relay y X.25     \end{tabular} \end{table}


Suppose I install debian,and my Internet network comes down. Install works OK,but at the time to setup the apt mirror from list give error because network Internet is down. I continue to install without mirror(apt/sources.list contain only cdrom entry) Internet work..how to setup the debian mirror after installation? I know how to edit sources.list with vi,but I want the menu with mirror list selection.


Star formation after big bang doesn't violate entropy?

Ok I know this has been asked a lot but I'm still a bit confused.  After big bang, there are a lot of equally distributed elementary particles around with evenly distributed heat(or photons). So why doesn't the universe stays at this max entropy and instead opted to form star, only to distribute heat evenly again? Please direct me to an answer if it exists.


Can we define sum over an uncountable set?

Is it possible by some means to define a notion of sum over the elements of an uncountable set $S$ of real numbers.I thought of something like $\sum_{\alpha \in \tau }  a_\alpha:=\sup_{T\subset S ,|T|=\aleph_0}\sum_{a_{\alpha}\in T}a_\alpha$ where $\tau$ is the index set.Does this makes much sense?


As Protoss, how can I counter mass Battlecruisers in PvT?

What to do against Terran opponents who go for mass Battlecruisers? Most skytoss units seem to be garbage at that point. Are Archons at all viable in this scenario?


What would the effects of the GW150914 gravity wave burst be on observers much closer that 1.3B LY?

The effects of the GW150914 gravity wave burst were barely observable with state of the art instruments, i.e. LIGO. What would the effects of  GW150914 gravity wave burst be on observers much closer that 1.3B LY? For example, in the same galaxy 30,000 LY from the black hole merger. Or on a planet orbiting a few dozen AU from the event. I have read that the wave contained energy equivalent (in the MC^2 sense) to three solar masses. How is this energy transferred to a nearby planet?


SharePoint Server Search - Internal Server Error when searching in https

I have created a web application which uses port 80 and i have extended the web application at port 443 which is a SSL enabled site  Example:   (port:80 -Default Zone -Windows Auth)   (port:443 -Intranet Zone -ADFS authentication)  I have added the http web application to the local SharePoint site's content source.I ran a full crawl and tried searching in http site,the search works fine but when i search in https site,its displays "Internal server error exception:".  Kindly let me know if I need to do any more configuration for https search to work?  Please note: I am using a service account as the default content source account.  Below is the error in ULS Log:                                                                 'Service Service Application Proxy', scopes manager: adding OOB consumer objects for consumer '155dc91d-dcdb-46ce-a958-2866f5cefff5'      'Service Service Application Proxy', scopes manager: could not   AddConsumer name: 155dc91d-dcdb-46ce-a958-2866f5cefff5 due to   exception:       Microsoft.Office.Server.Search.Administration.DeletedConcurrencyException:   No site collection named "{155dc91d-dcdb-46ce-a958-2866f5cefff5}"   could be found.     at   Microsoft.Office.Server.Search.Administration.Consumer.get_SPSite()   at Microsoft.Office.Server.Search.Administration.Consumer.get_Url()   at   Microsoft.Office.Server.Search.Administration.ScopesManager.OnConsumerAdded(Consumer   consumer)     at   Microsoft.Office.Server.Search.Administration.RemoteScopes.AddConsumer(String   consumerName, ConsumerCollection owningCollection)       SearchServiceApplicationProxy::DeleteConsumer--Proxy Name:Service   Service Application Proxy EndPoint:


How does a 16-300mm f/3.5-6.3 lens differ from a 50mm f/1.8?

I have a Nikon camera.  I received a Tamron 16-300 mm f/3.5-6.3 lens and a AF-S Nikkor 50 mm f/1.8G for Christmas. Do I need both? How do they differ in picture taking?


Why does QGIS throw me an error on startup with processing.run?

I am trying to run python startup script for QGIS with the following code: from qgis.core import * from qgis.utils import iface import os from qgis import processing project = QgsProject.instance() project.read('/home/r89/projects/qgis_python/project/main.qgz') path_to_shapefile = '/home/r89/projects/qgis_python/shapefiles/block1.shp' block_layer = QgsVectorLayer(path_to_shapefile, "Block layer", "ogr") project.addMapLayer(block_layer) iface.setActiveLayer(block_layer) iface.zoomToActiveLayer() e = iface.mapCanvas().extent() x_min = e.xMinimum() x_max = e.xMaximum() y_min = e.yMinimum() y_max = e.yMaximum() extent = str(x_min) + ',' + str(x_max) + ',' + str(y_min) + ',' + str(y_max) + ' ' + '[EPSG:4326]' result = processing.run("qgis:tilesxyzmbtiles", {'EXTENT':extent,'ZOOM_MIN':1,'ZOOM_MAX':12, 'OUTPUT_FILE':'/home/r89/projects/qgis_python/output/main.mbtiles'})  os._exit(0)  QGIS throws me an error on start: An error occurred during execution of following code: spec.loader.exec_module(module)   Traceback (most recent call last):   File "", line 1, in    File "", line 783, in exec_module   File "", line 219, in _call_with_frames_removed   File "/home/r89/.local/share/QGIS/QGIS3/startup.py", line 18, in      result = processing.run("qgis:tilesxyzmbtiles", {'EXTENT':extent,'ZOOM_MIN':1,'ZOOM_MAX':12, 'OUTPUT_FILE':'/home/r89/projects/qgis_python/output/main.mbtiles'}) AttributeError: module 'qgis.processing' has no attribute 'run'   Python version: 3.8.3 (default, May 17 2020, 18:15:42)  [GCC 10.1.0]  QGIS version: 3.12.3-București 'București', exported  Python path: ['/usr/share/qgis/python', '/home/r89/.local/share/QGIS/QGIS3/profiles/default/python', '/home/r89/.local/share/QGIS/QGIS3/profiles/default/python/plugins', '/usr/share/qgis/python/plugins', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/r89/.local/lib/python3.8/site-packages', '/usr/lib/python3.8/site-packages', '/home/r89/.local/share/QGIS/QGIS3/profiles/default/python']  When I run this code in QGIS python console, it runs OK. So, I think there could be a problem with processing module running from a startup script rather than from a QGIS app itself. I have seen a question with similar error() but it doesn`t seem to be helpful to me


Uncertainty principle for a sitting person

If a person is sitting on a chair his momentum is zero and his uncertainty in position should be infinite. But we can obviously position him at most within few chair lengths.   What am I missing? Do we have to invoke earth's motion, motion of the galaxy etc. to resolve the issue?


Solve recurrence relation $ a_{n+1} = (n+1)a_n + 1 $

$a_0 = 1 \\ a_{n+1} = (n+1)a_n + 1 $  Could you help me solve this? And maybe someone know good source explaining how to solve recurrence relations?


I can't create a post with the .  There are errors for both the Japanese and Chinese characters.  Here is the post in question . It is peculiar that it supports 59 languages besides Japanese and Chinese.


How do I free up space to install software updates?

The upgrade needs a total of 87.5 M free space on disk '/boot'. Please free at least an additional 32.8 M of disk space on '/boot'. Empty your trash and remove temporary packages of former installations using 'sudo apt-get clean'.


In my recent reading of various books and notes on algebraic geometry and scheme theory, I have come across three definitions of affine $n$-space over a field $k$:   $\mathbb{A}_k^n$ is $k^n$ 'without an origin'; $\mathbb{A}_k^n$ is simply $k^n$ with the Zariski topology (i.e. zero loci of sets of polynomials are closed); $\mathbb{A}_k^n=\operatorname{Spec}k[x_1,\ldots,x_n]$.   I know that things like the Nullstellensatz give us a nice way of going from one point of view to another when it comes to polynomial rings and affine varieties, but here I'm having some confusion. For $k=\mathbb{C}$ (which is algebraically closed, so things should all act reasonably nicely) we have that the points of $\operatorname{Spec}\mathbb{C}[x]$ are in bijective correspondence with points of $\mathbb{C}$, apart from the general point $[(0)]$. So it seems to me that these definitions can't all be the same, but searching for affine space on Google or in books leads to any one of the above definitions, depending on the level of the text.  Am I just making a silly mistake, or is there a difference in these definitions? If so, which one is the 'right' one?


Can we run objective c on UNIX operating system?

How can I run objective c on Unix systems?


Proposal to merge tags [existdb] and [exist]

I'd like to propose that the tags exist and existdb are merged.  After going through multiple edits where exist (22 followers) was changed to existdb (12 followers) it became apparent that these really should be one and the same.  Note this is not the same as:   As that is recommending renaming just one of them.  Perhaps the merged tags together could be called [exist-db]?


Tokens causing incorrect text substitutions

I'm running Drupal 7 on Ubuntu 14.04 server, core and all modules up to date as of today (7th May). We have noticed today that zeros (0) are not displaying correctly in blocks that have a custom token. They are being substituted for the word 'custom'.  For example, "7,500" displays as "7,5customcustom".  I'm not sure how long it has been doing this, as we have only just noticed it today. In blocks without Custom Tokens, the zeros display correctly. This is a relatively recent issue, as it was not a problem a couple of months ago when our site was reviewed by our solicitors.  The source for the content is correct - so it appears to be a display issue. Any ideas?  As an aside, the zeros being replaced need not be in the Custom Token to be replaced (it happens whether they are part of the Custom Token, and when they are just plain text on the page).


PHP Sum of two numbers resulting in a large numbers with a + symbol

Sorry for not using the correct terminology, the fact is I don't know what you'd call this sort of number so it's making it incredibly difficult to Google.  I want to multiply two numbers together and get the result back as just numbers, but I keep getting a string looking like this: float(8.6135096694932E+15). I need to export this in an XML file so I need a string containing just the numbers not this weird response I am currently getting.  Here is a very simple example:  var_dump(2005489*4294967297) //Actual Result: float(8.6135096694932E+15) //Desired Result: 8613509669493233   My question is simply. How can I multiple those two numbers together and get the desired result listed above?  For a bit more context of what i'm trying to do: I am given an ID, in this instance "2005489" and I need to generate a new ID based on a fermat numbering system, which basically seems to mean that it must be multiplied by "4294967297", I do not fully understand why since I am interacting with third party software. It seems simple enough, but I need to actually be able to print the string "8613509669493233" in an XML file, not the weird response i'm actually getting.  EDIT 2: Found another solution, very simple:  number_format($number, 0, '', '');   Found here:   EDIT: This has been marked as duplicate of this:   However I cannot see how that offers a solution. The only example is:  gmp_strval(gmp_init($n, 10), 2);   However this does not offer any resolution, here is an example:  $number = (string)(2005489*4294967297); $response = gmp_strval(gmp_init($number, 10), 2); var_dump($response); //0   Not using (string) results in:     gmp_init(): Unable to convert variable to GMP - wrong type


I know that this is a 'bi'cycle forum, but I'm going to chance it and ask for unicycle buying advice.  What should I look for when buying a unicycle? I probably will do some leisure riding with it, maybe ride it around NYC instead of walking.


File permissions do no work the way I intended

I have certain doubts regarding file permissions.I am gonna list them one by one.  By the way I am logged in as root and using Red Hat Linux.  1.When I change the permission for a file to only read eg- chmod 400 file1,I can yet use cat command and add some content to it.Shouldn't I have the access only to read the file?  2.If I give read permission to a folder eg- chmod 400 folder1,I can still add files to it.So what exactly read permission means for a folder or a execute for that instance?  3.If I am logged in as root,do I always have all the permissions ie read,write and execute?Because that's what is happening.I am able to access any file and folder irrespective of the permissions set.  So is there any way to achieve my objectives?


Looking for a sci-fi book from the 1960s-70s about moving objects to change the course of history

The plot was that people from the future did extensive research and then made one small change to the past (like moving an object from one side of a room to another) that resulted in a major shift in the future story arc.   Any ideas would be most welcome!


Best way of calling a JavaScript function through an href attribute

I have the following code:   Click here   in Chrome it works well, but in other browsers, like Opera, Firefox, etc., it does nothing and an almost blank page opens, with the message "Object object" or something similar.  If I change the href call above by  Click here   it works well in all browsers, but the page moves to the top (scrollbar).  The third solution:   Click here   works perfectly for all browsers.  Still, in the wild I have found this recommendation:  Click here   which is similar to the above one, but without the need of the onClick event.  Why is the best approach and why?


Conversion of all-cap acronyms to first letter only; when did NASA become Nasa?

The BBC will often refer to well recognized organizations named by an acronym by capitalizing only the first letter. For example, the  written as all capitals in the US as NASA is written as Nasa on the  as is  for the North Atlantic Treaty Organization.  When did it become commonplace to convert all capital acronyms to first-letter only? Has this been done for quite a while and I never noticed, or is this a more recent occurrence?  I noticed that it's not a universal practice, it's still written as NASA in        Definition of NASA in English: (in the US) National Aeronautics and Space Administration.        An exoplanet is a planet which orbits a star other than the sun, also known as an extrasolar planet. The word is attested from 1992, around the time that the existence of the first exoplanets was confirmed. In the years since, advances in technology, and in particular the launch of the Kepler space telescope, have led to the discovery of thousands of exoplanets; according to NASA, the number now exceeds 3,500.


What plot points are missing in the Harry Potter movies that are in the novels?

I know that the movies were written to be a stand alone universe on their own, but what key elements were missing in the movies that were vital in the books that viewers are missing out on?


Changes in specific files in one branch are reflected on same files in another branch

I create a new local branch which is called development from the master branch by this command: git checkout -b development  after the command above executed, on the created branch I open some files make changes, then I move to the origin branch(in my case it is master) open the same file and I can see the changes that I made in the development branch. While I expect that changes that were made on one branch are not reflected in another branch. Any idea what can cause this strange behavior or how to fix the issue?


How to show that $\lim_{n \to +\infty} n^{\frac{1}{n}} = 1$?

I've spent the better part of this day trying to show from first principles that this sequence tends to 1. Could anyone give me an idea of how I can approach this problem?  $$ \lim_{n \to +\infty} n^{\frac{1}{n}} $$


Speed of sound relative to density of medium through which sound travels

I know that sound travels faster in water compared to air and say, faster in steel than in water so, What would the density have to be to cause sound to approach the speed of light?


How to enable the Unity plugin without ccsm

I can only see my desktop pic upon login and that is because unity plugin isn't enabled.  I tried ccsm, but there is no way for me to apply changes so the unity plugin remains disabled. I also can't close windows because the bar at the top of each window is not there.


I've been battling the following two questions for more than a day today.  Write a regular expression (comprised of {a, b}) that contain at least two b and do not contain abb. Write a regular expression (comprised of {a, b}) that contain abba and do not contain baa.  For the first part I wrote a basic one to start off with that doesn't handle the must two-b: b* OR a* OR (a+ AND b)* OR a*  I ran a few "truth tables" inputs over it and it seems ok. But the moment I add the requirement, things go haywire. Mostly because when pushing in those "b"s, you can suddenly use the OR to break things up. Same thing on the second one.... Any help would be greatly appreciated! Norah


nullpointer exception in 2D randomly generated array (gaussian elimination)

I have found a null pointer exception when I was randomly generating a 2D array. I used the same methods before and it never gave me a null pointer exception.  Here is the main method.      public static void main(String[] args)      {     int row = 5;     int column = 6;      double[][] matrix = new double[row][column];      for(int i = 0; i < row; i++)     {         for(int j = 0; j < column; j++)             matrix[i][j] = Math.random()*20;     }     b = getB(matrix, row, column);     printArray(matrix);     System.out.println("");     System.out.println("");       elimination(row, column);     backSubstitution(row,column);     printSolution(column);  }   The debugger told me that the line that caused the exception lies in the findMaxPivotRow method inside the elimination method.  public static void elimination(int rows, int cols) {     int pivotRow;     double multiplier;      for (int r = 0; r< rows; r++)     {         pivotRow = findMaxPivotRow(r, rows);         swapRow(r, pivotRow);          for (int i = r+1; i < rows; i++)         {             multiplier = matrix[i][r] / matrix[r][r];             b[i] -= (multiplier * b[r]);              for (int j = r; j < rows; j++)             {                 matrix[i][j] -= (multiplier * matrix[r][j]);             }         }     } }  public static int findMaxPivotRow(int k, int rows) {     double max_value = matrix[k][k];     int max_row = k;      for (int r = k; r < rows; r++)     {         if (Math.abs(matrix[r][k]) > max_value)         {             max_value = matrix[r][k];             max_row = r;         }     }     return max_row; }  public static void swapRow(int k, int pivotRow) {     double[] swap;     double multiplier;     double swap_b;      swap = matrix[k];     matrix[k] = matrix[pivotRow];     matrix[pivotRow] = swap;      swap_b = b[k];     b[k] = b[pivotRow];     b[pivotRow] = swap_b; }   The line that caused the exception is this line  double max_value =  matrix[k][k];   I searched the null pointer exception in 2d array online, and it tells me that the error is either the array is not initialized or the code is outside of the bounds. I used the debugger very thoroughly and it showed me that the indices are in the correct positions.  I know there are a lot of codes I have thrown at you, but you can read the main method, the first few lines of elimination and findMaxPivotRow method.  If you can find why that lined caused the null pointer exception, that would be very helpful. Thanks.


How to read negative radians in the interval?

Say a function's domain is $\{-\pi/2, \pi/2\}$. How should I interpret this interval?  It starts from where? To where? In what direction?  And if it starts from $3\pi/2$, would the next one be $-5\pi/3$.(because it starts from negative, $-\pi/2$).


"Should never have been" or "should have never been"?

Example:  Methamphetamine should have never been created.  or  Methamphetamine should never have been created.  Which one is correct? This seems like it should have a simple answer, but either way sounds good to my ear. Is there an official rule? EDIT: This is not the same as asking the difference between 'was never' and 'never was.' 'Was' is the past tense form of the infinitive verb 'to be.' In this case, the word 'have' is part of the verb itself. This question essentially involves whether the word 'never' could be added as part of the verb. To clarify and expand the question, it could in fact be said in three different ways:  should have never been should never have been never should have been


In the LHC, how is the proton separated from the electron in the hydrogen?

I know that we use protons in the LHC. So my question is, how is the proton separated from the electron in the hydrogen?


How can I make Unity 2D the default session at start-up?

I want Ubuntu to always use Unity2D by default. I am using the latest version (12.04 LTS).


Fractal dimension of set in $\mathbb{R}^2$

I have a set of points in $\mathbb{R}^2$, of the form:  $\Bigg\{\left(\frac{a}{\ell^2},\frac{b}{\ell^3}\right): \ell \in \mathbb{N}^+\Bigg\}$  where $a$ and $b$ are some real positive numbers.  I am interested to know the box dimension of this set. Is there a simple way to determine this analytically?


The difference between the Frequentist, Bayesian and Fisherian appraoches to statistical inference

I'm just trying to get my head around the differences between these three approaches to statistical inference. I'm just not entirely sure what the significant differences are between the three.


I got a window on top of all others saying: "You'll need a new app to open this microsoft-edge". It can be selected (the screen grab for the image below recognises that this is the current window), but does not seem to respond. The OK button is greyed out, it cannot be moved off screen and does not respond to Alt-F4.   It is not on the Alt-Tab list of things. Clicking outside the window works as normal, ie. other programs respond but this one stays. As it has no title, it isn't immediately obvious which process it belongs to (some internal one, which perhaps I shouldn't terminate anyway?)  So I think somehow I got Windows to try opening Edge with another program..(?), more interestingly, how do I get rid of the window? Thank you.


Are there any words I can use to disambiguate "biweekly"?

We have two words for events occurring in periods of years - biannual meaning twice a year, and biennial meaning once every two years.  However, my colleagues talk about having meetings biweekly. This causes a lot of confusion, since it can mean either once every two weeks or twice a week.  We can use fortnightly to indicate once every two weeks and help disambiguate that way. Are there any other words we could use which could help, particularly words which mean "twice a week"? I'm looking particularly because some of my colleagues speak English only as a second language, and find fortnightly difficult to remember.


I am using git for version control of various projects.  Is there GUI software for navigating through commits and branches of a project and for retrieving versions in git projects?


Are those movie masks for real where A impersonates B?

You know the kind I mean. At the intro of Mission Impossible, we see Tom Cruise, who suddenly hooks a hand beneath his jaw and tears of his face, which turns out to be one of those vinyl masks. Beneathe the mask, he's somebody totally different.  I have seen Mrs Doubsfire, where Robin williams wears one of thsoe masks and can seriously pass for an old lady, and even still has facial mobility. So I suppose it can be done, to a degree.  Given that the guy wearing the mask has a small face, small nose etc, could he really pass convincingly for someone else if he wore a mask?


How can I get my 4.5-year-old to stay in bed at bedtime?

Lately my 4.5-year-old son has started getting back up after bed time.  Frequently we will go through the entire bedtime ritual, including a bath, pajamas, brushing teeth, books, and then being tucked in.  But after that he will climb down from his loft bed, and come out of his room over and over again.  Sometimes this happens 10 or more times in a single night, and he might not finally go to sleep until well after 11pm.  I'm worried because he doesn't get enough sleep and in the morning he's tired when it's time to get up for preschool.  It's also a big disruption to the limited private time for my wife and I.  What can I try to help bedtime run more smoothly?


Are there any consequences to Chewbacca's life debt to Han Solo after The Force Awakens?

With some reference to (some spoilers included):   What does a Wookiee life debt entail? How similar is it to the definition turned up by Google:     A life debt is a literary phenomenon in which someone whose life is saved or spared by another becomes indebted or in some way connected to their savior. A life debt can only be paid off by saving the original savior’s life in return.   For those who have watched the movie, what implications are there to Chewbacca’s life debt for what happened to Han Solo? Is it possible he may have lost his honour or failed his ancestors or anything to that degree?  Edit: This isn’t a question of whether the life debt ended. It’s about the repercussions, given what has happened in the movie, due to Chewbacca’s preexisting life debt. Mostly from a Wookiee’s point of view.


Is there a term for a word that means itself? For example the word word means itself and is a word.


I know I shouldn't be using that function, and I don't care. Last time I checked the spec for strcat, it said something along the lines of updating the first value as well as returning the same.  Now, this is a really stupid question, and I want you to explain it like you're talking to a really stupid person.  Why won't this work?  char* foo="foo"; printf(strcat(foo,"bar"));   EDIT: I don't know the difference between char[] and char*. How would I allocate a string of 255 characters?  EDIT 2: OK, OK, so char[number] allocates a string of that many bytes? Makes sense. Thanks.  EDIT 3: Also, how would I use a character array without declaring it? Would I typecast it as char[255]?  EDIT 4: strcat((char[256])"foo","bar") returns an error. I'm about fed up with C.  EDIT 5: So does strcat((char[256])"foo",(char[])"bar").  EDIT 5:  char[256] foo="bar";   Real smooth. "identifier expected"


Currently the answers are sorted by votes and the accepted answer is docked at top. The intended design is to "". This does work well in most cases. Problem If I have a problem and search for a solution on Stackoverflow I often find questions where the accepted answer is wrong or not the best solution. Mostly, in this case the community up voted a not accepted answer far more often than the accepted one but still the accepted answer remains on the top. If the accepted answer is long the user might not even see that there is a better answer without scrolling. This problem accrues mainly at old question which people found by Google. Everybody needs to waste time, trying the wrong answer first. Some examples:                           Find more:  Also note that order is correct as soon as the accepted answer has negative votes like here:  Why do I think this is a problem and you may not? After many comments, up and down votes I feel the need to explain a key point:  Perhaps we don't agree it is a problem at all? I don't think the problem is prevalent enough to make warrant special-casing.  If you visit Stackoverflow regularly, answer questions, helping people this is not a problem for you at all. Why? Because you are mainly dealing with new questions. Those questions have a low vote count and the voters do not have the same problem. There are voting based on theory what they think is right. The OP clearly does know it better and is very likely accepting the right answer. But 90% of the people are using SO like this: They have problem, google it, find a matching question and try the answers in order. If an answer does work, they might up vote this answer. So after some time the most votes come from people with the same problem and the accepted answer might not be the one the community liked. Still, every user has to try the accepted answer first. I don't know the hit count on Stackoverflow but if I look at some questions counter I guess each day thousand of people wasting time because of this. Yes, the community can be wrong, too. But who is more likely to be wrong: The OP or 10 other users with the same problem? Why is the wrong answer accepted?  The question is abandoned or not maintained (even if you visit this page regularly you might not check for every old question if a new answer solves it better). The owner does not agree with the community. There are multiple solutions and the owner has a rare case.  History The problem is not new and there have been made several (high voted) proposals to solve this:        So far, all offered solutions have been rejected while the problem still exists. How should this be solved?


Loading and modifying an alias in command line

In order to speed up typing of a long command, we can make an alias of a command, e.g.  alias remcopy='scp user@123.45.67.89:/home/file.txt /home/user/'   And we type user this exact command will be run.   However, is it possible only to load the command and then modify it according to the current need, e.g.  scp user@123.45.67.89:/home/file.txt /home/user/addeddir/


Is it possible to change the order of icons in the indicator applet?

Is it possible to change the order of icons shown in the indicator applet? With Tomboy indicator, Weather indicator, Clipboard-manager indicator, Ubuntu One and Dropbox indicators and a Battery Status indicator in addition to the classic Messages indicator and Sound Menu indicator my Indicator Applet becomes a little bit messed up, sorting the icons would help a lot...


How do I delete data for one game in the iPad Game Center?

I have one particular game that saves data through the game center. Somehow the saved game data got messed up which causes the game not to work properly when I a connected to the internet (I.e. When the game center is accessible).   Is there some way to delete all the data belonging to that game only?


I am working on a problem that asks to classify groups of order 33. I have the following work listed below as a first attempt, however I'm aware of another method that uses a homomorphism into an automorphism group of order 11. This other method should yield the same answer I have below I believe. See below:   Let $|G|$ = 33. Then 33 = 3*11, which implies we have at least one sylow 3 subgroup and at least one sylow 11 subgroup. The number of sylow 3 subgroups divides 11, so it is 1 or 11. The number must also equal 1 mod 3, which implies we can only have 1 sylow 3 subgroup as 11 mod 3 = 2. Similarly we can conclude we have one sylow 11 subgroup.   We call $H$ our sylow 3-subgroup and $K$ our sylow 11 subgroup. Then $H$$\times$$K$ = $G$ as both $H$ and $K$ are normal and $H$$K$ = $G$.   I believe the above is correct, however I am interested in a method that uses a homomorphism into the automorphism group of $K$,  I am not sure how to use this idea but I am aware that such a proof technique exists. I'm hoping someone knows how to do this and can fill in the details for me.   Thanks!


app crashes with null pointer exception, when using code for VoiceInteractor

I found many tutorials on how to use VoiceInteractor I applied VoiceInteractor.PickOptionRequest.Option[] options = {option1, option2};             VoiceInteractor.Prompt prompt = new VoiceInteractor.Prompt("say cheese or you can say something else");             VoiceInteractor voiceInteractor = getVoiceInteractor();             boolean b = voiceInteractor.submitRequest(new PickOptionRequest(prompt, new PickOptionRequest.Option[]{option1, option2}, savedInstanceState) {                 @Override                 public void onPickOptionResult(boolean finished, Option[] selections, Bundle result) {                     if (finished && selections.length == 1) {                         Intent intent = new Intent(FullscreenActivity.this, ScrollingActivity.class);                         startActivity(intent);  has given me enough delay, when I keep getting the exception  E/AndroidRuntime: FATAL EXCEPTION: main     Process: com.ai.asni_assistant, PID: 17454     java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.app.VoiceInteractor.submitRequest(android.app.VoiceInteractor$Request)' on a null object reference         at com.ai.asni_assistant.FullscreenActivity$2.onClick(FullscreenActivity.java:87)         at android.view.View.performClick(View.java:6597)         at android.view.View.performClickInternal(View.java:6574)         at android.view.View.access$3100(View.java:778)         at android.view.View$PerformClick.run(View.java:25885)         at android.os.Handler.handleCallback(Handler.java:873)         at android.os.Handler.dispatchMessage(Handler.java:99)         at android.os.Looper.loop(Looper.java:193)         at android.app.ActivityThread.main(ActivityThread.java:6669)         at java.lang.reflect.Method.invoke(Native Method)         at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) I/Process: Sending signal. PID: 17454 SIG: 9 Disconnected from the target VM, address: 'localhost:50320', transport: 'socket'  I am ready to share information on what i'm working on if someone has another solution to that exception or it's something within another part of the code that is the part of the code for the permissions if (ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_CALENDAR) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.INTERNET) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.RECORD_AUDIO) != PackageManager.PERMISSION_GRANTED) {         builder.show();         requestPermissions(new String[]{Manifest.permission.RECORD_AUDIO, Manifest.permission.INTERNET, Manifest.permission.READ_CALENDAR}, 3);         return;     }  It did pop up once for audio recording permissions but it didn't do it for the internet and I know why and for the calendar but that was ambigious. it is 3 hours until now since I got the crash with null pointer exception.


I have some problems on my Asus notebook since I upgraded to Ubuntu 13.10:   Networking (wifi and lan) won't work after resume from suspend. I've seen many posts about this but they wouldn't work for me (adding iwlwifi to the list of loaded modules).   I couldn't find anything on that problem, and I don’t know where to look at to solve that. Is there any information I can add?


how to download a file on Chrome without auto renaming file to "download"?

I use javascript to generate a file and download it.  It seems, that depending on the version of chrome, the download file names can be auto renamed to 'download'. Is there a way to avoid it?  this is my code:  var link = document.createElement("a"); link.setAttribute("href", 'data:application/octet-stream,' + 'file content here'); link.setAttribute("download", 'file1.txt');  link.click();   This is not a duplicated question, because I'm using the latest Chrome and the previously suggested hyperlink is exactly what I'm using. I think, Chrome v34 works fine, but once my Chrome auto updated to v35, it went back to 'download' file name.


Margin error when using Bulleted List/sublist with newline

When I want to use sub-list and new line together, line breaks appears on unexpected parts instead of wher it must be.  Like Follows:   * My list item    * Sublist item    * Another Sub list  * Second main list    * Sublist of second   * Problematic line break was one line before    * Another one with upper margin error    * One more line of sub list element  * One more list item    * And its sub element is ok    My list item   Sublist item Another Sub list  Second main list   Sublist of second  Problematic line break was one line before   Another one with upper margin error One more line of sub list element  One more list item   And its sub element is ok    A screenshot:    Occured on Ubuntu with Firefox 26.0


Interstellar: non-breaking waves on Miller

When watching the part where they go down to Miller, I was bothered by the fact that the waves didn't break despite the fact that the water level is ostensibly only knee-deep (roughly, a wave starts to break when the depth of the water is less than the height of the wave). But then, a friend came up with the idea that the waves are not really waves. Given that the gravitational influence of Gargantua on Miller is, well, gargantuan (I'm not apologizing for that joke) the "waves" are actually mountains of water created by Gargantua's gravity. As such, the "waves" don't really move towards the crew; rather, they are stationary (relative to Gargantua), and it is the rotation of Miller that brings the crew towards the "waves". The reason the ocean is so shallow is because a substantial proportion of Miller's water is used up to make up the "waves".  Is this really a plausible idea? What bothers me about this is that, if it is really the planet that is rotating under the "waves", the crew should have experienced a night-day (or day-night) transition between one "wave" and the next.


Show community wikis differently in the Android app

I'm requesting that Community Wiki questions and answers display differently than non-wiki ones or otherwise indicate that they are wikis.  Example CW post in browser:    How the same post looks in the app:    One can clearly see it is impossible to distinguish between CW and regular posts in the Android app.


Is there any point in taking the alternate exits in Bit Trip Runner 2?  I can't see any benefit to doing so in terms of unlocking a different path in the overworld, so is it just for your own benefit?


What are junction points for files (instead of directories)?

According to , junctions cannot link to files. Also, when I try this nevertheless with mklink /j junction-file target\foo.txt, the command will succeed, but the junction will be broken. However, the  mention:  /xjf    Excludes junction points for files.  What are they referring to?


My chicken stock is a gelatinous mess. Is this normal? Can it be saved?

I've been looking for a chicken soup with matzo balls recipe that would duplicate my grandma's (she died without passing on the recipe.)  sounded like it would be close. I followed it to the letter, and let it cool in the fridge overnight so it would be easier to remove the fat.   When I took it out of the fridge, I was able to pull a solid layer of fat off the top, but the "soup" underneath is not liquid - it's gelatinous. Is this normal? If not, what did I do wrong? And is there any way to fix it? I had planned on giving jars of it to friends, but it looks pretty disgusting when cool, even if it does heat up correctly (which I'm not sure it does; it's reheating on the stove now.)


A subgroup with an index of 2 is normal to the group.

Why is a subgroup with the index of 2 normal to the group?  I believe it has something to do with it being half and having nowhere to go.


Can you split/explode a field in a MySQL query?

I have to create a report on some student completions. The students each belong to one client. Here are the tables (simplified for this question).  CREATE TABLE  `clients` (   `clientId` int(10) unsigned NOT NULL auto_increment,   `clientName` varchar(100) NOT NULL default '',   `courseNames` varchar(255) NOT NULL default '' )   The courseNames field holds a comma-delimited string of course names, eg "AB01,AB02,AB03"  CREATE TABLE  `clientenrols` (   `clientEnrolId` int(10) unsigned NOT NULL auto_increment,   `studentId` int(10) unsigned NOT NULL default '0',   `courseId` tinyint(3) unsigned NOT NULL default '0' )   The courseId field here is the index of the course name in the clients.courseNames field. So, if the client's courseNames are "AB01,AB02,AB03", and the courseId of the enrolment is 2, then the student is in AB03.  Is there a way that I can do a single select on these tables that includes the course name? Keep in mind that there will be students from different clients (and hence have different course names, not all of which are sequential,eg: "NW01,NW03")  Basically, if I could split that field and return a single element from the resulting array, that would be what I'm looking for. Here's what I mean in magical pseudocode:  SELECT e.`studentId`, SPLIT(",", c.`courseNames`)[e.`courseId`] FROM ...


Sampling without replacement - Normal sampling distribution

Most of the introductory stats textbooks, treat the sampling distribution of the mean as a normal distribution when sampling is done without replacement and n/N > 0.1. They just use of the finite population correction to correct the variance of the sampling distribution which is perfectly clear. However, no justification is provided on why normality is assumed.  The CLT holds for iid vars, which is not the case for sampling without replacement. Could you please provide a formal justification.  Thanks a lot!  Examples taken from Weiers Intro to Business Stats


Why did Darth Sidious even let the Clone Wars take place, since he and Count Dooku happen to be on the same side?

He could have simply overwhelmed the Jedi Knights with his stormtrooper army and be done with it.


Newer/Older posts links display same posts on every page

I am using a plugin called "Types" to generate custom post types for drink/food recipes. I want to show booth drink and food recipes on the same page. The posts are displaying fine, but for some reason, when you click "newer posts" or "older posts" it will bring you to a new page, but the new page will have the same posts as page 1. Anyone have any ideas? Thanks in advance!  Here's my loop:

         <?php query_posts( array('post_type' => array( 'recipe', 'drink-recipe' ), 'cat' => array('12','8'), 'showposts' => 5 )); ?>         <?php if( have_posts() ): ?>         <?php while( have_posts() ): the_post(); ?>         <?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?>
             <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" style="background-image:url('<?php echo $image[0]; ?>')">

<?php the_title(); ?>

<?php the_time('F j, Y') ?>
                     <?php echo the_excerpt(); ?>                     <div href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" class="button">Read more

         <?php endwhile; ?>

     <?php previous_posts_link(__('Newer Posts »','blog')) ?>     <?php next_posts_link(__('« Older Posts','blog')) ?>
     <?php else: ?>

<?php _e('None found.','404'); ?>

  <?php endif; wp_reset_query(); ?>  <?php get_footer(); ?>


How can we decide two elliptic curves over Q are isomorphic over Q?

How can we decide which of the following elliptic curves over $\mathbb{Q}$ are isomorphic over $\mathbb{Q}$? $$E_1:y^2=x^3+1$$ $$E_2:y^2=x^3+2$$ $$E_3:y^2=x^3+x+1$$


How to access the Linux machine remotly?

How can i access the Linux machine remotely ? That means i want to access my friend laptop which is booted with ubuntu16.04, and my laptop also booted with ubuntu16.04. what and all softwares i want install and send the procedure too


What do I do to complete find the bitizen mission

What are you supposed to do in the "find the bitizen(s)"? All the emperor says is "tipping is acceptable.  find the bitizen(s)."


I went through the data sheet of STM32F4 and found the pin configuration of GPIOs. I don't understand the difference between these configurations:   Input floating Input pull-up Input-pull-down Analog Output open-drain with pull-up or pull-down capability Output push-pull with pull-up or pull-down capability   I have used some of these configurations by vaguely understanding it. Could you help me to understand how this works? What is the difference between these configurations?


Is this correct? If so a link to more information/proof would be appreciated. Thanks!  $$\sum_{k=1}^x(k + k - 1) = x^2$$


Please change the "pending edit cannot edit" error screen

Eww. Please could there be some CSS going on there? By that I mean more than just a margin.  Even better, there could be a Red AJAX (?) popup box, telling me the info rather than an ugly redirection?


If $P$ is an orthogonal matrix its columns form an orthonormal set.

If $P$ is an $n\times{n}$ orthogonal matrix prove that the columns of $P$ form an orthonormal set in $R^n$. So I know that a matrix is orthogonal if $AA^T$=$I$ but I'm not sure how that would help me here. Any help is appreciated.


I need to replace a string in 14th to 20th position in a file with input value  String = A2245 4764ABC0000342  string to be replace = 0000342 with 0000992  I tried using sed but did not work.


Difference between 'would have been' and 'was'

Is the usage of 'would have been' correct in this sentence below?     The only time I believe we exchanged physical pleasantries would have been at the 70th birthday dinner hosted in honour of your mother-in-law, Erelu Ojuolape Ojora at The Eko Hotel and Suites in Lagos some years back.   Read more at:


I want to create a function that creates an array with every permutation of the sum of positive integers that create a given integer (N).  The example N = 3 would create an array of:  1 + 1 + 1 2 + 1  As I am not a mathematician I do not know the correct terminology so even answers about that would be helpful.


How to join two lists using REST API sharepoint 2013

I have two lists with look up column. How do i join two lists using REST API call.  Thanks in advance


Problem:Find all primes $p$ such that $p^3-4p+9=x^2$, where $x$ is a positive integer.  My Attempt: I have made the following observations while trying tot solve this problem:    $p=2$ yields $x=3$. For $p>2$ the following is true: $x^2\equiv 0\pmod 4$ and $p\equiv 3\pmod 4.$  It seems that $p=2,7$ and $11$ are the only primme numbers that satisfy the conditions of this problem. Below are the values of $p^3-4p+9$ evaluated for $1\leq p\leq 100.$   9  24  114  324  1296  2154  4854  6792  12084  24282  29676  50514  68766  79344  103644  148674  205152  226746  300504  357636  388734  492732  571464  704622  912294  I would like to know how one can prove that $p=2,7$ and $11$ are the only solutions to the above-mentioned equation.


Similarities and differences between correlation and regression

If I want to investigate how two continuous variables are linked, what is the difference between calculating the correlation coefficient (Pearson's $r$) versus calculating the (simple linear) regression coefficient?  I see people who, if the regression coefficient is significantly different from zero, talk about the two variables as if they are correlated, which is confusing as it suggests that the two coefficients (correlation, regression) are the same thing.  Having said that, isn't $r$ a measure of the (regression line) slope anyway? I'm confused!!


DATA RECOVERY from a NTFS formatted disk

While installing Ubuntu, by mistake I gave my C drive as the Swap space. It ended up formatting the logical drive(E, but not C !). I realised my mistake in the middle and forcefully ended installation. However it formatted the disk. On windows, the disk space appears to be unallocated. Is there a way I can recover the data?


I have installed Java 11 on my pc, but one app doesn't work with that version.   Is there any way to install an additional version of Java?


Let $f$ be a continuously differentiable function on $\mathbb R$. Suppose that $L=\lim\limits_{x\to \infty}(f(x)+f^{'}(x))$ exists. If $0<L<\infty$, and if $\lim\limits_{x\to \infty} f^{'}(x)$ exists then, can it be proved that $\lim\limits_{x\to \infty} f^{'}(x)=0$?  Let $(x_n)$ be a sequence diverges to $\infty$. Then $f(x_n)+f^{'}(x_n)\to L$.  After that I could not proceed. Please help!


SSH - Add public keys to server after disabling PasswordAuthentication

How can I add public keys to a host from unauthorized clients after disabling PasswordAuthentication?  I have one client registered to the host via public key. I need to add additional clients. Do I need to turn on PasswordAuthentication every time I need to add a new key?  Is there a different scheme for accomplishing this task that I'm not aware of?


Is it safe to eat potatoes that have sprouted?

I'm talking about potatoes that have gone somewhat soft and put out shoots about 10cm long.   Other online discussions suggest it's reasonably safe and the majority of us have been peeling and eating soft sprouty spuds for years. Is this correct?


Let $p$ be prime. Prove if $p|(a^p - b^p)$, then $p^2 | (a^p - b^p)$  don't know where to begin, any help appreciated


Python combinations of list of list of lists

How do I find combos of a list of lists of lists? Here is an example below.  My list of lists of lists (where the 1st sublist can contain a single list or multiple lists):   [[5,6],[[2,4],[5,7]],[1,8],[[-1,-2],[1,0]]]   This what I want to get:  [5,6],[2,4],[1,8],[-1,-2]     [5,6],[2,4],[1,8],[1,0] [5,6],[5,7],[1,8],[-1,-2] [5,6],[5,7],[1,8],[1,0]   Basically looking for the combos for that 2nd level list. I believe it's possible using the itertools lib but unsure how to use it.


Holomorphic function has at most countably zeros

Let $f$ be holomorphic in a domain $U$, then $f$ has at most countably zeros.  How can I prove this statement? I have seen it in Sheng Gong  explicitly, but without any indications.


A Linear Diophantine Equation is of the following form: $Ax+By+C=0$, where $x_1\le x\le x_2$ and $y_1\le y\le y_2$.  If the value of $A$, $B$, $C$, $x_1$, $x_2$, $y_1$, $y_2$ are given and $x_1\le x_2$ and $y_1\le y_2$, then how many solutions can be found?  How can I find out the total number of solutions according to the above condition?  I asked the above question in this link: before. But there I didn't give sample input and output. I liked the second answer in the above link but when I checked the  sample input and output according to the second answer it gives me wrong result   It is worthy of mention that the reasoning of the second answer based on $A$, $B\gt 0$, but my question is that what I have to do if $A$, $B\lt 0$ and how will I match sample input and output using the given answer.  Here, I have included sample input and output:    I need a method that satisfies the above input and output. I also need better explanation of the method with example.


Does double negation distribute over implication intuitionistically?

Does the equivalence $$\neg\neg (P \rightarrow Q) \leftrightarrow (\neg\neg P \rightarrow \neg\neg Q)$$ hold in propositional intuitionistic logic? In propositional classical logic the equivalence holds obviously since $P \leftrightarrow \neg\neg P$. However, the similar-looking implication $\neg\neg (P \vee Q) \rightarrow (\neg\neg P \vee \neg\neg Q)$ is . The validity of the backward implication comes up in  as well.


When cooking pulled pork in a slow cooker, should the meat be submerged in liquid?

I am making pulled pork in my slow cooker this week.  I am going to use a pork shoulder and am planning on cooking it on low for 8-10 hours while at work.    How much liquid should I put in the slow cooker?  Should the liquid cover the pork or should there just be a little liquid in the bottom?    If the pork isn't fully submerged, will the parts of the meat that are not submerged cook?  If so, how?   \                                         /   \         ********************          /  <-- Should liquid cover the meat?     \        ********************         /     \       ********************        /  <-- Or go half way up the meat?      \      ********************       /       \     ********************      /  <-- Or should I just have a little liquid in the bottom?        \-----------------------------/