Product of all prime numbers upto some prime $p$

Let $p$ be a prime number. Denote by $P$ the set of all primes which are not greater than $p$.  Is there a well known estimation of the product of all prime numbers in $P$ (i.e. $\prod_{q\in P}q$)?


How long before PhD graduation should I start applying for post-doc positions?

My earliest PhD graduation date is 10 months away. Funding permits me to stay 1–3 months longer, so the final date is still uncertain.  It is never too early to make contacts for possible post-docs. But how long in advance is too early to formally apply to post-doc job openings or funding opportunities? Depending on the bureaucracy, the path from applying to starting can probably be anything from a week up to a year — someone I know is applying with  which had the opening advertised in August, application deadline in October, will have interviews in December/January, and the commencement of work only in September, 13 months after the initial job advertisement. My personal guess is that the long time between interviews and starting is to create a level playing field between those who do and those who don't need to go through a visa application procedure.  If I'm too early in applying for a post-doc, a hosting institution might prefer someone who can start earlier and where the graduation date is more certain. For example, in my case the graduation date is still uncertain, so there is a risk in accepting even if they are willing to wait. Project funding might also require the money to be spent rather soon.  If I wait too long, there might be a considerable period where I'm between jobs. Having a long (>6 months) period between jobs is a disadvantage for me. Maybe it's also a disadvantage for a hosting institution (I'm not sure).  How do I find the balance? For example, considering the duration of funding and visa applications, does it make sense to apply e.g. ? Or is it in any case virtually inevitable to have at least several months before my PhD graduation and the start of a post-doc?


java.lang.nullpointer error in linkedlist in android

I am trying to make a student registration interface with several classes, provided in the requirement. In doing so, the linkedlist in my CourseFactory class is showing a null pointer.  public class Course {  private String id; private String title; private int credit; private int tuitionPerCredit;  public void setId(String id){     this.id=id; }  public String getId(){     return this.id; }  public void setTitle(String title){     this.title=title; }  public String getTitle(){     return this.title; }  public void setCredit(int credit){     this.credit=credit; }  public int getCredit(){     return this.credit; }  public void setTuitionPerCredit(int tuitionPerCredit){     this.tuitionPerCredit=tuitionPerCredit; }  public int getTuitionPerCredit(){     return tuitionPerCredit; }  public int getSubTotal(){     return this.credit*this.tuitionPerCredit; } }   And CourseFactory class  import java.util.LinkedList;  import static android.R.attr.id;  public class CourseFactory {      LinkedList<Course> cList;  public void CourseFactory(){     Course course = new Course();     course.setId("CSE327");     course.setTitle("SOFT ENG");     course.setCredit(3);     course.setTuitionPerCredit(1500);     cList.add(course);      Course course1 = new Course();     course1.setId("CSE115");     course1.setTitle("INTRO C");     course1.setCredit(3);     course1.setTuitionPerCredit(1500);     cList.add(course1);      Course course2 = new Course();     course2.setId("CSE215");     course2.setTitle("INTRO JAVA");     course2.setCredit(3);     course2.setTuitionPerCredit(1500);     cList.add(course2);      Course course3 = new Course();     course3.setId("CSE225");     course3.setTitle("DATA STRUCT");     course3.setCredit(3);     course3.setTuitionPerCredit(1500);     cList.add(course3);      Course course4 = new Course();     course4.setId("CSE373");     course4.setTitle("ALGOR.");     course4.setCredit(3);     course4.setTuitionPerCredit(1500);     cList.add(course4); }   public Course getCourse(String id){     int temp = 0;     for(int i=0;i<cList.size();i++) {         if (cList.get(i).getId().equals(id)) {                 temp=i;             break;             }         }     return cList.get(temp);     }   }      The error is on the line "if (cList.get(i).getId().equals(id))


Ground Plan - Prove Fermat-Euclid's Totient Theorem with Lagrange's Theorem

If $\gcd(a,n) = 1$, then $a^{\phi(n)}\equiv 1\pmod n$. Here's a three-step proof.  An integer a is invertible means there's some $a^{-1}$ such that $aa^{-1}\equiv 1 \pmod n$. By cause of Jones p84 lemma 5.1 and the Linear Congruence Theorem, an integer $a$ is invertible modulo $n \iff ax \equiv 1 \pmod n \iff \gcd(a,n) \mid 1 \iff \gcd(a,n) = 1.$  Consider the Abelian group of all positive integers less than $n$ which are invertible modulo $n$. This is dubbed $U_n$ in Jones p85 or  at Proofwiki. $ \phi(n)$ simply counts the number of positive integers $a$ coprime to a. So by 1., there are $\phi(n)$ elements in $G$. Tthe order of $G$ is $\phi(n)$.  Lagrange's Theorem occasions . Thence there must be some $k$ such that $a^{k}=1$ where $k$ divides the order of the group $\langle (Z_n',{\times})\rangle$. This is just $\phi(n)$. Let's say $km=\phi(n)$ Then $a^{\phi(n)}=(a^k)^m=1^m=1$.    (1) Is the last paragraph errorless? The last sentence contains equalities, but  last steps are congruences modulo $m$. (2) What's the ground plan of the proof? It feels 'oracular' to me - how can you preconceive to consider this uncanny Abelian group, and then to use a corollary of Lagrange's Theorem?


Can multiple people/animal eat a single Devil Fruit?

Provided, Chopper eats the Devil Fruit along with the other deers, will they all have the Devil Fruit ability, given that acquiring the ability only requires a single bite?


I don't recall any of the characters in Lord of the Rings or The Hobbit calling Sméagol Gollum in his face. It seems to be more of a private epithet. Is this correct? Does Gollum know that others call him Gollum?


Why Are Meta Stack Exchange Downvotes Mechanically Different?

I seem to have been ambushed by a subtle difference: elsewhere, Meta seemed to be about discussing solutions and expressing one's agreement or disagreement with them by upvotes or downvotes, with the latter being free (unlike on main sites). Yet at some point when I decided to voice my opinion on Meta Stack Exchange, it seems to have resulted in me losing the privilege by way of rep reduction, like on a main site. I didn't notice/realise what's going on until it became too late to undo.  Now, obviously I'm new to Meta.SE, and may not understand all the ways in which it is different from other metas, so I won't jump the gun and conclude that this is a bug. But trying to think of it as a feature, I can't figure out what purpose does it serve.   What makes it necessary to limit expression of disagreement with proposals or replies on Meta.SE in a way that isn't seen on other metas? Is this purpose currently relevant, or is it just a thing that remains from the time when the circumstances and necessities were different?


Is there a way to monitor an SSD state and predict its failure in case of active read-write usage?

As far as I know, the only con against switching to an SSD except its price is the tendency to fail soon (relatively to conventional HDDs) in case used in active read-write operation. Is there an efficient way to predict the failure?


Can you have a bibliography of equations?

I am creating revision notes for a Mathematics module at university and I was wondering if there was a way to take all of the equations that I have written throughout the document and have them all appear at the bottom of the document. A kind of bibliography or index of equations.  Many thanks for any help!


shell script - way to loop through all of the options

I am new to shell script and I had the following situation. I have a perl script that has multiple options. Not all the options are required.  example.prl [options] options:      -h             help     -o filename    output file name     -f             force output file overwrite     -d             debug mode     ...   I want to create a shell script to parse the options to the prl script. And the options are not all required, for instance:  ./example.sh -o output_file  OR ./example.sh -o output_file -f   Here is some of my progress but only work with 1 argument:  #!/bin/bash  path=/proj/scripts/example.prl option=$1 option_value=$2  echo "The command to run:" echo $path $name $option  $path $option $option_value    Is there a way to loop through all of the options user put and construct the command?


The below code produces essentially what I want but there must be a more elegant way and more automatized way. I want a circle with a cross inside it at a vertex:   \fmfv{d.sh=circle,d.f=empty,d.si=.1w,l=$\times$,label.dist=0}{v3}% v3 is the name of the vertex   But notice that if the circle becomes big, the cross will remain small. I want a circle with a cross inside it that has the same diameter as the circle no matter how big the circle is.   Is there a simple way to achieve this?   See also  or the figure below.


Removing website from Google ranking under unwanted keyword

Is there any way to remove a website from appearing in Google search results under an unwanted keyword?   About a year ago, I added a featured project to a company website. This page included the client's name - she requested we keep the project anonymous so we removed any mention of her name and any identifying details.  Today - when you Google her name, our website homepage comes up regardless of her name not being on our website. I've even checked Google's cached page.  I'm stumped as to why our site, without any matching keywords would appear above other relevant results.


Find all real number satisfying $10^x+11^x+12^x = 13^x+14^x$

Find all real number $x$ satisfying $10^x+11^x+12^x = 13^x+14^x$       My Work Dividing by $13^x$ we get  $$\left( \frac{10}{13} \right)^x +  \left( \frac{11}{13} \right)^x +  \left( \frac{12}{13} \right)^x = 1 + \left( \frac{14}{13} \right)^x$$ The LHS is a decreasing function of $x$ and the RHS is an increasing function of $x$. So there is only one intersection in their graph. I am looking for a formal way to find the root. I know that $x=2$ works. But how to formally find this root?


The Variant: Flanking rules in the DMG (page 251) require adjacency, but is the intent that the Enemy has combatants on opposite sides and thus someone with Reach (and using the reach) could still flank even if not directly adjacent?  Looking for both RAW as well as Intent of the flanking rule.


During the Loading several images in ImageView get Out of Memory exception

Hello I have created an Application.  In application i loading the several images from URL. But during the loading of images i get the Out Of Memory exception.  Give me solution about this problem.


Why are there $1 / 1.602176634 \times 10^{-19}$ electrons in a coulomb?

Why that exact number of electrons in one coulomb? who decided it? there is nothing wrong with the number, it just seems slightly messy. Why didn't the scientific community just settle on an easier number, such as $1\times10^{-19}$ for example?


If $R \subseteq k[X]$, then $R$ is a finitely generated $k$-algebra.

Let $k$ be a field, and let $R$ be a subring of $k[X]$ which contains $k$.  Does $R$ have to be a finitely generated $k$-algebra?  I tried to prove this, but I didn't get anywhere.  Would someone kindly give me a hint?


If $\frac{\cos \alpha}{\cos \beta}+\frac{\sin \alpha}{\sin \beta}=-1$, find $\frac{\cos^3\beta}{\cos \alpha}+\frac{\sin^3\beta}{\sin \alpha}$.

If $\displaystyle \frac{\cos \alpha}{\cos \beta}+\frac{\sin \alpha}{\sin \beta}=-1$, find $\displaystyle \frac{\cos^3\beta}{\cos \alpha}+\frac{\sin^3\beta}{\sin \alpha}$.   I tried$$ \sin(\alpha+\beta)=-\sin \beta \cos \beta,\\ 2\sin(\alpha+\beta)=-\sin (2\beta),$$ and $$\frac{\cos^3\beta}{\cos \alpha}+\frac{\sin^3\beta}{\sin \alpha} =\frac{\sin\alpha\cos^3\beta+\sin^3\beta \cos \alpha}{\sin \alpha \sin \alpha},$$ but unable to find that ratio.  Any help, please.


Why is if/else structure not being utilized in this method?

public static String winner(String computer,String user) {     String win=" ";     if (computer=="rock" && user=="scissors")     {         win="Computer wins! Rock smashes scissors.";     }     else if (computer=="paper" && user=="rock")     {         win="Computer wins! Paper wraps rock.";     }     else if (computer=="scissors" && user=="paper")     {         win="Computer wins! Scissors cuts paper.";     }     else if (computer==user)     {         win="Tie. No winner";     }     else if (user=="rock" && computer=="scissors")     {         win="YOU win! Rock smashes scissors.";     }     else if (user=="paper" && computer=="rock")     {         win="YOU win! Paper wraps rock.";     }     else if (user=="scissors" && computer=="paper")     {         win="YOU win! Scissors cuts paper.";     }     return win; }   The method receives 2 lower case strings as parameters. I have checked by printing the parameters. I do not understand why my if else statements are not working. I am simply trying to do the possibles out comes of a rock paper scissors game. Thanks for all your help guys.


There is a formula given in my module:  $$ \sqrt[n]{a^n} = \begin{cases}  \, a  &\text{ if $n$ is odd } \\  |a| &\text{ if $n$ is even } \end{cases} $$  I don't really understand the differences between them, kindly explain with an example.


Looking for the con name of image viewer in Ubuntu 16.04 so I can replace it with my own icon

I am trying to replace the image viewer icon with my own. What's the name of image viewer icon in 16.04? From one popular icon theme, I see image viewer icon under 2 entries, namely:  x-content-image-dcf.svg x-content-image-picturecd.svg   I am not sure which one I should be replacing. Or, is there any other icon name they are saved under?


Toshiba Satellite C55-A5300 laptop: Can I upgrade the motherboard? (Intel Motherboard s989)

I've tried finding the answer but to no avail. Anyone have experience with this or can point me in the direction of an answer? Thanks!!!!


I am a novice, using Ubuntu 14,04.  I have tried to install Skype, and it does not work.  I need it installed, but I read all the suggestions, and they all refer to using some sudo commands in  what I believe is a DOS-like command prompt menu - and I cannot find anywhere to access that?  I am sure this is a trivial question thousands have asked before, so a simple direction to where this is explained would suffice for me as help.  I also realize that I need to know  what "distribution" my Ubuntu is, and if is 32 or 64 bit - where do I find that information?  Thank you in advance.


what is the necessity of c++ static cast

I have seen some good posts explaining in depth about various c++ cast. One of them is     What I'm curious about is when static cast is unavoidable? What are the things impossible to do without using static_cast operator?


How should students react to inaccuracies in professors' teaching without causing resentment

I am an undergraduate in the UC system.  I sometimes encounter situations where professors or TA's make errors, or there are inaccuracies in the material.  These situations tend to be quite awkward for both the student and the TA or professor.    It is painful for me not to speak up, but there is a fear, possibly exaggerated, that this could lead to resentment by the TA, or professor, or even future unfair treatment.    The most frequent response by senior students is that the professor is always right, and you should never attempt to argue with the professor. Confronting a professor about a misconception could end up being detrimental to the student in the long run.    What should a student do (and how?) when a teacher makes an error or gives inaccurate information or material?  Is there any reasonable way to anonymously point out mistakes?


rotatebox symbol in caption generates error

Following minimal example doesn't work and generates an error  \documentclass{article} \usepackage{graphicx} \usepackage{amssymb} \begin{document} \begin{figure}   FIGURE \caption{$\blacksquare$ result of; \rotatebox[origin=c]{45}{$\blacksquare$}}% \end{figure} \rotatebox[origin=c]{45}{$\blacksquare$} \end{document}   The error message says:  rotatebox-in-caption.tex|7| Argument of \@caption has an extra }. || <inserted text>  ||                 \par  || l.7 ...; \rotatebox[origin=c]{45}{$\blacksquare$}}   Do I have to wrap the \rotatebox in a certain box to make it work?


Nautilus doesn't have type-ahead search in Ubuntu 17.10

I've just upgraded to Ubuntu 17.10 and have noticed that Nautilus (I'm aware they dropped it years ago, I meant that Ubuntu patched it back in before) dropped type-ahead. It now instead opens the search which is way slower for me and searches instead of selecting the matching file. It's very hard to use it for me because of this.  Is there a way to bring it back, downgrade Nautilus, or is there an alternative?


intuition on the countable dense subset implying separability

Are there any good intuitions to understand why countable dense subset implies separability? Is the separability related to the opposite of connectedness? In Munkres, I am a bit confused after he mentioned that this is an unfortunate choice of terminology.


Explorer.exe (Windows 7) crashing during cut and paste from external hdd; data lost?

I cut and paste a huge and important file from a hdd to another. I know it's a mistake. The process took hours, but before completion, explorer crashed (windows 7 at the time), and the progress bar was gone. I would like to know how Windows behave in that case.  Is there a chance of data loss, or is windows 7 smart enough to "close and cancel" the current file ? I have doubts. If data was lost, does the source of the cut and paste matter (from the external hard drive, or from the system hard drive) ? I'm really interested to know how a potential data loss can translate, assuming it crashed while copying a txt file of a few bytes - missing file ? Corrupted file ?  Thank you for any information.


How to install a package for latex in linux

When I compile my tex file in linux using latex filename, I get the error that changepage.sty is missing. How should I install the package?  thanks a lot.


If I not setting virtual pageviews in google analytics for my javascript part of website e.g.  Slideshow  Full Screen  Google will still track that JS part of website and I will see that in my bounce rate, page per session ... or I need first setting virtual pageviews for google can track that?  Does google track my javascript part of website without setting virtual pageviews in google analytics?


Show that there does not exist any $n$ for which $a^n=a$  forall $a\in \Bbb Z_m$ where $m$ is divisible by the square of some prime.   Suppose such $n$ exists and $m=p^2k$ for some prime $k$.  then $a^n=a$. Also $ma=0\implies p^2k a=0$  How to derive  a contradiction from here?


For a triangle, we have  $$Area=\sqrt{p(p-a)(p-b)(p-c)},\qquad p=\frac{a+b+c}{2}.$$ For a cyclic quadrilateral, we have $$Area=\sqrt{(p-a)(p-b)(p-c)(p-d)},\qquad p=\frac{a+b+c+d}{2}.$$ Is there a similar formula for a cyclic pentagon?


I wonder if someone could tell me which choice works in the following sentence and why the others do not work: (From my point of view, all of these choices work in this context.)  They have great promotion till January 5th......50% off. a) up to; b) until; c) by


Is there a strip of "mana points" in Potterverse?

The idea came from a now-deleted answer to another question (dealing with why people would/wouldn't use household cleannig spell).  In a typical fantasy RPG, spell casters are frequently limited in how many spells they can cast.   Usually this is implemented by giving the spell caster a finite amount of something called "mana" points, and casting each spell subtracts a certain amount of mana points from the caster (usually more complicated/powerful spells cost more points).  Is there a concept in Potterverse that a spell caster is limited in how many spells they can cast by some limited reservoir of a resource necessary for casting the spells?   (obviously, not implemented by mana points :). But perhaps a mention in canon that someone was utterly exhausted by casting many spells and couldn't cast more).


how to do such stochastic integration $dS = a S^b dt + c S dW$?

How to do stochastic integration $dS = a S^b dt + c S dW$, where $a$, $b$ and $c$ are constant, $b > 0$, and $W$ is the Wiener process.  I know how to do integration for $dS = aS dt + cS dW$, or $dS / S = a dt + c dW$:  According to Ito's lemma, for $dx = \mu dt + \sigma dW$, and $f(t,x)$,  $$df(t,x) = (\frac{\partial f}{\partial t} + \mu \frac{\partial f}{\partial x} + \frac{1}{2} \sigma^2 \frac{\partial^2f}{\partial x^2} ) dt + \sigma \frac{\partial f}{\partial x} dW  $$  Submitting in $S\rightarrow x$, $aS \rightarrow \mu$, $cS \rightarrow \sigma$, and $ln(S)\rightarrow f(t,x)$, will get:  $$d[ln(S)] = (a - \frac{1}{2} c^2) dt + c dW$$  , then we'll have $$S(t) = exp[(a - \frac{1}{2} c^2) t + cW_t]$$  But if $S^b$ is introduced, how could I solve it?


Allow all commands via sudo but nopasswd for specific commands

I want to make sudo configuration such that one user 'test' should have access to all commands,all hosts like root. But for specific commands like 'ls /root' password should not get promted.  I'hv checked other questions but not able to find solution..Can someone please help?


How to make backspace key in Windows 8 Explorer get me to parent folder instead of going back in history? [revamped]

Posting , but for windows 8 instead.  In Windows XP, Backspace (aka ←) key leads you to the parent folder, but in Windows 8 it just goes back in history. How do I make it work like in the old days?  The answer given from K.A (very complete & simple btw, kudos to him) doesn't work on Windows 8. I get an error message saying      Error at line 1.      Line Text: ÿÞ#     Error: This line does not contain a recognized action.      The program will exit.   How can it be getting to work On Windows 8?


Number of solutions to the equation $ x_{1} + ... + x_{k} = 100$ as a function of k?

Can someone help me understand why, calling n to the number of possible solutions to the below equation and constraint: $$ x_{1} + ... + x_{k} = 100 ;\textit{ }x_{i}\geq 1 \textit{ for }1 \leq i \leq k $$ n is: $$ n= \binom{99}{k-1} $$ It is used in my text book to reach the solution of a broader problem, but I can't see exactly why n takes that value. Thank you!


Does a space require more than one dimension? For instance $\Bbb R$ is not a space but $\Bbb R^2$ is?


I opened a new account and attempted to post a question and this was the error that I got:    You can only ask 50 questions in a 30-day period.   Why should it happen with new account? What is the reason?


03-13 15:27:57.592: I/Process(1985): Sending signal. PID: 1985 SIG: 9 03-13 15:27:58.558: D/AndroidRuntime(2062): Shutting down VM 03-13 15:27:58.558: E/AndroidRuntime(2062): FATAL EXCEPTION: main 03-13 15:27:58.558: E/AndroidRuntime(2062): Process: com.example.cabbookinghome, PID: 2062 03-13 15:27:58.558: E/AndroidRuntime(2062): java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v7/appcompat/R$styleable; 03-13 15:27:58.558: E/AndroidRuntime(2062):     at android.support.v7.app.ActionBarActivityDelegate.onCreate(ActionBarActivityDelegate.java:106) 03-13 15:27:58.558: E/AndroidRuntime(2062):     at android.support.v7.app.ActionBarActivityDelegateICS.onCreate(ActionBarActivityDelegateICS.java:57) 03-13 15:27:58.558: E/AndroidRuntime(2062):     at android.support.v7.app.ActionBarActivity.onCreate(ActionBarActivity.java:99) 03-13 15:27:58.558: E/AndroidRuntime(2062):     at com.example.cabbookinghome.SplashActivity.onCreate(SplashActivity.java:38) 03-13 15:27:58.558: E/AndroidRuntime(2062):     at android.app.Activity.performCreate(Activity.java:5933) 03-13 15:27:58.558: E/AndroidRuntime(2062):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105) 03-13 15:27:58.558: E/AndroidRuntime(2062):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251) 03-13 15:27:58.558: E/AndroidRuntime(2062):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360) 03-13 15:27:58.558: E/AndroidRuntime(2062):     at android.app.ActivityThread.access$800(ActivityThread.java:144) 03-13 15:27:58.558: E/AndroidRuntime(2062):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278) 03-13 15:27:58.558: E/AndroidRuntime(2062):     at android.os.Handler.dispatchMessage(Handler.java:102) 03-13 15:27:58.558: E/AndroidRuntime(2062):     at android.os.Looper.loop(Looper.java:135) 03-13 15:27:58.558: E/AndroidRuntime(2062):     at android.app.ActivityThread.main(ActivityThread.java:5221) 03-13 15:27:58.558: E/AndroidRuntime(2062):     at java.lang.reflect.Method.invoke(Native Method) 03-13 15:27:58.558: E/AndroidRuntime(2062):     at java.lang.reflect.Method.invoke(Method.java:372) 03-13 15:27:58.558: E/AndroidRuntime(2062):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899) 03-13 15:27:58.558: E/AndroidRuntime(2062):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694) 03-13 15:27:58.558: E/AndroidRuntime(2062): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v7.appcompat.R$styleable" on path: DexPathList[[zip file "/data/app/com.example.cabbookinghome-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]] 03-13 15:27:58.558: E/AndroidRuntime(2062):     at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) 03-13 15:27:58.558: E/AndroidRuntime(2062):     at java.lang.ClassLoader.loadClass(ClassLoader.java:511) 03-13 15:27:58.558: E/AndroidRuntime(2062):     at java.lang.ClassLoader.loadClass(ClassLoader.java:469) 03-13 15:27:58.558: E/AndroidRuntime(2062):     ... 17 more 03-13 15:27:58.558: E/AndroidRuntime(2062):     Suppressed: java.lang.ClassNotFoundException: android.support.v7.appcompat.R$styleable 03-13 15:27:58.558: E/AndroidRuntime(2062):         at java.lang.Class.classForName(Native Method) 03-13 15:27:58.558: E/AndroidRuntime(2062):         at java.lang.BootClassLoader.findClass(ClassLoader.java:781) 03-13 15:27:58.558: E/AndroidRuntime(2062):         at java.lang.BootClassLoader.loadClass(ClassLoader.java:841) 03-13 15:27:58.558: E/AndroidRuntime(2062):         at java.lang.ClassLoader.loadClass(ClassLoader.java:504) 03-13 15:27:58.558: E/AndroidRuntime(2062):         ... 18 more 03-13 15:27:58.558: E/AndroidRuntime(2062):     Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available   can someone here tell me whats wrong or why i'm getting no class error?


Subgroup of$\mathbb{Z}$ and finite subgroup of $\mathbb{Z}$

In class, we described a subgroup as follow :   A subset of $\mathbb{Z}$ is called a subgroup if it is nonempty, and the sum and difference of any two of its members is also a member.   I would like to find the "unique finite subgroup of $\mathbb{Z}$. I think it is $S=\{0\}$ but I am not sure $S$ is a subgroup of $\mathbb{Z}$ in this case.


I am looking at a problem that roughly says  If $a,b \in [0,1)$, and $\lfloor na\rfloor+\lfloor nb\rfloor=\lfloor n(a+b)\rfloor$ for every $n\in\mathbb{N}$, then $a=0$ or $b=0$.  The proof that was supplied was the following:  Assume $ab\neq 0$ and write $a=2^{-a_1}+2^{-a_2}+\ldots+2^{-a_s}$, and $b=2^{-b_1}+2^{-b_2}+\ldots+2^{-b_t}$, and wlog let $b_t\geq a_s$. Then taking $n=2^{b_t}-1$ gives $$\lfloor na\rfloor+\lfloor nb\rfloor=\Big\lfloor \sum_i 2^{b_t-a_i}-a\Big\rfloor+\Big\lfloor \sum_i 2^{b_t-b_i}-b\Big\rfloor=\sum_i 2^{b_t-a_i}-1+\sum_i 2^{b_t-b_i}-1,$$ whereas the RHS becomes $$\lfloor n(a+b)\rfloor=\Big\lfloor\sum_i 2^{b_t-a_i}+\sum_i 2^{b_t-b_i}-a-b\Big\rfloor=\sum_i 2^{b_t-a_i}+\sum_i 2^{b_t-b_i}-1,$$ a contradiction.  However as far as I can see this only applies if $a,b$ have finite decimal representations in base 2. Once one generalises to arbitrary $a,b\in[0,1)$ I think this proof becomes insufficient. So I was wondering if there is a proof that can show this result for all such $a,b$, or if this result actually fails without the assumption that $a,b$ have finite base 2 decimal representations.


Javascript object check if A included in B

I have the following JavaScript that contains two objects with an id and an attribute.    How can I check if a specific combination (id + attr tupel) from A is included in B? so is currentHMLMap[i] included anywhere in the whole newHTMLMap object?      deleteLinks.on('click', function(ev){         ev.preventDefault();         var currentHTML = $('.product');         var currentId = $("body").find('.product').toArray().map(function(e){return $(e).attr("data-id-product");});             var currentAtr = $("body").find('.product').toArray().map(function(e){return $(e).attr("data-id-product-attribute");});          currentHTMLMap = currentId.map(function(x, i) {             return{"id": x, "atr" : currentAtr[i]}          }.bind(this));         var newHTML ;         var deleteIndices = [];             $.ajax({             url: this.href,             type: "GET",             dataType: "html",               success: function(data) {                   newHTMLId = $(data).find('.product').toArray().map(function(e){ return $(e).attr("data-id-product");})                   newHTMLAtr = $(data).find('.product').toArray().map(function(e){ return $(e).attr("data-id-product-attribute");})                       //creating "map"                  newHTMLMap = newHTMLId.map(function(x, i) {                      return{"id": x, "atr" : newHTMLAtr[i]}                   }.bind(this));                   for(i = 0; i  < currentHTML.length; i++){ // is currentHMLMap[i] included in newHTMLMap?                       if (??){                     deleteIndices.push(i);                       }                   }                      for(i = 0; i < deleteIndices.length; i++) {                     console.log("removing index" + deleteIndices[i]);                     currentHTML[deleteIndices[i]].remove();     }               }         });     });   Update:  currentHTMLMap:   0: {id: 1, atr: 5} 1: {id: 3, atr: 71}   newHTMLMap:   0: {id: 3, atr: 71}   It is possible, that newHTMLMap contains more than one entry and there may be more than one element removed.  So the first index of currentHTMLMap is not included in the newHTMLMap, so I want to push 0 to deleteIndices. I hope this helps for clarification.


Producing PDF/X compliant document with XeLaTeX

Solution  Full solution for producing PDF/X compliant document can be found in MWE and answer to this question:   Adapted MWE and compilation method are taken from Leonid's answer to this question.  Please note that solution requires compilation with TeXLive 2015 (or later).  Original question  I am trying to compile my source with XeLaTeX to produce PDF/X-1a:2001 compliant document. Getting PDF/X-1a:2001 is possible with pdfx package (while using up-to-date TeX distribution), but only when document is compiled with pdflatex.  Since I am using OTF and TTF fonts in my document, I have to use XeLaTeX to compile it. This is MWE:  \documentclass{book} \usepackage[x-1a1]{pdfx} \begin{document} Some text \end{document}   When I try to compile this document with MiKTeX's 2.9 xelatex I get following error and compilation halts:  ! Undefined control sequence. l.111 \pdfminorversion                       =4 %  assumed for PDF/A ;  options may change this for...  ?    Is there any way to compile PDF/X-1a:2001 with XeLaTeX, either using pdfx or different package?  Ps. I used MiKTeX 2.9, because I don't want to update my TeX Live 2013/Debian distribution I normally use. With MiKTeX I get most recent version of pdfx package.  EDIT: Since it isn't obvious from Leonid's answer and is mentioned only in comments, please note that you need TeXLive 2015 in order for Leonid's answer to work fully. TeXLive 2013 (installed by your system's package manager) or MiKTeX 2.9 won't do the trick (this is true as of March 2016; it might change by the time you read this).    I also tried to compile this MWE with LuaLaTeX to see if this works. It didn't. I get following error:  ! Undefined control sequence. \pdfx@findUUID ... \pdfx@tmpstring {\pdfmdfivesum                                                    {#1}} \expandafter \pdfx@e... l.360 \pdfx@findUUID{\jobname.pdf}  ?   In the event version of LuaLaTeX matters: lualatex --version outputs  This is LuaTeX, Version beta-0.76.0-2013062821  (MiKTeX 2.9 64-bit) (rev 4627)


Archive submission failed: ITMS-4238 "Redundant binary upload"

When attempting to submit an app from Xcode 6 Organizer to iTunes Connect, I receive the following error:     ERROR ITMS-4238 "Redundant binary upload. There already exists a binary upload with build version '1.0' for train '1.0'"   Application Loader also fails with the same error. How can I upload my app?


Derive the set identity $A \cap (A \cup B) = A$

Derive the set identity of:  $A \cap (A \cup B) = A$  Really need help. I do not know how to reach end result.  Please assist.


Why are/aren't these functions members of the exponential family?

I am currently trying to learn about the  of distributions. I am trying to understand  question and  answer from Xi'an. I have the same function: $$f(x; \sigma, \tau)= \begin{cases}  \dfrac{1}{\sigma} e^{-(x - \tau)}/\sigma &\text{if}\, x\geq \tau\\       0 &\text{otherwise} \end{cases}$$ However, it still isn't clear to me why this is not a member of the exponential family. On the other hand, it is said that the function $$f_{\varphi}(x)= \begin{cases}  \varphi x^{\varphi - 1} &\text{if}\, 0 < x < 1, \varphi > 0\\       0 &\text{otherwise} \end{cases}$$ actually is a member of the (one-parameter) exponential family. Why is the first function not a member of the exponential family? Furthermore, what is the reasoning behind why one is a member of the family and yet the other is not?  The 'duplicate' does not provide the clarification of the reasoning here  and here . I was really looking for a 'simpler' explanation of things so that I could understand.


I know that the net force on a system of dipoles is zero because internal forces cancel out, but the same is not true for the torque. I wanted to know why does this happen. And is it related to any conservation law? I solved the forces and torque for the below problem for context.


Conservation of energy and wavefunctions

I'd appreciate a bit of clarification on how conservation of energy works in QM.  The infinite square well has a set of stationary states, each corresponding to one of the discrete energy levels of the well. A particle in a particular state can be represented as a sum of these stationary states. The expectation value of the Hamiltonian, < H > , of this particle does not change with time. The state however (by virtue of being a sum of multiple stationary states) has a non-zero energy-uncertainty.  Measuring the energy of the particle collapeses its wavefunction into one of the stationary states with a corresponding energy value.  This bothers me. While  < H >  is constant, the "actual" energy of the particle (upon measurement) could vary greatly. This seems like a violation of energy conservation. [And while I've posited this question in terms of the infinite well, any wavefunction composed of non-degenerate stationary states seems like a violation to me]  So, is the particle entangled with some other particle (through whatever process put it in the well in the first place) such that the net energy in some larger system is constant? Or is energy only conserved is larger systems (which are compromised of so many particles as to approach  < H > )? Or what am I misunderstanding?


Javascript - [Why?] Assigning a variable to an object

Why is it that when I assign a variable to an object and make a change to that variable it also changed the objects? For example:  c = 26; a = b = c; a += 1;  a      // 27 b      // 26 c      // 26   but   z = {}; x = y = z; x.ab = 5;   x      // Object {ab: 5} y      // Object {ab: 5} z      // Object {ab: 5}   Why (in the example above) does y.ab and z.ab exist? I only modified x not y or z. Howcome in the first example (with the integers), when I changed the value of a,  b and c weren't affected?


Filter questions by 'Unanswered' and select 'newest' not working

I was looking for newest unanswered questions, so I clicked the 'Unanswered' button and then, the 'newest' tag just below.  Why did I get answered questions in the displayed list ? Isn't it supposed to filter the questions by unanswered and sort the list from newest to oldest unanswered questions ?  EDIT : I don't want it filtered by a specific tag like C++ for example nor sort by upvotes like the 'no answer' tag. Just unanswered and sort by newest.


Count the number of items in a TikZ foreach statement

One sometimes defines macro's for TikZ as:  \newcommand{\foo}[1]{     \foreach \x in {#1} {         %do something     } }   Thus where the argument given to \foo is used in a \foreach loop.  Sometimes, one wants to know the number of items in advance, for instance to divide the width of an object among the given items. You can do this using a counter:  \newcommand{\foo}[1]{     \setcounter{tmpA}{0}     \foreach \x in {#1} {         \stepcounter{tmpA}     }     \foreach \x in {#1} {         %do something     } }   Thus using a counter tmpA and increment it the first time, and then iterate a second time over the list and use the value of the counter if necessary. One can of course abstract the counting away in a virtual call, but that's not really the problem: one needs to define a counter and there is always a small chance someone else defines a counter with the same name such that they interact.  I was wondering if there are some utility functions defined for TikZ foreach items: counting, merging, crossproduct,...


UK visa refusal on deception, the pages are shown below:


Recently I've completed my first heist. I used the better hacker, the worse driver and the worse gunner(or whatever he's called). As a result I got:      1) we had enough time to steal all the items(thanks to a good hacker)   .      2) one guy fell of the bike when we were running away. Result: lost around 1.4 mil(down to 2.8 from 4.2)   .      3) the driver wasn't sure where to go, so he chose random direction, which appeared to be the right one.   .      And 2 of the crew got +25% skill I think after the completion of the mission. Looks like the one who fell down with a bike got nothing.   So the question is: should I take the better ones from the beginning or is it better to take the worse ones and let them become better?


Can you reapply for a UK visa after being refused entry?

If one is refused entry to UK for bringing more tobacco than is allowed, does he have a right to reapply for a visa? Would he be granted another visa? There is no cancelled stamp on the visa used to travel there and the person returned to India on his own ticket.


How to handle bad questions with good answers?

Take a look at . It's a really crappy question that (especially for the first revision) really deserves its -4 score.  However, one user has written what (to me, who doesn't know jack about Objective C) looks like a great answer, tutorial style.  Knowing nothing about the topic, I can't really judge this or do anything about it, but I just feel bad that the answerer has gone through some lengths to write up a (seemingly) good answer for a question that hardly anybody will ever look at. I can't even upvote the answer, because I don't know if it's good.  One idea that I had was a "Flag for pro attention" kind of thing that make the question show up in some lists for people that are active in the particular tag(s). However, I think things like that have been discussed before, and not really come to a conclusion. I myself can't think of a good way to accomplish this.  But I also don't want to leave this question rotting there. So how would you handle this  and similar cases?


I know it would seem like a simple task. I've tried right-clicking apps, (lets use steam as an example) and clicking uninstall. However, they do not uninstall. So far, i noticed this happening with Steam and Virtualbox. I've even tried a third-party program (i forget the name, I had re-installed Ubuntu) Please help, I want to be able to uninstall stuff.


How do I delete a possibly non-empty dir in Python.  The directory may have nested subdirectories many levels deep.


Black screen after upgrading from 14.04 to 14.10

I upgraded from Ubuntu 14.04 to 14.10. I did it by following the steps on the Ubuntu site. I set my update preferences to warn me about any new version of Ubuntu. As soon as I did this, it told me the 14.10 was available and asked me whether I wanted to upgrade it or not.  First, I have to say that I'm very new to Ubuntu and I'm not familiar with names and codes and using the Terminal.  Well, it upgraded and asked me to restart and so I did. But when it restarted a purple screen appeared and then the word Ubuntu appeared with the dots under it (as if it was loading) and then it went a screen full of messages and then to a black screen with a blinking cursor on the top left corner. I discovered by accident the shortcut ctrl+alt+f1 which led me to some sort of a login screen. I logged in and a message appeared saying it could not start unity.   What should I do?


Can I Invite PE Players To My PC Realms Server?

I am trying to invite my son (IOS Pocket Edition) to my realms server (mac osx).   I keep getting the response "Could Not Invite The Provided Name" when I try to invite him. His name is all regular characters with no spaces . . . just letters and numbers.  Are the two game types incompatible, and if they are Is it possible to create the same type of 24/7 available server that is only open to him and other invitees like the OSX realms?   Thanks in advance for any clarification.


If flight is delayed, what is the minimum time you must be at the gate if already check-in?

If know that my flight will be delayed by several hours, what is the minimum time I must be at the airport and at the gate (per regulations) if I have already checked-in?  For instance, I want to arrive at 1900 when the flight will now be leaving the airport at 2100. Originally, the flight was scheduled to depart at 1800.   I'm more specifically concerned about the TSA and/or homeland security requirements.  Other details:   I have already checked in and am a confirmed passenger with printed boarding pass. (This is the difference between my question and a flagged duplicate) This flight is the first leg of my trip.   Details that should not matter for the answer I am looking for but I know people will ask for:   Flight is with a major US carrier. I do have a check bag (but once again, I am looking for the required minimum time not the recommended time). It is from a standard USA airport -nothing special. My trip is ending internationally (IE there is a layover in the USA but ending in Europe). My actual flight times are more tightly compressed (I just exaggerate for simplicity).


I have a shell script in one server. I want to run it in another server from this server. Both servers have ubuntu 18.04. I can ssh into the other machine. Do I need to upload my script on another server.


Here's two ways I've seen the "all, but" idiom used:  "Close all tabs but this one" (Any modern application with a number of tabs might have this as an option.) It means "close all the tabs, but not this one".  "With that goal, the championship is all but decided". This seems to mean "you can say/do whatever (all) you want, (but) it won't change who wins the championship."  Is one of these usages more correct than the other?


Strange arrow mark with TikZ edge and anchors.

When I draw an edge between two nodes with anchors and globally set option [->], I get an additional arrow tip symbol at the beginning of the last edge in the path. For example in  \documentclass{article} \usepackage{tikz}  \begin{document} \begin{tikzpicture}     \node (A) at (0,0) {$A$};     \node (B) at (1,0) {$B$};      \draw[->] (A.north east) edge (B.north west);      \draw (A.south east) edge[->] (B.south west); \end{tikzpicture} \end{document}   the first \draw command produces incorrect output, while the second produces correct output:    Am I doing something wrong, or is this a bug in TikZ?


Generalizing $\,r(n^2) = r(n)^2,\,$ for $\,r(n) := $ reverse the digits of $n$

I'm assuming this theorem was found by someone else before, but I found this relationship between square numbers of 3 digits or less. The theorem is this: If you reverse the digits in a square number, then the result will also be a square number. Take the square 961. It is 31 squared, and if you reverse the digits you will get 169, which is also a square number. Plus, 31 and 13(the roots of these reversed squares) are also reverses of eachother. The problem is this breaks with 4 or more digits. If I take the square 1024 and reverse the digits, I get 4201, which is not a square. How can I expand this theorem to fit 4 or more digits?


QGIS. Calculate length of lines in temporary draft layer

In QGIS, I need to calculate the distance between certain points and save this information as a line shape file, in which the attribute of each element (line) is its length (distance between points). For this I have created a temporary draft layer of lines to draw the lines and I have obtained this:  Now, how do I calculate the lengths and save them as an attribute of the elements?


install vagrant version 1.5 or greater on 14.10

Is there a way to install a newer version than in the repository?  Ubuntu installs vagrant 1.4.3 at the moment, but I need at least 1.5


Android app crashes when clicking a link in Preview mode

While using android mobile application found a bug in it, also had an email redirecting me here to post question and drive solution finding process  Here goes some information about this issue:  Env : Android 8.1, Xiaomi Redmi 6  Preconditions : Login as user into android mobile app  Steps-to-reproduce:    Start creating new question (tap on ask question UI)  Add link with add-link-icon  without "title" as in dialog with example  Edit description in question message(optional step)  Tap "Preview"  Tap on underlined link List item   Actual Result : App crashed  Expected result :  Link opens  Hope that will help to solve the problem!


Which fundamental force is responsible for the Casimir effect?

I've read about the , and there seem to be no particle mediating the force; but the virtual particles called virtual photons. Is it enough to conclude that the Casimir effect is due to the electroweak ?  Edit regarding the tag as duplicate question. In the link given, one reads      (...) Casimir forces can be computed without reference to zero point   energies. They are relativistic, quantum forces between charges and   currents.   My question still remains the same: Is it enough to conclude that the Casimir effect is due to the electroweak fundamental force? If yes, then there is no particle mediating this force?


Throwing a shield after a full attack action

I'm trying to figure out if I can still throw my buckler in a full attack action and, if I can, with which attack bonus I do so.  Here's how I've broken it down:  Full-round action     A full-round action consumes all your effort during a round. [...] You   can also perform free actions and swift actions   Throwing Shield       This shield is designed for throwing and has specially   designed straps that allow you to unclasp and throw it as a free   action.   Buckler     This small metal shield is worn strapped to your forearm. You can use   a bow or crossbow without penalty while carrying it.   Let's say I've strapped a Throwing Buckler on my bowstring arm and I'm shooting my bow for a full round. Can I still throw my buckler as a free action? Do I use my full ranged attack bonus for it?


Do commands continue running if a remote terminal is disconnected?

I seem unable to find a clear answer, so I figured on asking a clear question instead (well, technically it's two questions, but they are similar).  If I'm using remote terminal from another machine on the network (a non linux machine, but I think that would be academic), or indeed from outside the network when I terminal from my phone (again, not sure it would matter, but just in case...) and I start a long process and the connection becomes broken (let's say the cat sits on the keyboard and closes putty; or cell service drops; or the other cat is playing with the flashing light on the power bar and manages to turn the router off); both ends of the connection are still active, just no longer connected...  Q1) If I'm running a normal command like rsync (but not limited to) and it was incomplete, does the command continue to run on the server?  Q2) If I'm running a bash executable, which again was incomplete, does the command continue to run on the server?  I know I can reconnect and just run things again, but not everything is as handy as rsync when it comes to resuming; and if it's a bash file running, it would take investigation to figure out how far it got.  The processes I'm using are primarily file manipulation; but are not limited to them (just in case that matters)


I would like an explanation of what's happening when I do the following: mylist = [1, 2, 3, 4, 5, 6, 7, 8, 9] print(mylist[5:3:-1])  The output is [6, 5] but can someone explain to me why? I understand when I do something like [i:j] with i > j but here it's reversed. The :-1 means we reverse mylist?


Installing Android SDK for Android Studio

I've already a working Android Studio 1.2 installed on my computer. But seems there is no installed SDK tools on my computer, so when I try to launch the Android Studio a dialog pops up saying please specify SDK location.  I've searched whole of  page and sounds there are only two options.   Android Studio bundle, including IDE and SDK tools Stand-alone SDK tools for IDEs other than Android Studio. (ADT for example).   But I need a third option that only provides SDK tools only tailored for Android Studio. Thus my question would be is there any other repository by which this option is provided?  If there is no such repository, I should download that bundle file again. (Seems would be a nightmare with my snaily network speed :) )  Please note that I've tried already stand-alone SDK with Android Studio, but seems they couldn't couple together.


I have been playing Pokemon go for a while and decided to GPS spoof down the road to a pokestop as it was late at night. Anyway I spun the pokestop and it will give me the items however I have the soft ban effect of all Pokemon fleeing.Is this a ban or no???


Prove: The positive integers cannot be partitioned into arithmetic sequences (using Complex Analysis)

An arithmetic sequence of step $d$ is a set of the form: {$a, a+d, a+2d, a+3d, ...$} where $a, d$ are positive integers.    Show that the positive integers cannot be partitioned into a finite number of arithmetic sequences s.t. each sequence has a distinct step $d$. (Except the trivial sequence $a=1, d=1$.)  Now the book gives me a hint: Write $\sum_{n\in\mathbb{N}}z^n$ as a sum of terms of the type $\frac{z^a}{1-z^d}$.    But it isn't clear that the power series can even be put such a form, and even if it can, why does that help me?


Modulus operation with negatives values - weird thing?

Can you please tell me how much is (-2) % 5? According to my Python interpreter is 3, but do you have a wise explanation for this?  I've read that in some languages the result can be machine-dependent, but I'm not sure though.


What is the proper term for these items/images

First, is there any generic term or style for this type of showcasing images/items in mobile? I'm trying to emulate the style used here but first I would like to know the proper team so that we could search if there is any library built already and avoid reinventing the wheel.      I could build something like this in mobile app (react-native), but it would be too rigid, like it would be a rows/columns of fixed images but it is no way closer than this where images have their own sizes and it seems not following the traditional row/column grid structure.


I am new to blender and I am trying to create an intro video for my site.   I have rendered the animation and want to compile the images for the animation so that I can use it in my video editor (Davinci Resolve 15).   I used the video sequencer to compile them into an AVI format but Resolve is not recognizing the file.   In a tutorial that I have watched, that helped me so far, the guy opened the formats drop-down in the output area and it had several other formats that are not a part of the release that I have (2.79b) including H.264, MPEG, and Ogg Theora.   He was using v 2.71. How do I get those other formats to work in Blender? Thanks in advance!


why do I have a syswow64 folder on my windows 7 x64 machine?

I have an error coming up when I try to launch an application inside a virtualbox machine running a 64-bit version of windows 7 ultimate now in order to fix that error for another application unrelated to this one it has been suggested to (re)place certain dll files in either the syswow64 folder for 32-bit systems or the system32 folder in 64-bit systems  now I'm a bit confused as to why I have both these folders on my system I would be happy if someone could break it down for me in a short and easy sentence without sending me on a nirvana on this silly thing called the google


Latex does not compile eps files form Matlab?

I have problem with inputing eps files from Matlab in my latex document.   Matlab version is R2016a. Windows version is 10, editor is Texmaker 5.0.3, MikTeX is version 2.9.  The first case is when I use latex + dvips + pstopdf build option, with using \usepackage{graphicx}. As a result I got compiled pdf, it shows some eps files, but it does not show eps figures which i generated from Matlab. Exactly, it cutted my document at the place where I inserted eps figure with includegraphic command.  The second case is when I use pdflatex build option, with \usepackage{epstopdf}. It compile my document, without any cuts, only places where need to be figures from Matlab are empty. Caption of missing figures also exists.  I tried to generate again Matlab figures, even with different combination of extension, for example as -deps, -depsc, -deps2, -depsc2, but I got the same result. I am not sure is that some Matlab bug, or Latex?   When I open eps file from Matlab with GIMP, it has proper content, it exist, I cannot see why, after compiling, it is not in pdf?  This is log file, from the second case:


How to use a shell variable inside sed's s command?

we know that we can get the value of a variable using $ sign:  x=3 echo $x 3   Is there other ways that we can use to get the value without using $ sign.  I'm asking this because $ sign is a special character to sed, and I get sed: -e expression #1, char 31: unterminated s' command error when trying to do this:  A=25 #lineNumber destStr="192.168.1.3 192.168.1.4" sed ""$A"s/Allow from .*/Allow from $destStr/" -i test2   and it prints the string destStr(not the value) when I use the escape character \:  sed ""$A"s/Allow from .*/Allow from \$destStr/" -i test2   using echo instead of sed:  25s/Allow from .*/Allow from  192.168.1.3 192.168.1.4 / -i test2


Using [pdf]{pstricks} with beamer doesn't work, but auto-pst-pdf does, why?

\documentclass{beamer}  %\usepackage{pstricks,auto-pst-pdf} % works \usepackage[pdf]{pstricks} \usepackage{pst-tree}  \begin{document} \begin{frame}{Test}     \begin{postscript}         $\pstree{\TR{S}}{}$     \end{postscript} \end{frame} \end{document}   I get the following error:  Error: /typecheck in --div-- Operand stack:    1   0   0.0   -0.00706883   a   65781.8 Execution stack:    %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostri ngval--   --nostringval--   false   1   %stopped_push   1926   1   3   %oparray_pop   1925   1   3   %oparray_pop   1909   1   3  %oparray_pop   1803   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   - -nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   --nostringval--   4   --nostringval--  %repeat_continue   --nostringval-- Dictionary stack:    --dict:1169/1684(ro)(G)--   --dict:0/20(G)--   --dict:123/200(L)--   --dict:100/300(L)-- Current allocation mode is local Current file position is 120580 MiKTeX GPL Ghostscript 9.05: Unrecoverable error, exit code 1   I use MiKTeX 2.9 and latest packages in Windows 7.


I'm a EU-Moroccan national, and I'd have to travel in Algeria in the future, but as far as Algeria is concerned, it requires a visa for almost every country in the world except its bordering countries' nationals (Morocco and Tunisia) and a few other countries. Can I simply use Moroccan passport for entry and exit in Algeria instead of applying for a visa? Many Arabs told me that I might be blocked because at their say "Arab governments don't accept this switching of passport or tricks" or "they might ask a visa for EU" which is weird because they're supposed to record and see the flux of people pertaining their country. Thought?


I have a form of the format:             <form ...>                 <div>                     <input currencyMask ngModel #el (click)="moveCaret(el)" value="Hello">                 </div>                 ...             </form>  How can I make it so that the first time a user clicks on the input, it will move the cursor to the end? I thought about using some logic of: moveCaret(el) { //Note: the 'el' object is of NgModel I believe    if(!el.dirty) { //move the caret } }  But I don't know how to write the actual code to move the caret. Also, this input is using a currency mask from this Angular library. I am not sure exactly how it works, but I think it prevents the method of removing, and then re-inserting the value of the input element to move the caret. The library is called ngx-currency:


Firstly, how do I read it? Is below right? With braces   $$p \vdash (q \Rightarrow p)$$  The given proof is:    ${p}$, premise ${q}$, assumption  $p$ by (1) // what???  ${q} \Rightarrow p$ by implication introduction with 2 and 2.1 QED...    I can't really get the link between $p$ and $q$ in 2.1 ...


Small caps (\sc) is not producing dotted I (İ)  Here is mwe  \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[turkish]{babel} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage[left=3.50cm, right=2.50cm, top=3.00cm, bottom=3.00cm]{geometry}  \addto\extrasturkish{\uccode`i=\string"9D \lccode`I=\string"19 } \addto\noextrasturkish{\uccode`i=`I \lccode`I=`i } \begin{document} \shorthandoff{=} \sc{ı and i. just like I and İ} \end{document}   How can i force it?


Is it possible to recover a permemnantly deleted file on EXT partition?

I've migrated from Windows to Ubuntu, So searching all those back up tools and software alternatives with Windows to Linux.  For Windows, there exists RECOVA, GetDataBack Disk recovery softwares; but those are for only NTFS & FAT don't have EXT partition support.  For Ubuntu, is there any Package for recovery?


which one is correct I will be on leave starting on October 4th till October 5th

I will be on leave starting on October 4th till October 5th   I will be on leave on October 4th and 5th     I am on leave from October 4th till October 5th


Is there a way to adjust the radius for AutoMerge welding verts?

I'm retopologizing a mesh I created in Blender and I'm trying to use AutoMerge to merge verts by dragging them close to each other. Unfortunately, the radius of effect that AutoMerge uses is very tight and I have to fiddle with moving the vert around so much before it merges that it's wasting time. If I could adjust the distance that AutoMerge uses to decide when to weld verts my workflow would be so much smoother. Any ideas?  Thank you


I am trying to migrate user accounts from a Drupal 7 site to a Drupal 8 site.  On the Drupal 8 site, I have a module that programmatically adds users using the following code.  $user = User::create(); $user->uid = ''; $user->setUsername('test'); $user->setEmail('test@abc.com'); $user->set("pass", $S$E96L22SibwKw5GrZrrCqCz7mxSjr9Z2pSB3GqBs5eeheTBPxOlJc); /*hashed value*/ $user->save();   The module creates the accounts correctly, but the user passwords are re-hashed.


Suppose i have two files total 8 -r-sr-xr-x 1 root root 34 Oct  8 17:36 openroot.sh -rwx------ 1 root root 38 Oct  8 17:34 root.txt  Content in root.txt : Hi I am root file.  Content in openroot.sh : #!/bin/bash  whoami cat root.txt  And now i am regular user (for example : person1). I execute command below: ./openroot.sh  The output is below : person1 cat: root.txt: Permission denied  which means i cannot open root.txt. How does it happen?


Can I write a powershell script for creating sharepoint 2013 wiki page in bulk?

I need to create a power shell script for creating wiki pages in bulk from a XML file. Please help.  Thanks


My wife is a Chinese national residing in Belgium. We would like to do the following itinerary:  Belgium --> Hong Kong (<7 days) --> Mainland China (e.g. Chengdu) --> Belgium  I assume my wife does not need a permit to go to Hong Kong.  I assume she can return to Belgium from mainland China (no need to go back from Hong Kong)?  Can anyone confirm my assumptions ?


I am using XeLaTeX and memoir to write a longer text with several parts, chapters and sections. When printing the \tableofcontents I get a spacing problem with 2-figure numbers almost overlapping the relevant section name, as per enclosed picture.  I am aware that the memoir manual has a section dedicated to this theme, but the most part of it is doubledutch to me. Is there any easy way to avoid this problem?


How to install with Wubi when it says "Could not retrieve the required disk image files"?

I tried to install Ubuntu 12.10 with the Wubi installer while running Windows, because my PC does not accept my BootCD as a bootable medium.  But Wubi showed me this error:  Ubuntu-Installationsprogramm (X) Ein Fehler ist aufgetreten: Could not retrieve the required disk image files Weiter Informationen finden Sie in der Protokolldatei: c:\users\username\appdata\local\temp\wubi-12.10-rev273.log   What can I do, because I want to get rid of my Windows 7 and use the way better Ubuntu 12.10?  Thanks for your huge answer, now my next problem after trying to install wubi with the .iso is, that the same error shows up again and i am not shure which part of the errorreport you need.  Can you tell me? Because i'm not that good at linux.


How do I go from dual-booting to full Ubuntu?

So, I recently decided that I wanted to dual-boot Windows and Ubuntu. The install went according to plan, both OS's worked, and everything was good. However, my Windows installation has stopped working due to problems unrelated to the dual-boot (well, not exactly, it's a 0xc000021a resulting from doing a Windows system restore to before I changed the file system type to allow for dual-booting... in any event, I digress). Since Windows 10 is no longer usable (I could fix it, but there's a sizable chance that it would FUBAR my computer), how do I go to full Ubuntu?


PHP warning with code for nav menu walker

[UTC] PHP Warning:  Declaration of   description_walker::start_el(&$output, $item, $depth, $args) should be   compatible with Walker_Nav_Menu::start_el(&$output, $item, $depth = 0,   $args = Array, $id = 0) in   /home/inach/public_html/inach/wp-content/themes/antartica14/functions.php   on line 0   [29-Mar-2019 14:34:11 UTC] PHP Warning:  Illegal string   offset 'output_key' in   /home/inach/public_html/inach/wp-includes/nav-menu.php on line 604   the code in functions.php  //menu class description_walker extends Walker_Nav_Menu {       function start_el(&$output, $item, $depth, $args)       {            global $wp_query;            $indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';             $class_names = $value = '';             $classes = empty( $item->classes ) ? array() : (array) $item->classes;             $class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item ) );            $class_names = ' class="'. esc_attr( $class_names ) . '"';             $output .= $indent . '
ID . '"' . $value . $class_names .'>';             $attributes  = ! empty( $item->attr_title ) ? ' title="'  . esc_attr( $item->attr_title ) .'"' : '';            $attributes .= ! empty( $item->target )     ? ' target="' . esc_attr( $item->target     ) .'"' : '';            $attributes .= ! empty( $item->xfn )        ? ' rel="'    . esc_attr( $item->xfn        ) .'"' : '';            $attributes .= ! empty( $item->url )        ? ' href="'   . esc_attr( $item->url        ) .'"' : '';             $prepend = '';            $append = '';            $description  = ! empty( $item->description ) ? ''.esc_attr( $item->description ).'' : '';             if($depth != 0)            {                      $description = $append = $prepend = "";            }              $item_output = $args->before;             $item_output .= '';             $item_output .= $args->link_before .$prepend.apply_filters( 'the_title', $item->title, $item->ID ).$append;             $item_output .= $description.$args->link_after;             $item_output .= '';             $item_output .= $args->after;              $output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args );             } } register_nav_menus( array ( 'primary' => __( 'Navegacion Principal', 'tu_theme' ), 'secondary'=>__( 'Navegacion Secundaria', 'tu_theme' )));   The login page is in blank and I cannot access the dashboard.


Let $c(n,k)$ be the $k^{th}$ unsigned Stirling number of the first kind. There are formulas for big $k$'s, namely,  $c(n,n-1)= \binom{n}{2}$ and $c(n,n-2) = \frac{3n-1}{4} \binom{n}{3}$.  I wonder whethere there are formulas for small $k$'s, e.g. $c(n,1), c(n,2)$?


Difference between had been and have been

My friend just answered to one of my important questions. Now how should I reply to him?  1.Oh!That question had been on my mind for a long time, finally, I got my answer. ( Oh! I had that question on my mind for a long time, finally, I got my answer)                                     or   2.Oh!That question has been on my mind for a long time, finally, I got an answer.( Oh! I have that question on my mind for a long time, finally, I got my answer)  Basically, I am confused with had and have. Since that question is not anymore on my mind after having got an answer, which one of the above two sentences should be used?


How to insert digital signature in LibreOffice documents

I was trying to  insert digital signature in LibreOffice writer documents. I went to file section then to digital signature. After that, I couldn't  insert my sign because the option was blank. How to do this?


Javascript function versus function expression

Consider these two snippets:  Snippet #1  function countDownFn(num) {   if (num === 0) return;    console.log(num);   countDownFn(--num); }  countDownFn(5); // prints 5, 4, 3, 2, 1 once per line   Snippet #2  var myCounter = function countDownExp(num) {   if (num === 0) return;    console.log(num);   countDownExp(--num); };  myCounter(5); // prints 5,4,3,2,1 once per line    Why can I find window.countDownFn but cannot find window.countDownExp ? Why would you use one over other? Is one of them better than other ? Why?


Does True Seeing see through Wild Shape?

Since Wild Shape can't be dispelled, which implies that it's not "inherently magical", can the spell True Seeing allow someone to see through a Wild Shape transformation?


Can I install 64 bit Ubuntu on my Intel Core i7 64bit PC?

I've an Intel Core i7 64 bit PC.  I've seen that Ubuntu 14.04 LTS has the following two versions..  ubuntu-14.04-desktop-i386.iso    (Intel 32 bit)  ubuntu-14.04-desktop-amd64.iso   (AMD 64 bit)  Can I use ubuntu-14.04-desktop-amd64.iso to install Ubuntu onto my Intel 64 bit machine? Would I face any problem if I do this?  Or Should I install 32 bit version on my 64 bit pc? But if I do this, I think I won't be able to get the advantages of having a 64 bit pc..right?  What should I do now?  Please someone clear the fact (difference) of Intel x86 and AMD64.


Example of a morphism that is not a function

Can someone please give me a simple example(I'm not a math professional) of a categorical morphism that is not a function?


How to change typesetting engine by adding code to tex file

I want the typesetting engine of my tex file be "XeLaTex" by default.   I can do this by changing the engine in a console, however, I am wondering how I can do such a work by adding some code to my tex file.   Lets say we have an online tex compiler and we have no choice to select the typesetting engine manually and we want to add some codes to our tex file to make it clear for the compiler which engine to use.  Edit:  It is worth pointing out that I use TexWorks editor, however I also want my code to work properly for (TeX Live 2013/W32TeX) that is for the Springer Editorial Manager system.  Thanks


I am new to dnd, what are the main rules?

I am new to Dungeons and Dragons. I've heard a lot about it, briefly played it, and know almost nothing about it. Can anyone help me out, want to play, and/or teach me how to play? My discord is on my profile and I am looking to play it with someone.


how to place circle in a far location from centre

A certain doubt always looms, when this circle is clicked ( by default ), it always remains near the screen. I mean with a click at most the cursor goes a bit away but not far from it. How does one get to place it lets say 20 measuring units ( inches or meters ) away.   Because it is in 3d space, this cursor should diminish in size as it goes far. That is my notion. could somebody clarify this.


Is it okay to soak peeled potatoes in the fridge for more than 24 hours food safety-wise? It's only about 30 hours so far but everything I've read says they are okay up to 24 hours. (I didn't intend to soak them for that long).  Thanks!


Permanently Disabling System Integrity Protection

I have disabled system integrity protection on El Cap following this  but it keeps coming back every time I reboot which is annoying.     Is there an extra step I need to perform to stop SIP switching itself back on after reboot?


Let $(X, \rho)$ be a metric space which is compact suppose that for all $x \in X$ and $r>0$ $\overline{B_\rho(x,r)} =\{y \in X : \rho(x,y) \leq r\}$.  Show that $B_{\rho}(x_0,r_0)$ is connected for all $x_0 \in X$ and  $r_0 >0.$   I haven't try anything and cannot think of any on how can i show this problem. Any suggestion, help and hint would help thank you very much!!!


Facebook log-in in macOS "Internet Accounts" suddenly stopped working

As of about a week or two ago, I started getting notifications in macOS (High Sierra, 10.13.4 17E202) that I need to sign in again ("Facebook Password Required"). It seems to accept my (definitely correct) password but then a moment later it asks for it again and I cannot get Facebook features like photo sharing to work at all.  I have not had this problem in other Internet Accounts (e.g. Twitter)  On the basis of answers here and online I tried removing and re-adding it, removing all Facebook related items in my login Keychain, and using an app-specific password.  I noticed that Facebook has updated its security settings page a lot, I suspect because of GDPR… So maybe they actually broke logging in from macOS? It seems unlikely, albeit possible, so I figured I'd ask on here to see if anyone has another solution or is experiencing the same issue as of late.  Note, if I look at my activity in security settings on Facebook it shows all these logins but it's from an unknown device.    Edit: Marked as a duplicate?… as I stated in the question this seems to be a new issue and previous answers don't seem to help. Seems to be specific to Facebook.


Would it be better to make daggers, or do training from blacksmiths

Currently, my smithing level is 71. There are only two options of increasing smithing for me:   Making Iron Daggers Get Training From Smithing Experts   Which method is more faster and can help me reach 100 Smithing?


Not sure what Oracle means by having different hashcodes while objects are equal?

I do not get what  means by followings: It seems to me the first and second ones are the same, the hashcode of two equal objects should always be the same! And for the last one does that mean, lets say in the following code change the value of prime in other classes?   1) Whenever it is invoked on the same object more than once during an     execution of a Java application, the hashCode method must consistently return     the same integer, provided no information used in equals comparisons on     the object is modified. This integer need not remain consistent from     one execution of an application to another execution of the same application.  2) If two objects are equal according to the equals(Object) method, then calling     the hashCode method on each of the two objects must produce the same integer result.  3) It is not required that if two objects are unequal according to the     Object.equals(java.lang.Object) method, then calling the hashCode method     on each of the two objects must produce distinct integer results. However,     the programmer should be aware that producing distinct integer results for     unequal objects may improve the performance of hash tables.    MyCode  public class Derived {     private int myVar;      @Override     public int hashCode() {         final int prime = 31;         int result = 1;         result = prime * result + myVar;         return result;     }      @Override     public boolean equals(Object obj) {         if (this == obj)             return true;         if (obj == null)             return false;         if (getClass() != obj.getClass())             return false;         Derived other = (Derived) obj;         if (myVar != other.myVar)             return false;         return true;     }  }


Is the standard Canon 18-55 lens the same as 5 years ago?

I am planning to buy a new Canon camera body, and am wondering whether to just get the body, or to get the standard 18-55mm lens as well.  I already have such a lens, which I think came with the EOS 600D camera that I bought about 5 years ago, but it might actually be older than that.  (It is marked "CANON ZOOM LENS EF-S 18-55mm 1:3.5-5.6 IS II".) Have these lenses improved significantly over that timescale?


How to rotate an image in compositor without cropping it?

I have an image that I want to rotate in compositor, to mix it with another image later. But as you can see in the images attached, when I use the rotate node, the image gets cropped.  I could create a plane in 3DView and render it, but I would prefer a shorter solution inside the compositor.  Is there any way to extend the canvas of the image, so this operation can be done?


Stop inserting hard line-wraps in blockquotes!

When you use the markdown editor's blockquote feature (the quote button / Ctrl+Q), it inserts hard line-wraps in the markdown source automatically for you. That is, it transforms text like this:  Hindus regard it as an earthly manifestation of the goddess Tulsi, a consort of the god Vishnu.   The offering of its leaves is mandatory in ritualistic worship of Vishnu and his forms like Krishna and Vithoba.   Into text like this:  > Hindus regard it as an earthly manifestation of the goddess Tulsi, a > consort of the god Vishnu.  >  > The offering of its leaves is mandatory in ritualistic worship of > Vishnu and his forms like Krishna and Vithoba.   The editor should instead transform it into this:  > Hindus regard it as an earthly manifestation of the goddess Tulsi, a consort of the god Vishnu.  >  > The offering of its leaves is mandatory in ritualistic worship of Vishnu and his forms like Krishna and Vithoba.   That is, without adding any newlines.   Why on earth does it insert hard line-wraps!? Both these forms look the same when rendered, but the current way makes it more difficult for us to go back and edit the blockquoted text later if need be.   This is particularly objectionable functionality for sites that use MathJax - while the hard line-wraps don't impact the rendered output, the additional > that are inserted do (they manifest as greater-than signs if they get inserted within MathJax $$...$$). See this post on Meta.Math.SE for more details: .    I found  that this behavior is apparently :      The "reflow the text when you click blockquote" is a deliberate feature, intended to improve the readability on quoted text.   Seriously? Are there any browsers that don't soft-linewrap textareas anymore? How is hard-wrapping at 70(?) characters better than soft-wrapping at $textareawidth? If readability is the concern here, then why not hard-wrap all non-code upon post submission?


Intuitive and Formulaic Justification for the Rao-Blackwell Theorem

I've tried looking online and I can't seem to grasp the Rao-Blackwell theorem.  Could someone please give an intuitive explanation backed up by formulae.


How can I enter and also rename folders like ''Human (2012)''?

I am playing with FTP via the command line, and I get two problems. I am not able to rename or enter folders like:  dir /home/folder1/Human (2012)   I tried:  cd ~/folder1/Human\ (2012)   Here I receive a message that the folder does not exist.  mv ~/folder1/Human\ (2012)   In this case, I receive a message that says:  syntaxfailure at (   How can I solve this problem?


Reset password screen when I turn on my MBP, what to do?

I shutdown my MBP when it had 1% battery after that when I turn it on, I get this screen, anyone knows what to do? I know my password. When I choose forgot password it wants to restart to a recovery mode. I'm panicked to lose my data.


RSA encryption. Does message have to be coprime to n?

If I understand correctly, for RSA to work we need the message(cleartext) M $\in Z_n$ and gcd(M,n)=1. That is M coprime to n. This is to fulfil the requirement for Eulers theorem. How does RSA make sure this is the case, and wouldn't this mean that some cleartext cannot be encrypted? Thanks,


Book or Tale identification - Building is in fact a spaceship

Can anyone please remind me the name of a Sci-Fi tale that a man lives in a strange building and can't get out. He starts to search other strange things.   I can't really remember the story, but I know that in the end the building turns out to be a spaceship and flies away.


70s(?) science fiction novel: teenage boy builds his own spacecraft which pulls/pushes gravity, is stranded on Mars when a vacuum tube burns out

Probably in the late 1960s or early 1970s I read a book the general plotline of which was: a teenage boy builds his own spacecraft that operates by pulling and/or pushing gravity. He takes the home-built craft to Mars where he is stranded when one of the vacuum tubes in the device burns out.  I read the book probably 40 years ago so publication most likely 60s or earlier. A key component of the gravity gadget was a vacuum tube, so that almost certainly pens it in the 50s. Doubt if it was from foreign source, the writing was quite American biased.   I think he traveled alone, but that follow up question made me think his girlfriend might have gone with him.  It has been too many years for that detail to be remembered.   Light sci fi, nothing dark in the storyline. Situational jeopardy, no bad guys. I hate to spoiler the ending just in case someone wants to read it, but I can add if it would help.  OK. It was suggested I include the ending, so (SPOILER ALERT!!!)      After being stranded and surviving quite well, a team from earth arrives to look for him.  A member of the expedition was either his mother (I think) or his father.  What happened was, back home they figured out what he had done, but were unable to duplicate the technology.  And the space agency REALLY wanted that drive.  So the "rescue" mission was really just to try to recover the technology, as they had never expected to find him still alive. Surprise surprise...


Can you evaluate $$\int\sin(x^2)\mathrm{d}x \quad ?$$  I have tried substituting $p=x^2$ as well as integrating by parts, but then I came across an answer  which says that there is no way of working it out without using a computer.


Converted xxx-eps-converted-to.pdf not found

I'm using TeXStudio on Mac OS X 10.7.4.  The problem is that the EPS to PDF conversion is somehow broken:  \usepackage[pdftex]{graphicx} \graphicspath{{img/}} \DeclareGraphicsExtensions{.pdf,.jpeg,.png} ... \begin{figure}[!t] \centering \includegraphics[width=3.5in]{TCP_VC_TD_AVE_CONNS_ACT} \caption{Simulation Results} \label{fig_sim} \end{figure} ...   I've got an EPS file in: img/TCP_VC_TD_AVE_CONNS_ACT.eps  Log:  Package epstopdf Info: Source file: <img/TCP_VC_TD_AVE_CONNS_ACT.eps> (epstopdf)                    date: 2012-10-12 16:44:32 (epstopdf)                    size: 210073 bytes (epstopdf)             Output file: <img/TCP_VC_TD_AVE_CONNS_ACT-eps-converted- to.pdf> (epstopdf)             Command: <epstopdf --outfile=img/TCP_VC_TD_AVE_CONNS_ACT -eps-converted-to.pdf img/TCP_VC_TD_AVE_CONNS_ACT.eps> (epstopdf)             \includegraphics on input line 94. runsystem(epstopdf --outfile=img/TCP_VC_TD_AVE_CONNS_ACT-eps-converted-to.pdf i mg/TCP_VC_TD_AVE_CONNS_ACT.eps)...executed.  Package epstopdf Info: Result file: <img/TCP_VC_TD_AVE_CONNS_ACT-eps-converted- to.pdf>.  ! Package pdftex.def Error: File `img/TCP_VC_TD_AVE_CONNS_ACT-eps-converted-to. pdf' not found.   The required img/TCP_VC_TD_AVE_CONNS_ACT-eps-converted-to.pdf file is never created.  TeXStudio compiles with (I've added -shell-escape, from other posts):  /usr/texbin/pdflatex -synctex=1 -interaction=nonstopmode -shell-escape %.tex   Can anybody assist?  EDIT - A minimal file breaks as well:  \documentclass{article} \usepackage{graphicx} \begin{document} \includegraphics{img/TCP_VC_TD_AVE_CONNS_ACT.eps} \end{document}   Log:  Package epstopdf Info: Source file: <img/TCP_VC_TD_AVE_CONNS_ACT.eps> (epstopdf)                    date: 2012-10-12 16:44:32 (epstopdf)                    size: 210073 bytes (epstopdf)             Output file: <img/TCP_VC_TD_AVE_CONNS_ACT-eps-converted- to.pdf> (epstopdf)             Command: <epstopdf --outfile=img/TCP_VC_TD_AVE_CONNS_ACT -eps-converted-to.pdf img/TCP_VC_TD_AVE_CONNS_ACT.eps> (epstopdf)             \includegraphics on input line 4. runsystem(epstopdf --outfile=img/TCP_VC_TD_AVE_CONNS_ACT-eps-converted-to.pdf i mg/TCP_VC_TD_AVE_CONNS_ACT.eps)...executed.  Package epstopdf Info: Result file: <img/TCP_VC_TD_AVE_CONNS_ACT-eps-converted- to.pdf>.  ! Package pdftex.def Error: File `img/TCP_VC_TD_AVE_CONNS_ACT-eps-converted-to. pdf' not found.


Error with environment variable expansion in ZSH

Run these commands:  [$] echo 'export VAR="qwertyuiop" export VAR="$VAR:asdf=ghjkl"' > /tmp/vars.sh [$] source /tmp/vars.sh [$] echo $VAR /home/saga/qwertyuiopsdf=ghjkl   As you can see, the variable substitution does not do what we expected. What is the issue here?


why doesnt base class without virtual methods need virtual destructor?

i have been thinking, why only base class with virtual method needs virtual desctructor? look at this piece of code (read the comment):  class Base{ private:     int x; public:     Base():x(0){}     ~Base(){         cout<<"Base dtor"<<endl;     } };   class Derived : public Base{     int y; public:     Derived():y(0){}     ~Derived(){         cout<<"Derived dtor"<<endl;     } };  int main(){     Derived *pd = new Derived;     Base *pb = pd;     delete pb; // this destroys only the base part, doesn't it?                // so why doesnt the derived part leak?     return 0; }   I ran it with Valgrind and saw that the output was "Base dtor", and no memory leaks occurred. So, if only the base class dtor was called, why doesn't the derived class part leak?


Proving a function is surjective given the composition is surjective

Here is the question $f:X \rightarrow Y$ and $g: Y \rightarrow Z$ are functions and $g \circ f$ is surjective, is $g$ surjective?  My proof: If $g \circ f$ is surjective than $\forall z \in Z \; \exists x \in X \; \mid (g \circ f)(x)=z  $ Suppose $f$ is surjective, than $\forall y \in Y \; \exists x \in X\; \mid f(x)=y$. By def. of $(g\circ f)(x)=z$ we have $g(f(x))=z$ and since $f(x)=y$ than we have $g(y)=z$ which implies surjectivity therefore $g$ is surjecive.  Is this the correct way to prove that $g$ is surjective? Or can I not assume surjectivity on $f$


javascript - why is 'this' not referencing the object? code below

I don't understand why this.name isn't the same as obj.name, basically why in this case this refers to the window object and not the obj object. In the code below, this.name is instantiated after obj.name..  function createNewPerson(name) {     var obj = {};     obj.name = name;     alert(this.name);     return obj; }


I have purchased a game on Steam and can not find out the details of the file or purchase. How does one find their CD Key from a game purchased in Steam?


In MS SQL how do I find out what tables have not been queried or updated in a long time?

I'm maintaining a database that is being shared by a few systems. Over the years a few of those systems have been deprecated and lots of the tables are actually orphaned. Is there a query I can run to find out which tables have not been used since a certain date?  Thanks.


Ubuntu 16.04 root password suddenly not working(even after resetting)

I disabled password for login at User Account setting, and later when I ran sudo, I get "Sorry, try again." It seems my previous password doesn't work anymore. I also tried hitting enter directly but it didn't work either.   I attempted to change the root password by following this article: .  Everything works fine, I did have got the "update password successfully" message. However, when I get back to the graphic desktop and tried to sudo anything, the new password didn't get me any more luck.   I repeated the process three more times and made sure there is no typo in setting new password.  I also tried to remove sudo requirement by following this article:   after resetting password in grub mode, but that didn't help.   So right now the OS works fine but I can't do sudo anymore or authenticate anything at all.  Any help will be appreciated!    So appearantly sudo asks for the user's instead of the root password, I guess that's while changing root password doesn't help. (Please correct me if that's not exact). However, I still can't find anything to get sudo to work after trying every single password I ever set up..


I'm new to Mac and I want to know the last time I opened an app on my Mac and what the app was. Like for example if I opened Sublime Text at 2:04 pm how would I see that?


Prove that odd polynomials have at least one root.

Intuitively this is easy for me to understand, but I don't know how to start the proof. Can someone help me?      Prove that any polynomial of the form $x^n+\sum_{i<n}a_{i}x_{i}$, with $a_{i}\in \mathbb{R}$ and $n$ odd, has at least one real root.


What could cause my washing machine to stop before the rinse cycle, it drains fine?

This is the 2nd washing machine that has this problem.  I have seen all the previous answers and non of them correct me problem.  The water drains out fine, it just will not spin, I have to manually turn the dial to  it works.


What are the requirements for the example question in the site tour?

The site tour uses an example question to illustrate how sites work.  By default, it is a question about preventing unicorns from eating daisies.  I know that it's possible to change that question (some sites have done so) and that there are some pretty strict requirements on candidate questions in order to be used for that.  (On one site where I'm a moderator, following the "edit question" link just leads to a message saying "no eligible questions".)  I believe there is a length limit and that certain formatting is not allowed.  I've searched MSE and checked the moderator-only section of the help center but I can't find the specific requirements.  What are they?  If my site wants to change the tour question, what conditions must our proposed replacement satisfy?


This is a part of my code:  $content = ' '; $content .= '<meta http-equiv="content-type" content="text/html;charset=UTF-8"/></meta>         <link rel="stylesheet" href="" type="text/css" media="screen" /> <div class="all_block">';   Don't work UTF-8 but it is set I don't understand where is my problem This is an example of text: 'ja?i ku?ol har? lerp�' Help me please!


I want to use a relay switch with the GPIO on my raspberry pi 2 (40 pins).  I found the link below on google and it mostly makes sense, what I'd like to know is why do I need to use a transistor to activate the relay switch?  why can I not just wire it up directly?    please keep in mind I am a novice with electronics.  Thank you :o)


I am trying to write a custom attribute which will log start time of a method.   Here it is my code :      public class Program     {         public static void Main(string[] args)         {              try             {                 CompareBusinessUnits();             }             catch (Exception ex)             {                 throw;             }         }          [RecordTime]         private static void CompareBusinessUnits()         {              // to do something         }       }       public class RecordTimeAttribute : Attribute     {         public void PrintStartTime()         {             Console.WriteLine("Start Time " + DateTime.Now);         }     }   But console window does not show start time. I want to print the time when the method starts.


I have a data model that is quite large with many members, and many of them are themselves large data models, with nesting like this for several levels deep. The top class represents the overall model that is serialized and sent off to a server for backup. As a debugging step, we would like to deserialize a recent backup and compare it to the in-memory data model at the time of backup, which should be equal. The most obvious way to do this is apply operator== on the current model and its serialized-then-deserialized version.  The problem is that the degree of nesting and quantity of custom data structures will require a tremendous amount of code to write all those operator== implementations. Not to mention that many of those individual implementations will alone be many lines long to compare every member's equality. We're easily talking >1k lines of code just spent on operator==. Even if we do all that, there is large room for programmer error on something like this.  Is there any alternative for a quick and dirty (though reliable) equality check, perhaps using much lower level techniques, or anything that would not require a couple of days of doing nothing but writing operator== functions?


The  $\nu$ is always less than $0.5$.  A traction force ($\Delta L >0$) can cause an increase in volume, while a compression force ($\Delta L <0$) can only decrease the volume.  $$\Delta V \approx V \frac{\Delta L}{L}(1-2\nu)$$  I'm totally ok with these facts but I don't understand which one follows the other.  Is $\nu<0.5$ a consequence of an empirical observation that $\Delta V<0$ with traction, or viceversa?


If someone has a photocopy of my passport, could they steal my identity?

Someone has taken a copy of my passport and other identification.  Does that mean it's possible for someone to steal my identity?


Let me know how to align text in the center of 'p' element.  I think Aligning text in p element is not same as aligning text in div element.   <!DOCTYPE html>
This is some text in a paragraph.
                     Thanks in advance     I am expecting like this:


Please check below   PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND  2561 redis     20   0 2761160   2.3g   1028 S 200.0 30.0  58:33.49 sysupdate  2576 redis     30  10  577576  61120    540 S 194.7  0.8  54:20.02 networkservice  I have no idea where they came from. How can I manage them


If $x,y,z\in\mathbb{R}^+$, prove that $\sqrt{x^2-xz+z^2}+\sqrt{y^2-yz+z^2}\ge\sqrt{x^2+xy+y^2}.$

When I was doing Math Training, the coach gave a inequality problem.     If $x,y,z\in\mathbb{R}^+$, prove that $$\sqrt{x^2-xz+z^2}+\sqrt{y^2-yz+z^2}\ge\sqrt{x^2+xy+y^2}.$$   I tried to use the brute force method, and found out it was to hard and it involves lot of terms.  The coach later said that there is a beautiful way to solve this problem.  Can someone help me?


Keep /home directory when installing Ubuntu 14.04

I would like to install Ubuntu 14.04.02 LTS on my machine which currently has Mageia 4.1.   So, I have the following partitions: One for /, one for swap and one for /home.   I have some important data on /home which I wouldn't like to lose (I have backed them up, but I would prefer to keep them) after a clean install. I plan to reformat partitions one and two as above and keep the /home one.   Will I be able to tell Ubuntu to do so during an installation? By this I mean: Will it be able to recognize the /home partition and keep all its data intact while formatting the rest? And one more question: Will it be able to keep the users as they are our will I be forced to change them too? (I have the bad feeling that it won't be able to keep the users as they are...)


What does serial really mean? Isn't USB3/SATA actually parallel?

As far as I understand. Serial means data is being sent one by one instead of parallel where multiple bits of data are streamed simultanously. Howewer connections like SATA and USB 3 actually have more than 2 data pins. So in the end what is the real meaning of serial and parallel?


Ubuntu stuck on purple screen while booting

Ubuntu will not load past the purple screen.  Not sure how to fix.  My brothers laptop had the same thing happen not long ago.  Both need fixed.  They are thinkpads.  Thanks!


Integer reference passed to a method but doesn't change

I'm abstracting some things in a class and therefore want to pass different class variables (fields) to the same method and have them incremented. I'm finding that the field does not get modified even though I'm passing it into the method.  I have the following simplified code. First the line that initiates the class variable/field, then the constructor that calls the method, then the method.  public class Demo {   public Integer countOfOnlyOneSameInTop12 = 0;    Demo() {     summarize(countOfOnlyOneSameInTop12);   }    private void summarize(Integer countOfOnlyOneSameInTop12) {     countOfOnlyOneSameInTop12++;     countOfOnlyOneSameInTop12++;     countOfOnlyOneSameInTop12++;     System.out.println(countOfOnlyOneSameInTop12); // 3   }    public static void main(String[] args) {     Demo demo = new Demo();     System.out.println(demo.countOfOnlyOneSameInTop12); // 0   } }   When I step through, I expect to see countOfOnlyOneSameInTop12 incremented at the class level because it is passed into the method by the calling line of code.  However the value of the class variable/field does not change even though the value of the variable inside the method does increment by one.  According to the experts then, this is a pass-by-value problem.    My question then, is how do I get around it?  I want to add to the value of a class variable inside a method and I want to abstract that class variable/field in order to run several through the same method.    Do I need a class wrapper for the Integer?  Am I taking the wrong approach?  Incrementing a class-level counter seems reasonable.  The only alternative I see to trying this in some form is a bunch of code duplication.  See my comment below for how a worked around the Integer problem.


'add/show # more comments' link broken after browsing back in review queue

In certain cases, the link 'add / show # more comments' under a review doesn't work. I can reliably reproduce this when doing the following:   Open a review you have already done (or one that is completed). (You can use  or  as example). Click the 'add / show # more comment' link. This should show the comments. Click next Click the back button in the browser Try to click 'add / show # more comment' again.   This doesn't work. Inspecting the network tab in the developer tools shows that on clicking this link, 3 requests are made to the same page, all returning with 200 OK and all the comments in them. I am suspecting that somehow three click handlers are attached to the link, who all fail to properly update the comment section.    I originally had this bug when reviewing such an entry and clicking back. That's not really great to reproduce the problem though. I think step 2 and 3 can be swapped and the outcome would still be the same, but I couldn't test that just now. I had this bug in the 'close review queue', but I suspect this is the same for other queues as well.  Edit:  seems to happen with the review buttons. I don't see this as a duplicate of that question, because there are functions on the page that will still work (such as clicking the next button, or clicking this exact same link without doing step 2).


Probability distribution of maximum of two uniformly distributed random variables

I have two uniformly dirstributed random variables $$r_1 = \mathcal{U}(0,1)$$ and $$r_2 = \mathcal{U}(0,1)$$. I am looking for the probability distribution of $$max\{r_1, r_2\}$$. Is there any known distribution?


get .html or .php file from a url in delphi

First of all, thank you in advance to anyone who will share their experiences with me. My problem is that I need to somehow get or download the html or php file from a link or URL using Delphi(Well preferably Delphi 6 or 7). for example, i need to get the content of "test01.html" from this link "". It's like I download a file via URL.One more thing is that, if your way was to access the URL first, then you need to know this.for example: link is ""test01.html content:    <script>$(document).ready(function() window.location.replace("http://www.test.com/test02.html");}); </script>test02.html content:    <?php echo "hello world"; ?>from my example above relating to my problem, if your way was to access the URL first, then I should still get the content of test01.html not the source of test02.html.This issue is actually not related directly to idhttp.Get function.Thank You Very Much to AnyOne.