Mathematical Induction Question, Proof Help

Prove using Mathematical Induction that for all natural numbers ($n>0$):  $$ \frac 1 {\sqrt{1}} + \frac 1 {\sqrt{2}} + \cdots + \frac 1 {\sqrt{n}} \ge \sqrt{n}. $$      Proof by Induction:          Let P(n) denote    1/ √1 + 1/ √2 +  … + 1/ √n ≥  √n  Base Case: n = 1, P(1) = 1/√1 ≥ √1   The base cases holds true for this case since the inequality for P(1) holds true.    Inductive Hypothesis: For every n = k > 0 for some integer k    P(k) = 1/ √1 + 1/ √2 +  … + 1/ √k ≥  √k, p(k) holds true for any integer k   Inductive Step:           P(k + 1)) = 1/ √1 + 1/ √2 +  … + 1/ √k  + 1/ √(k + 1) ≥  √k + √(k+1)          √k + √(k+1) > √(k+1)   (this is where I got stuck)


Are Hogwarts houses based on real life UK?

It’s been referred several times that Rowling modelled Hogwarts after standard UK structure for schools, which makes sense given she attended those.  Stuff like OWLS and NEWTs are modelled around normal tests in UK (GCE and A levels I think). So are other things around the general structure.  Is it usual in the UK for students to also be sorted around into houses or groups or is that an invention by Rowling with no base on real life?


When the values are equal by using the equality operator , output shows Failure instead of success. Is this the problem with versions of compilers? Screen shot of the program attached  void main()         {             float k = 0.1;             if (k == 0.1)                 printf("Success");             else                 printf("Failure");         }


Can an authorized user of a credit card build their credits from using the card

I have a few years' credit history, and most of the time a FICO score of 780 to 820. I believe my spouse never had any credit accounts. If I add her as an authorized user of one of my credit cards, can she establish her credit from using the card??


Avoid password prompt for keys and prompts for DN information

I am using following code to generate keys:  apt-get -qq -y install openssl; mkdir -p /etc/apache2/ssl; openssl genrsa -des3 -out server.key 1024; openssl req -new -key server.key -out server.csr; cp server.key server.key.org; openssl rsa -in server.key.org -out server.key; openssl x509 -req -days 12000 -in server.csr -signkey server.key -out server.crt; mv server.crt  /etc/apache2/ssl/cert.pem; mv server.key  /etc/apache2/ssl/cert.key; rm -f server.key.orig; rm -f server.csr   I have two questions:   How can I skip the passphrase prompting? Would it be reasonably safe for me to do so? (as in it should not be downright foolish like anyone should be able to hack the certificate) How do I avoid the prompting for the country name, organization etc. I hope I can give them on command prompt (the man page shows only top level options for OpenSSL)


Let $f:[1,\infty)\to\mathbb R$ be a twice differentiable function such that $$ f'(x)=\frac{1}{x^2 + y^2} $$ and $f(1)=1$  then prove that  $$ f(x)<1+\frac{\pi}{4} $$ for every $x \geqslant 1$.  My process:  I am not able to use the given differential equation as I don't know how to do it. If you can help me how to use the differential equation,I think then I can manage to solve this question.


Deliberately fitting a model without intercept

Is there a situation in which the mean of a Y variable is not 0 (e.g. not standardized), but we would still fit a regression model without intercept?  It would yield a worse fitting model, so is there a scenario in which you would omit adding an intercept with a good reason?


How to modify class __dict__ (a mappingproxy)?

I want to apply a decorator to every method in a class. I don't have source code of the class, so I can't directly apply the decorator. I want to call some function that accepts the class and adds the decorators.  But the problem is testclass.__dict__ is a mappingproxy object and it doesn't support any assignment or modification, directly at least. So the question is how to avoid that restriction and apply decorator?  Here is code of the failed attempt:  class qwer:     def test(self):         print('test')  def decor(func):     def w(*args, **named_args):         print('decor')         func(*args, **named_args)     return w  qwer.__dict__['test'] = decor(qwer.__dict__['test'])   Error:  TypeError: 'mappingproxy' object does not support item assignment


How to color a link using hyperref package

I'm trying to color one word using hyperref package as a homework to school,I was looking for some examples in the internet how to do it...but whatever I did it doesn't work.   My preamble:      \documentclass[a4paper,10pt]{article}     \usepackage[margin=2cm]{geometry}     \usepackage[utf8]{inputenc}     \usepackage[OT4]{polski}     \usepackage[polish]{babel}     \usepackage{color}     \usepackage{enumitem}     \usepackage{makeidx}     \usepackage{multirow}     \usepackage{caption}     \makeindex     \usepackage{hyperref} \begin{document}  Źródło tekstu i ilustracji: \href{https://pl.wikipedia.org/wiki/Stanis%C5%82aw_Lem}{Wikipedia}  \end{document}   Now In PDF i need to have this looks like this     i guess its color Magenta in package hyperref but i dont know what commands i should use now in my code to color this


WLLN: can expectation exist but be infinite?

Weak law of large numbers: Let $\{h_i, i = 1, \dots n\}$ be an $m \times q$ sequence of iid random variables with mean $\mu = E[h_i]$ that exists and is finite. Then $1/n \sum_{i = 1}^n h_i \rightarrow \mu$ in probability.   I don't understand why we have exists and is finite. Could you give me an example when the expectation exists but is infinite?


I heard that the light has zero mass. But I searched in internet, some people say light has mass and some people said doesn't. I am not sure what is the right answer.  And also I heard that the reason we can't travel in light speed is because we have mass but light doesn't. Please tell me the right answer.


Asymptotic normality implies consistency?

Does asymptotic normality imply consistency?   Update: Asymptotic normality implies consistency, as proven in this quesiton:


My purpose is to make a central line from a polygon. For this I use the skeleton algorithm from a polygon, but I did not manage to get a line.  I draw the polygon.    I launch the program.    It doesn't work!


Having a Boxplot like the following, how do I read it?


Where in Palma Majorca is it possible to sleep on the beach?

My previous question was on , but now am asking the same thing about Palma.   We are planning a two-night trip to Palma Majorca (PMI airport we are flying to). Travel dates are last week of November, so I guess weather should be okay. I have never been to these islands. I'd like to sleep on the beach in a tent or mattresses. Is that possible, safety, legality, and weather? It would also be nice to know how populated with tourists the islands are. Also what are some nice areas where if sleeping is hard , walking is nice. Nice meaning peaceful and quiet.


recently, I downloaded Android 5.0 on my nexus 7. I hate it, and want to reset my tablet. If I do, will that take me back to the original factory setting (4.1), and if so, can I upgrade to 4.4 kit kat?


Infinitely many non-equivalent decompositions into irreducibles

It is well-known that in an integral domain that is not a UFD, elements can have different decomopositions into irreducibles, that do not just differ by units. But in all examples I know, usually only two such decompositions are given. Is it possible for an element to have infinitely many non-equivalent decompositions?


I'm new to ubuntu and I have problem with the partitions. I have 3 mounted partitions but I can only go to OS by cd OS while I can't go to New Volume. That is probably because there is a space in its name.  How can I change its name (label) or how can I go to this partition by command line?


TK-421 was the call number of the Stormtrooper that was sent on the Millenium Falcon to investigate it once it was captured in the Death Star 1's tractor beam following their jump to the Alderaan system.  TK-421 and another Trooper entered the Falcon, were ambushed, and Han and Luke emerged wearing their armor.    So, clearly their bodies would not be dragged off the ship because that would draw attention.  So we can assume that their bodies (alive or dead) left the Death Star with the Rebels and brought (assuming they weren't jettisoned into deep space) to Yavin 4...  Is there any evidence (Legends or Canon) that details his fate or that deals with the whereabouts of these Stormtroopers?   EDIT:  Also includes the scanning crew... are they amongst the dead stormtroopers?


I am trying to show that the series $$\sum _{n=1}^{\infty} \sin n$$ diverges but has bounded partial sums.   Plugging in some terms we see that,  $$\sum _{n=1}^{\infty} \sin n = \sin1 +\sin2 +\sin3+...+\sin n$$  My idea is to try and use $$e^{i\theta} = \cos\theta+i\sin\theta$$ $$e^{in}=\cos n+\sin n$$ $$\sin n = Im(e^{in})$$  But how can I use this to show that a finite geometric series won't converge to anything, therefore diverge, but is bounded?


Google has more than 500k cached indexes of my ex website. How can I remove them?

My client's ex website was full of copy-pasted news and the website's reputation was 0. Also, he wanted to get rid of Wordpress, so we re-developed his website and did not use old data.  But Google's cache is full of old page indices, more than 500k. More, new websites slugs are different than the old ones, so all the cached indices redirect to 404 pages.  I need to remove them but search console does not provide an option to handle this much indexes. What can I do?


Arrange the following growth rates in increasing order O((35)^n),O(n^4),O(1),O(n^3 logn)

I want to Arrange the following growth rates in increasing order  This order are following : O((35)^n),O(n^4),O(1),O(n^3 logn) Please give me idea how to arrange growth rates in increasing order


How is the partial trace related to the operator sum representation?

In Quantum Computation and Quantum Information by Nielsen and Chuang, the authors introduce operator sum representation in Section 8.2.3. They denote the evolution of a density matrix, when given an environment, is the following:  $$\varepsilon (\rho) = \mathrm{tr}_{\text{env}} [U(\rho\otimes \rho_{\text{env}})U^\dagger]$$  Where you are essentially taking the trace to discard the environment of the unitary evolution of the entire system. What I don't understand is how the operator sum representation is equivalent (Equations 8.9 and 8.11 in N&C)  $$\varepsilon (\rho) = \sum_k \langle \mathbf{e}_k|U[\rho \otimes |\mathbf{e}_0\rangle \langle \mathbf{e}_0|]U^\dagger|\mathbf{e}_k\rangle = \sum_k E_k\rho E_k^\dagger$$  In this equation, I take $|\mathbf{e}_k\rangle$ to represent the basis of the system and U to be a 4 x 4 unitary matrix governing the evolution. How is this equivalent to the first equation where you discard the trace? It seems like the second equation (equation 8.9 in N&C) above would yield a scalar quantity. What does this equation mean? I understand the first equation where you take the partial trace, but how does partial trace relate to the 2nd and 3rd equations? I'm a relative beginner in this field.


This seems like an extremely simple issue but I just can't figure out what's going wrong. I have a minimal bib file called References:  @book{Chushakushi,     author      = {Ii Haruki},     title       = {Genji monogatari ch\=ushakushi},     publisher   = {Something},     year        = {1980} }   Then I am using LuaLaTeX+MakeIndex+BiBText to compile the following:  \documentclass{scrbook} \usepackage[backend=biber, style=authoryear]{biblatex} \addbibresource{References.bib}  \begin{document}  \chapter{Chapter 1}  Hi there This book\footcite{Chushakushi} is my reference  \printbibliography  \end{document}   This was working fine with natbib but with biblatex it gives me:  LaTeX Warning: Citation 'Chushakushi' on page 1 undefined on input line 11. LaTeX Warning: Empty bibliography on input line 13. Package biblatex Warning: Please (re)run Biber on the file: Test and rerun LaTeX afterwards.   It seems to me like this has to be something really stupid and simple but I just can't figure it out. If I take out "backend=biber" the same thing happens. I have tried compiling it several times in a row and nothing changes. Replacing \addbibresource with \bibliography also does nothing.  I appreciate any help.


Grouping results and filtering duplicates by the row's date


unmet dependencies when installing zoom: Depends: libxcb-xtest0 but it is not installable E

I m trying to install zoom on ubuntu, doing thru graphic installer did not work, i tried thru terminal with 'sudo apt-get install ./zoom-package'  and it gave me this error:  the following packages have unmet dependencies:  zoom : Depends: libxcb-xtest0 but it is not installable E: Unable to correct problems, you have held broken packages   i did  sudo apt-get autoremove   still did not work. any ideas?


Effect of relativity on observers of two different inertial frames observing an event taking place very far away

I am new to relativity ,So please correct me If I am wrong. In the case I have mentioned, In a gravity free space, Let us assume a stationary observer and an observer moving with a velocity 'V' w.r.t to the stationary observer.  The stationary observer looks at an event taking place very far away('X') at time 't' So the moving observer's reference (the event is taking place far away for the moving observer as well) of space time can be calculated using Lorentz transformation. if 'V' is considerably small compared to speed of light, then the transformation for space will be similar to Galilean transformation, but since the distance of the event taking place is very large the time transformation will not be Galilean. ( because of the term (V*X)/C^2)  A light year being of the order 10^16 and all objects in universe being beyond this distance, does that mean an observer moving with a speed of 10 m/s will have relativistic effects in significant form recording an event like star explosion, wobbling effects, light variation etc?


How to take long exposure photos in the daytime?

On a Canon 600D, what are the best settings for a 4-8sec long exposure in the daytime? I have tried manual and shutter priority modes but photos always come out completely white.


Accessing members inside struct with member function?

Suppose I have the following struct   struct Being{     int canFly;     int (*printFlying)(); }   And I want to do something like the following:  int main(){     struct Being * flyingThing = new_flyingThing();     struct Being * thingThatCantFly = new_Thing();      flyingThing->printFlying(); /* "I'm flying!" */     thingThatCantFly->printFlying(); /* "I can't fly!" */ }   It looks like I would need the printFlyingfunction to be able to access the canFly variable in the struct, but I don't know how to do this, or if this is possible.  Is there any way to get my code to do what I want? Thanks!!    I explained in the comments why this question is not a duplicate of the linked one.


in my node setup I have a value node. I want this node to influence the scaling of my mapping node.  Is there a way to achieve this? Or is there a math/vector node setup I can use to manipulate the scale of my texture?      I found an answer to my question:   Because the original question here is another one, I won't delete my post. Maybe it is helpful for someone.


Sorry for a simple question, but I have animated the movement of a door; just a movement of the X axis. Turns out I'll do this in code instead, so I want to delete this animation. How do I delete an animation completely from an object?  For that matter, at this point I could just as well delete everything animation related, so any hint of how to do that would be OK.


$$\frac{dx(t)}{dy(t)}=\frac{\alpha x(t) - \beta x(t) y(t)}{-\gamma y(t) + \delta x(t)y(t)}$$  How would one simplify this fraction? Maybe the chain rule could be of any use, but I don't see how.


Safe way to use something like bind_param() to set cellname and detail

I want to make an easy function inside a class that can update each cell in a database. Like I now can use echo $user->cell('email'); to retrieve the email, I want to update it with $user->update('email','new@email.com');  But for as far as I know, bind_param() doesn't support "?=?" in the query. Anybody a safe solution to that? class User{     private $details;     private $id;     function __construct($userId){         $db = Database::getInstance();         $mysqli = $db->getConnection();         $stmt = $mysqli->prepare("SELECT * FROM users WHERE id=?");         $stmt->bind_param("i",$userId);         $stmt->execute();         $result = $stmt->get_result();         if($result->num_rows == 1){             $this->details = $result->fetch_assoc();             $GLOBALS['userId'] = $userId;         }         $stmt->close();     }     function cell($cell){         return $this->details[$cell];     }     function update($cell,$value){         $db = Database::getInstance();         $mysqli = $db->getConnection();         $stmt = $mysqli->prepare("UPDATE users SET ?=? WHER id=".$this->id);         $stmt->bind_param("ss",$cell,$value);         $stmt->execute();         return true;     } }


Why decimals of rational numbers behave periodically?

I am interesting in the proof of that every rational number cannot have in decimal form infinite number of digits that don't repeat (or the other way around). So, then is enough to prove following statement: For any $n \in \mathbb{N}$ rational number $\frac{1}{n}$ can be represented in decimal form such that it's digits, if there are infinitely many, are repeating. If this is true, then it is true for any $\frac{m}{n} = \frac{1}{n} + \frac{1}{n} + ... + \frac{1}{n}$ ($m$ times).


How do I remove diacritics (accents) from a string in .NET?

I'm trying to convert some strings that are in French Canadian and basically, I'd like to be able to take out the French accent marks in the letters while keeping the letter. (E.g. convert é to e, so crème brûlée would become creme brulee)  What is the best method for achieving this?


Does there exist a continuous function $f :\mathbb{R} \rightarrow \mathbb{R}$ such that $f \circ f(x) = -x$ for all $x$?  My feeling is that there isn't, but I don't know how to go about proving this.


I am trying to read a file and store the row entries into an object using the following code:   package eclipsePackage; import java.io.*; import java.util.*; public class MainProg {      public static void main(String[] args) throws IOException{          Scanner file=null;                 try{                      file=new Scanner(new File("notes.txt"));                 }catch(Exception e){                     System.out.println("unable to open the file");                 }                     Ages arr[]=new Ages[5];                     for(int i=0; i<5;i++){                             arr[i].readData(file);                     }                     file.close();                     System.out.println("Name"+"\t"+"Age"+"\t"+"Year of Birth");                     for(int i=0;i<5;i++){                         arr[i].outputData();                     }                 }             }   The method that reads the file is in a class called Ages. But I'm getting the error: Exception in thread "main" java.lang.NullPointerException     at eclipsePackage.MainProg.main(MainProg.java:16) Can someone help me fix it


Installed Kubuntu in external SSD and now I can't load Windows without it

I have a computer running Windows 10. Because I wanted to use an Ubuntu based OS, I installed Kubuntu on an external SSD. I have a Lenovo y50-70 laptop, which has a button (next to the power button) that allows one to select which hard drive to boot without going directly to the internal hard drive. In the past I had done this and had no problems. However this time something went wrong.  If I have the hard drive connected to my computer when powering it up, I get the GRUB menu that allows me to select which OS I want to use. When I do not have it connected, I get the following message:  error: no such device: 43519df1-eaa6-4ae44-74b9d66931ff. error: unknown filesystem. Entering rescue mode... grub rescue> _   What I wanted (and what I was able to do in the past) is that when I normally boot my machine (regardless if I have the hard drive connected or not) that it will boot my Windows. When I want to use Kubuntu, I need to use the special "Boot menu" (by pressing the button next to the power up button) while having the device connected.  For some reason GRUB became the default booting system and I don't know how to make the system go directly to the Windows loader. For me to enter Windows now, I need to have my SSD connected as to allow GRUB to be found. How can I fix this?    I don't think this is a duplicate of the question  because this is not a normal dual-boot. My Kubuntu is installed on an external drive and during the process the Windows bootloader was replaced. Now I can't boot Windows (which is inside the laptop's hard drive) without having the external one connected. That being said, they have same similarities which could be argued to be enough for this questions to be a duplicate.


Usually, $0 in a script is set to the name of the script, or to whatever it was invoked as (including the path). However, if I use bash with the -c option, $0 is set to the first of the arguments passed after the command string:  bash -c 'echo $0' foo bar  # foo    In effect, it seems like positional parameters have been shifted, but including $0. However shift in the command string doesn't affect $0 (as normal):  bash -c 'echo $0; shift; echo $0' foo bar # foo # foo   Why this apparently odd behaviour for command strings? Note that I am looking for the reason, the rationale, behind implementing such odd behaviour.     One could speculate that such a command string wouldn't need the $0 parameter as usually defined, so for economy it is also used for normal arguments. However, in that case the behaviour of shift is odd. Another possibility is that $0 is used to define the behaviour of programs (a la bash called as sh or vim called as vi), but that cannot be, since $0 here is only seen in the command string and not by programs called within it. I cannot think of any other uses for $0, so I am at a loss to explain this.


PHP number comparison when dividing large floats

I am getting odd results when trying to compare two numbers when one is the result of a calculation involving large floats. For example: $a=15; var_dump($a); //gives 15 $b=1337.34/89.156; var_dump($b); //gives 15 var_dump($a==$b); //gives FALSE  Whereas changing the calculation for $b to a more simple equation returns as expected $b=67.50/4.5; var_dump($b); //gives 15 var_dump($a==$b); //gives TRUE  I can work around this by multiplying the initial floats by 1000, however I won't always know the precision of the two floats that are divided? $b=(1000*1337.34)/(1000*89.156); var_dump($b); //gives 15 var_dump($a==$b); //gives TRUE  Note, this impacts other comparisons (such as >= and <=) but I have omitted these in this example to keep the code simple. I have also tried casting the variables to floats to insure they are the same type for === comparison, but the problem persists. Any ideas why this is happening?


Finding UMVUE of $p^s$ in Bernoulli distribution

Suppose that $X_1, \ldots, X_n$ follows Bernoulli distribution $B(1,p)$,   then what is the UMVUE of $p^s$ and $p^s + (1-p)^{n-s}$?  I suppose I should use the Lehmann–Scheffé theorem. Now $\overline{X}$ is a sufficient and complete statistic, I need to find a function of $\overline{X}$ whose expectation is $p^s$ and  $p^s + (1-p)^{n-1}$. But I don't know how to find such a function.   Any hint would be welcome!


When using Static storage class, is stack used for Function implmentation? If yes, how does it work? If no, what is used?

For C Using stack, means throwing out called function variables first and then return address and then parameters. But when we use static storage class, the value of variable persists between different function calls. Stack uses last in, first out. and since function variables are last in, they should be first out but here they are not thrown out, so this means all the other information takes up memory as all... Is this how it works? But I feel this is not the most optimal way.. How are static storage class variables handled?


In my textbook, the definition of normalizer is     $N_G(A)=\{g\in G \mid gAg^{-1} \subseteq A\}$   Many textbooks use this definition.     $N_G(A)=\{g\in G \mid gAg^{-1} = A\}$   I know that normalizer is subgroup of $G$.  There is no problem when $A$ is finite. Two things are the same.  But if $A$ is infinite, I know that there exists example such that  $ gAg^{-1}$ is strictly in $A$.  In that case, it can be shown that for $g \in N_G(A)$, $g^{-1}\in N_G(A)$?


Ubuntu 17.04 — bash: cd: too many arguments

I just upgraded my Ubuntu 16.04 to 17.04 and found a little problem with cd command.  Let's say that I have two folders: album-01 & album-02  In Ubuntu 16.04, if I do cd album* it will go to the first folder found album-01  But in new Ubuntu 17.04, if I do cd album* it result me -bash: cd: too many arguments  How to make cd in Ubuntu 17.04 like cd in Ubuntu 16.04?


dealing with nested quotes in bash scripts redux

I want to construct a bash script which contains nested double quotes.    I've tried all of the usual tricks, in particular  rprint which everybody recommends. But nothing I've tried works.      In particular, rprint -v name "%q " lets me nest quotes but I then can't deal with the \'s it puts in front of the quotes.   Finally I settled on this extremely crude kludge:  shCommand=`echo !ssh -p $othPort!` execThis=`echo rsync -e $sshCommand etc etc | tr '!' '"'` eval $execThis   Thus execThis is what I want, i.e.,   rsync -e "ssh -p XXXX" etc etc   But there has to be a better way to do this since a) it's extremely crude and b) it won't work if I need the ! in following line --- there seems to be no special character that bash never uses.     Could somebody tell me what a real bash programmer would do in this instance?    Thanks very much for any advice


A convex function is differentiable at all but countably many points

Let $f:\Bbb R\to\Bbb R$ be a convex function. Then $f$ is differentiable at all but countably many points.   It is clear that a convex function can be non-differentiable at countably many points, for example $f(x)=\int\lfloor x\rfloor\,dx$.  I just made this theorem up, but my heuristic for why it should be true is that the only possible non-differentiable singularities I can imagine in a convex function are corners, and these involve a jump discontinuity in the derivative, so since the derivative is increasing (where it is defined), you get an inequality like $f'(y)-f'(x)\ge \sum_{t\in(x,y)}\omega_t(f')$, where $\omega_t(f')$ is the oscillation at $t$ (limit from right minus limit from left) and the sum is over all real numbers between $x$ and $y$. Since the sum is convergent (assuming that $x\le y$ are points such that $f$ is differentiable at $x$ and $y$ so that this makes sense), there can only be countably many values in the sum which are non-zero, and at all other points the oscillation is zero and so the derivative exists. Thus there are only countably many non-differentiable points in the interval $(x,y)$, so as long as there is a suitable sequence $(x_n)\to-\infty$, $(y_n)\to\infty$ of differentiable points, the total number of non-differentiable points is a countable union of countable sets, which is countable.  Furthermore, I would conjecture that the set of non-differentiable points has empty interior-of-closure, i.e. you can't make a function that is non-differentiable at the rational numbers, but as the above discussion shows there are still a lot of holes in the proof (and I'm making a lot of unjustified assumptions regarding the derivative already being somewhat well-defined). Does anyone know how to approach such a statement?


Why it is difficult to upgrade from 11.04 to 13.04?

I can not update and upgrade my Ubuntu and I don't want to use another system. I want your sincere help. answers available to questions asked didn't work on my system. my version is of 11.04.  Any help would be appreciated  thanks. regards,  Khalid Khan Seemab


Binomial Theorem. Can this be proved or not .

Is is possible to prove that  $${10 \choose 1 } + {10 \choose 3} + {10 \choose 5} + {10 \choose 7} + {10 \choose 9} ={2^{10-1}}$$   Thanks in advance.


Is the spin of an electron based on its direction of angular momentum? Is it based on the right hand rule of angular momentum? Does Spin up means that the electron is spinning anti-clockwise and spin down means that the electron is spinning clockwise according to the right hand rule?  OR  What do we mean when we say spin up of a particle or spin down of a particle?


How to redirect the output of any command?

I'm trying to write a simple script to monitor my network status, without all of ping's output:  ping -q -c 1 google.com > /dev/null && echo online || echo offline   The problem is that when I'm not connected, I'm still getting an error message in my output:  ping: unknown host google.com offline   How can I keep this error message out of my output?


As soon as curve is attached.    I need it to not move away. I have already joined hip with the rest of the spine but it deforms too much. Can anyone suggest how could i accomplish the same without curve modifiers? Thank you so much for your patience.  Moving top handle dislodges.    As soon as curve starts top part dislodges  ].png


When i am trying to sudo apt-get update and sudo apt-get upgrad i get this error below: These errors occurs: Get:1 http://dl.google.com/linux/chrome/deb stable InRelease [1 811 B] Hit:2 http://archive.ubuntu.com/ubuntu groovy InRelease                         Hit:3 http://archive.ubuntu.com/ubuntu groovy-updates InRelease                 Hit:4 http://ppa.launchpad.net/git-core/ppa/ubuntu disco InRelease              Hit:5 https://download.docker.com/linux/ubuntu focal InRelease                  Hit:6 http://archive.ubuntu.com/ubuntu groovy-backports InRelease               Hit:7 http://archive.ubuntu.com/ubuntu groovy-security InRelease                Ign:8 http://repo.vivaldi.com/stable/deb stable InRelease                       Hit:9 http://apt.postgresql.org/pub/repos/apt groovy-pgdg InRelease             Hit:10 http://repo.vivaldi.com/stable/deb stable Release                        Hit:11 http://packages.microsoft.com/repos/code stable InRelease                Hit:13 https://cli-assets.heroku.com/branches/stable/apt ./ InRelease           Hit:14 https://download.sublimetext.com apt/stable/ InRelease Get:12 https://packages.cloud.google.com/apt kubernetes-xenial InRelease [9 383 B] Hit:16 https://packagecloud.io/AtomEditor/atom/any any InRelease                Reading package lists... Done                                                   E: Repository 'http://dl.google.com/linux/chrome/deb stable InRelease' changed its 'Origin' value from 'kubernetes-xenial' to 'Google LLC' E: Repository 'http://dl.google.com/linux/chrome/deb stable InRelease' changed its 'Label' value from 'kubernetes-xenial' to 'Google' N: Repository 'http://dl.google.com/linux/chrome/deb stable InRelease' changed its 'Version' value from '' to '1.0' N: Repository 'http://dl.google.com/linux/chrome/deb stable InRelease' changed its 'Suite' value from 'kubernetes-xenial' to 'stable' E: Repository 'http://dl.google.com/linux/chrome/deb stable InRelease' changed its 'Codename' value from 'kubernetes-xenial' to 'stable' N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.  What is the problem?


Frobenius coin problem using Mathematical Induction.

Prove using induction that every positive integer $𝑛>23$ can be expressed in the form $𝑛=5𝑎 +7𝑏$ for appropriately chosen non-negative integers $a, b$. What should I use? Mathematical Induction or Strong Induction? Can anyone help me solving this question? It confuses me a lot. Any help will be appreciated.


Book About an AI Video Game Manipulating High Schoolers

I read this some time ago and have been trying to find it again but I can't remember the title so hoping someone will recognize this description...  The story follows a high school boy who gets a new video game from someone at school and starts playing it. There is an AI NPC in the game that deals in favors with all the kids who play the game, making their wishes come true in exchange to the kids doing things in the real world that help other wishes come true or further the AI's own objectives. I want to say the AI is trying to take revenge on a company that fired the man who wrote it. The main character eventually figures out the AI's plan by correlating features in the video game to subway lines in the real world.  Ring any bells?


Why doesn't the Earth lose its magnetic properties?

I learnt in junior high that magnets, when exposed to heat, usually tend to lose their magnetism. Similarly, the Earth's core is also hot, but it doesn't lead to the loss of magnetism of Earth. Am I missing something or is there any fault in my understanding?


Data in tables after DROP DATABASE and recreate

Just came into the 'feature' I had no idea will ever happen. We have two servers for development - S1 and S2. We most often use S2 and S1 went out of date. Let's assume that S1's database DB1 stays at C:\mssql\data\db1.mdf  What I did:   Drop database DB1 on S1 Scripted DB1 on S2 without data as CREATE DATABASE... and create tables, indexes, etc... Run script on S1, to create new DB1 as on S2.   although I didn't delete db1.mdf file, after dropping and recreating I expected my tables to have no data. What was my surprise after finding some tables filled!  What's the explanation for that?  Cheers.


Showing that there exists a bijection from $\{0,1\}^X$ to $\mathcal{P}(X)$

This is possibly a duplicate, but I was unable to find a post that would answer this question. If you do find it, please put it in comments and I will delete my post.  Suppose you have a $\{0,1\}^X$ which is the set of mappings from $X$ to $\{0,1\}$, show that there exists a bijection from $\{0,1\}^X$ to $\mathcal{P}(X)$.  I know that $X$ cannot be finite, but to understand better the situation, I first assumed $X$ to be finite. Then by using combinatorics notions, I could see that $\{0,1\}^X$ most likely would have $2^{|X|}$ elements, just like $\mathcal{P}(X)$. Yet in case $X$ is infinite(and it always is), $2$ to the power of infinity doesn't make much sense. Could you show me how to show that there exists a bijection? Or is there a theorem for that?


Can I insert a file into the install disk?

I have some pdf support and how tos that I would like to end up on every install, is there a way of doing this from my usb startup disk? Or would I need to make a customer iso


To prevent fork bomb I followed this   ulimit -a reflects the new settings but when I run (as root in bash) :(){ :|:&};: the VM still goes on max CPU+RAM and system will freeze.   How to ensure users will not be bring down the system by using fork bombs or running a buggy application?  OS: RHEL 6.4


Why is the plural of "quiz" spelled with double Z?

The plural of "quiz" is spelled with double "z" while the plural of "box" (and sometimes "bus") is spelled with a single last consonant. Why is it so? Is this the general rule to double the last consonant to keep the syllable closed?


I use MiKTeX on Windows and quite satisfied with it. Recently I started switching all my tasks toward open-source alternatives, and in the course I would love to use Linux. In Linux TeXLive is available as alternative to MiKTeX. The thing I really like about MiKTeX, is its ability to install packages automatically. Can I do the same in TeXLive too? Is there a way I can enable such or install some plugins for it?  I am using Fedora 18, if that's needed.


Basic operation of BJT (Bipolar Junction Transistor)

I've searched many references, but now I'm stuck. What I understand so far is that a transistor is made up from two diodes, and as far as I know, the function of diode is only allow a current flow from one direction (ideal diode).  I've looked at this diagram of transistors:    For PNP transistor: If I trigger the Base with some small current, Ib, how can the current from the Collector flow to the Emitter, if there's a diode there (in the Emitter)?  Same question with NPN transistor.  I'm stuck here....


If a boggart appeared to someone as a basilisk, would direct contact with its eyes kill that person?


Good resources (online or book) on the mathematical foundations of statistics

Before I ask my question, let me give you a bit of background about what I know about statistics so that you have a better sense of the types of resources that I'm looking for.  I'm a graduate student in psychology, and as such, I use statistics almost every day.  By now I'm familiar with a pretty broad array of techniques, mostly as they are implemented in the general structural equation modeling framework.  However, my training has been in the use of these techniques and the interpretation of results -- I don't have much knowledge of the formal mathematical foundations of these techniques.  However, increasingly, I've had to read papers from statistics proper.  I've found that these papers often assume a working knowledge of mathematical concepts that I don't know much about, such as linear algebra.  I have therefore become convinced that if I wish to do more than blindly use the tools that I have been taught, it would be useful for me to learn some of the mathematical basis of statistics.  So, I have two related questions:   What mathematical techniques would be useful for me to know if I want to brush up on the mathematical foundation of statistics?  I've encountered linear algebra pretty often, and I'm sure that learning about probability theory would be useful, but are there any other areas of math that would be useful for me to learn about? What resources (online or in book form) can you recommend to me as someone who wants to know more about the mathematical foundations of statistics?


How to align table or figure caption where the table starts?

HI   How can I start the caption where table starts or figure starts?   \captionsetup{justification=justified, singlelinecheck=false}   does not work for me because it places the caption at the beginning of the paragraph not the beginning of the table.  Thanks!!


First time using bevel tool, doesn't bevel evenly. What am i doing wrong?

First off I'll let you know I'm a total noob at blender I've used 3ds Max up until this point, but the company I'm working for at the moment needs me to use blender so I'm trying to make the transition over.  Literally all I'm making at the moment is a simple book and cannot understand how the bevel tool isn't working similar to how the chamfer tool would in 3ds Max.  I want a nice curved edge for the spine of the book however when I press control + B and try to bevel it bevels the edge unevenly with the new bevel pushing forward.    Is there a way I can get it to bevel evenly like it does in Max?


Copyright issues if using vector art from Shutterstock?

My company bought  and wants to trademark it by adding some words with different colors.   Do you know anything about if this is legal since we purchase the vector art?


I have a button that triggers all buttons on a page, but I need to add a delay of around 5 seconds after each button is pressed. Is this possible? Any help would be appreciated.  function B4() {       document.getElementById("Searchdate").click();   document.getElementById("Search").click(),                                                         document.getElementById("Search1").click();   document.getElementById("Search2").click();   document.getElementById("Search3").click();   document.getElementById("Search4").click();   document.getElementById("Search5").click();   document.getElementById("Search6").click();   document.getElementById("Search7").click();   document.getElementById("Search8").click();   document.getElementById("Search9").click();   document.getElementById("Search10").click(); }


Problem with iTunes Store and updating WhatsApp

So the problem is that I have an iPhone5 from my cousin, and yesterday I got a messages in WhatsApp from friends but I couldn't open WhatsApp. It said that I need to update WhatsApp. I went to the App Store and it required the password of iTunes Store but old email and password from my cousin, and I don't know the password.  Does someone have a solution for this? I also don't want to delete my WhatsApp because I cannot backup my chat history and also will not see the new messages that come in my WhatsApp.


C++ Template, Linker undefined reference despite instantiation?

I tried to make a template class for an implementation of a 3D vector. Relevant snippet of the 2 files (vec3d.h and vec3d.cpp) are .  The main.cpp is as follows:  #include "vec3d.h"  #include <iostream>  using namespace std;  int main() {     Vec3D<double> a(1,2,3), b(2,4,5), c;     c = 2.3*b;     cout<<c._x;    return 0; }   On compiling it with g++ main.cpp vec3d.cpp vec3d.h the following error occurs:   In function `main': main.cpp:(.text+0x124): undefined reference to `Vec3D<double> const operator*<double>(double, Vec3D<double> const&)' collect2: error: ld returned 1 exit status   I have put the definition and declarations of the functions separately, but I have also instantiated the template for double.  Funnily enough, c = b*2.3 does not throw an error. Any reasons? I am also getting the same error on several other functions (like <<, ==, / all are declared in similar fashion)  What am I doing wrong?  [[EDIT]]  I instantiated the class, as should be, but I didn't instantiated the template functions which are present outside of the class. Apparently, I have to instantiate the too. Didn't know that.  More: Refer to . Every C++ unit defined using a template has to be instantiated if the definitions are in a separate file from the file with declarations, not just classes


Ali has few friends, does he?  Is using an affirmative question tag after that sentence a sound structure or not?


In the osx/ios world, what is a library and what is a framework?

I am learning development on osx and ios. So far, coding is ok. The most difficult is to handle all the files, all the configuration issues (of xcode), and so on. I thought hearing from a guru about libraries/frameworks would help me a lot!  I would like to know more about libraries and frameworks.    What is a library, what is a framework (and what's the difference between them)? Where can I find a list of all the frameworks (of all the libraries?)? Or: what are the most important frameworks? What can I do without any framework?


How do I query by meta_value or title?    If I set meta_values,  $args['meta_query'] = array(    'relation' => 'OR',     array(         'key' => 'model_name',         'value' => $thesearch,         'compare' => 'like'     ) );   they automatically get added as AND.  This search would be:   WHERE title = 'Search' AND (model_name = 'Search' OR ...)   I need  WHERE title = 'Search' OR (model_name = 'Search' OR ...)


Unable to format a encrypted micro sdxc card

I have an encrypted 128GB micro sd card. I reinserted it into my phone and went into settings, storage where it shows sd card under it, it says "corrupt" I tap it and it tells me I have to set it up in order to use it. So I proceeded it got to about 20% but when I looked back at the screen it was back on the settings screen. Not showing the sd card was even still mounted in the phone...... any help is appreciated!   Just to add I also did try using the "clean all" using the command prompt. It did not work.


Is there any way to know the RAM of an Android phone?

I bought a Spice Stellar Jazz Mi-353. It tells me that it has 116MB of RAM, but it is supposed to be 256MB. Is there a way to check how much RAM my device physically has before deciding to get it replaced?


Suggested edit count shown on toolbar when limit is reached.  r  Here I have reached daily limit of 20 questions for suggested edits but there is indicator for that in tool bar. Also no indicator appears for First Posts or for Low Quality Posts or any other type. This indicator only appears for suggested edits.    Note there is no such indicator for First Posts or for Low Quality Posts. If it is a feature, it must be uniform for all types or not.  I know there is already a famous question . But no satisfying answer. Also this is asked as feature but I think this is a bug.


My problem is: Let $A$ and $B$ finite sets of equal cardinality. Show that if a function $f : A \to B$ is injective then it is also surjective. Similarly show that if $f$ is surjective, then it is also injective.  My thought is since the number of elements in $|A| = |B|$, function $f: A \to B$ is bijection. But my instructor said I have to explain more. Please help me with this. I don't know how a injective function leads to a surjective function and vice versa. Thank you.


How do you get indented text except for the first line of a paragraph

Something like :  First line of a praragraph followed by   indented text and some   more indented text   In other words the inverse of what you usually get. MWE :  \documentclass{book}  \usepackage{kantlipsum}  \begin{document}  \kant[1-2]  \end{document}


Can't create admin user with Mac OS X El Capitan

My girlfriend did a mistake when she deleted her session login! But, she has only one session login. Now, we can't connect to the Mac because we don't have any access... So I booted to Recovery Mode, opened Terminal.app and tried to execute:  dscl . -create /Users/mynewuser   But it doesn't work ... Terminal said : create: Invalid Path  <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)   What can I do please ?


Can you use the Healing Extra Restorative to heal loss of Toughness (-x Toughness save) due to failed damage saved from combat?

Can you use the Healing Extra Restorative to heal loss of Toughness (-x Toughness save) due to save vs damage?     Restorative: Your Healing effect can restore character points removed by Weaken effects with the appropriate descriptors, such as injury, disease, or poison. You restore points equal to your rank to the affected trait(s).


Find all Integral solutions to $x+y+z=3$, $x^3+y^3+z^3=3$.

Suppose that $x^3+y^3+z^3=3$ and $x+y+z=3$.   What are all integral solutions of this equation?   I can only find $x=y=z=1$.


Minkowski diagram and length contraction

The length contraction means that an object is the longest in the frame in which it is at rest.   Lets assume i have a meter stick with length $\Delta x$ in my rest frame which is $x,ct$ and i want to know how long my meter stick seems to an observer moving with a frame $x',ct'$.  1st: I draw world lines of a meter stick  in a rest frame and they are vertical (parallel to $ct$ axis) as meter stick is stationary in this frame.   2nd: If an observer in a moving frame $x',ct'$ wants to measure my meter stick he measures its edges at the same moment in his time, so i draw a tilted line (parallel to $x'$ axis).  3rd: If i mesure the length $\Delta x'$ which is a length of a meter stick as observer in frame $x',ct'$ sees it, it seems to me that he sees a longer distance than me.    This is not correct. Could anyone tell me what am i missing here?


In S06E10 "The Winds of Winter", Lord Varys is first seen in Dorne in this scene:  And at the end of the episode Lord Varys is seen standing behind Daenerys in the ship:  How is this possible? Does Varys have some power that I am not aware of? What is it?


Question regardles primes and the fundamental theorem of arithmetic

I have been reading through my book of practice proofs and came across this particular question which has stumped me.      $p$ and $q$ are primes. Prove $\forall p \in \mathbb{Z}, \forall k \in \mathbb{Z}, (p^2\mid q^2) \Rightarrow p=q$.   I assume that the proof starts with stating that $p^n$ and $q^k$ in their product of primes form but I am unsure on how division in these forms work or if I'm even correct in assuming that is the first step. Can anyone give me an explanation of the answer so that even a 16 year old can understand? Thanks!


How to run Windows 10 from USB on Macbook?

I need to create a portable windows To Go workplace for my job and make it runs on a Mac computer, i tried WinToUSB tool and it didn't work, it keeps stucking at 0% when creating Windows to Go with a USB 3.0, so, is there any other way or tools that can create a WTG drive that can be boot and run on a mac?


PHP syntax for dereferencing function result

Background  In every other programming language I use on a regular basis, it is simple to operate on the return value of a function without declaring a new variable to hold the function result.  In PHP, however, this does not appear to be so simple:  example1 (function result is an array)  <?php  function foobar(){     return preg_split('/\s+/', 'zero one two three four five'); }  // can php say "zero"?  /// print( foobar()[0] ); /// <-- nope /// print( &foobar()[0] );     /// <-- nope /// print( &foobar()->[0] );     /// <-- nope /// print( "${foobar()}[0]" );    /// <-- nope ?>   example2 (function result is an object)  <?php     function zoobar(){   // NOTE: casting (object) Array() has other problems in PHP   // see e.g., http://stackoverflow.com/questions/1869812   $vout   = (object) Array('0'=>'zero','fname'=>'homer','lname'=>'simpson',);   return $vout; }  //  can php say "zero"?        //  print zoobar()->0;         //  <- nope (parse error)       //  print zoobar()->{0};       //  <- nope                     //  print zoobar()->{'0'};     //  <- nope                     //  $vtemp = zoobar();         //  does using a variable help? //  print $vtemp->{0};         //  <- nope


How was Madara able to summon Susanoo after he was revived by Rinne Tensei no jutsu?

In Naruto: Shippuden before Madara is able to retrieve one of his Rinnegan after being revived, he fights with the Tailed Beasts by using Susanoo even when he's blind. How is that possible?


I'm getting a, "Pixel format not accelerated" error when I try to launch Minecraft

So when I launch Minecraft, before it finishes loading, it crashes. I do not understand what is going on. Could someone help me? Here is my crash report:  ---- Minecraft Crash Report ---- // Don't be sad. I'll do better next time, I promise!  Time: 12/26/13 8:03 PM Description: Initializing game  org.lwjgl.LWJGLException: Pixel format not accelerated     at org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat(Native Method)     at org.lwjgl.opengl.WindowsPeerInfo.choosePixelFormat(WindowsPeerInfo.java:52)     at org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:252)     at org.lwjgl.opengl.Display.createWindow(Display.java:306)     at org.lwjgl.opengl.Display.create(Display.java:848)     at org.lwjgl.opengl.Display.create(Display.java:757)     at org.lwjgl.opengl.Display.create(Display.java:739)     at azi.ad(SourceFile:325)     at azi.f(SourceFile:696)     at net.minecraft.client.main.Main.main(SourceFile:152)   A detailed walkthrough of the error, its code path and all known details is as follows: ---------------------------------------------------------------------------------------  -- Head -- Stacktrace:     at org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat(Native Method)     at org.lwjgl.opengl.WindowsPeerInfo.choosePixelFormat(WindowsPeerInfo.java:52)     at org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:252)     at org.lwjgl.opengl.Display.createWindow(Display.java:306)     at org.lwjgl.opengl.Display.create(Display.java:848)     at org.lwjgl.opengl.Display.create(Display.java:757)     at org.lwjgl.opengl.Display.create(Display.java:739)     at azi.ad(SourceFile:325)  -- Initialization -- Details: Stacktrace:     at azi.f(SourceFile:696)     at net.minecraft.client.main.Main.main(SourceFile:152)  -- System Details -- Details:     Minecraft Version: 1.7.4     Operating System: Windows 7 (x86) version 6.1     Java Version: 1.7.0_45, Oracle Corporation     Java VM Version: Java HotSpot(TM) Client VM (mixed mode, sharing), Oracle Corporation     Memory: 5361520 bytes (5 MB) / 26808320 bytes (25 MB) up to 518979584 bytes (494 MB)     JVM Flags: 2 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx512M     AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used     IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0     Launched Version: 1.7.4     LWJGL: 2.9.1     OpenGL: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.     GL Caps:      Is Modded: Probably not. Jar signature remains and client brand is untouched.     Type: Client (map_client.txt)     Resource Packs: []     Current Language: ~~ERROR~~ NullPointerException: null     Profiler Position: N/A (disabled)     Vec3 Pool Size: ~~ERROR~~ NullPointerException: null     Anisotropic Filtering: Off (1)


Is there a timeline for the Eugenic Wars?

The Eugenics Wars are said to have occurred in the 1990s in “The Original Series” and “Wrath of Khan.” But “Voyager” visits our version of 1990s Los Angeles too, with no war or mention of genetically engineered super-men ruling significant portions of the planets.  How is this possible?  When did the wars actually happen?  Or were they erased from ever happening in some alternate  timeline?  Or are The Next Generation, Deep Space 9 And Voyager all in a timeline where it didn't happen?


On which of the websites of Stack Exchange one can ask about career options and expert advice from software professionals?

I am a software developer and have started my career recently. I want to decide how to steer my career and to get some advice from experience people in this field.  I looked through the list of all websites under Stack Exchange and could only think of Programmers.SE as my best option. But I am not so sure after reading about it in the 'about' page.  Where I can ask my question without being down voted by other members? If there isn't any such group, I suggest that it be included in Stack Exchange.


How do I calculate numbers like this into a real number?

I see numbers like this in calculators, but they don't mean anything to me. How do I turn this number into a real number.  9.223372e+18  I'm not even sure what kind of math this is.


Find all functions satisfying the condition $f(x+y)+f(x)f(y)=f(xy)+f(x)+f(y)$

Find all functions $f:\mathbb{R}\to{\mathbb{R}}$ such that   $f(x+y)+f(x)f(y)=f(xy)+f(x)+f(y)$ for all $x,y\in{\mathbb{R}}$  first I put $x=y=0$ so I got $f(0)=0$ or $f(0)=2$.  For the case $f(0)=2$, putting $y=0$, I got $f(x)=2$ for all real $x$.  For the case $f(0)=0$ I am not able to proceed. Pre-calculus method is preferred.


Do you say "the lyrics of the song" or "the lyrics to the song"? And why?

Well, the title says it all:  Do you say "the lyrics of the song" or "the lyrics to the song"?   Is any of these wrong?  And why?


Not getting any reading from FTDI UMFT201XB USB-to-I2C module

I got the  in order to interface with an I2C peripheral through a USB port on my Windows 7 computer.  The VCP drivers seem to install correctly, and a COM port is assigned to the module, and can be opened by a terminal emulator. However, I cannot seem to get any signal in or out of the module. That is, I see no activity when I send data through the port, or receive any data when I connect an I2C device to it (this was debugged using a scope). I have also verified that the RESET isn't on.  I found very little helpful information out there on how to get this module to work, so if anyone has experience with it, or with similar FTDI modules, my question is: what are the steps that I need to take in order to get the module to communicate?


Convert date to number for compare in Google Sheets

Could you help me please? I need to compare two dates to generate an if condition when it expires. My idea is to send an email to the person involved when today's date is greater than the date in the elements [16]. I broke my head and I couldn't compare with each other, it only works with the same because it is comparing text. An example below: function sendmailAtualizarFollowup(){ var app = SpreadsheetApp; var gmail = GmailApp; var spreadsheet = app.getActiveSpreadsheet(); var sheet = spreadsheet.getSheetByName('Cópia de Dados'); var values = sheet.getRange("B2:AR").getValues(); var now = new Date();    // var now = new Date();    // var nowString = Utilities.formatDate(now, 'TimeZone', 'dd/MM/yyyy');    // Logger.log(now);   values.map(function(elem,ind,obj){ if(elem[0] != ""){ var vencimento = new Date(elem[16]);{    // var vencString = Utilities.formatDate(vencimento, 'timeZone', 'dd/MM/yyy');    // Logger.log(vencString);   if(elem[11] != ""){  if(now.toDateString() == vencimento.toDateString()){   //Here's my trouble  gmail.sendEmail(elem[38], "Subject -> "+elem[0], "Example:  "+elem[5]+"  "+elem[7]+", sob responsabilidade do(a) "+elem[10]+". A data de emissão do relatório contendo este evento é "+elem[3].toDateString()+", e o vencimento original proposto pela área é "+elem[11].toDateString()+". A situação do ponto é: Controle "+elem[22]+". Os detalhes do apontamento estão disponíveis no link: "+elem[20]+". Esta é uma mensagem automática."); } } }})};


The equivalence of sample correlation and R statistic for simple linear regression

It is often stated that the square of the sample correlation $r^2$ is equivalent to the $R^2$ coefficient of determination for simple linear regression. I have been unable to demonstrate this myself and would appreciate a full proof of this fact.


The post that you want to link this about is not resolving my problem I copy pasted that code and it is still not printing the result as xml format. I want to create a xml format output from a string, but don't know why it is not working if you can recommend another way to do that. <?php     @date_default_timezone_set("GMT");      header("Content-type: text/xml");    //xml string   $xml_string=     "<?xml version='1.0'?>      <users>      <user id='398'>      <name>Foo</name>      <email>foo@bar.com</email>      </user>      <user id='867'>      <name>Foobar</name>      <email>foobar@foo.com</email>      </user>      </users>";    echo $xml_string;  ?>


Relativistic speed and quantum entanglement

Just a thought experiment. First we entangle two particles, and then send one of them on a space journey, make it travel really fast. First we synchronize the  watches, of course. So, after some time we measure some property of a particle (no matter which). WHEN will the other particle be affected? Because the clocks are showing different times.  Sorry if I oversimplified this question, and sorry for my English!


I'm new to Blender so please excuse this question. I know there is already a , however I'm having trouble with the solution posted there.  I want wo wrap text around a cylinder, but it should not be flat but "stand" on the curve, like this:   To do so, I created a bezier circle and used the "Text on curve" option to make the text follow the circle. Now it looks like this:   In the answer to the question I posted above, it says I should rotate the text on the x-axis to achieve the "standing" effect. However when I rotate it on the x-axis, it looks like this:   What am I doing wrong? Thanks for your help!   P.S. Please excuse my english, I'm not a native speaker! :)


Boarding point change for an Indian rail reservation

I booked a train ticket on the Yeswantpur (Yeshvantapur, YPR) to Calicut (CLT). I gave my boarding point as Yesvantpur (YPR). My reservation is from Yeswantpur. Am I entitled to board at Karmelram (CRLM)?


In this sentence, is the correct pronoun me, I, or myself?

I need help with figuring out what pronoun to correctly use at the end of the following sentence:  "As a child, I witnessed my father regularly fight with my mother, and exhibit strong, emotional and physical outburst towards my sister and me/I/myself."  Can anyone explain which one it correct and why?


I want to dynamically adjust the height of DIV container for fill the remaining space between the bottom of the page and the content above.  I've tried to use height:100% or height:calc(100%- XX); but the height of the segment above is not defined. How can I resize the container below?  So, in this pen, I want to remove the scrollbar and show the content in the entire page.
Ciao

here


Time has many definitions per se, but the basic idea being it's "the measurement of change" so as we know, all matter looses it's ability of changing with the loss of kinetic energy. and the where it becomes zero is the absolute zero (−273.15°C). so my question would be, will time stop/freeze at Absolute zero? and does time get slow while reaching there?


If north is the antonym of south, then what is the relationship between north and all other non-north directions such as east, west, south, south-east, south-west, etc.?  Similarly, if male is the antonym of female, then what is the relationship between male and the other non-male genders such as transgender variants, female, etc.?  Perhaps I can illustrate my question as:          antonym  north<--------->south            ? north<--------->everything non-north   They are perhaps mutually exclusive. But I expect that there's a semantic term that better describes this relationship. If there's no straightforward technical term available, I'd appreciate non-technical alternatives as well.


I believe the sentence in the title is grammatically correct.   Recently I've seen too many people writing it this way:     I'm not sure what is the right way.   Is it grammatically correct as well? Maybe in a different sense? Or simply misuse by non-native speakers?


How to create arguments in a custom bash script?

Say I have something simple such as  #!/bin/bash  echo "Enter process name to kill: ";  read -r process;  pgrep "$process" | xargs kill;    let's say this script has an alias of 'kp'  What do I have to do to remove echo "Enter process name to kill: "; and replace it with an argument that the command can take such as kp firefox rather than the input method.


How can i check if an element has got a class in it?

I  have got the below HTML as a response .

Honey with Carmel  10 ML

Honey with Carmel  10 ML

   I need to find out if any section has got class as "tpActive" ??  I wrote the below , but don't know how to check further ??  $('#'+v_item_id+'.activateUiHTML').find(".Topping-details").find("section")   could anybody please help me .  Updated Question    if($('#'+v_item_id+'.activateUiHTML').find("Toppingdetails").find("section").hasClass("tpActive")) {    alert('has'); }else {    alert('No'); }


What kind of grammar is this? Question without question form?

"That's why you did this!?"  That's obvious a question, but no question form is used? Shouldn't it be something like  "is that why you did this?"


Is it good to create new indexes for better performance - SQL Server

Hi I have a SQL Stored Proc that used to take 45 seconds to execute.  Then I run the Execution Plan under SQL and saw some high cost steps:    Then I right click that and select:    And finally I create the indexes that the Execution Plan recommend me.  Now the Query takes 2 seconds that is acceptable.  Is that right what I did? Does it come with extra cost?     Any advice is well appreciated


QGIS Slope Analysis produces strange values

I am performing a slope analysis (Raster>Analysis>Slope) of a US Geological Survey DEM. I am calculating the slope of a raster DEM saved as a TIF. I set up the slope analysis as per the picture below in EPSG 4326. I tick on calculate percentage and compute edges and leave all other variables as standard. When I calculate the slope in percentage I get really odd values being e to the 6 as shown in the layer panels in the second item down, rather than between 0 and 90%. In the map the layer looks correct though and this is a hilly area. How do I make it so the values appear between 0 and 90? Similarly when slope analysis is performed in degrees (not ticking the percentage option it returns nearly all cells as 90 degrees which isn't correct (layer 2 in layers panel). How do I solve these problems?


How do I find travel partners for a bicycle touring trip?

I am looking for people interesting in going bicycle touring in S.E.Asia. Having travelled by bike before alone and with a partner, I'm keen this time to find someone likeminded to go through the process of preparing and be up for an adventure. Any websites, forums or otherwise for finding this kind of person?


Can we use verbs of perception in the present continuous?

Title says it all. Kindly inform what other verbs can't be used with present continuous.


ubuntu 14.04 LTS hangs during installation

I'm trying to install the 64bit version of 14.04 on a computer with an AMD Athlon 64 processor.  The computer is currently running 64-bit window 7, which I plan to dual boot with Ubuntu.  I downloaded the iso image, burned the image to a DVD, and booted from it.  The installation process gets to the purple screen with the word Ubuntu in the middle and the flashing dots below the Ubuntu word.  I waited for over 1/2 hour and the screen still shows the same image. I noticed the Ubuntu download web page also offers a Mac 64-bit version that says "(AMD)".  Do I need to use the MAC version instead of the regular 64-bit version given the fact that my computer has an AMD Athlon 64 CPU?


How can a theory be decidable but incomplete?

I can see how a theory can be complete but undecidable.  But I have trouble with the decidable but incomplete.  I saw some examples, but is there a property or how?  Edit: I saw the question marked as duplicate, but I am hoping to learn what property makes theories  both decidable and incomplete rather than examples. The answers there focus more on complete and undecidable


How to find collisions in a hash function knowing its coefficent?

Say I have a simple hash function where $x$ is a sequence of integers:  $$h(x)=(a_1\cdot x_1+...+ a_n\cdot x_n) \bmod N=\sum_i a_i\cdot x_i \bmod N$$  where $a_1,a_2,a_3,...,a_n$ is the coefficient known to the attacker, size of $x$ can be anything smaller than $N$.   How to find 2 different inputs that hashes to the same value, i.e $0$?  I feel like this has something to do with linear combination / euclid algorithm but I'm not sure how to proceed.


I want to combine a list of tuples in python

I have a list of tuples of x and y coordinates such as:  [(1,2), (3,4), (5,6)]  and I want to manipulate the list to become a 2xN matrix(depending on how many numbers) so that I have a list of just the x coordinates and then the y coordinates. Basically I want to output:  [(1,3,5), (2,4,6)]  through a function, but am not exactly sure how to do so.


How can I turn a company page into a showcase page?

I see that LinkedIn now offers showcase pages so you don't need to have a company page for a product. My company page is at  and I created a company page for one of our products at .  Do you know if it's possible to turn that company page into a showcase page? And if not, would deleting it free the name for me to re-created it as a showcase page? I don't want to delete it and have it forever stuck.


I have left my cast iron pan on the heat for 2 1/2 hrs. How do I stop the release of black on paper towel and when first cooked onions?

I left my empty cast iron pan on the stove top for 2 1/2 hrs.  My problem is not a rusty residue, but black that continues to wipe off. What can I do? I have washed with steel wool, rinsed well, but when I wiped with oil, the paper towel continues to wipe black.


"most" vs "the most", specifically as an adverb at the end of sentence

Which one of the following sentences is the most canonical?  I know most vs. the most has been explained a lot, but my doubts pertain specifically to which one to use at the end of a sentence.     Do you know accepting answers improves your reputation and lets other   users know what solution helped you the most?   vs     Do you know accepting answers improves your reputation and lets other   users know what solution helped you most?   EDIT:  doesn't solve my doubts because it is not about using "most" and "the most" specifically as an adverb at the end of a sentence.


Ubuntu installation with windows 10 problems

Iam trying to install ubuntu on my current windows 10 Desktop. I boot Ubuntu in BIOS which Windows 10 also boots in. The problem is that Ubuntu detects that windows 10 is installed BUT it doesnt give me the option to install ubuntu alongside with my current operating system. I have tried very many diffrent things in BIOS (or UEFI since my motherboard is Uefi). All help, suggestions or answer is very appreciated.


What is the reason implementing IEnumerable and IEnumerator

I am preparing for my C# EXAM. I am confused about the answer to this question:     A program can use the IEnumerable and IEnumerator interfaces to do which of the following?      a. Use MoveNext and Reset to move through a list of objects.   b. Use foreach to move through a list of objects.   c. Move through a list of objects by index.   d. Use the yield return statement to make a list of objects for iteration.   My answer was b). But the book: MCSD Certification Toolkit says it is a).   Can someone tell me why?  I realize that you can obtain the Enumerator using GetEnumerator() and then call the MoveNext and Reset methods to move through the list (and use Current to access the current element  referred to by the iterator). But isn't implementing IEnumerable and IEnumerator the reason for an object to be used in a foreach loop?


How to dump the memory of a process to a file and then restore the process into memory?

I have a game where saving is impossible most of the time, there are big gaps between saves and many progress is lost if the game crashes or I die.   I want to know if it's possible to dump the RAM of a process onto the disk and then restore it when needed? and if yes, how do I do that?   Just like suspending a VM-Ware virtual machine... but not a virtual machine yet a process in windows.


Relationship between the "app.config" and "user.config" files?

What's the relationship between the app.config stored in the root of the project and the user.config file stored in C:\Users\User_Name\AppData\Local\...?


Proving that expression is equivalent to the definition of derivative

Let $f$ be differentiable at $x=a$.   Prove that if $x_n \to a^+$ and $y_n \to a^-$ then:  $$\lim_{n\to \infty} \frac{f(x_n)-f(y_n)}{x_n-y_n}=f'(a).$$  Every option that I think about seems to my very trivial, so I believe that I am doing something wrong.  Both numerator and denominator approach zero as $n\to\infty$ as the case of the formal definition of derivative, but it isn't guaranteed that the limits are equal (“$\frac{0}{0}$”).   Any direction?


I have a drive that used to have reallocated sectors, until I deleted any data on the affected area and partitioned around it. It works fine, and has worked fine for over a year, I just want to know how I can reset the smart data, as the reallocated sector count has gone back down to 0, I need to reset smart or something so that I can install windows, as windows 7 does not allow installation on "failing" media. Any ideas, or any workarounds are appreciated.


I've been bashing my head against a wall for the last day trying to get this to work.. I have a custom schematic and pcb library, when I try to update my pcb document I get the following error:    I have checked both the schematic symbol and the pcb footprint about a million times and am certain that I have correctly designated the pins.     I have learned a little bit about using Altium at university, and I have had some success using custom schematic/pcb libraries in the past but for some reason I just can not get this one to work. I've done some searching on the forums for this error but have not yet been able to find a solution that worked for me.  Any ideas/suggestions are welcome! Thank you  EDIT: This is the schematic:   here are the properties of pin 2:   and here is the PCB footprint:


In the following sentence, is rivers capitalized or not?  The Delaware and Potomac rivers are beautiful.


how to hide articles page from home page in drupal

I have added article page in my project and made Views for that, but articles page also display on the front page. How to hide article from home page?


How to use [submission:values] in Email template in Webforms

I have the Webform 7.x-4.0-alpha6 version module enabled.  I have a Webform node with 20 form components. I added one email in Email Setting and I created the email template where I used the token: [submission:values].  Then I test the webform submitting a message. The problem is that [submission:values] print out the components values in a very plain way, no break line, no semicolon to make a difference between the title and the value for each component. Something like:  Name Jhon Addresss Myaddress 12  CP 19932 ....   Having 20 component make the email completely unreadable   My question is: Is there a way (a token) to print them in a better way, at least adding a semicolon between the title and value, and making the title bold ? or putting the output in a table?      Name: Jhon     Addresss: Myaddress 12      CP: 19932   I know that I can print out the components in a separated way using the tokens: [webform:{component}-title] for the title and  [webform:{component}-value] for the value  And then I can style them. But this is time wasting since I need all components to be shown in the email template  Update: I found this module but doesn't help me:


Does stackoverflow.com use dependency injection?

I know stackoverflow.com uses ASP.NET MVC but I am curious to know the design and the architecture of Stack Overflow. In particular, I am curious to know about the following design choices:   Does it use Dependency Injection/IoC container? Why or why not? Where is the business logic developed? In the Controller action methods? Repository methods if following Repository pattern? Or in the Service layer if following the Service pattern? Or in the domain objects themselves à la Active Record?    In particular I would be more interested in learning about reasons pertaining specifically to stackoverflow.com rather than generic ones.


How do I use update_option to give me a new option name each time a form is submitted? The code I'm using now overwrites the database value. Instead I need to have a new address saved each time.  The code:                      // assign addrss to var                     $address = esc_html( $_POST['address'] );                      //assign JSON object to var using geocodeing function('address') input                      $address_results = boj_gmap_geocode($address);                      // transfer data to options array                     $options['py_name'] = $py_username;                     $options['address'] = $address;                     $options['coords']  = $address_results;                      // create and name the option_name and set fields with $options array                     update_option( 'py_menu_item', $options );


Here is something I'm trying to prove:     Conjecture: Suppose $f'(x) \leq \phi(f(x), x)$ and $f(a)=\alpha$. Suppose $g'(x)=\phi(g(x),x)$ and $g(a)\geq \alpha$. Then $f(x)\leq  g(x)\,\,\forall x$.   It definitely seems like it should be true, and I don't think we even need continuity of $\phi$.  (Edit: a user has correctly pointed out that we should require $\phi$ be locally Lipshitz in the first variable, uniformly with respect to the second variable. Let's add that assumption.)   I can prove it in the case that the inequality is strict. I'll place my proof below the fold. How can I extend it to weak inequality?  If it's wrong, I'd love to see a counterexample. A reference is fine; I have the book by Teschl, for example.  A similar question with stronger assumptions was asked .     Proposition: Suppose Suppose $f'(x) < \phi(f(x), x)$ and $f(a)=\alpha$. Suppose $g'(x)=\phi(g(x),x)$ and $g(a)\geq \alpha$. Then $f(x)\leq  g(x)\,\,\forall x$.  Proof: Suppose not. Suppose WLOG there is a $b>a$ such that $f(b)>g(b)$. Let $c:=\inf \{x>a:f(x)>g(x)\}$. By definition of the derivative we have $f'(c)\geq g'(c)$, a contradiction, since $f'(c)<\phi(f(c),c)=\phi(g(c),c))=g'(c)$.


What is the range of a char variable ? -127 to 127 or 0 to 255?

I am aware that C++ has 3 types of char variables.   char // with range : -127 to 127 or 0 to 255 ?? signed char // with range : 0 to 255 unsigned char // with range : -127 to 127   Correct? So which one is it actually for char?   My problem is that I want to use istream::read function which requires a * char parameter. However, I know the values my program will be reading will be in range 0 to 255.   How do I know that if I do this file.read((char *)buffer, size);, I will be guaranteed that every single thing being read will not be set to a value with a range of -127 to 127 ?  edit: I understand that my char can be both ranges depending on my platform/ implementation. Correct? If yes, how can I know which platform/ implementation I am using ? Does it depend on my IDE- compiler ? OS?


Dual Boot: Ubuntu installation not detecting existing windows operating system

In my attempt to set up a dual boot system, by installing Ubuntu 14.04 onto my system with Windows 7, I have encountered a pretty stubborn problem.  I have loaded ubuntu into a bootable USB device.  When installing Ubuntu, whether through "try ubuntu w/o installing" or the other "install Ubuntu" option, Ubuntu never presents the "install alongside windows option".  The only two options that I have are the 1. erase all data and install ubuntu on drive and 2. do other stuff (display partitions)    Looking at posts by folks who have encountered this issue in the past, I have attempted some of the various suggested solutions.. without avail.  fixparts remove dmraid   I have a boot repair log up:   Any help would be greatly appreciated!


Best approach to update all entries in a list that is paginated?

I have a list which is paginated in a webpage. It also has a function to select the number of entries per page. A bulk update on all is required.   What would be the best approach to this? My concern is that a user would doubt if we refer to the current page or to the whole list. Would a confirmation window with details or an info message to detail it would suffice?  This is how it looks for now:


When are kernels of homomorphisms on $\mathbb{Z}[x]$ principal ideals, and what does this have to do with Gauss's lemma?

Two questions listed in Artin under a section called "Gauss's lemma":   Are the kernels of $f(x) \mapsto f(1 + \sqrt{2})$ and $f(x) \mapsto f(\frac12 + \sqrt2)$ (for $f \in \mathbb{Z}[x]$) principal ideals? For $\alpha \in \mathbb{C}$, prove the kernel of $f(x) \mapsto f(\alpha)$ is principal.   What's the general approach for solving such problems? And what (if anything) does it have to do with Gauss's lemma (products of primitive polynomials are primitive)?  For 1, clearly $(x-1)^2 - 2 = x^2 - 2x - 1$ is in the kernel of the first map, and this polynomial is primitive, but I'm unsure how this helps in figuring out if the kernel is principal?


Determine device (iPhone, iPod Touch) with iOS

Is there a way to determine the device running an application. I want to distinguish between iPhone and iPod Touch, if possible.


Where can I find some guidance on index strategies?

Most of us will probably agree that using database indexes is good. Too many indexes and performance can actually be degraded.   As a general rule, which fields should be indexed? Which fields should not be indexed? What are the rules for using indexes while striking a balance between too many and not enough indexes in order achieve performance improvements, not degradation?


I was trying to install Ubuntu budgie, I clicked on erase disk and setup lvm,  but I  didn't click ok when the confirmation window poped up, I quit the installation. Tried booting back into windows but my screen remained blank so I inserted my live usd again and opened testdisk from there.  Realized my partitions had been deleted and replaced with the lvm partition.   And can't recover with testdisk too, any help will really be appreciated..  I'm loosing my mind


Consider $s\in\{0,\dots,n\}$. Let $X$ be the set of all the $s$-subsets of $[n]$. Also consider the action of $S_n$ on $X$ by $\sigma\cdot \{x_1,...,x_s\}=\{\sigma(x_1),...,\sigma(x_s)\}$. Let $x\in X$.  How can I find $| \operatorname{Stab}_{S_n}(x)$|?  I read the definition of stabilizers, but I don't have idea how to prove it. It seems a very basic theorem so I tried to find previous threads but without any success.


I have noticed that when I leave comments on a question and someone votes it up, I do not get a notification. If the upvote count would at least be more than 5, I would expect to be notified since that leads to a badge.


Is there an SSH client which duplicates commands to multiple terminals?

I'd like to control several ssh connections from one terminal. For example, I would type ifconfig in the main terminal and all the other ssh connections would run ifconfig. That's what offered PuttyCM on Windows .  This may be a very simple question but I did not manage to find such a ssh connection manager. I would not be too hard to code but it surely already exists. Could you give some hints?


Deciding whether two metrics are topologically equivalent in the space $C^1([0,1])$

Consider the space $C^1([0,1])$ and the function $d:C([0,1])\times C([0,1]) \to \mathbb R$ defined as $d(f,g)=|f(0)-g(0)|+sup_{x \in [0,1]}|f'(x)-g'(x)|$. Decide whether the metrics $d$ and $d_{\infty}$ are topologically equivalent in $C^1([0,1])$ (where $d_{\infty}=sup_{x \in [0,1]}|f(x)-g(x)|)$  My attempt at a solution:  If two metrics are topologically equivalent, then they have the same convergent sequences. Honestly, I couldn't do anything. I am trying to define a sequence of functions $\{f_n\}_{n \in \mathbb N}$ such that $f_n \to f$ in, for instance, $(C^1([0,1]),d)$ but $f_n \not \to f$ in $(C^1([0,1]),d_{\infty})$. Could it be this two metrics are topologically equivalent? If this is the case, how could I prove it? If not, I would appreciate any hint to find an adequate sequence of functions that works for what I am trying to prove.


Let $A$ be a non-empty subset of the real numbers that is bounded below. Let $-A = \{ -x \mid x \in A\}$ Prove that $\text{inf}(A) = -\text{sup}(-A)$

Let $A$ be a non-empty subset of the real numbers that is bounded below. Let $$-A = \{ -x \mid x \in A\}$$ Prove that $$\inf(A) = -\sup(-A)$$  My attempt at a PROOF:   Given that $$A \subset \mathbb{R},  A \ne \emptyset $$ and $A$ is bounded below, we have that there exists $\beta \in \mathbb{R} $ such that $\forall x \in A$ we have that $ x > \beta$. Also, $$ \forall x \in A, -x \in -A$$ This says that given $$ x > \beta$$ we have $$ -x < -\beta$$ Now, $-A \subset \mathbb{R}$ and $-A  \ne \emptyset$ and we have shown that $-A $ is bounded above. Therefore by the least-upper bound property on the real numbers there exists a least upper bound for $-A$, in particular we can say that $$\sup(-A) = - \beta$$ Now we look at the fact that given any $$ \alpha \in -A$$ if we have that $$ \alpha < -\beta$$ then $\alpha$ is not an upper bound for $-A$. So we have that $$\forall x \in A$$  $$-x \in -A$$ and so $$ -x \le \alpha < -\beta$$ Which gives that $$\beta < \alpha \le x$$ $\forall x, \alpha \in A$ hence we can see that $$\inf(A) = \beta$$ and this is exactly $$ -\sup(-A) = - (-\beta)= \beta$$


Why does foo.append(bar) affect all elements in a list of lists?

I create a list of lists and want to append items to the individual lists, but when I try to append to one of the lists (a[0].append(2)), the item gets added to all lists.   a = [] b = [1]  a.append(b) a.append(b)  a[0].append(2) a[1].append(3) print(a)   Gives: [[1, 2, 3], [1, 2, 3]]  Whereas I would expect: [[1, 2], [1, 3]]  Changing the way I construct the initial list of lists, making b a float instead of a list and putting the brackets inside .append(), gives me the desired output:  a = [] b = 1  a.append([b]) a.append([b])  a[0].append(2) a[1].append(3) print(a)   Gives: [[1, 2], [1, 3]]  But why? It is not intuitive that the result should be different. I know this has to do with there being , but I don't see where that is happening.


I cannot change the iso file from which to create a startup disk

I have previously created a 13.10 USB startup disk, following  to do so from Ubuntu 12.4 LTS. All went fine. That was a while ago.  Now I’m trying to create a 12.4.4 LTS startup disk, following the same procedure. I opened the Startup Disk Creator, and saw that it still had the 13.10 iso file selected (even though that file no longer exists). I clicked on Other, and selected the 12.4.4 LTS iso file instead. It ignored me. It absolutely refuses to recognise that the iso file it has selected does not exist, and it refuses to allow me to select a new file. No matter how many times I select the 12.4.4 LTS, I still see the 13.10 selected.  What should I do?


If you draw $4$ points for a uniform distribution $[0,1]$, what's the expected value of the smallest number?

Since this is a uniform distribution, can we just use symmetry for this, and say that our four numbers will be spaced apart, so they will be on the number line at the following locations: $\frac{1}{5}$, $\frac{2}{5}$, $\frac{3}{5}$, $\frac{4}{5}$ Therefore, the smallest number is expected to be $\frac{1}{5}$.


XeTeX error with Cambria Math, very simple formula

This MWE:  \documentclass{book} \usepackage[no-math]{fontspec} \usepackage{unicode-math} \setmainfont{Cambria} \setmathfont{Cambria Math} \newcommand{\R}{\mathbb{R}}  \begin{document} $\R^{m\times n}$ \end{document}   gives this error:  ! \textfont 197 is undefined (character .5). l.9 $\R^{m\times n}$ Somewhere in the math formula just ended, you used the stated character from an undefined font family.   Why?  (Using MiKTeX 2.9, XeTeX Version 3.1415926-2.5-0.9999.3)


I get the missing $ inserted error for the following code:  \begin{equation}  C = $ \frac{2}{\omega^2N^2\mu\pia} $  \end{equation}   I have tried out different changes based on Googling for this error, but nothing seems to help. Any suggestions would be appreciated.


Can planets orbiting a binary star trace out an orbit in the form of an 8 (or $\infty$-sign)?

In  article there is a lot explained about planets orbiting a binary star. It is said that a planet orbits the binary star around the CM of both stars. I couldn't find anything about planetary orbits (neither in other articles) of planets tracing out an $\infty$-form around the two stars. This picture in this article is showing the path I mean (the red line):     In the article, though, the red line isn't representing the trajectory I mean (I used it only to clarify what I mean), but it represents the (as is shown) the Roche lobes, which are explained in the article.  I think my question is clear by now: do there exist orbits of planets in a binary star system which make the trajectory I described?


Problems dualbooting Ubuntu because of UEFI

I have an X-series Asus laptop which I just bough about a month ago. I want to dualboot Ubuntu - Windows.  I can easily access LiveUSB with both UEFI enabled and disabled. I heard that there were problems with UEFI, so I disabled it. After I've installed the system I couldn't access it. It just boots to Windows straight.  Another unusual thing, that never happened to me before was that the partition editor wanted me to create a BIOS reserved area, which I did, but not at the beginning of the table.  Any ideas how to access the Ubuntu partition?  As far as I can guess both Windows and Ubuntu have to be both of the same type of boot, either Legacy or EFI. This is not the case of what I have now. So, if I reinstall Ubuntu in UEFI mode that correlates with my Windows type, will I then be able to boot into it?  I have a constraint, my laptop doesn't have a CD ROM, so I cannot reinstall WIndows, nor can I move around the Windows recovery partition.  This is the boot-repair report :    SOLUTION  I've enabled UEFI in BIOS, and reinstalled Ubuntu with UEFI enabled. It works fine now, although if I select Windows from the GRUB menu, it doesn't work. But I can live with that, since I can just select Windows boot from the BIOS instead.


im currently training myself in passing functions as parameters, but i cant get my logic to work. Hope one of you can help!  I have a function called 'square' which takes an int and returns the square of it.   Then i have another function called 'map', which takes a list of numbers and the square function as input, and i'd like to square each of these numbers in the map function.   I declare my pointer to square function in main, but since it takes an int as parameter, it just squares that initial integer for all the numbers in my list. How do i assign my function to a variable, in a way such as when i pass it to the map function, i can change what int gets passed to the square function  int b = 1; //Global variable  int square (int x) {   return x*x; } int map (struct node *head, int x) { int z = head->data; //this variable is what i want squared.  // If i call x here itll use the b variable and square that.  //changing b doesnt work either since it takes the value that b had when map function was called if (head->next == NULL) {     return 0;   }   else {     printf("Value: %d", z)     map(head->next, x);    }   return 0; }  int main(void) { int (*sf)(int);  sf = square; //Assigning the square function to the sf variable int x =(*sf)(b); //here is the problem, b is the variable thatll get squared every time my function runs map(head,x); //passing x (square function) and head of a linked list


Whatsapp friends profile image not showing

It's been a few days now since my friends contact images started to disappear on my Samsung Galaxy Sii. Whatsapp up to date. Android is 4.1.2.  I've already tried:   Turn off/on the phone; Add/remove the contact from the address book of the phone (my contacts are on the gmail account); Clear the phone cache (under App Management). Just the cache. I don't want to loose conversations; Checked whatsapp space usage (under App Managent). It's like 23MBytes total. Some apps use much more;   Some facts:   Some friends (few of them) are still showing the profile images. They are from the same source (Gmail Addr Book); If I delete/recreate those friends with profile images, their image is re-downloaded correctly. I also deleted the profile image in the "Profile Pictures" folder and whatsapp downloads it again;   My guess: Users that are changing their profile image recently are being set as "no profile photo" (in the server). This propagates to everyone else who refreshes their address book for any reason.  Can somebody check my findings?


1.Let $x$,$y$,$z$ be nonnegetive reals such that $x^2+y^2+z^2=1$. $(1-xy)(1-yz)(1-zx)\ge\frac{8} {27}$    let $a$,$b$,$c$ be positive reals with $a+b+c=1$ . Prove that $a^2+b^2+c^2 +3abc \ge \frac {4}{9}$.


How to add number of days to today's date?

I need to be able to add 1, 2 , 5 or 10 days to today's date using jQuery.


Convergence of the sequence $ \sqrt {n-2\sqrt n} - \sqrt n $

Here's my attempt at proving it:  Given the sequence $$ a_n =\left( \sqrt {n-2\sqrt n} - \sqrt n\right)_{n\geq1} $$  To get rid of the square root in the numerator:  \begin{align} \frac {\sqrt {n-2\sqrt n} - \sqrt n} 1 \cdot \frac {\sqrt {n-2\sqrt n} + \sqrt n}{\sqrt {n-2\sqrt n} + \sqrt n} &= \frac { {n-2\sqrt n} - \ n}{\sqrt {n-2\sqrt n} + \sqrt n} = \frac { {-2\sqrt n}}{\sqrt {n-2\sqrt n} + \sqrt n} \\&= \frac { {-2}}{\frac {\sqrt {n-2\sqrt n}} {\sqrt n} + 1} \end{align}  By using the limit laws it should converge against:  $$ \frac { \lim_{x \to \infty} -2 } { \lim_{x \to \infty} \frac {\sqrt {n-2\sqrt n}}{\sqrt n}  ~~+~~\lim_{x \to \infty} 1} $$  So now we have to figure out what $\frac {\sqrt {n-2\sqrt n}}{\sqrt n}$ converges against:  $$ \frac {\sqrt {n-2\sqrt n}}{\sqrt n} \leftrightarrow \frac { {n-2\sqrt n}}{ n} = \frac {1-\frac{2\sqrt n}{n}}{1} $$  ${\frac{2\sqrt n}{n}}$ converges to $0$ since:  $$ 2\sqrt n = \sqrt n + \sqrt n \leq \sqrt n ~\cdot ~  \sqrt n = n $$  Therefore $~\lim_{n\to \infty} a_n = -1$  Is this correct and sufficient enough?


How to create a flexible table schema for storing messages from different chats?

Help please solve the following situation:  There are two kinds of API where message history is stored, it's  and Chat2Desc (). While these two but can then others appear.  And my database with the users table:  Table users id , email, phone, ...   In Zopim, users are identified via email, and in Chat2Desc through the phone. For me, these two fields are important, whatever the chat was and how many would not be.  That is, if I receive an email or a user's phone in messages, I make a request to my database (table users) to identify my user.  And in principle, even the structure of chat rooms is not important.I'll somehow choose them.And here's how to properly save them, so much so that I had one structure for everyone.  And that's what I came up with (Something I don't like, especially the chat_clients table):   Explanation:  Table chats (Data for chat):   client_id   - indicates the id of the chat_clients table duration    - the duration of the chat (120 seconds) system_type - stores the name of the chat (Zopim, Chat2Desc, ...) created_at  - creation date   Table  chat_clients (information about users who were in the chat):   is_agent      - 0 | 1: 1 => my user, 0 => not my user_id       - is the user id. Contains either id from the users table or empty. assigned_data - those initials under which users were in the chat bean_module   - it does not matter (information about my user) unique_col    - There will either be a email (from Zopim) or a phone (from Chat2Desc, Or I think to store the id of the users table). Will guarantee the uniqueness of the values.   The users_id + unique_col bunch is unique (UNIQUE KEY user_id_unique_col_UQ (user_id, unique_col))  Table chat_messages:   text       - the text of the message. client_id  - indicates the id of the chat_clients table chat_id    - indicates the id of the table chats file_id    - indicates the id of the chat_files table transport  - the value will be for Chat2Desc (Viber, WhatsApp, ...), for Zopim, so it's not empty, Zopim   Table chat_files Information about the transferred files in the chat. Analogical tables may be not to store additional information.  In the future I'm going to select the history of correspondence for each user.  Q: How can I improve the structure of tables to get more flexibility ?  Thank you in advance.


Oracle auto increment - newbie so go easy please

Hi all I am looking to create an auto increment in the following table using GUEST_ID as the column that would increment.  CREATE TABLE "HOTEL_BOOKINGS"."GUEST" (     "GUEST_ID" NUMBER,      "LASTNAME" VARCHAR2(100 BYTE),     "FIRSTNAME" VARCHAR2(100 BYTE),      "ADDRESS" VARCHAR2(255 BYTE),     "TOWN" VARCHAR2(100 BYTE),     "PHONE" NUMBER,     "POSTCODE" VARCHAR2(10 BYTE),     "EMAIL" VARCHAR2(255 BYTE)   );   I have tried nearly everything to get this working and am at my wits end once again sorry if this is a newbie question but I need coursework handed in tomorrow


What is the grammatically correct way to frame this sentence?

I saw this sentence online and it has been bothering me:  "Tomorrow is me and my girlfriend's anniversary."  I immediately had an aversion to this sentence after reading it but then I quickly had an aversion to my own corrections in my head:  "My girlfriend's and my anniversary is tomorrow."  "The anniversary of my girlfriend and me is tomorrow."  The original author's sentence plus my two corrections all "sound" incorrect despite one having a better chance at being grammatically correct.    The original author I think confused the adverb "Tomorrow" as being the subject since he or she (I don't want to assume the author is heterosexual) chose to begin the sentence with it.  However, in my estimation the subject of a sentence will remain so no matter where it's placed within the sentence; thus, "tomorrow" cannot be the subject but rather "anniversary" is which led me to use the options I listed above.  Which of these "corrections" is correct and why?  Both?  Neither?    Thank You     Edit: Thank you all for the replies. Basically, I'm having a crisis of what sounds good to the ear and is standard versus what can   sound incorrect/complex/clumsy to the ear but still be viewed as   grammatically viable. Yes, adding a verb to describe what the couple   would do on their anniversary and/or replacing "me and my girlfriend"   with a standard possessive adjective "our" would easily solve the   issue. But I guess my question was more about how irritatingly close   can a speaker get to "bad grammar" or "broken English" without it   being so? That's why I tried to use the OA's words at my disposal.


I'm pretty new to LaTex, so please forgive my sloppy code. I'm trying to create a table from a csv file, and pass a list of colors in so that LaTex will color each cell of the a column of the table differently depending on the corresponding element in the list. I can't get it to work. Any suggestions?  \documentclass{article} \usepackage{pgfplotstable,filecontents} \RequirePackage{listofitems}   \begin{filecontents*}{test.csv}     ColA, ColB, ColC     0.17, 0.91, 0.67     0.15, 0.17, 0.92     0.48, 0.1, 0.28 \end{filecontents*}     \begin{document}     \pgfplotstabletypeset[col sep=comma,     ]{test.csv}     \def\mylistOne{green, blue, orange}     \readlist*\mylistTwo{\mylistOne}     \newcounter{myCounter}     \setcounter{myCounter}{-1}     \foreachitem\x\in\mylistTwo[]{         \stepcounter{myCounter}         \pgfplotstableset{             every row \themyCounter column 1/.style={                 postproc cell content/.append style={                 /pgfplots/table/@cell content/.add={\cellcolor{\x}}{},             }         }     } } \end{document}


What are attributes in .NET, what are they good for, and how do I create my own attributes?