Why is the sequence $s_m := \sum_{j=0}^{m} \cos(j^2)$ unbounded?

I recently stumbled over the statement on Facebook, but it was without a proof and I wasn't able to find one myself for a while now, and also asked around at the university without results. Plots I did for the partial sums showed pretty strange oscillating behavior that made it plausible to me that the series might be unbounded.  My current approach to proving it was to describe the m-th partial sum as $s_n= \Re t_m$ with $t_m := \sum_{j=0}^{m} \exp(ij^2)$, substituting in $j^2 = \sum_{k=0}^{j-1}2k+1$ and trying to find a second recursive equation like you would do it for the partial sums of the geometric series, but I didn't find anything that would've helped me.  Do you guys already know this series or have an idea?


Connect to Salesforce using wsdl in Drupal 8

I am trying to connect to Salesforce (SF) with wsdl to pull data.  I can't use SF suite module or Salesforce rest client service.  In the D7 file, I have:  require_once ('soapclient/SforceEnterpriseClient.php'); require_once('soapclient/SforceHeaderOptions.php'); ini_set("soap.wsdl_cache_enabled", "0");  $sfdc = new SforceEnterpriseClient(); $SoapClient = $sfdc->createConnection($curPath.'/enterprise.wsdl');   It create the connections without any problems.  D7 References from here:  and learned to how to use it from here:   In the D8, I am trying to figure out how to connect to SF in the same way:  namespace Drupal\mymodule\Controller\Soapclient; $sfdc = Soapclient::SforceEnterpriseClient(); $SoapClient = $sfdc->createConnection('../../includes/soapclient/enterprise.wsdl');   But got the SforceEnterpriseClient class not found error.  Stuck on it for a while, any help will be so much appreciated. Anybody knows how to connect to SF in the same way like this:


I deleted a picture from the Facebook Lookback Movie yesterday, and now it's gone. Know how to get it back?


Lately it's happening to me this:  After completing one or more "First Posts" reviews, I go back to the Review Section main page:   And the post counter shows that there are still posts to review. I click the link to review them, but there is nothing.  Refreshing the page doesn't solve the issue: it shows the wrong number again.


(semi)-Automatic pluralization around a citation

In my document, I will write something like this (using natbib, but that shouldn't matter too much):  \citet{reference} show that .....   which would render as     Jones et al (1990) show that....   (\citet in \natbib creates an 'author-list (year)' reference style)  Of course if {reference} was a single individual, I should have written  \cite{reference} shows that ....   rendering as     Jones (1990) shows that....   Since I'm lazy and can't take the extra 5 seconds to search the reference to see if it's a single author or not, is there conceivably an automated way to do pluralization ? Or some relatively simple macro that would look like   \IfRefIsPlural{reference}{show}{shows}


I see the following message when I login:  29 packages can be updated. 6 updates are security updates.  How can I perform the updates? I tried apt-get upgrade and some stuff was installed but the message still remains.


I want to get clientcontext in a visual sandbox webpart.  How can I do it without providing any credentials for url, as webpart will be on home page. I don't want to provide any credentials either, just want it to work like, SPContext.current....  string siteURL=”http://localhost“; ClientContext clientContext = new ClientContext(siteUrl);


There are currently no employees assigned to this work center.  or  There are no employees currently assigned to this work center.


Can you use WASD for movement in Diablo 3?

I have started playing a new character and the clicking is very intense. I have been thinking that maybe using WASD for movement would make it much easier, instead of having to click to move, click on target, etc.  Is there a way to use WASD in Diablo 3 for movement?


Remote start up a machine that is in the shut down state?

Possible Duplicate:          May I know how can one remote start up a machine that is in a shut down state?


Punishment for standalone anonymous down-votes

I think those people who just vilely down-vote a question and go away should receive some penalty on their reputation, because they do not deliver any knowledge to the community. It is a totally non-constructive "hate" position.   For example, I have some question . I am not specialist in physics and in real confusion I just asked to help me find a solution and instead got an anonymous down-vote.   I think such a "hate" behaviour should be punished. What do you think?


Do we need hypothesis testing when we have all the population?

From what I understand hypothesis testing is done to identify if a finding in the sample population is statistically significant. But if I have a census data, do we really need hypothesis testings? I was thinking may be I should perform multiple random sampling from the census data and see if there is any random behavior.


Under Edit profile and settings > Flair, for all 4 themes (Default, Clean, Dark, Hotdog) images are not displayed. The console is showing an error as:  Failed to load resource: the server responded with a status of 500 ()


Idiom for a person who is above any question

I read somewhere a sentence which said about a political leader that he is the "holy something" whose actions cannot be questioned.   The context was to describe that even though this man does bad things, due to his power people are afraid to question his actions. I can not remember the correct idiom, so please help. If you know any similar idiom that can be used in such a context, that would also be great.


Does there exist an isomorphism between the semigroups $S(4)$ and $\mathbb{Z}_{256}$?   $S(4)$ is the set of all maps from the set $X$ to itself and $X =\{1, 2, 3, 4\}$,  $S(4)$ is a semigroup under the composition of mappings, and $\mathbb{Z}_{256}=\{0, 1, 2, \dots , 255\}$ is the semigroup under multiplication modulo 256.


What is the total number of permutations of n digits where all digits will exchange their positions?

As we know, Total number of permutations of the digits 12345 is 5!.  Well, I am looking for another interesting fact. How many permutations among them are in the way that no digit is in its original position?  (For example, 54231 is one of such ones, where all the digits are in different positions from the original permutation 12345)  Thanks in advance. :-)


I have some XML data, I'm trying to store it in a variable and extract everything within <tag1> tags. I've tried this but it returns no output: $xmlData = '<xml foo foo foo>   <header> foo </header>   <tag1>     <tag2> foo </tag2>   </tag1>   <tag1>     <tag2> foo </tag2>   </tag1> </xml>'  $pattern = "<tag1>(.*?)</tag1>" [regex]::Match($xmlData,$pattern).Groups[1].Value  The desired output, where the indentations have been retained:   <tag1>     <tag2> foo </tag2>   </tag1>   <tag1>     <tag2> foo </tag2>   </tag1>


Is there a standard tripod mount?  Is it reasonable to assume that a given tripod will attach successfully to a given camera, or will I have to research my options?


If $G$ is a group in which $(ab)^i = a^ib^i$ for two consecutive integers $i$, for all $a,b \in G$, can we conclude that $G$ is abelian?

Problem:      If $G$ is a group in which $(ab)^i = a^ib^i$ for three consecutive integers $i$ for all $a,b \in G$, then $G$ is abelian. If we assume the relation $(ab)^i = a^ib^i$ for just two consecutive integers can we conclude that $G$ is abelian?    Thank all!


sequentially continuous on a non first-countable

Can you give me an example of a function which is sequentially continuous but not continuous? (I know that in first-countable spaces this is equivalent, but what about in spaces without this condition?)  Thank you :)


How do i display the whole error message?  I know its HTML response and not JSON..   how do i see the rest of the <br >  to see what the error messsage is?  01-04 15:59:00.710: E/JSON Parser(13508): Error parsing data org.json.JSONException: Value <br of type java.lang.String cannot be converted to JSONObject 01-04 15:59:00.720: E/AndroidRuntime(13508): FATAL EXCEPTION: AsyncTask #3 01-04 15:59:00.720: E/AndroidRuntime(13508): Process: com.example.coa, PID: 13508 01-04 15:59:00.720: E/AndroidRuntime(13508): java.lang.RuntimeException: An error occurred while executing doInBackground() 01-04 15:59:00.720: E/AndroidRuntime(13508):    at android.os.AsyncTask$3.done(AsyncTask.java:309) 01-04 15:59:00.720: E/AndroidRuntime(13508):    at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354) 01-04 15:59:00.720: E/AndroidRuntime(13508):    at java.util.concurrent.FutureTask.setException(FutureTask.java:223) 01-04 15:59:00.720: E/AndroidRuntime(13508):    at java.util.concurrent.FutureTask.run(FutureTask.java:242) 01-04 15:59:00.720: E/AndroidRuntime(13508):    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) 01-04 15:59:00.720: E/AndroidRuntime(13508):    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) 01-04 15:59:00.720: E/AndroidRuntime(13508):    at java.lang.Thread.run(Thread.java:818) 01-04 15:59:00.720: E/AndroidRuntime(13508): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String org.json.JSONObject.toString()' on a null object reference 01-04 15:59:00.720: E/AndroidRuntime(13508):    at com.example.coa.OfflineSV$SyncScans.doInBackground(OfflineSV.java:419) 01-04 15:59:00.720: E/AndroidRuntime(13508):    at com.example.coa.OfflineSV$SyncScans.doInBackground(OfflineSV.java:1) 01-04 15:59:00.720: E/AndroidRuntime(13508):    at android.os.AsyncTask$2.call(AsyncTask.java:295) 01-04 15:59:00.720: E/AndroidRuntime(13508):    at java.util.concurrent.FutureTask.run(FutureTask.java:237) 01-04 15:59:00.720: E/AndroidRuntime(13508):    ... 3 more


Between you and me Suhani is intelligent.  Neither he nor his brother can walk faster than me. Whom did you mean to hurt by your unkind remarks except Sita and me?    In these sentence book uses me (objective form of I). But I find one more sentence from book which uses I(not  me).   Your husband doesn't believe that you are older than I.   In sentence 2 after preposition than it uses me while in sentence 4 its uses I after than. why? I think there should be I(instead of me) in sentence 3 and me(instead of I) in sentence 4. But i know I am wrong. I am confused with use of me and I. So please  help me to understand this.


difference in meaning depending on placement of "already"

Maybe the bus already left. Maybe the bus has already left.  Maybe the bus has left already.    I am not a native speaker so don't know if there is any difference among those three sentences, not knowing if there is any grammatical error as well.   Which one is the best??


Is there any method to factorize quadratic polynomial other than cross-method?

My teacher taught me and my classmate to use cross-method to deal with quadratic polynomial, it is good if it involved smaller numbers like this: $$x^2+4x+3$$ after factorization, $$(x+3)(x+1)$$ If it involved a bigger number, it often wasted time to factorize it and I want to know if there is any faster method to factorize quadratic polynomial.


Php, Jquery file why is $_files[] empty?

I'm trying to make an image uploader with php and jquery but i can't get it to work. My question is Why is $_FILES['image']; empty?  Heres my code    Html index.php   <form id="uploadForm" action="" method="post">  <input name="image" type="file" id="image" />  Upload  </form>

   jQuery javascript.js    function uploadimages(){    $.ajax({       type: 'POST',       url: '../ajax/upload.php',       processData: false,       contentType: false,       cache: false,       data: new FormData(this),        success: function (data) {          $("#uploadresult").html(data);        },     });   }   $("#uploadforms").click(function(){     uploadimages();   });   Php Upload.php   <?php  if(!empty($_FILES['image'])) {      echo "Upload image";  }  else{      echo "Error";  }  ?>


If $a$, $b$ and $c$ are real numbers such that $a^2+b^2+c^2=1$ , then how to prove that  $ \dfrac {b^2c^2}{1+a^2} +\dfrac {c^2a^2}{1+b^2}+\dfrac {a^2b^2}{1+c^2} \le \dfrac 14 $  ( don't apply Schur's inequality )? Thanks.


There doesn't seem to be a way to edit the subject line in received mail.  I've tried forwarding it to myself, or reply, but neither has a drop down menu I can find that allows me to edit the subject.


"Deleted by…" notice still shows the old unanonymized username

Here's a user who posted a question on Meta about deleting their account.    Can you guess the old username? It's the same user who deleted the question.  I believe this should be anonymized as well.


Can I travel to Hungary visa-free with a US refugee travel document?

I am a green card holder based on asylum and hold a US refugee travel document. Can I travel to Hungary visa-free for a short stay?


sequence of bibliography items getting ramdomly altered

I'm trying to write bibliography using biblitex and have declared 15 items. eg.:   @Article{1,   title={article 1},   author={name},   booktitle={}   }  @Article{2,   title={article 2},   author={name},   booktitle={}   }  @Article{3,   title={article 3},   author={name},   booktitle={}   }   normally its expected output of this to be      [1] article 1    [2] article 2    [3] article 3   but I'm getting random output as:     [1] article 3    [2] article 1    [3] article 2   Is there any way to get the list in ordered manner..  EDIT: my main tex file is as: (report.tex)  \documentclass[12pt,oneside,a4paper]{report} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{fullpage} \usepackage{graphicx} \usepackage{cite} \usepackage{float} \usepackage{textcomp} \usepackage{pdfpages} \usepackage{graphicx} \textwidth 6.5in \textheight 9.5in \bibliographystyle{plain} \begin{document} \pagenumbering{arabic} \input{p1.tex} \bibliography{bibli.bib} \end{document}


$|f| + |g| \equiv c$ in set Ω where $f,g$ holomorphic in Ω

Prove that if $|f| + |g| \equiv c$ ($c\in \Re$) in set $Ω\subseteq C$  where $f,g$ holomorphic in Ω then $f\equiv a$ , $g\equiv b$ where $a,b\in C$. Well the real problem was to show it for $\sum_{i=1}^{n}|f_{i}| \equiv c$ but I think i should starting by proving it for 2 of them.(This was once given to us on an exam as the only problem in it and it was valuated with 100% of the grade)


What are the rules for magical duelling?

In the Harry Potter universe, I'm sure the rules for a magical duel would be decided on a case by case basis. However, for an institutionalised duelling organisation, what rules would apply to the duels?  There are plenty of offensive, safe spells that exist in the universe (Confundo, Expelliarmus) that are useful in a duelling environment, but even outside of the Unforgivable Curses there are many spells that could severely damage or even kill another wizard. What rules and spell limitations would likely be in place?


Is it possible to place a matrix in a Section Heading?  This is my current attempt:  \section{Analyze the invertible $M= \left[ \begin{array}{rr}2 & 6 \\ 2 & 4 \end{array} \right]$ matrix by doing the following:}   I want it to read:   Any help is appreciated as I am new.


Necessary and sufficient for vector field to be conservative

I found the following statement in  youtube lecture:     Let $A\subset \mathbb{R}^n$ be open and convex and let   $f:A\to\mathbb{R}^n$ be continuously differentiable vector field.      Then $f$ is conservative iff the Jacobian of $f$ is symmetric on $A$.   I couldn't find a citable reference for this (for $n\ne3$).  Does someone have one?  Update: I'm still looking for a citable reference.


I consider this question unanswered as I would like a minimal example. The examples I've seen are for very complex shapes and I get lost in the immensity and complexity of the code. This question is different from the red square solution as I'd like to be able to have a certain compat in pfgplots. Also, I'd like to be able to put in exact values for a coordinate point (sqrt(75) for example). I get an error when I do that, but putting something in like 8.66 works just fine. This is not a duplicate, no more reporting it as one, please.  \documentclass[11pt]{exam}  \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=1.9}  \begin{document}  \begin{tikzpicture} \draw (-5,0) -- (5,0); \draw (0,0) -- (0,5); \end{tikzpicture}  \end{document}   What would be the simplest way to mark 90 degrees on this diagram.


What is Golden Ratio and how do we implement it in designs?

What is Golden Ratio? how do we use it during interface designing?


If $\lim_{n\to\infty} x_n=L$ and $y_n=\frac{x_1+x_2+x_3+\cdots}{n}$, why would $\lim_{n\to\infty} y_n=L$?

If $\lim_{n\to\infty} x_n=L$ and $y_n=\dfrac{x_1+x_2+x_3+\cdots+x_n}{n}$, why would $\lim_{n\to\infty} y_n=L$ ?  I've been trying to usee Squeeze theorem but it doesn't work. Any other way to prove/derive the above claim?   P.S: $\{x_n\}$ is a sequence


Selenium Webdriver: No such element exception even though element gets available after waiting for some time

I've been keep on getting NoSuchElementException whenever I try to get an web element. I know that the web element becomes present after some time. So, I've explicitly waited for 5-10 seconds until the web element gets loaded but even then I am still getting NoSuchElementException. Does anyone know how to prevent this exception? Here is my code:  String s=System.getProperty("user.dir"); System.setProperty("webdriver.chrome.driver", s+"\\Chrome090615\\chromedriver.exe"); ChromeDriver driver=new ChromeDriver(); try{     driver.manage().window().maximize();     driver.get("http://site21.way2sms.com/content/index.html");      driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);     driver.findElementByXPath("//*[@id='username']").sendKeys("9XXXXXXXXX");     driver.findElementByXPath("//*[@id='password']").sendKeys("XXXX");     driver.findElementByXPath("//*[@id='loginBTN']").click();     if(driver.findElementByXPath("//*[@id='ebFrm']/div[2]/div[1]/input").isDisplayed()==true)     {         driver.findElementByXPath("//*[@id='ebFrm']/div[2]/div[1]/input").click();     }     else {         new WebDriverWait(driver, 5).until(ExpectedConditions.visibilityOfElementLocated(By.id("ebFrm")));         System.out.println("Waiting for 5 secs");     }     boolean ispresent=driver.findElementByXPath("//*[@id='sendSMS']/a").isDisplayed();     driver.findElementByXPath("//*[@id='sendSMS']/a").click();     System.out.println("Clicked sendSms");     driver.findElementByXPath("//*[@id='sendSMS']/a").click();   I'm getting exception for the 'sendSMS' id. Whenever it tries to find this element, it throws NoSuchElementException all the time!


What can I do to improve a business-oriented network that only has access to 3 6Mb/1.5Mb lines with 15-30 clients?

I work at an e-commerce based business in a 16k warehouse. The only available ISP solution is AT&T, with each 6Mb/1.5Mb line costing $50 and fiber optic being an option for $800/mo at 20Mb/20Mb.  Around 15 clients are wired throughout the offices, and another 10 or so exist wirelessly.  I know very little about the stack as it was setup before I arrived, but I am very aware of the real problem we have: it's slow. I don't know if it is download (SpeedTest shows 18Mb down), upload (I was told you can only combine download speeds, not uploading speeds, so SpeedTest shows 1.5Mb) or latency (SpeedTest does not show anything abnormal).  We are using a PepLink to load balance the 3 lines into one solution, but I fear it may be set up incorrectly. I don't know how else to explain why the lag that exists is randomly occurring.  What are common solutions here?  Any help is appreciated. Thanks!


We know that the probabilty of having boy is $\frac{3}{4}$ and every family has kids until they have boy, after boy they have no children, what is the ratio between boys and girls in population?  I suppose we want to calcualte this using expected value.  Every family has 1 boy so $E(boys) = 1 $  However i am not sure how to calculate expected value of girls. The boys have exponential distribution. So we can calculate probabilty of 0..1... inf girls by calculating "what is the probability that xth child is boy" e.g  $\sum_{i = 1}^{\inf} (\frac{1}{4})^{i-1}*\frac{3}{4}$  and expected value by   $\sum_{i = 1}^{\inf} i* (\frac{1}{4})^{i-1}*\frac{3}{4}$  my question is, this formula basicly tell us expected value of of boys e.g $x *P(x)$ where x is on what attempt family had boys * probability that it was on that attempt.  This does not tell us nothing about girls. So if i modified it to  $\sum_{i = 1}^{\inf} i* (\frac{1}{4})^{i}*\frac{3}{4}$  This should tell us $x * P(x)$ where x = number of girls and P(x) = probability that family had boys on i + 1 attempt = probability that family had i girls.  And just adjusting it to   $\frac{1}{4}*\sum_{i = 1}^{\inf} i* (\frac{1}{4})^{i-1}*\frac{3}{4} = \frac{1}{4} * E(boys) = \frac{1}{4} * \frac{1}{\frac{3}{4}} = \frac{1}{4} * \frac{4}{3} =\frac{1}{3}$  So boys:girls should be $1:\frac{1}{3} = 3:1$  But i am not sure if logic behind this is correct. Can i adjust the formula this way for it to make sense?  Thanks for answers.


When people say about wave-like nature of a photon, what do they mean:   Pressure-like wavefront - it moves as a sphere (or a bulge on a surface) and then if we measure pressure at one single point (after the front moved further) - it will raise and fall "drawing" a wave. Something like an arrow - it moves in the space, but it also has internal vibrations. Different points of it have different curvature. Something that just moves along one axis, but also moves up-and-down along the other axis. Something else?   Option #1 means the photon itself doesn't "know" anything about waves - the wave is the impact that was left after it. Option #2 and #3 mean that crests/troughs are intrinsic to the photon.


using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;  namespace FloatConversion {      class MainApp     {         static void Main(string[] args)         {             float a = 69.6875f;             Console.WriteLine("a : {0}", a);              double b = (double)a;             Console.WriteLine("b : {0}", b);              Console.WriteLine("69.6875 == b : {0}", 69.6875 == b);              float x = 0.1f;             Console.WriteLine("x : {0}", x);              double y = (double)x;             Console.WriteLine("y : {0}", y);              Console.WriteLine("0.1 == y : {0}", 0.1 == y);                Console.ReadLine();         }     } }   I just started learning C#. As a Newbie, I was wondering that what a : {0} means in Console.WriteLine() method.  similarly, what does 69.6875 == b : {0} mean? how can it be displayed as a boolean?  Thank u in advance.


How to test performance and load for Silverlight application in Jmeter

Can anyone provide a step by step process explaining how to test performance and load in Jmeter for a Silverlight application?


What is the difference between these two lines of code

What is the difference between:   p = (int*) malloc (5*sizeof(int));   vs  int *ptr = new int[5];   Is the top one C's version of memory allocation for a pointer to point to create a spot in memory for 5 integers? Then the bottom is C++'s version? Where do they appear in memory (if they do).


How to fix E: Internal Error, No file name for libc6, Like that will show If I do:  $ sudo apt-get upgrade or $ sudo apt-get install package    This is example :  $ sudo apt-get upgrade Reading package lists... Done Building dependency tree        Reading state information... Done The following packages have been kept back:   ginn hplip hplip-data libdrm-dev libdrm-intel1 libdrm-nouveau1a   libdrm-radeon1 libdrm2 libgrip0 libhpmud0 libkms1 libsane-hpaio   libunity-2d-private0 libunity-core-5.0-5 linux-generic-pae   linux-headers-generic-pae linux-image-generic-pae printer-driver-hpcups   printer-driver-hpijs unity unity-2d-common unity-2d-panel unity-2d-shell   unity-2d-spread unity-common unity-services The following packages will be upgraded:   alsa-base firefox firefox-globalmenu firefox-gnome-support firefox-locale-en   icedtea-6-jre-cacao icedtea-6-jre-jamvm icedtea-7-jre-jamvm libdbus-glib-1-2   libdbus-glib-1-dev libgnutls-dev libgnutls-openssl27 libgnutls26   libgnutlsxx27 libssl-dev libssl-doc libssl1.0.0 linux-sound-base   openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib openjdk-7-jdk   openjdk-7-jre openjdk-7-jre-headless openjdk-7-jre-lib openssl sudo 27 upgraded, 0 newly installed, 0 to remove and 26 not upgraded. 3 not fully installed or removed. Need to get 0 B/126 MB of archives. After this operation, 3,072 B of additional disk space will be used. Do you want to continue [Y/n]? y E: Internal Error, No file name for libc6   I have follow instruction from here  . Which do:  sudo apt-get update sudo apt-get clean sudo apt-get install -fy sudo dpkg -i /var/cache/apt/archives/*.deb sudo dpkg --configure -a sudo apt-get install -fy sudo apt-get dist-upgrade   But stuck with same error E: Internal Error, No file name for libc6 when do command  sudo apt-get install -fy.  And I've been looking on google, but have not been successful until now.  Thanks.


How can I create a private cloud computing environment using ubuntu; I have installed ubuntu desktop and tried converting to ubuntu-server.  What commands or steps that i need to follow to setup a basic version of cloud computing that can be exposed to external users (internet)


Show that $x_{n+1}-\dfrac{x_n}{2}$ converges to zero implies that $(x_n)_n$ also converges to zero.

Let $(x_n)_n$ be a sequence of real numbers such that $$\lim\limits_{n\rightarrow \infty}\left( x_{n+1} - \dfrac{x_n}{2}\right)=0.$$ Show that $(x_n)_n$ must also converge to zero.     $\textbf{My Attempt:}$   My original idea was to use the triangle inequality and the fact that $$\lim\limits_{n\rightarrow \infty}\left( x_{n+1} - \dfrac{x_n}{2}\right)=0$$   to show that the sequence $(x_n)_n$ is Cauchy and hence converges to some real number $a$, which would give me $$\lim\limits_{n\rightarrow \infty}x_n=a=\lim\limits_{n\rightarrow \infty}x_{n+1}\implies a-\dfrac a 2= \lim\limits_{n\rightarrow \infty}\left( x_{n+1} - \dfrac{x_n}{2}\right)=0\implies a=0.$$ However, I'm having trouble showing that $(x_n)_n$ is Cauchy.   Any suggestions/hints would be greatly appreciated. Thanks!


Unable to access old account (can it be merged)

I had no idea I had the following old zombie account on SO until a friend asked if it was me and no idea what email address it was created with. Any idea how I would merge it into my current account (the one this is posted under). I'm wondering whether maybe it was created using @googlemail.com and when this changed to @gmail.com my account spit?  Regardless - I can't seem to get into it.  If there was a way I could log in using just the userId 82882 I could probably remember the password (assuming it's not solely accessible via an OpenID account I'm no longer aware of)


assigning decimal value to double, getting garbage value when multiplying then subtracting

why do I get garbage value when I do this?  int main(){ double shareOutstanding = 3.0000000; double percentageToSell = 0.3542101; percentageToSell *= 10;  percentageToSell -= shareOutstanding; //should be 3.542101 - 3.000000  cout << setprecision(16) << percentageToSell << endl; }   It outputs the value I want but with garbage value at the end. output: .5421010000000002 (The 2 at the end is garbage.)  instead of: .542101 (The value I really want.)  I think the "percentageSell *= 10;" part screws it up. I NEED this line however.  help please.


This works:   This does not (blank image):   Notice the 1.1.1 -> 1.3.0 and SRS->CRS are the only changes.  Is this a problem with the service or is my second URL incorrect?  I've observed the same issue with other WMS services:  Works:   Does not work (blank image):   So I'm assuming it's an issue with my 1.3.0 URLs.


How do I log in as root?  I can't use aptitude unless I am root. I have broken / held packages that I can't install.


VF Page: Best way to avoid datepicker focus on load?

I have two date fields on my Visualforce page and on occasions the datepicker/calendar pops up upon page load. I understand one way to prevent this is to use javascript as suggested below:  <input id="hiddenElementId" type="hidden" /> <script type="text/javascript"> window.onload = setFocus function setFocus() {          document.getElementById("hiddenElementId").focus(); } </script>     However this post is pretty old now, is this still considered the best way to do this?


I have written a trigger on custom object Order_Item__c. This object has a custom field Shipping_Number__c. When the user enters value in Shipping_Number__c and clicks save, the contact lookup field will automatically populate with contact record which has same shipping number as the value entered by the user.  All the contact records have the shipping customer number. Now custom object order item has a field called shipping customer number. When user enters the value in it, the trigger checks the contact record which has same number and populate the contact lookup field on order item object. The trigger is running as it is supposed to run. I am unable to achieve code coverage.  trigger updatelookupfield on Order_Item__c (before update, before insert)  {  Set<String> shippingNumbers = new Set<String>();  for (Order_Item__c collectNumFromOrder : Trigger.new) {     shippingNumbers.add(collectNumFromOrder.Shipping_Customer_Number__c); }    List<Contact> contactList = [SELECT id, Shipping_customer_number__c FROM Contact WHERE Shipping_Customer_Number__c IN :shippingNumbers];  Map<String, Contact> shippingNumToContactMap = new Map<String, Contact>();  for (Contact c : contactList) {     shippingNumToContactMap.put(c.Shipping_customer_number__c, c); }  for (Order_Item__c o : Trigger.new) {        if (o.Shipping_Customer_Number__c != null) {         o.RSM_Shipping_Contact__c = shippingNumToContactMap.get(o.Shipping_Customer_Number__c).id;     }     else {         o.RSM_Shipping_Contact__c = null;     }  } }   Test class:  @isTest  public class testupdatelookupfield{ Static testMethod void insertOrderItem() {   // create and insert the contact record - this part is correct     contact c = new contact();     c.Shipping_Customer_Number__c = '0987654';     c.lastName = 'Surekha';    insert c;       // create an order item and insert it     Order_Item__c op = new Order_Item__c();      op.Name = 'Test Varun Order';     op.Shipping_Customer_Number__c = '0987654';     insert op;       list <contact> conlist = [Select id,name from contact where Shipping_Customer_Number__c ='0987654'];     list<Order_Item__c> orderlist = [Select id,RSM_shipping_contact__c,Shipping_Customer_Number__c from Order_Item__c ];         for(Order_Item__c o: orderlist)        {            for(contact ct:conlist)            {            o.RSM_Shipping_Contact__c = ct.id;            }             System.assertEquals('Surekha', o.RSM_Shipping_Contact__c);        }  } }


Is it possible to transfer my account reputation to anybody? If it is legal, how? Because if I want close or deleted my account.  Note:  If I deleted my account, what would happen to my account points, privileges and badges, etc.?


I know you can create a rounded-corner rectangle; but, how do you create a triangle with rounded corners in Photoshop?  I am actually interested in making it from scratch, not basing it on a custom shape that is available in Photoshop. Thanks.


Get rid of all ##### errors at once in excel

In Excel, I usually solve ##### errors by double-clicking offending column headers. However, this can get a bit tedious when there are multiple error columns. Is there a quicker way to solve this?


Store git credentials permanently and encrypted using a keystore in Ubuntu

Storing git credentials with the command:  git config credential.helper store   stores them unencrypted in a plain text under ~/.git-credentials.  In  and , GitHub Help suggests to use keystores which encrypt your credentials using osxkeychain and wincred respectively. In Linux however there is  about how to encrypt your git credentials. Are you aware of a way on how to do that ?


It might be nitpicking but the action bar text is covering the button shadow which is quite annoying to see.


Can't access apache-powered website at localhost

I was trying to enable php, mysql, apache on my macbook pro running yosemite. I followed this   but it doesn't run. What's wrong in setting up a local web server on OS X  Please help.....I get an error saying  is not available  Abhimanyus-MacBook-Pro:~ abhimanyuaryan$ cat /etc/hosts ## # Host Database # # localhost is used to configure the loopback interface # when the system is booting.  Do not change this entry. ## 127.0.0.1       localhost 255.255.255.255 broadcasthost #::1            localhost     Abhimanyus-MacBook-Pro:~ abhimanyuaryan$ ls -lad /Library/WebServer/Documents /Library/WebServer/Documents/index* drwxr-xr-x  8 root  wheel  272 Feb 18 13:29 /Library/WebServer/Documents -rw-r--r--  1 root  wheel   49 Feb 18 13:29 /Library/WebServer/Documents/index.html -rw-r--r--  1 root  wheel   67 Jan  6 14:08 /Library/WebServer/Documents/index.html.en  Abhimanyus-MacBook-Pro:~ abhimanyuaryan$ ps aux| grep http abhimanyuaryan  26010   0.0  0.0  2432772    664 s000  S+   10:21PM   0:00.00 grep http


Why is pressure-volume work calculated from the external pressure if the work is done by the gas?

Greeting everyone, The formula for pressure-volume work I have been given in the textbook I am using to learn general chemistry (Chemistry.A.Molecular.Approach.Global.Edition.4th.Edition, Nivaldo J.Tro) is as follows:  w = -PΔV  where P is the external pressure. Why is the external pressure used if the force is from the expanding gas, not from the external atmosphere?  N.B: The system is a gas trapped in cylinder between a dead end and a piston. We assume that the piston is massless. We assume that the pressure is constant.


Past simple vs past perfect; British- vs American English

According to  the use of past simple and present perfect is quite strict in British English, while in American English you can normally use simple past instead of present perfect:  In British English, the use of Simple Past and Present Perfect is quite strict. As soon as a time expression in the past is given, you have to use Simple Past. If there are no signal words, you must decide if we just talk about an action in the past or if its consequence in the present is important. Note that the following explanations and exercises refer to British English only. In American English, you can normally use Simple Past instead of Present Perfect. We cannot accept this in our exercises, however, as this would lead to confusions amongst those who have to learn the differences.  In the case of the noun to choose, if I'm correct, the difference between "did choose" and "have chosen"; the second is more definitive than the last. Can somebody give me a clear example of where the British use diverges from American English? As a non-native speaker, I find it hard to see/feel the difference between its use in British- and American English respectively.


Add Event Listner Not Firing after Click

I am trying to create a tree Structure Where I create a Parent and Children on button Click. HTML created on Button Click let createChild = document.getElementById("addChild"); createChild.addEventListener("click", function() {   let li = backend.querySelectorAll("li");   let lastLi = li[li.length - 1];   let parentLi = lastLi;   parentLi.innerHTML = "";   parentLi.innerHTML += `<span class ="caret-down" >Parent</span>            <ul class='nested'>            <li>Child</li>            </ul>`; });  But When I want To create a toggle function for Caret.I want to call All Caret class and launch a ClickEvent on it. But Click Event Not Working ClickEvent Code let carets = document.getElementsByClassName('caret-down'); for (var i = 0; i < carets.length; i++) {   carets[i].addEventListener('click', function() {     debugger;     this.classList.toggle('caret')     parent = this.parentElement;     parent.querySelector('.nested').classList.toggle('active')   }) }


Is it possible to Bulk inject contacts in a journey using API ?  I tried to use the contactEvents method but i have a 500 server error.  contactEventsTest is a DE created using the template "Event DE" from the wizard.  Here is my payload :  {    "eventDefinitionKey": "APIEvent-xxxxxx-xxxxx-xxxxx-xxxx", "data": [{     "name": "contactEventsTest",     "id": "e856d8a7-e7a1-e711-80e3-1402ec819dd8",     "items": [{         "values": [             {             "name": "ContactKey",             "value": "ContactKey1TEST"         },         {             "name": "Gain",             "value": "123"         }]     },     {         "values": [             {             "name": "ContactKey",             "value": "ContactKey2TEST"         },         {             "name": "Gain",             "value": "321"         }]     }] }]}


Trying to use `pwd` inside an alias giving unexpected results

If I want to search a file in the system I use the following command:  sudo find `pwd` -name filename.ext   I want to make an alias for an easier word like search, so I used the command:  alias search "find `pwd` -name "   The problem is that the command translates the pwd part to the actual path i'm in now. When i type simply alias to see the list of aliases I see:  search   find /path/to/my/homedir -name   How can I avoid this?


Problems upgrading Ubuntu 12.10 to 13.04

I'm trying to upgrade my Ubuntu release from 12.10 to 13.04, having successfully upgraded to 12.10 yesterday. With the intention of then moving to 13.10.  I am up to date with other software updates.  Using the Update Manager I am offered to upgrade the release, but this is offering an upgrade to 13.10 instead of the expected 13.04.  When selecting upgrade this does in fact attempt to upgrade to 13.10 'Saucy', the application tells me off for doing so, rightly so, and sends me away.  Any ideas how I can upgrade to 13.04 firstly?


Nested ANOVA alternative for heteroscedastic data (Nested Welch ANOVA)

Question:  Is there an equivalent of Nested -ANOVA for data which fails ANOVA requirement?  Is it possible to perform in R?    I am doing an analysis of large data set.   I have three groups (Genotypes: Wild type, Heterozygous , Homozygous mutant). Each group has data from >10 animals. For each animal, I have 500+ independent observations (example: Volume of 500 different retinal cells).   Based on Levene's test between the three groups, I see I cannot do ANOVA. I have decided to do a Welch ANOVA and I do see significant difference. (I used the oneway.test() function.)  As my 500+ observations are nested inside individual animals, I think I should perform nested Welch ANOVA for my data set.  How can I do nested Welch ANOVA in R?  Could you please show me an example with a similar data?  mydata <- read.table(header=TRUE, text= "Tech Rat Protein Janet 1   1.119  Janet 1   1.2996  Janet 1   1.5407  Janet 1   1.5084  Janet 1   1.6181  Janet 1   1.5962  Janet 1   1.2617  Janet 1   1.2288  Janet 1   1.3471  Janet 1   1.0206  Janet 2   1.045  Janet 2   1.1418  Janet 2   1.2569  Janet 2   0.6191  Janet 2   1.4823  Janet 2   0.8991  Janet 2   0.8365  Janet 2   1.2898  Janet 2   1.1821  Janet 2   0.9177  Janet 3   0.9873  Janet 3   0.9873  Janet 3   0.8714  Janet 3   0.9452  Janet 3   1.1186  Janet 3   1.2909  Janet 3   1.1502  Janet 3   1.1635  Janet 3   1.151  Janet 3   0.9367  Brad  5   1.3883  Brad  5   1.104  Brad  5   1.1581  Brad  5   1.319  Brad  5   1.1803  Brad  5   0.8738  Brad  5   1.387  Brad  5   1.301  Brad  5   1.3925  Brad  5   1.0832  Brad  6   1.3952  Brad  6   0.9714  Brad  6   1.3972  Brad  6   1.5369  Brad  6   1.3727  Brad  6   1.2909  Brad  6   1.1874  Brad  6   1.1374  Brad  6   1.0647  Brad  6   0.9486  Brad  7   1.2574  Brad  7   1.0295  Brad  7   1.1941  Brad  7   1.0759  Brad  7   1.3249  Brad  7   0.9494  Brad  7   1.1041  Brad  7   1.1575  Brad  7   1.294  Brad  7   1.4543  ")


Multiple Bluetooth speakers simultaneously

I would like to pair two sticky dude Bluetooth speakers, at one time with my iPhone. With two of them at once it would be like stereo sound. Is there an app or something maybe?


I have run across such a sentence:     Yesterday I was ill, so I went to the doctor's.   What is the function of possessive here, that is doctor's?


pgfplots and using axis cs to add points

I am trying to mark two inflection points using a foreach loop in a pgfplot, but it isn't working.  \documentclass[tikz]{standalone} \usepackage{pgfplots} \pgfplotsset{compat = 1.10}  \begin{document} \begin{tikzpicture}   \pgfmathsetmacro{\infx}{1/sqrt(2)}   \pgfmathsetmacro{\infy}{exp(-.5)}   \begin{axis}[     xmin = -3,     xmax = 3,     ymin = -0.1,     ymax = 1.05,     domain = -4:4     ]     \addplot[blue, samples = 500, smooth] gnuplot {exp(-x^2)};      \foreach \x/\y in {\infx/\infy, -\infx/\infy}{       \draw[red] (axis cs: \x, \y) circle[radius = .025];     }   \end{axis} \end{tikzpicture} \end{document}   I am being told:  Undefined control sequence.^M <argument> axis cs: \x ^M                        , \y ^M l.34   \end{axis}^M


I would like to make a venn diagram with Tikz, but instead of labeling A, B or C each circle I'd like to give some other names. However, having read the manual I've changed their labels but each new word doesn't fit in each shape.  My code so far is:  \documentclass[12pt,a4paper]{article} \usepackage[english,greek]{babel} \usepackage{ucs}  \usepackage[utf8x]{inputenc} \usepackage{venndiagram} \begin{document} \begin{venndiagram3sets}[labelA={υλικά}, labelB={καταναλωτικά}, labelC={διαρκή}, labelABC={ΑΑΑΒΒΒΨΨΦΦΔ}] \fillACapBCapC \end{venndiagram3sets} \end{document}   My diagram I'd like to be like:   How can I change how big a circle can be?


Running pi.sh using for loops for N times

how to run the pi.sh for certain number of times using for loop?  to test this write a script that runs pi.sh seven times with values of N ranging from 1 through 7.


What are the strategies I can use to prove $f^{-1}(S \cap T) = f^{-1}(S) \cap f^{-1}(T)$?

$f^{-1}(S \cap T) = f^{-1}(S) \cap f^{-1}(T)$  I think I have to show that the LHS is a subset of the RHS and the RHS is a subset of the LHS, but I don't know how to do this exactly.


In Star Trek, the Borg Queen is said to be from Species 125.  Has this species been identified? Or has it been assimilated before the rest of the galaxy could encounter them?


How to improve a model which shows a drift effect in the residual plot?

My data has 1700 rows and 7 features. I have built a linear regularized (Lasso) model (since I started with around 600 features which were highly correlated). After choosing the best model, I observe that there is drift trend in my residual plot.      Now this kind of trend violates normal error assumption of linear regression.    We are overestimating the lower values and underestimating higher values. What steps can I take to handle this issue? Is it happening because of scarcity of data at both ends?   Please let me know if you need more information about the problem or data.


In Waclaw Sierpinski's book Elementary Theory of Numbers on page 168 there is the following exercise:  "Exercises. 1. Prove that for natural numbers $n$ we have $d(n) \leq 2\sqrt{n}$," where $d(n)$ is the number of divisors of n.  As a hint right below is given: "The proof follows from the fact that of two complementary divisors of a natural number $n$ one is always not greater than $\sqrt{n}$.  I understand the hint but I don't know how it can be used to prove $d(n)\leq 2\sqrt{n}$.  Complementary divisors are pairs of divisors that when multiplied gives the number that is to be divided. For example the number $120$ has the complementary divisors: \begin{align*} & 1, 120 \\ & 2, 60 \\ & 3, 40 \\ & 4, 30 \\ & 5, 24 \\ & 6, 20 \\ & 8, 15 \\ & 10, 12 \\ \end{align*} How do you prove that $d(n) \leq 2\sqrt{n}$?


mapping a string to its equivalent digits in java

I am trying to create a program in java which asks the user to enter a string, the number equivalent of the string is then given as the output. eg ABC(2), DEF(3), GHI(4), JKL(5), MNO(6), PQRS(7), TUV(8), WXYZ(9). my code is below. The problem is once the user inputs their string to be converted I get no output(and no errors). I was wondering if someone could have a look and give me some advice. what i am trying to do is turn the string that the user has entered into an array and then use a for loop with nested if statements to go through the array and whatever letter there is in [i] give the equavilent number. but the system.out isnt working?  import java.util.Scanner;   public class keyPad {  public static void main(String[] args) {     // TODO Auto-generated method stub      System.out.println("Enter a string:");     Scanner userInput = new Scanner(System.in);          String convertString = userInput.next();      int length = convertString.length();     String[] stringArray = new String[length];       for(int i=0; i<length; i++){          if(stringArray[i] == "a" || stringArray[i] == "b" || stringArray[i] == "c"){             System.out.println("1");         }          if(stringArray[i] == "d" || stringArray[i] == "e" || stringArray[i] == "f"){             System.out.print("2");         }          if(stringArray[i] == "g" || stringArray[i] == "h" || stringArray[i] == "i"){             System.out.print("3");         }          if(stringArray[i] == "j" || stringArray[i] == "k" || stringArray[i] == "l"){             System.out.print("4");         }          if(stringArray[i] == "m" || stringArray[i] == "n" || stringArray[i] == "o"){             System.out.print("5");         }          if(stringArray[i] == "p" || stringArray[i] == "q" || stringArray[i] == "r" || stringArray[i] == "s"){             System.out.print("6");         }          if(stringArray[i] == "t" || stringArray[i] == "u" || stringArray[i] == "v"){             System.out.print("7");         }          if(stringArray[i] == "w" || stringArray[i] == "x" || stringArray[i] == "y" || stringArray[i] == "z"){             System.out.print("8");         }     } }  }


I want to create 2 diferente autonumbers on Quote for two diferent Record Types.  It is possible to do this action on Process Builder with the Condition PriorValue?  E create 2 new Field (type number) 1 for each record type in order to Store this information.  It is possible or the only wau to do is with Custom Settings e Triggers?  Tks for the help.


Prove that every triangle-free graph is $\lceil 2\sqrt{n}\rceil$ colorable


I've implemented an application for Ubuntu Touch, using QML. How can I create a "package"(something like APK in Android) for the app?


Android, getting the text from an edittext

I am learning to program in Android and I have a question.  I have an application with a TextView, a Button and a EditText and I want my application to: I open it, I type something in the edittext and when I press the button, I want to check the text in the edittext if it's a valid email (using regular expressions) and display a message accordingly in the textview.


Heisenberg's uncertainty principle derivation in a ring

But now suppose the space is a ring of length $L$, it seems the derivation could work out exactly the same and we get $$\Delta p \Delta x \geq \hbar/2.$$  But since $\Delta x$ is limited, and if we choose an eigenstate of momentun, we can actually achieve $$\Delta p \Delta x = 0.$$  What's wrong here?


Has anyone successfully installed ubuntu on a Lenovo Y410P

I see lots of posts on here about folks having major issues with installing Ubuntu on a Lenovo Y410P. Has anyone successfully installed Ubuntu with no major issues?


How to prove that a Group $G$ with order $p^2$ must be a abelian group(where p is a prime)?

I consider that the elements in $G$ only have two cases:  1) $G$ has an element $a$ with order $p^2$ then it's abelian.  2) $G$ has an element $a$ with order $p$, then we have a subgroup $<a>$ and choose another element $b$ $\notin <a>$ then we have $G = <a,b>$ but under this circumstance, how to prove that $<a,b>$ is abelian?  Edit: With the help of the comments posted by @user1729 and @JohnHughes, I may have a solution:  Consider $Z(G)$, since the order of $G$ is $p^2$ then we know $G$ has nontrivial center, also the center of $G$ is a normal subgroup of $G$, we get the followings results:  (1) $Z(G)$ is abelian with order prime $p$ (2) $G/Z(G)$ has order prime $p$ then is abelian.  Using(1) and (2) we know $G$ is abelian.  Edit: The last edit is wrong, since I do not use that $Z(G)$ is generated by a single element $a$ and $ab = ba$ then $G = <a,b>$ is abelian.


A bipartite graph with a perfect matching has a vertex with each edge contained in a perfect matching

A matching or independent edge set in a graph is a set of edges without common vertices.    A perfect matching (also called 1-factor) is a matching which matches all vertices of the graph.    a bipartite graph (or bigraph) is a graph whose vertices can be divided into two disjoint sets and (that is, and are each independent sets) such that every edge connects a vertex in to one in.    Now imagine a bipartite graph like G which has a perfect matching. Prove that there exists a vertex in G like V such that every edge connected to G is in a perfect matching.  Note : I tried to prove it but i have nothing to start with ! Thanks in advance.  Edit : The graph is a simple undirected graph and i don't know anything about "strongly" connected graphs.


If EditText.getText().ToString() == "" dont work;

Here is my code:  if(editText.getText().toString() == ""){    editTextBenefaction.setText("0"); }   Why he didn't work?


Imagine a high speed rocket, traveling past a star. In the rocket's reference frame, the star's length is contracted. This is a lot a mass in a thin line, so it the rocket's reference frame, could it become a black hole? If not, what am I missing?


I'm wondering whether there any nice identities (or relationships) that can simplify or possibly compact the following expressions:  $$\operatorname{Li}_2(\beta e^{\alpha x}) - \operatorname{Li}_2(\beta e^{-\alpha x}) $$  and  $$\operatorname{Li}_2(pe^{\alpha x}) + \operatorname{Li}_2(qe^{\alpha x}) $$


How can I alias a dot string (e.g. '...' to '../..')?

I'm trying to have a shortcut for going back a few dirs. Something like "cd ...." == "cd <number of dots - 1> * '../'"  I tried doing alias '...'='../..' && cd ... but got "No such file or directoy" I then tried doing alias '...'='../..' but got "invalid alias name" I guess I can create a function: function bla { for i in $(seq $(($1 - 1))); do cd ../; done;  }; bla 3 but that seems less elegant (and also I cd ../ one in a time which is bad (cd - won't have the desired effect for example) but I can concat the strings and only cd at the end)  My questions are: How to solve (1) & (2) and is there a neater way for this?


How do you compute the slope for weighted least squares?

You can compute the slope of linear regression (without weights) by:  cor(x, y) * sd(y) / sd(x)  If we have add weights (w) in here as well - how do you compute the slope then?


Was the singularity just a mini model of our current unvierse?

Did the singularity just "containe" the matter, the energy and the space-time or it created them. If it just contianed them and then the expansion hppened, can we say it was just a mini model of our current universe And I can't imagine how it was. Can we say that the singularity was a ball that have a threre balls called "matter","energy" and "space-time" and they were beside each other?


Is there an easier way of doing this problem:     A square tower stands upon a horizontal plane. From a point in this place from which three of its upper corners are visible their angular elevations are respectively  45°, 60° and and 45°. Show that the height of the tower is to the breadth of one of its sides as $\sqrt{6}(\sqrt{5}+1)$ is to 4.     I'm not sure if my approach is  correct since it seems that to get the result using the way I've done it isn't as simple as previous questions have been (a few lines of working). In the digram $a$ is the length of the side of the tower and $h$ is the height of the tower. To start I tried to find $x$ in the diagram: $$ h^2=\frac{a^2}{2}+(x+\frac{\sqrt{2}a}{2})^2 $$ which already isn't very straight forward to find $x$ but I was using Mathematica just to see if this method would eventually work which gave $x$ to be:  $$ x=\frac{1}{2} \sqrt{4 h^2-2 a^2}-\frac{a}{\sqrt{2}} $$ which if we then use the top right triangle that $\tan{60^\circ}=h/x$: $$ \sqrt{3}=\frac{h}{\frac{1}{2} \sqrt{4 h^2-2 a^2}-\frac{a}{\sqrt{2}}}$$ which simplifies to give (well it reduces to this according to Mathematica, I can't seem to easily do it, but since I'm convinced there's an easier way I didn't spend too long on it.): $$ a=\frac{h(\sqrt{5}-1)}{\sqrt{6}}$$  and after a little rearrangement this gives what seems to be the required result: $$ \frac{h}{a}=\frac{\sqrt{6}(\sqrt{5}+1)}{4} $$  Is there any easier way to do this since this since this can't be the simplest way (I seem to be quite good at overcomplicating things a little too often!)?


How to make notepad++ the default editor for a Windows batch file?

In Windows, if you right-click a .bat file, there's an "Edit" option, which opens the .bat file with notepad. How do I make Windows use Notepad++ instead?  Note that this is different from the question . In that question, user asks for a way to make Notepad++ the default opener for specific file types. This is not what I want here, since I expect that double-clicking on .bat files executes them.


Q. If you compile and execute an application with the following code in its main() method: Why " s" is created two objects

If you compile and execute an application with the following code in its main() method: In this program why the " s" create the two objects.     String s = new String( "Computer" );     if( s == "Computer" )    System.out.println( "Equal A" );    if( s.equals( "Computer" ) )    System.out.println( "Equal B" );


just installed Skype 4.3 on my laptop (Dell Inspiron N5110) running Ubuntu 14.10 following all the instructions from every possible source  but when I try to launch it absolutely nothing happens.   What can I do to get it working? Here's what I get:  andi@Andi:~$ skype skype: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory


Generate four random words from a list for XKCD-like passwords

For start, we know how can we output random lines from a txt file:   perl -MList::Util -e 'print List::Util::shuffle <>' words.txt   But we need a general solution (perl is usually installed on every unix-like OS) to output 4 random words from a txt file, how can we do it?    $ cat words.txt ... alpha beta gamma delta epsilon ... $   The "..." represents many other words.   Example output (without newline between them, but one unix newline is needed at the end, spaces should separate them):  $ perl SOMEMAGIC words.txt gamma alpha delta beta $   Using only perl, the shortest possible solution (oneliner).   It will be used as human memorable password generator:    Since afaik perl is enough good to be named "random generator".   Example common english wordlist with 32768 unique lines:


I have an idea but I don't know how to formalize my idea in a function. That's what n should give me back as (x,y):  n = 0 -> (0,0) n = 1 -> (1,0) n = 2 -> (0,1) n = 3 -> (2,0) n = 4 -> (1,1) n = 5 -> (0,2) n = 6 -> (3,0) n = 7 -> (2,1) n = 8 -> (1,2) n = 9 -> (0,3) n = 10 -> (4,0)   How do I formulate a function for this one? I also need one for N -> N x {1,...,n) but I think it's the same function, is it?


What is $() in Linux Shell Commands?   For example:  chmod 777 $(pwd)


Move profiles images to imgur when linking Facebook/Twitter profiles

So I had a user today whose profile image wasn't loading. It turns the user's profile image was linked to Facebook since they'd signed up using Facebook auth, and the profile image had been pulled over as a link back to Facebook.  was then blocking the image request since it uses the graph api.  Privacy issues aside, a lot of people browse StackExchange from/for work, and Facebook et al are blocked in a great many workplaces - other people in this situation also saw no avatar at all for this user.  I would suggest that when a user is created via Facebook, the profile image is copied over to stack.imgur and then served from there, or the profile image is not taken at all, or even having a gravatar as a backup for those for whom the off-site image is not available.


Install package from CTAN which is not available in TeX Live

The  package was recently updated to fix a . The package is updated on CTAN, but because TeX Live is in its "freeze" period, attempting to update the package via tlmgr update does not work. I do not consider it an acceptable solution to wait until the freeze period is over. How can I install the most recent version?


Is the limit function $f$ continuous if $f_n(x_n)\to f(x)$?

Let $I\subset\mathbb{R}$ be an interval and let $(f_n)$ be a sequence of continuous real-valued functions on $I$. Consider the following statements:   $f_n\to f$ uniformly; For every sequence $(x_n)$ in $I$ converging to $x\in I$, we have $f_n(x_n)\to f(x)$; $f:\ I\longrightarrow\mathbb{R}$ is continuous.   Certainly (1) implies (2) and (3). If $I$ is compact, (2) and (3) together imply (1), otherwise counterexamples can be found.  My interest is on the relationship between (2) and (3), specifically does (2) imply (3)? My intuition says no, since (2) would appear to be a strictly weaker statement than (1). However, (2) is certainly stronger than pointwise convergence of $(f_n)$, and so far I have been unable to think of a counterexample. Can anyone think of a counterexample (or proof)


Java remove duplicate objects in ArrayList

I have a very lengthy ArrayList comprised of objects some of them however, are undoubtedly duplicates.  What is the best way of finding and removing these duplicates.  Note:  I have written a boolean-returning compareObjects() method.


Limit $\lim_{x \to \infty}{\sin{\sqrt{x+1}}-\sin{\sqrt{x}}}$

I want to compute $$\lim_{x \to \infty}{\sin{\sqrt{x+1}}-\sin{\sqrt{x}}}.$$  Is it OK how I want to do?    $$\sin{\sqrt{x+1}}-\sin{\sqrt{x}}=2\sin{\frac{\sqrt{x+1}-\sqrt{x}}{2}}\cos{\frac{\sqrt{x+1}+\sqrt{x}}{2}}=2\sin{\frac{1}{2(\sqrt{x+1}+\sqrt{x})}}\cos{\frac{\sqrt{x+1}+\sqrt{x}}{2}}$$  I'm not surem but I want to say that $$|\cos \frac{\sqrt{x+1}-\sqrt{x}}{2}| \leq 1$$ $$\sin{\frac{1}{2(\sqrt{x+1}+\sqrt{x})}} \to 0 \mbox{ when } x \to \infty$$ So the limit is $0$ ?  I thinks is not because  if I say that $ \displaystyle|\sin{\frac{1}{2(\sqrt{x+1}+\sqrt{x})}}| \leq 1$ I will obtain that another limit than $0$.   Thanks :)


Is there any Python library that facilitates the creation of topologies? I would like to create topologies using an open and portable format such as  or .  The main goal is to save space in detailed polygonal topologies, with borders defined only once and shared among adjacent polygons.  The  library, for instance, does not seem to support topologies.  Edit: I am not interested at this stage on ESRI's ArcInfo topology, I rather work with  or .  Also, in that thread that is supposedly a duplicate, there is this claim:       There are no Python pure geospatial modules dealing with the ArcInfo   topology


Close Question - Very Low Quality with Bounty

I've came across a question that IMO doesn't have the minimum requirements to stay open. The OP didn't show any efforts to solve the problem and it's also unclear and broad. I've tried to vote close but it seems that questions with a bounty cannot be closed.  Why not?


pressing shift + v + space + w at the same time won't work

I have a problem where when I click shift, space, w and x at the same time it does not work. I use this when playing a game and it it will not work. It allows me to click shift, space, w and c, but not 'x'. I cannot find a way to fix it and believe it might be a limitation of some sort but I want to be sure. I am also using a laptop running Windows 10 and it's a 64-bit system. If you have any ideas on what is going on or what I should do if I want to fix it, please do speak.


How to get back to command line from grub rescue after shutting down halfway through dd if=/dev/zero

I was intending to use dd to wipe my laptop's HD, but accidentally pressed enter with only    [dd if=/dev/zero/   without an of=... argument, then could not enter any further commands, so I cut the power.  Now, grub rescue comes up immediately after the BIOS, and when I ls, it doesn't show any partitions. I just want to finish wiping the drive, how do I get back to a command prompt?  Edit: Thanks so much for the comments, guys! The (admittedly crap) pic is what the machine boots into, with me trying to [ls] the partitions and finding none. I'm pretty new to all this, but this does not seem like it should happen unless the partitions have been wiped out, which does not seem possible, given how it came about.


Flash Plugin for Firefox Quantum in Ubuntu 14.04

I have downloaded tar.gz file of the lastest firefox-quantum today.  I don't wish the old firefox to be replaced. Like the old firefox, I didn't find any single plugin especially the flash-plugin npapi installed in the quantum.   What should I do to enable/install the flash plugin for Firefox-Quantum?  PS: There's no plugin folder in the extracted files of the ffx-quantum otherwise I would've just moved the libflashplayer.so to the plugins folder!


A circle is divided into 360 little parts called degrees.  Why or how did they choose that figure? Is there a very strong reason for that or it just a accidentally choose.


Mud cannot be planted with Glowing Mushroom Seeds?

I have mud blocks in place under my house. I read somewhere that depth doesn't matter though. When I left click seeds above or onto the mud block, nothing happens. Below is a screenshot for reference


Change achievement icons on Profile Summary to match their respective websites

When looking at the Accounts tab, the icons shown for achivements all belong to the specific website you are looking at, not the Stack Exchange website shown to the left. For example, here is what I see looking at the "Accounts" tab from Android Enthusiasts Stack Exchange:    To visualize the suggested change: all the websites shown in the list (besides Android Enthusiasts) would show a circle, not the Android robot's head.  I feel that this should be changed because it would provide a better representation of the sub-website in the "Accounts" list.


How does a double elimination bracket work?

I know that a double elimination bracket operates like two single eliminations: there is a "winners" upper bracket and a "losers" lower bracket.  My requirements   I need a logic for the Losers bracket players (not winners bracket). The general rule being that Losers fall down to the Losers bracket in the same position as they held in the winners bracket matches.....but that logic is not clear and neither are the conditions in which this is true. I want to understand the above logic assuming bye players not for the standard 2,4,8,16,32 teams scenario   Some links on brackets having byes


Can you upcast a spell above 5th level as part of the Contingency spell?

The  spell specifies that you may only store "a spell of 5th level or lower" with it. However, it does not specify what spell slot level it must be cast through.  RAW, would it be possible to cast, for example, a 9th-level , seeing as how the spell itself is only 3rd level?


These are all from Sipser's book, second edition. I was just hoping someone could verify/explain those that are more difficult for me.  $2n = O(n)$: true  $n^2 = O(n)$: false  $n^2 = O(n\log^2 n)$: I say false, because $\log^2 n$ grows more slowly than $n$  $n\log n = O(n^2$): true because $n$ grows more quickly than $\log^2n$  $3^n = 2^{O(n)}$: I wasn't sure what this notation meant. Any clarification here?  $2^{2^n} = O(2^{2^n})$: I would say true, but I'm not entirely sure why.  $n = o(2n)$: false, because $o(2n) = o(n)$ and $n$ grows as quickly as itself.  $2n = o(n^2)$: true, $n^2$ is always more than $2n$ for some constant.  $2^n = o(3^n)$: true  $1 = o(n)$: I'm not really sure.  $n = o(\log n)$: false, $n$ is always larger.  $1 = o(1/n)$: true, because 1 is always larger.


File or directory called ~ (tilde) in the root of my startup volume

I just noticed that I've got a mysterious file simply called ~ in the root of my harddrive. I suspect that I've created it by accident while using terminal.  I know about using ~ as an alias to quickly get to the current user and I use it extensively, so there is a reasonable chance that I've been wanting to create a new file and possibly been in the process of writing something in the lines of touch ~/new_filebut changed my mind and accidentally pressed enter after touch ~?  But that does not explain the fact that the file is 3.1MB?  Furthermore, the file appears as a file in Finder, but if I try doing either cat ~ or vim ~on it in terminal I'm told that it is actually a directory. But doing an ls -l suggests something else:  -rw-------    1 root  wheel   3.0M Apr  3 13:37 ~   And have a look at the creation date ...today at 13:37 (ie. ).  I discovered that there are a couple of threads where people experience the same thing and the answer seems to be some application failing to write to the user directory, but the timestamp is what makes me suspicious (tin foil hat?).    Could this be something malicious? Can I log what or who wrote the file somehow? Can I figure out what's inside it? How can I make sure it is safe to delete this file/directory or whatever it is?   Edit: Regarding this question being marked as a duplicate, I explicitly mention that I've read the original thread and none of my four questions above have been answered in that thread, so please read the entire question before flagging.


The question as stated above, is "Will any massless particle/object in the vacuum of space always travel at the speed of light?"


Why gravitation does not have negative entropy?

I'm mathematician so I don't know much about thermodynamics, so I'm sure what I'm asking should be really dumb for a physicist, anyway... Gravitational force acts creating hierarchical structures, like in the solar system. This structures are quite ordered and in a special configuration in relation to casual distribution of matter. So what I'm asking is: how the entropy of the solar system (or other gravitational systems) can be thought increasing instead of decreasing?  Thanks in advance!  Edit: I'm interested in locally increasing or decreasing, I'm sure that if I balance the whole Universe it will result an entropy positively increasing.


How to interpret decomposition plot and check for seasonality

I'm new to this and I have a question about the results that I get from checking whether my data contains seasonality or not. I have a csv file which contains date, period and year. However, R reads the date as a factor and I didn't know how to deal with is. So I extracted the frequencies per month, so I have very little points now. The point contain the frequencies of the years 2012 and 2013. My code: k <- c(1110,989,1141,674,790,739,842,1004,751,765,1246,1045,        1106,1078,1012,965,978,991,856,703,784,639,821,518)  z <- ts(k, start =c(2012,1), frequency =12)  plot(decompose(z))   I really don't know how to read this an whether I can draw a conclusion about seasonality by this methods or not.


Can emeralds be found in a world created by a version below 1.3?

With minecraft 1.3  were added. Is it possible to find emeralds in a world that was created with an older minecraft version? If yes, does this take effect only on new generated chunks?


Why does environment variable persistence break the PATH var?

I tried to persist the environment variables for ORACLE in RedHat using /etc/environment.  It cleared my PATH variable; no command was recognized afterwards.  Why does it happen, since just executing the same commands in the shell just works fine?!   The contents of my /etc/environment:  ORACLE_HOME=/usr/lib/oracle/12.1/client64 PATH=$ORACLE_HOME/bin:$PATH LD_LIBRARY_PATH=$ORACLE_HOME/lib


where we use "what" and where we use "which"?

Sometimes, I get confused when I want to ask a question,so I need some clarification.


What is a good website to hack around using Selenium?

I want to learn Selenium, but I don't know what to code. Sure, I can throw Google some queries, I can fill out some forms, press buttons, find divs and links, etc. But I think this stuff is pretty basic.  What would be more "advanced" ideas to try out? Can you give real-life examples?


THIS IS NOT THE DUPLICATE OF ABOVE BECAUSE:I require pigeonhole principle argument to my doubt which is not stated in the answer to above question... I missed my lecture the day the following theorem for ramsey numbers was proved in the class: If $m,n$ are integers $\gt 2$ then $R(m,n) \leq R(m-1,n)+R(m,n-1)$ Proof:  $R(m,n)=$ smallest possible size of group of persons s.t. among these either $\exists \,m$ persons mutual friends or $\exists \,n$ mutual enemies. Let $p=R(m-1,n)\,,q=R(m,n-1)$ and $r=p+q$. Consider the group $\{1,2\ldots,r\}$ of $r$ persons. Let L=$\{$set of persons friends with '$1$'$\}$ and M=$\{$set of persons enemies with '$1$'$\}$ Then $L\cap M=\phi$ .So, we have $|L|+|M|=|L\cup M|=r-1=p+q-1$ We cannot have $|L|\leq p-1$ and $|M|\leq q-1$ . $\therefore$ either $|L| \geq p$ or $|M|\geq q$.  This the starting paragraph of the proof which I have stated above. and later the proof is divided into two cases ,(1. when $L$ has atleast $p$ elements. 2.when $M$ has atleast $q$ elements),which I understood... But what I can't understand is the step at begining of proof that:  We cannot have $|L|\leq p-1$ and $|M|\leq q-1$ . $\therefore$ either $|L| \geq p$ or $|M|\geq q$.  The above statement makes the use of pigeonhole principle but I don't know how.Please anyone who can help me with this ,as I have no idea for this.....


Representations of a symmetry group: what is actually being represented?

For definiteness, consider the group $SO(3)$. There is a Lie algebra $so(3)$ given by  $$ [T_a, T_b] = if_{abc}T_c $$  The generators of this algebra can be exponentiated to form the elements of $SO(3)$,  $$ \text{exp}[i\alpha_a T_a] \in SO(3) $$  There are various ways to represent the generators $T_a$ in such a way that they still obey the Lie algebra so(3). This in turn yields different representations of the Lie group, SO(3).   In this context, it seems that the representations we are talking about are specific realizations of the elements of SO(3) -- that is, 3x3 orthogonal matrices with unit determinant. But then the literature also makes statements like "the fundamental representation of SO(3) is given by the 3 component vector v, which transforms under a group element $O \in SO(3)$ via $ v \to Ov$." To my ear they are saying the representation of SO(3) is actually the vector v, and not the matrix O.  So my question is: which is it? Are the representations of a symmetry group the generators of that group, the elements of the group itself, or the objects that the group acts upon?


How to list recursive file sizes of files and directories in a directory?

How do I list all the files in a directory and their recursive file sizes?  ---edit  I want to see the sizes 'rolled up' to the parent directories in the directory listed. I don't want to see the child directories or their contents or sizes.


How to get appended input value using JQuery?

Fiddle:   I want to get appended inputs' values. But When I try to   $(".isyeri-aralik-btn").on("click",function () {      console.log("clicked");       });   It is not working. I think newly added inputs and buttons are not HTML DOM element.  How can I get min max values from button related to that button?  --   $("#isyeri-aralik").on("click",function () {                 $('
\n' +                     '
\n' +                     '          <input type="text" class="form-control isyeri-min" placeholder="min tl" onkeypress="return isNumberKey(event,this)">\n' +                     '
\n' +                     '
\n' +                     '          <input type="text" class="form-control isyeri-max" placeholder="max tl" onkeypress="return isNumberKey(event,this)">\n' +                     '
\n' +                     '
\n' +                     '          <input type="text" class="form-control isyeri-indirim-orani" placeholder="indirim oranı" onkeypress="return isNumberKey(event,this)">\n' +                     '
\n' +                     '
\n' +                     '          Save\n' +                     '
\n' +                     '
').appendTo($("#isyeri-aralik-container"));             });              $(".isyeri-aralik-btn").on("click",function () {                  /*Get                  isyeri-min,                  isyeri-max,                  isyeri-indirim-orani's                  value when click save button of new appended div */              });


String Tokenizing Into Individual Variables

I have an array of sets of numbers and words that are all put together in one string like so:   "hello jane 7 14 1993 female"  How do I tokenize a string like this and similar strings to assign each word to a separate variable if each word separated by a space bar is to go to its own variable like so?:   string greeting = "hello"  string name = "jane"  string month = "7"  string day = "14"  string year = "1993"  string gender = "female"   Thank you in advance.


If sistren is the female equivalent of brethren, what is the female equivalent of fellow?  Words usually paired are: guy/gal; man/woman; boy/girl; lad/lass; brethren/sistren; fraternity/sorority; but I have seen nothing for fellow.


Would you, as a stationary observer, hear a sound in reverse when the source of the sound travels with twice the speed of sound? Of course, he wouldn't hear anything at all before the airplane passed by and the sound reaches him, but what about after? Does it reverse due to the Doppler effect?


How can I deal with circular features like hours?

Assume I want to predict if I'm fit in the morning. One feature is the last time I was online. Now this feature is tricky: If I take the hour, then a classifier might have a difficult time with it because 23 is numerically closer to 20 than to 0, but actually the time 23 o'clock is closer to 0 o'clock.  Is there a transformation to make this more linear? Probably into multiple features? (Well, hopefully not 60 features if I do the same for minutes)


The method signature of a Java main() method is:  public static void main(String[] args){     ... }   Is there a reason for this method to be static?


How to add startup applications in lubuntu on a specific desktop?

i want startup a programm in a specific desktop with a .desktop config file  for example firefox on desktop 2


Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded:   apt apt-transport-https apt-utils dpkg libapt-inst2.0 libapt-pkg5.0 ntpdate   oracle-java8-installer oracle-java8-set-default thermald 10 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/4,389 kB of archives. After this operation, 8,192 B of additional disk space will be used. Do you want to continue? [Y/n] Y Preconfiguring packages ... dpkg: unrecoverable fatal error, aborting:  files list file for package 'linux-generic' is missing final newline E: Sub-process /usr/bin/dpkg returned an error code (2)   I already tried the usual stuff like:   sudo dpkg --configure -a   sudo apt-get -f install  sudo apt-get clean  sudo apt-get update && sudo apt-get upgrade   Any help, thanks!  cat -net /var/lib/dpkg/info/linux-generic.list      1  ^LbM-BM-^FRq^MU^Evalueq^NK^HubU^Mcertificationq^ONU^Hoverviewq^PNU$      2  updated_atq^QNU^Vavailable_translationsq^RNU^Dyearq^SMM-CM-^]^GU^Fimagesq^TNU^Bidq^UNU^Ipaused_atq^VNU^Eindex


I already did UV editing then shading, donut was normal, like it should have been. But somehow changed to purple. I read that means something is not connected. In shading it is connected like it should be, only here in texture paint in left window you see there is donut texture selected but there is nothing below. Maybe there I acidentally pressed something.


Is there any way to replicate the implementation of LIKE operator of SOQL in Apex

I have a code where in there is a for loop and inside for loop I have a SOQL with 'LIKE' operator, its like this  for() { schemes=[SELECT id, name from somecustom object LIKE :name ] }   and name is being evaluted everytime for each iteration over for loop I need to pull soql out of for loop How do i achieve this? Any ideas would be of great help


I am doing a research on factors affecting job satisfaction, I got the following result with a zero p value. Hypothesis test, H1: There is a positive relationship between Working Conditions and Job satisfaction   H0: There is **no positive** relationship between Working Conditions and Job satisfaction  Results (Minitab), Correlation: Job Satisfaction, Work Conditions  Pearson correlation of Job Satisfaction and Work Conditions = 0.492 P-Value = 0.000  My interpretation is: "There is a significant positive relationship between job satisfaction and working conditions" Is this correct?


I have a Ruby script that generates a UTF8 CSV file remotely in a Linux machine and then transfers the file to a Windows machine thru SFTP.   I then need to open this file with Excel, but Excel doesn't get UTF8, so I always need to open the file in a text editor that has the capability to convert UTF8 to ANSI.  I would love to do this programmatically using Ruby and avoid the manual conversion step. What's the easiest way to do it?  PS: I tried using iconv but had no success.


What period does in the last 2 hours cover?

I was just wondering, what is the most normal way of interpretating in the last two hours.  If somebody asked you: What have you been doing in the last two hours?  What events from what time period would you mostly cover in your answer if it was already 19:40?     A. I would mention all important things since 17:00 until 19:40(now)   or       B. I would mention all important things since 18:00 until 19:40   (because 40 minutes can be understood as almost hour, but I am not sure if people would count it if it is not full 60 minute hour yet)     C. I would mention all important things since 17:00 until 19:00   Personally, I would go with choice A. But I am not sure if this is the most common way people use it. It might seem that it is almost 3 hours (2h 40m) but so far it is still just 2 hours + some minutes because i would say in the last 3 hours ONLY if 3x60m was completed and would not care if it was more than 3 hours but it still would have to be less than 4 hours.  Does somebody understand me? Which is the most common way of understanding?


I know that when a routine is called, the processor stores the memory address of the code that called the routine so that it knows where to go to continue execution when the called routine “returns.” This address (named the return instruction pointer) is stored on the stack.  I have three questions in mind:   Where in the stack is the Return Instruction Pointer stored? How is the RIP used when a function returns?  and Where should this cause the program to continue execution?


It always seemed to me any number X divided by zero would simply be X, since we're dividing by nothing, so then the original number wouldn't be altered. Why isn't this true? Can this ever be true?


Prove that $$\frac{(2a+b+c)^2}{2a^2+(b+c)^2}+\frac{(2b+c+a)^2}{2b^2+(c+a)^2}+\frac{(2c+a+b)}{2c^2+(a+b)^2} \le 8$$.   MY ATTEMPT:I want to make a relation between $a,b,c$. By trial I found that if we put $a=b=c=1$ then the above inequality holds(equality also holds). So by trial I assume that $a+b+c=3$. After that the three functions become of the form of the function below: $f(x)=\frac{(x+3)^2}{2x^2+(3-x)^2}$. I calculate the function and found that : $f(x) \le ⅓(4x+4)$. Am I do right . Anybody has other ideas.


What are the options to transfer USD to CAD from within Canada?

I have a USD account with Bank A in Canada.  I have a CAD account with Bank B in Canada.  I would like to transfer USD money from Bank A to Bank B as CAD.   What are the options available  to do this so as to get best rates?  Am I just limited to the service that bank offers?


Issue in Querying Salesforce EventlogFile

I am trying to Query "Event log files" from salesforce through Rest call. I have created a connected app with the following settings:  OAuth Settings -> grant full access. Relax IP restrictions under OAuth Policies -> IP Relaxation.  And, created a user with a profile "Read Only" under (salesforce license), having the following permission:  API enabled View Event logs  When I make a rest call to my salesforce enterprise edition account, I am getting the below error: URL: "https://MyinstanceURL/services/data/v41.0/query?q=SELECT+Id+FROM+EventLogFile+WHERE+Interval+=+'Hourly'"  response :[{"message":"\nSELECT Id FROM EventLogFile WHERE Interval = 'Hourly'\n               ^\nERROR at Row:1:Column:16\nsObject type 'EventLogFile' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names.","errorCode":"INVALID_TYPE"}]| RESPONSE CODE: 400  Please, could anyone tell me where I am wrong?


Banned in desktop, "read-only" on mobile?

I have been banned from chat for a week. In that time period, I have found an interesting behaviour of mobile chat.  It shows as I am suspended by a moderator and cannot talk in chat for a week on the desktop, but it shows as 'This room is read-only' in mobile, which it is not.  I can reproduce this bug again.  Image:


On my iMac, I keep a lot of supervision windows (displaying alarms and trends). These windows lead to priviledged access to very sensitive equipments. I would like to protect this iMac from any accidental typing on the keyboard or mouse mouve, and password protect it from any other local access.  I would like to be able to start my screen saver (which will lock my mouse and keyboard by asking my password), but to keep a full acces to the actual display.  Is there any way to make a transparent locked screen?


How do I get Siri to make an event on a Gmail or Exchange calendar?

I can get Siri to show me events on my Google Apps calendar (which I have set up as an Exchange account, to get the benefits of push email), but I can't get her to make an event on that calendar; new events keep being created on my own calendar.


How long should we wait for a UK Visitor Visa in New Delhi?

We applied for a visitor visa (less than 6 month)in New Delhi at 10 June but nobody is given answer when we will got visa. Already our passports in embassy from last 40 days  At least they should be return passports when time is go more than 15 days. I got same visa 3 years ago in 15 days in Istanbul. Some body can help us? When we will get it?


I need a cell that contains an image to also contain a hyperlink.  Following formula is the only one I found but doesn't work (error analyzing formula)  =HYPERLINK("URL", image("URL"))   Following formula I tried shows a blank cell but the link works  =hyperlink("URL"; Image("URL"))


How does "virus been detected" on android pop up on chrome when visiting some sites?

What is the cause of this chrome bug on android? The last site I went to was www.destructoid.com and all of a sudden it gets redirected to the following url. This happened previously awhile back, but I didn't document everything as I did today. I'm also on android chrome canary if that matters.   I took some screenshots before closing out of that tab. But my question is:   What chrome bug or malware is causing these random redirects? How can one detect if they have this vulnerability?   The url is:


I am getting undefined reference errors on my parrotos install, works fine on arch. /usr/bin/ld: /tmp/ccndw0FB.o: in function resolution': sfetch.c:(.text+0x284): undefined reference to XOpenDisplay' /usr/bin/ld: sfetch.c:(.text+0x2f7): undefined reference to XGetWindowAttributes' /usr/bin/ld: sfetch.c:(.text+0x322): undefined reference to XCloseDisplay' collect2: error: ld returned 1 exit status Compile command: gcc -std=c99 -lX11 -g sfetch.c


Finding the limit of $\left(\sum\limits_{k=2}^n\frac1{k\log k}\right)-\left(\log \log n\right)$

There is this well known limit:  $$\lim_n \sum_{k=1}^n \frac 1k -\log n=\gamma$$  Where $\log$ is the natural logarithm and $\gamma$ is Euler constant.  I was wondering if my similar situation yelds to a similar result:  $$\lim_n \sum_{k=2}^n \frac 1{k\log k}-\log \log n=?$$  I know there is a formula (always due to Euler) which can be used in those situations but I can't see if there is a way to put the result in "closed form" rather than having only an approximation (supposing the limit exists and is finite at first)


Explanation of composition of two onto functions?

My book says that if functions $f$ and $g$ are both onto then $f\circ g$ and $g\circ f$ may or may not be onto.   Why is this so? Would someone please help me understand this, maybe with an example or diagrammatically? My book states that$  f\circ g$ and $g\circ f$ may or may not be onto. I think this might be related to the domains and codomains of g and f which may not be equal. I am aware that there is a similar looking question and therefore I'm clarifying mine. With respect to the domains and codomains would someone please explain why the composite functions may or may not be onto?


What else can you do in the turn you ready an action?

Suppose that, on your turn, you ready an action to hit the enemy in front of you if he tries to hit your friend.  What else can you do in the turn you ready the action?   (I'm asking about the turn during which you decide to ready the action "hit the enemy" - not about extra things to do as part of the readied action itself, e.g. "hit the enemy and then move away".)  Can you, for example, move close to an enemy and then ready the attack if he hits your friend?  Can you move closer to an enemy, hit him with your offhand weapon (bonus action) or use some other abilities (Second Wind for fighters) and then ready the action to attack if he hits your friend?


Running a python script 200,000 times in parallel using bash

I need to run my Python script 200,000 times. Is it possible to do parallel execution using bash? Since it's 200,000 times I would like to use at least 10 threads simultaneously


Show that for all $u,v \in \mathbb{R}, u>v$ if and only if $u^3 > v^3$.  Hi, just wondering how everyone thinks best to prove this? I was thinking of using cases but not sure!  Thank you!


I have been trying lately but I just can't find where is the null object, help me understanding this error: 2021-01-24 01:10:47.244 24211-24211/com.salmanibrahim.firebasechat E/AndroidRuntime: FATAL EXCEPTION: main     Process: com.salmanibrahim.firebasechat, PID: 24211     java.lang.NullPointerException: Attempt to read from field 'java.lang.String com.salmanibrahim.firebasechat.model.User.name' on a null object reference         at com.salmanibrahim.firebasechat.ui.UserProfileFragment.setupArrayListInfo(UserProfileFragment.java:243)         at com.salmanibrahim.firebasechat.ui.UserProfileFragment$1.onDataChange(UserProfileFragment.java:93)         at com.google.firebase.database.Query$1.onDataChange(Query.java:189)         at com.google.firebase.database.core.ValueEventRegistration.fireEvent(ValueEventRegistration.java:75)         at com.google.firebase.database.core.view.DataEvent.fire(DataEvent.java:63)         at com.google.firebase.database.core.view.EventRaiser$1.run(EventRaiser.java:55)         at android.os.Handler.handleCallback(Handler.java:808)         at android.os.Handler.dispatchMessage(Handler.java:101)         at android.os.Looper.loop(Looper.java:166)         at android.app.ActivityThread.main(ActivityThread.java:7529)         at java.lang.reflect.Method.invoke(Native Method)         at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)  (UserProfileFragment.java:243) Configuration userNameConfig = new Configuration(USERNAME_LABEL, myAccount.name, R.mipmap.ic_account_box);  (UserProfileFragment.java:93) setupArrayListInfo(myAccount);   The app runs correctly, login is succesfull but as soon as code reaches this point: if (listFriendID == null) {             listFriendID = new ArrayList<>();             dialogFindAllFriend.setCancelable(false)                     .setIcon(R.drawable.ic_add_friend)                     .setTitle("Fetching Friends Data...")                     .setTopColorRes(R.color.colorPrimary)                     .show();             getListFriendUId();         }  Dialog Appears correctly but when it ends loading the app crashes then and there. Implementation for getListFriendUId();: private void getListFriendUId() {         FirebaseDatabase.getInstance().getReference().child("friend/" + StaticConfig.UID).addListenerForSingleValueEvent(new ValueEventListener() {             @Override             public void onDataChange(DataSnapshot dataSnapshot) {                 if (dataSnapshot.getValue() != null) {                     HashMap mapRecord = (HashMap) dataSnapshot.getValue();                     Iterator listKey = mapRecord.keySet().iterator();                     while (listKey.hasNext()) {                         String key = listKey.next().toString();                         listFriendID.add(mapRecord.get(key).toString());                     }                     getAllFriendInfo(0);                 } else {                     dialogFindAllFriend.dismiss();                 }             }              @Override             public void onCancelled(DatabaseError databaseError) {             }         });     }  I just can't figure out, where to look for error.


What is the difference between illegal and unlawful?

I often hear an unlawful act, so what is an illegal act? Dictionary.com defines the words as:    forbidden by law or statute.  contrary to or forbidden by official rules, regulations, etc.     not lawful; contrary to law; illegal   so it appears they might be synonyms. Is there some nuance that I'm missing?


Is it possible to create an Admin Password Key to conveniently login?

I know a  exists. However I was wondering was there a better way in logging into a Windows 7 computer as computer_name\administrator with a standard admin password?  For what purpose?  Fast login as technical support who has to do several logins a day.  What Operating system?  Windows 7  For what type of log-in (local or remote) With what level of security is still expected?  Local login  Whos computer (yours or everyone elses)? Everyone at the company


Is it possible to extrude a curve in two directions?

I want to extrude a curve in two directions.    Or join both curves into one, is it possible? I've tried copying it and then join segments, but I don't see Remove Doubles option while working with curves.


How to install the play store applications not available in my country

I am a student reviewing multiple COVID tracing applications deployed in various countries around the world. Although I'm located in the US, I'm also interested in applications that other countries have deployed. As far as I understand, to do that I would need to find a VPN server in the country I am interested in and browse Play Store from there. It looks that people all around the internet advise to:  Connect to the VPN, Remove cache and data from Play Store, and Restart Play store.  However, this does not work for me. Play Store still lists only the applications available in the US and prices in US dollars. I have checked whether my VPN works and it does. whatismyipaddress.com shows that at least my search queries coming from the browser go through a foreign VPN server.


TeXlipse hotkeys for bold, italic, underlined

Are there any hotkeys to make a text bold or italic in TeXlipse plug-in? It is tiresome to type \textbf{} and \textit{} each time I need to emphasize some word. Most of other TeX-editors support standard Ctrl+B" and Ctrl+I, but in TeXlipse it doesn't work.


Where can I get the original Unix (from the year 1969)? I would like to look at the source code of the original Unix.


Showing the sequence converges to the square root

For any $a > 0$, I have to show the sequence $x_{n+1}$ $=$  $ \frac 12$($x_n+ $ $ \frac {a} {x_n}$)  converges to the square root of $a$ for any $x_1>0$.  If I assume the limit exists ( denoted by $x$) then,  $x$ $=$  $ \frac 12$($x+ $ $ \frac {a} {x}$) can be solved to $x^2 = a$  How could I show that it does exist?


What happens when a visualforce page run on system mode?

I came across this statement...  "Use custom controllers when you want your Visualforce page to run entirely in system mode"  in . What does running in system mode means? Can anyone explain in detail?  Thanks


Weird thing, I'm not sure if it's intentional design, so I'm asking here. On one site, yesterday I reached rep cap but then some votes were cancelled saying "User was removed". Now, the weird thing is that those votes still seem to count towards the cap, effectively “limiting” me to a lower cap:    Is that correct?


Can sweetened condensed milk be substituted for whole milk and sugar?

I am making a fudge recipe that calls for 1cup whole milk and 5 cups sugar. It also uses 2 sticks of butter and 25 marshmallows. I'm wondering if I can omit the milk and cut back on the sugar by using sweetened condensed milk.


If $G$ is abelian, $|G|=p^k$ for $k\in\mathbb{Z}$, and $G$ has a unique subgroup of order $p$, then $G$ is cyclic.

If $G$ is abelian, $|G|=p^k$ for some $k\in\mathbb{Z}$, and $G$ has a unique subgroup of order $p$, then $G$ is cyclic.     I'm having difficulty getting anywhere on this problem.  The supposition that there is a unique subgroup leads me to believe Sylow's theorem should be used.   In particular, if there is a unique Sylow p-subgroup P, then $P\triangleleft G$. So for all $a\in P, g\in G$, $gag^{-1}\in P$. Moreover, by Cauchy's theorem, $P$ is cyclic.   How can I relate these facts to show that $G$ is cyclic?


I think I understood very well how operations on one qubit are done - if qubit is electron, we just apply magnetic field in direction we want to make spin precess (unitary operations on single qubit).  I sort of understand how entanglement happens - you let 2 electrons interact and the lowest possible energy state is entanglement, so nature just puts them there. (?) But why all of a sudden we can make unitary operations on 2 qubit hilbert space? What physically lets us do so?   Rephrasing questions - How is CNOT operation realized physically?


Documents processing or document processing (etc.)?

I know that in this case (and all other similar cases) this would be the latter, but I am having a hard time finding any resources that explain why. What is the reasoning behind why we'd use document processing rather than documents processing, employee management rather than employees management, etc.?


How to prove that $m+(4/m^2)>=0$ for every m greater or equal to 0

I have a problem with proving this simple theorem. I've already figured out that the best strategy is to factorise is, so that to get eg. a square or another expression that from the definition has to be non-negative, but have no idea how exactly should I do it. Could you help me guys?


Schmitt Trigger Oscillator - How does it work?

I have seen countless times the following diagram for a Schmitt trigger oscillator.    As shown in the picture, the slow-rise wave-form generated by the charging and discharging capacitor is translated to a square wave-form at the output, as a result of the Schmitt trigger. However, I have no idea how the capacitor even charges up in the first place. I don't see any "input voltage" other than the upper and lower bounds on the actual Schmitt trigger. How is the capacitor charging up in the first place?  I'm sorry if this is a very dumb question.


Beams of different colors do not interfere with each other

Experimentally I know that two monocromatic beams of different colors or orthogonal polarizers do not interfere with each other (so the interference coefficient is zero). Theoretically, why does that happen? Thanks in advance!


Find the value of $\sin\frac{2\pi}{7}+\sin\frac{4\pi}{7}+\sin\frac{8\pi}{7}$  My approach :   I used $\sin A +\sin B = 2\sin(A+B)/2\times\cos(A-B)/2 $  $\Rightarrow \sin\frac{2\pi}{7}+\sin\frac{4\pi}{7}+\sin\frac{8\pi}{7} = 2\sin(3\pi)/7\times\cos(\pi/7)+\sin(8\pi/7) $  $= 2\sin(3\pi)/7\times\cos(\pi/7)+\sin(\pi + \pi/7) $  $= 2\sin(3\pi)/7\times\cos(\pi/7)-\sin(\pi/7) $  I am not getting any clue how to proceed further or whether it is correct or not. Please help thanks..


I have a card that basically says any creature with power or toughness = one is Unblockable, is it possible to buff them after declaring blockers? Thanks ahead of time for the info


Find a function that makes a differential form exact

We have $A=\mathbb{R^3}\backslash \left\{ (0,0,z):z\in \mathbb{R}\right\}$ and $\omega$ the differential form: $$\omega :=\left(\frac{4x^2+2zx}{x^2+y^2}+2A(x,y)\right)dx+\left(\frac{2y}{x^2+y^2}(2x+z)\right)dy+A(x,y)\,dz,$$ where $A\in C^1(\mathbb{R^2}\backslash(0,0); \mathbb{R})$  1) Find a function $A$ that makes the differential form exact.  2) Find all the primitives of $\omega$.  My idea was calculating $d\omega=0$ because $\omega$ is closed (necessary condition for exactness), and finding $A(x,y)$ who will depend on a costant $C$. And then, putting $\int_{\gamma}\omega=0$ in order to prove the exactness of $\omega$ for some curves $\gamma$.


Is the sum of all natural numbers $-\frac{1}{12}$?

My friend showed me  in which the speakers present a line of reasoning as to why $$  \sum_{n=1}^\infty  n =  -\frac{1}{12} $$  My reasoning, however, tells me that the previous statement is incorrect: $$  \sum_{n=1}^\infty  n = \lim_{k \to \infty} \sum_{n=1}^k n  =  \lim_{k \to \infty}\frac{k(k+1)}{2} = \infty $$  Furthermore, how can it be that the sum of any set of integers is not an integer. Even more, how can the sum of any set of positive numbers be negative? These two ideas lead me to think of inductive proofs as to why the first statement is incorrect.  Which of the two lines of reasoning is correct and why? Are there any proven applications (i.e. non theoretical) which use the first statement?