How to prevent design compilation if generics are not acceptable?

For a UART that takes baud as generic, I want to prevent design compilation in modelsim and quartus ii if the baud rate is not in specific range. The baud rate is passed as a generic.  One option is to enum for baud rate so this problem does not arise. But provided that I use the natural type, how do I prevent design compilation using assert if the baud rate is wrong?  I could write a function that will determine if baud rate is correct.


What mortgage term to go for (short term)?

I current have a mortgage with less than 14 years on the term with an outstanding balance of approx 100k.  I will be moving house in the next few months, but the house I move to (purchase) will only be temporary (for maybe 2 - 3 years). The next house be more expensive so will probably increase the mortgage to 150 - 200k.  What would be the most appropriate mortgage term?  Initial thoughts suggest another short-term mortgage, i.e. 10 - 15 years, as this will build up more equity, but then if I take a longer term one (i.e. 30 years), it will give me more disposable income, which I can save and/or invest.


Around 1990 I saw a cartoon movie on Super-channel (Europe). Think it was an anime. It was about a prince and a princess who were fond of each other but their countries were at war. The prince was from an industrial country and they had tanks and guns. The princess was from an agricultural country and they used bows and arrows and hot-air balloons. It had a sad and/or melancholic ending. Can't remember anything else. I would like to see that movie again. Does anybody knows the title?


I am kinda new to Guice injection. And I got nullptr exception in my project. I suspect it is because I do not set up Injecting dependencies correctly. After investigation, it is caused by invokeSomeMethod in S3Driver.java file, specifically lambdaHelper.invokeSomeMethod(). Could you shed some hints about what went wrong? Thank you S3Driver.java // Constructor public S3Driver() {              Injector injector = createInjector(new LambdaHelperModule(), new S3Module());              this.lambdaHelper = injector.getInstance(LambdaHelper.class); }  ... lambdaHelper.invokeSomeMethod(); // Nullptr Exception  This is my project setup: LambdaHelper.java // Constructor public LambdaHelper(S3Class s3Class) {   this.s3Class = s3Class; }  S3Class.java ... // Constructor public S3Class(S3Presigner p, S3Client s) {this.p = p; this.s = s;};   LambdaHelperModule.java public LambdaHelper provideLambdaHelper() {              S3Class s3Class = S3Class.builder()                                          .s3Presigner(S3Presigner.builder().build())                                          .s3Client(S3Client.builder().build())                                          .build();              return new LambdaHelper(s3Class); }  S3Module.java public S3Class provideS3Class() {              return new S3Class(S3Presigner.builder().build(),                                  S3Client.builder().build()); }


I am using the ACM format but somehow I am getting my own paper as Reference format. Here is  (stackexchange won't let me upload it)  I wish someone could help! Thanks!


Product of two holomorphic functions defined by infinite product equals to 1.

Let $f(z)=\prod_{n=1}^{\infty}(1+z^n)$ and $g(z)=\prod_{n=1}^{\infty}(1-z^{2n-1}).$  Let $\Omega=\{z\in \mathbb{C}, \; |z|<1\}.$  Since the series $\sum_{n=1}^{\infty}|z|^n$, and $\sum_{n=1}^{\infty}|z|^{2n-1}$ converges uniformly on every compact $K$ of $\Omega$ then wen can deduce the product converges and $f$ and $g$ are holomorphic on $\Omega$.  But I couldn't prove that $f(z).g(z)=1.$  $\textbf{My method:}$ I decided to determine $f$ explicitly.  Since $f$ is holomorphic and we define $f_n(z)=z^n$, then : $$\frac{f'}{f}=\sum_{n=0}^{\infty}\frac{f_n'}{f_n}=\sum_{n=0}^{\infty}\frac{n.z^{n-1}}{1+z^n}.$$ but I can't go any further


How to search and list files and folders with specific pattern?

Imagine I only know a part of the name of the folder(s) or file(s), but don’t know their location(s) in the computer. I even don’t know whether they are hidden or not. How can I search and list them all?  (Say, for example I want to list all the folders and files which are having mysql as the part of their name)


$\sigma$-algebra $\mathcal{G} \subset \mathcal{F}$ is countably generated iff there is a random variable $X$ such that $\mathcal{G} = \sigma(X)$.

Where can I find a reference to the proof of the fact that a $\sigma$-algebra $\mathcal{G} \subset \mathcal{F}$ is countably generated if and only if there is a random variable $X$ such that $\mathcal{G} = \sigma(X)$? There is not a proof in Durrett's Probability: Theory and Examples, of which I am reading right now, and searching online, there doesn't seem to be a complete proof of this fundamental fact anywhere on this site either.


Does $G\!-\!v_1 \simeq G\!-\!v_2$ mean an automorphism of $G$ maps $v_1$ to $v_2$?

For a simple undirected graph $G$, suppose we have two vertices $v_1$ and $v_2$ such that $G-v_1 \simeq G-v_2$. Does this necessarily mean that there is an automorphism of $G$ that maps $v_1$ to $v_2$?   This is just a condition that I've assumed to be true for awhile now without thinking too hard about whether or not it's actually true. Using the condition that $G-v_1 \simeq G-v_2$ has been a useful way to characterize two vertices as being "the same," but I was wondering if this actually corresponds to automorphisms of the graph.


I use a laptop with Italian keyboard, but I need the tilde ~ and the backtick ` characters, which my keyboard is not endowed with.  I got to know AutoHotKeys and it seems to fit. But I could not find a map to script. E.g., what are the key codes relative to the AltGr.  Briefly, I want to do the following:  AltGr + ' = `  AltGr + ì = ~


Are we forced to use [C++] tag when asking Qt questions to get code highlight?

I used to include  tag in my questions about Qt. But after  I didn't include it anymore. I am not Qt developer - that's what I don't ask very much Qt questions. But I am suspicious that we need  tag when asking Qt questions for code highlight. Randomly I will take  (I added the  tag ) as an example:   It doesn't contain  tag  So, what alternatives do we have for syntax-highlight when not using  tag but using ?  Update: Even we can set highlighting using language ... it would be better to add highlighting for  tag. Turning my question in a feature request.


How can I list last updated packages from terminal?

After upgrading packages my system is not booting anymore. How can I list last updated packages from terminal in order to revert the changes? Or is there a simpler way to take back latest upgrade?


What material is Iron Man's armor made of?

As I recall, a tank knocked Iron Man in the first MCU movie, but he survived (with some black spots on the armor).  AFAIK, Vibranium is in limited supply in the MCU (Captain America's shield). Tony created Vibranium (Tony might call it Badassium) in Iron Man 2, and that's also in limited supply.  So what material is Iron Man's armor made of? It doesn't look like iron to me.


I'm  importing a string from a file and the string is "Computer_Made". If I execute this code, though, it does not print "The computer is already made!" Any ideas?  if (data=="Computer_Made")     {     computer=true;     System.out.println("The computer is already made!");     }


Is it plagiarism if I use a text I wrote myself but put on the internet before?

I just rememebered a case when I was still in school: we had to write an essay about a specific topic and one guy put big parts of his essay on Wikipedia before handing it in. When the teacher checked for plagiarism she indeed found big parts of his text in the Wikipedia article and thus accused him of plagiarism.  How would that situation be with journal papers (or other "official" ways of publishing)?  Can I reuse part(s) of texts I wrote myself but that are available publicly/online like on Wikipedia, my Blog, university homepage, etc.?  (Maybe consider that pseudonyms are used on Wikipedia, Blogs, etc.)


In search of a Grammar text, of any vintage, that covers such as the below

I've searched websites, written to Mr. Barth and William Safire, scanned bookstore shelves, and buttonholed likely prospects in search of a grammar text that would address matters in the manner of the following, which is from John Barth's "The End of the Road".  If such a text exists, I'd be much obliged to learn of it:  " ... it gives a man a great sense of lucidity and well-being, if not downright formidability, to be able not only to say, but to understand perfectly, that predicate complements of infinitives of copulative verbs without expressed subjects go into the nominative case, whereas predicate complements of infinitives of copulative verbs with expressed subjects go into the objective case.  I made this observation to my assemblage of young scholars and concluded triumphantly, "I was thought to be he, but I thought John to be him."  Thank you.


Can one prove $\int f > 0$ for $f > 0$ without Lebesgue integration?

In an exercise session of an analysis course (which covers Riemann integration and differentiation in one dimension rigorously) the following question came up:  Suppose $f$ is strictly positive and integrable (on some compact interval $[a,b]$ on the real line). Can we show that $\int_a^b f > 0$?  The proof by using measure theory and Lebesgue integration is easy, but also beyond the students at this point. So can one do without machinery such as sets of zero measure?    Tools in use: Mean value theorems, fundamental theorem of calculus, Riemann's condition for integrability (upper and lower integral within every epsilon of each other implies integrability), Riemann-Darboux integral, usual integration and differentiation techniques, as well as elementary real analysis in the epsilon-delta style.


Ignoring invalid input features with Intersection tool in QGIS?

In QGIS 2.18, when I used the Vector > Geoprocessing Tools > Intersection tool, I was able to check an option which said "Ignore NULL geometries [optional]".  Now I've downloaded QGIS 3.2 and that option no longer exists. But when I try to create the intersection between two layers I'm working on, I get a message saying that there is an invalid geometry somewhere and that I should either fix it it or "change the Processing setting to the 'Ignore invalid input features' option."   But that option doesn't exist! Or if it does exist, I just can't find it anywhere.  Does anyone know how/where to change this setting in QGIS 3.2?


Do you need a graphic design degree to work for a agency or company? I've researched many answers towards this question and what I found, it basically comes down to your portfolio. I don't want to do freelance and want to work for a company or agency. What are the steps? How can I be a successful graphic designer without a degree?


How to show that $$\frac{a^4}{a^3+b^3}+\frac{b^4}{b^3+c^3}+\frac{c^4}{c^3+a^3}\ge \frac{a+b+c}2$$ for $a,b,c>0$?  I tried to prove $$\frac{a^4}{a^3+b^3}\ge \frac {5a}4+\frac{-3b}4$$  but could not continue.  Give me ideas, please.


What to do about accidental, easily corrected errors in a conference paper you already submitted?

I am an engineering MS student (maybe going for PhD).  I submitted a conference paper on some research I was working on last week.  Before I submitted a conference paper, I regenerated all the plots (for a better consistent format).  I realized today that I used an inaccurate, older code to regenerate a few plots in one section.  This means that some of the plots are based on a code that had a theoretical error.  Not good.  Questions:  What do you recommend I do?  Is it ok to send the accurate plots a week later?  Have I damaged my reputation with this forum?  Are there ethical issues here - technically I sent innacurate plots but it was a small technical mistake?


SHA3 Keccak, absorbing data to the state

I'm working on implementation of keccak algorithm and have one problem. Tell me please, takeing an example "test": will state (before block permutations, but after padding - pad10*1) look like this:  {80...0 0 0 0 0} {0 0 0 174736574 0} {0 0 0 0 0} {0 0 0 0 0} {0 0 0 0 0}  or maybe like this:  {80...0 0 0 0 0} {0 0 0 0 0} {0 0 0 0 0} {0 174736574 0 0 0} {0 0 0 0 0}  assuming that padded "test" look like this: 0x0000000174736574, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x8000000000000000,  I mean: 174736574 will be on A[1,3] or A[3,1] or somwhere elese?  It's hard for me to understand, because i implemented all functions. I checked all functions - they work properly. But my hash is still different that proper hash calculated on the websites. I suppose that mistake is in absorbing phase. I will be gratefull for answer.  And if i am wrong, how properly put data into the state?


Trying to make it so that if the user enters any vowel capitalized, it will return true. So, that's where I added the "letter = letter.toLowerCase();" but it's not working still..      public static boolean isVowel (String letter) {         letter = letter.toLowerCase();         if (letter == "a" || letter == "e" || letter == "i" || letter == "o" || letter == "u" ) {             return true;          } else {             return false;         }     }


Is there always an equivalent metric which is not complete?

I have seen that completeness is not a topological property like compactness or connectedness. I have seen some examples also showing that there are two equivalent metrics one of which is complete and the other one is incomplete. I want to know some general result. Consider any metric space $(X,d)$. Let $d$ be complete. Does there exist an equivalent metric $d'$ in $X$ which is incomplete? When $d$ is compact, such $d'$ does not exist (Since compactness implies completeness). So answer me when $d$ is noncompact.


Limit of a Piecewise Function defined on Rationals and Irrationals

So, I'm stuck with this proof for a homework assignment, and don't know where to start - my first instinct is to go with a proof by squeeze theorem. Would that work here though? I'm just not sure right now. Here's the question:  Suppose $g$ and $h$ are both defined as being in the neighborhood of $c$ and   $$\lim_{x\to c}g(x)=L=\lim_{x\to c}h(x)\;.$$  Define $f$ by   $$f(x) =\begin{cases} h(x),&\text{if }x\in\Bbb Q\\ g(x),&\text{if }x\in\Bbb R - \Bbb Q\;. \end{cases}$$  Show that $\lim\limits_{x\to c} f(x) = L$.


Let $X,Y$ be independent normally distributed random variables. Find the density of $\frac{X^2}{Y^2+X^2}$

Let $X,Y$ be independent standard normally distributed random variables and $X,Y\neq 0$. Find the density of $\frac{X^2}{Y^2+X^2}$  I was given the tip of first calculating the density of $(X^2,Y^2)$ and then calculate the density of $(\frac{X^2}{Y^2+X^2},Y^2+X^2)$  When I follow the tips: I know that $X^2\sim\Gamma(\frac{1}{2},\frac{1}{2})$ and $Y$ too. Furthermore, $X^2$ and $Y^2$ are still independent. Therefore the density $f_{(X^2,Y^2)}(x,y)$ can be written as $f_{X^2}(x)f_{Y^2}(y)$ where $f_{X^2}$ and $f_{Y^2}$ are the density functions of $X^2$ and $Y^2$  My next idea, with the tip above in mind is to consider a map $\varphi: (x,y) \mapsto (\frac{x}{x+y},x+y)$  It then follows that $(\frac{X^2}{Y^2+X^2},Y^2+X^2)=\varphi(X^2,Y^2)$ and $f_{\frac{X^2}{Y^2+X^2},Y^2+X^2}(a,b) = f_{\varphi(X^2,Y^2)}(a,b) $  Note that $\varphi^{-1}: (a,b)\mapsto (ba,b-ba)$ and thus $\det D \varphi^{-1}(a,b)=\det\begin{pmatrix} b & a \\ -b & 1-a \end{pmatrix}=b(1-a)+ab\implies \det D \varphi^{-1}(\frac{X^2}{Y^2+X^2},Y^2+X^2)=(Y^2+X^2)(1-\frac{X^2}{Y^2+X^2})+(\frac{X^2}{Y^2+X^2})(Y^2+X^2)=Y^2+X^2$  And hence $P_{(\frac{X^2}{Y^2+X^2},Y^2+X^2)}(A)=\int_A f_{(\frac{X^2}{Y^2+X^2},Y^2+X^2)}(x,y)\,dx\,dy = \int_{\varphi^{-1}(A)}f_{(X,Y)}(x,y)\times (X^2+Y^2)\,dx\,dy = \int_{\varphi^{-1}(A)} f_X(x)\times f_Y(y)\times (X^2+Y^2)\,dx\,dy$  Where do I go from here?


, I'm curious to know how it was possible for him to become more powerful.  In reference to this quote:     You can't win, Darth. If you strike me down, I shall become more powerful than you could possibly imagine.   Just after this Darth Vader swings at Obi-wan and just prior to being sliced cleanly in half Obi-wan dissipates, and as such he remains unstruck.  Would Obi-wan have been more powerful if he got Darth Mauled in twain?


Proving an inequality: $|1-e^{i\theta}|\le|\theta|$

We have been using this result without proof in my class, but I don't know how to prove it. Could someone point me in the right direction?  $$|1-e^{i\theta}|\le|\theta|$$  I believe this is true for all $\theta\in\mathbb{R}$. It is easy to show that the left side is bounded by 2 (triangle inequality), but I'm stuck otherwise.


Ogre CR calculation: is it wrong or am I missing something?

My question is about the basic ogre CR calculation in the monster manual, which doesn't make senses to me. I tried to make a concept of an "armored ogre" with chain mail and pikes (AC 16 and 15 (2d10+4) damage).  The problem comes when I recalculate its CR and it's exactly 2, just like the ogre. That seems odd to me because it's suppose to be a deadlier encounter! So I tried to calculate the base ogre CR.   I must be missing something because the ogre doesn't have any special defences or anything and when I calculate his CR with the Dungeon master's guide I end up with a result of 1.   If we calculate his defensive rating we start with a 1/2 CR for HP, but his AC is 2 points lower than the suggested AC, so his effective defensive rating is 1/4.  His damage rating CR is 1, but he has 2 points more attack than the suggested for his CR, so he has an effective attack CR of 2.  We end with an average between 1/2 and 1, so his final CR is 1. What am I missing?


If $n$ is an odd natural number, then $8$ divides $n^{2}-1$

I am trying to show that if $n$ is an odd natural number, then $8$ divides $n^{2}-1.$ I was able to prove that because I know that if $n$ is an odd natural number, then $n^{2}$ can be written as $8k+1$ for some $k\in \mathbb{N}.$ I would like to show this question by using the Euclidian division. Then I wrote $n^{2}-1=8k+r$, where $0\leq r  < 8.$ When $r=2$ we get $n^{2}-1=8k+2.$ Since $n$ is odd, then $n^{2}-1$ is even and I got stuck. Is there way to fix that?


Deleting shapefile and related extension files from folder when not in use

I have to delete two shapefile layers from my folder. I use these shapefiles to run processing Algorithms after which i want to delete them. The code I use use is as given below.  for filename in os.listdir(os.path.dirname(inter)):     if (nameNewdel+'.shp' in filename) or (nameNewdel+'.shx' in filename) or (nameNewdel+'.dbf' in filename) or (nameNewdel+'.prj' in filename) or (nameNewdel+'.qpj' in filename) or (nameNewdel+'.cpg' in filename):                      os.remove(os.path.join(os.path.dirname(inter),filename))   where inter is path to the file and nameNewdel is filename without extension.  I am able to delete one shapefile with this code but the same code gives WIN 32 error when trying to delete another shapefile. The shapefile is not in use. I am able to delete the shapefile with this code in the python console of QGIS but not able to delete it using pyqgis. When I introduce try and except for os.remove in the above code it deletes all the files of the second shapefile except .shp and .dbf.  I have referred to ,  and   Accordingly I have added and removed the layer from QGIS and still not able to delete .shp and .dbf file of the shapefile. I also set the shapelayer to none and tried deleting it using QgsVectorFileWriter.deleteShapefile.  for filename in os.listdir(os.path.dirname(inter)):     if (nameNewdel+'.shp' in filename):         dellayer = QgsVectorLayer(inter, nameNewdel,"ogr")         dellayer = None         QgsVectorFileWriter.deleteShapeFile(filename)   .shp and .dbf files are still not deleted. Is there any alternative to work around this?


Is there any way to prevent a USB flash drive from being written to?

I see lots of articles about preventing a specific computer from writing to a USB flash drive or preventing malware from getting from a USB flash drive to a computer; what I can’t find anything for is how to prevent any system from writing to a USB flash drive.   I work at an I.T. help desk and as such I work with some devices that have some form of malware. From simple adware, to more advanced kinds of infections it varies. I have a USB flash drive with a bunch of tools I use day to day to fix some of the more common issues. I want to lock this USB flash drive down and prevent it from being modified. I know some viruses will try to infect a USB device, and this is exactly what I want to avoid. I don’t want to use a USB flash drive on one users computer and then plug it into the next ones and infect them.   Is there an effective method—that is OS independent—to prevent a USB flash drive from being written to? I could use a disc to do this, and use a USB powered disc drive where optical drives are not present in the laptop, however this is not as convenient of a method, so I’d prefer to use a USB flash drive if possible.


Why do downvotes cost reputation for the voter on Meta?

On main sites downvotes are usually used to show that answer is incorrect. On meta sites downvotes  to express agreement or disagreement.  On main sites downvotes cost reputation so that people downvote only posts that  it as it may give bad feelings to answerer. But it can't be a reason on Meta as it's explicitly said that votes mean another thing here.  So why downvotes cost reputation on Meta?


How can I burn an ISO file to a DVD on Windows 10? The old tools don't exist any more. I need to make a new live Linux disc as my old ones are outdated with the drivers.


Ruby block and unparenthesized arguments

I extracted simple example:  require 'pp' x = 1..3 pp x.map do |i| {:value => i, :double => (i*2)} end pp x.map { |i| {:value => i, :double => (i*2)} }  pp(x.map do |i| {:value => i, :double => (i*2)} end) pp(x.map { |i| {:value => i, :double => (i*2)} })   I am wondering why first pp produces:  [1, 2, 3]   While all the oders are giving:  [{:value=>1, :double=>2}, {:value=>2, :double=>4}, {:value=>3, :double=>6}]   I assume it has something to do with operator precedence. Where can I find good explanation?


How to determine the font being used by a latex document

The scenario is as follows.  I am working on a paper using the  latex class.  I am generating some figures using the  plotting library in Python.  Matplotlib lets the user adjust the font and compile figures with the help of tex so that you can get nice looking fonts in your figure labels which match the font used in the document the figures are going into.  What I would like to know though, is what font is the IEEEtran class actually using so that I can configure Matplotlib to use the same font?    I guess this problem generalizes beyond IEEEtran which I happen to be using.  Short of eyeballing a font, is there a reliable way to determine which font is being used at a given point in a document?  I'm guessing the font can be overridden in any one of a million possible places, so I'm really interested in knowing whether there is a generalized solution that isn't "read through the manual of whatever class files/other files you're using until you figure it out".  Is there a command I can put inline in the middle of a paragraph or something that will tell me the font details in the current context?


Whenever I am compiling my cpp file on LMS and in return Style error  is coming with this sentence. One or more unexpected \r (^M) found;better to use only a \n  [whitespace/newline] [1]??


Is there any evidence that immunity or resistance is heritable?

Is any means by which smallpox or any other disease be heritable?   I have heard that smallpox introduced by European colonialists affected (and reduced) a significant proportion of the native American population. How were the native Americans more susceptible to smallpox? Is disease susceptibility or immunity heritable?


For linear classifiers, do larger coefficients imply more important features?

I'm a software engineer working on machine learning. From my understanding,  (such as OLS) and   (such as logistic regression and SVM) make a prediction based on an inner product between trained coefficients $\vec{w}$  and feature variables $\vec{x}$:  $$ \hat{y} = f(\vec{w} \cdot \vec{x}) = f(\sum_{i} w_i x_i)  $$  My question is: After the model has been trained (that is, after the coefficients $w_i$ have be computed), is it the case that the coefficients will be larger for feature variables that are more important for the model to predict more accurately?  In other words, I am asking whether the relative magnitudes of the coefficients can be used for  by just ordering the variables by coefficient value and then selecting the features with the highest coefficients? If this approach is valid, then why is it not mentioned for feature selection (along with wrapper and filter methods, etc.).  The reason I ask this is because I came across a discussion on . There is a blurb that says:     Built-in feature selection is frequently mentioned as a useful   property of the L1-norm, which the L2-norm does not. This is actually   a result of the L1-norm, which tends to produces sparse coefficients   (explained below). Suppose the model have 100 coefficients but only 10   of them have non-zero coefficients, this is effectively saying that   "the other 90 predictors are useless in predicting the target values".   Reading between the lines, I would guess that if a coefficient is close to 0, then the feature variable with that coefficient must have little predictive power.  EDIT: I am also applying z-scaling to my numeric variables.


Proof of Laplace transform of real number powers: $\mathcal{L} \{ t^n \} = \frac{n!}{s^{n + 1}}$

As I understand it, the theorem and proof for the Laplace transform of positive integer powers is as follows:     Theorem      Let $t^n : \mathbb{R} \to \mathbb{R}$ be $t$ to the $n$th power for some $n \in \mathbb{N}_{\ge 0}$      Let $\mathcal{L}$ be the Laplace transform.      Then       $$\mathcal{L} \{ t^n \} = \dfrac{n!}{s^{n + 1}}$$      for $\Re(s) > 0$      Proof      The proof proceeds by induction on $n$ for $t^n$.      Base case:      When $n = 0$, we have       $$t^0 = 1$$      \begin{align*}  \therefore \mathcal{L} \{ t^0 \} &= \mathcal{L} \{ 1 \} \\\ &= \dfrac{1}{s} \ \ \ \text{(Laplace transform of a constant.)} \\\ &= \dfrac{0!}{s^{0 + 1}} \ \ \ \text{(By the definition of $0!$.)} \end{align*}      Induction Hypothesis:      Let $n \in \mathbb{N}$ with $n \ge 1$.      Then      $$\mathcal{L} \{ t^n \} = \dfrac{n!}{s^{n + 1}}$$      Induction Step:      $$\mathcal{L} \{ t^{n + 1} \} = \int_0^\infty t^{n + 1} e^{-st} \ dt \ \ \ \text{(By the definition of Laplace transform.)}$$      We now use integration by parts, which says that       $$\int fg' = fg - \int f'g \ dt$$      Let $f = t^{n + 1}$ and $g' = e^{-st}$      Therefore, $f' = (n + 1)t^n$ and $g = - \dfrac{1}{s} e^{-st}$      So we have       $$\int t^{n + 1} e^{-st} \ dt = - \dfrac{t^{n + 1}}{s}e^{-st} + \dfrac{n + 1}{s} \int t^n e^{-st} \ dt$$      Evaluating $t = 0$ and $t \to \infty$, we get      \begin{align*} \mathcal{L} \{ t^{n + 1} \} &= \left. - \dfrac{1}{s} t^{n + 1}e^{-st} \right|_0^\infty + \dfrac{n + 1}{s} \mathcal{L} \{ t^n \} \\ &= \left. -\dfrac{s^{-1}t^{n + 1}}{e^{st}} \right|_0^\infty + \dfrac{n + 1}{s} \mathcal{L} \{ t^n \} \\ &= 0 - 0 + \dfrac{n + 1}{s} \mathcal{L} \{ t^n \} \\ &= \dfrac{n + 1}{s} \times \dfrac{n!}{s^{n + 1}} \\ &= \dfrac{(n + 1)!}{s^{n + 1 + 1}} \end{align*}   I'm now looking for the proof of the Laplace transform of real number powers, rather than just positive integer powers. I've been unable to find this in my research.  I would greatly appreciate it if people could please take the time to demonstrate this.


Die Temperature conversion result of the pipeline ADC

Could you help me with this question? I have some difficulties to answer it. The question is from the PIC24FJ128GC010 family datasheet and after some research I just know the meaning of the different values :  IRNG value means that the internal  currentsource must be set for 5.5 μA PVCFG (Converter Voltage Reference Configuration for ADREF+ bits) is on VREF+ NVCFG0 (Converter Voltage Reference Configuration for ADREF- bit) is on AVSS  Maybe we should use this formula : Tdie = 710 mV – Vdiode / 1.8 (indicates on the datasheet) But I don't know how to make the conversion result.


Rotate text with curve modifier without spiraling

I'm working through , and I have text with a curve modifier added to it, using a bezier circle as the targeted object.  The problem I'm having is that when I attempt to rotate the numbers into correct position, regardless of whether I rotate either the bezier circle or the text object, the text begins to spiral.  Is there a way to rotate without the spiral happening?


Is 55 minutes enough transfer time at Schiphol

WE are looking to book Birmingham, England (BHX) to Nairobi on 1 May. The flight BHX-AMS is 09.40 arriving AMS 11.50. The Nairobi flight leaves at 12.45, giving us 55 minutes to transfer. Is this enough, given that both legs are KLM?


I often use mv ./* DEST or cp -r ./* DEST to move/copy all files and directories from the current directory to another. But what if I want to move/copy all but one file/directory?


Why does cycles render take forever to render?

I am working on a Minecraft animation and whenever I am using cycles render and whenever I render the scene to check on my lightning, it takes FOREVER to render. It takes 20 minutes just to render ONE scene. If this continues, I'll never finish this animation. I've been looking for answers online but I seem to be the only one with this problem. The weird thing is, I had an older computer that was terrible and I now have a new computer that is really fast. I have never had this problem on my old computer. Can anyone help me?


fall into a category vs. fall under a category

As far as I know, when a group of people or things with particular features in common are classified we can use "fall into a category". But quite recently I came across the following sentence in a linguistics book published by Hodder Education:     Notice that these examples fall under well-established categories of acceptable, standard English.   There is no record of "fall under a category" in none of my learner's dictionaries. Instead, they all say "fall into a category". For example:        "Voters fall into three main categories."   "Students over 25 fall into a different category."     So, is "fall into" different from "fall under" when we talk about categories?


In Order of the Phoenix, when Harry breaks into Umbridge's office to communicate with Sirius after his vision. Why didn't Harry instead use the mirrors that had been given to him by Sirius earlier in the book, specifically for the purpose of "If you ever need me". He thinks of it quickly enough after Sirius' death (I believe he sees a pair of blue eyes when he attempts to contact him). So why didn't he think of it before Sirius died, when he had need for an object which the mirrors fit perfectly?


How can I update to a newer version of Git using apt-get?

I've just set up a new machine with Ubuntu Oneiric 11.10 and then run  apt-get update apt-get upgrade apt-get install git   Now if I run git --version it tells me I have git version 1.7.5.4 but on my local machine I have the much newer git version 1.7.9.2  I know I can install from source to get the newest version, but I thought that it was a good idea to use the package manager as much as possible to keep everything standardized.  So is it possible to use apt-get to get a newer version of git, and what is the right way to do it?


Constant number of decimal places EXCEPT 0

I am working with pgfplots and I want a constant number of decimal places on ticks. A similiar question was answered here  \usetikzlibrary{shapes,arrows} \usepackage{pgfplots,pgfplotstable,tikz} \usepgfplotslibrary{external} \usetikzlibrary{pgfplots.external} \usepackage{graphicx} \usepackage{epstopdf}  \usetikzlibrary{spy} \tikzset{mark size=3}  \begin{document}  \pgfplotsset{ tick label style={font=\Large,color=black}, label style={font=\Large,color=black}, legend style={font=\Large},yticklabel style={/pgf/number format/fixed,/pgf/number format/precision=3}} \pgfplotsset{every axis/.append style={  thick,tick style={ thick},color=black}} \pgfplotsset{/pgfplots/error bars/error bar style={ thick}}   \pgfplotsset{/pgfplots/every axis x label/.append style={font=\Large,anchor=north}} \pgfplotsset{/pgfplots/every axis y label/.append style={font=\Large,anchor=near ticklabel}}  \begin{tikzpicture} \begin{axis}[y tick label style={/pgf/number format/.cd,fixed,fixed zerofill,precision=2,/tikz/.cd}, scaled ticks=false,xlabel={$x$},ylabel=$y$,xmin=0,xmax=1, y label style={at={(axis description cs:-0.05,0.5)}}]  \addplot+[error bars/.cd,y dir=both,y explicit,] [only marks,mark=o,black] table [x=x,y=y] {Daten.txt}; \addplot [dotted,black] table [x=x_Daten_Linie,y=y_Daten] {Daten.txt};  \end{axis} \end{tikzpicture}  \end{document}   My question is: How can I apply this, Except the 0 ? i.e. I don't want 0.00 when I got 2 decimal places. Just "0".  Thank you :)


Can someone tell me how can i arrange the table on top of the page. I have used all kinds of floats [t], [th!] and others also but the table is not responding. It stays in the center of the page. my code is: \documentclass[12pt, a4paper]{report} \usepackage{float,array} \begin{document} \setlength{\headheight}{110pt} \setlength{\voffset}{5pt} \setlength{\hoffset}{10pt} \setlength{\footskip}{30pt} \begin{table}[t]     \centering     \setlength\extrarowheight{5pt}    \begin{tabular}{ |p{5cm}||p{2.2cm}|p{2cm}|p{2.2cm}|p{2cm}|  } \hline Operation parameter &Input &Set point &Initialisation data &Simulated data \\  \hline Temperature  & 353.15 & -  & 359.7  & 359  \\ Pressure &74.99      & 80    & 80    & 80 \\ Flow rate  &17.28 & - & 17.28 & -\\ Flow rate & 2.903e-46  & - &2.903e-46 &-\\ Flow rate  &0.3345 & - &0.3345 & -\\ Flow rate  &0.388e-3 &- &0.388e-3 & -\\ Number of stages (-) & 1 & 1 & 1 & 1\\ Electrical power& -  & - & 0.530 & 0.532 \\ \hline \end{tabular}     \caption{XX}     \label{tab:XXX} \end{table} \end{document}


Let $p(x) = a_0 + a_1 x + .. + a_n x^{n}$. Assume $a_n \neq 0$ and n is odd. Prove $\exists$ x such that p(x)=0?

I have no idea how to solve this question. I'm trying to show that given $p(x) = a_0 + a_1 x + .. + a_n x^{n}$ and further assuming that $a_n \neq 0$ and n is odd, there exists x such that p(x)=0.  I'm guessing that Rolle's theorem might come into play somewhere, since I know that by Rolle's theorem if $f:[a,b] \rightarrow \mathbb{R}$ is continuous on [a,b] and differentiable on (a,b) and f(a) = f(b) then $\exists c \in (ab)$ s.t f'(c)=0. Other than this hunch, I have no idea where to begin solving this.  Help would be much appreciated!


I'm writing a 3D rigid body physics engine, I am using OpenGl for simulation.  Only convex objects are considered.   My question involves how to detect the point of collision, so that when I apply a response force, I can also calculate torque.  I have used SAT algorithm to detect collision according to this ,  Everything seems to be work fine , But as i get SAT only gives for objects are they colliding? as well as by how much?, it does NOT give you a reference point at which to apply the response force (and thus calculate torque).  I have looked at        None of them seems to be an answer


Changing field types so graduated symbols are available

I can't seem to make graduated symbols work. When I try to click on my column it doesn't show any options.  I think these is due to those columns being formatted as text and not number. Any ideas how can i work this out?


I have some lemma (let's call it lemma 4) in my main text, but I prove it in the appendix. Therefore, I want to restate the lemma in the appendix again as lemma 4. How can I achieve this?  Thanks!


Why does my picture look kinda blurry on Instagram?

Kinda of a help from all of you guys. I’m not a graphic designer but I was hoping someone can help me out with a photo?  The photo looks great but as soon as I set it as my Instagram profile picture, it becomes blurry and kinda awful . I have tried different formats but it comes out the same every single time.   Hopefully someone can help me out please   I've attached the png and also a screen shot of how it looks on Instagram () ()


Upgrade to latest current installed version of PHP

I've just purchased a new VPS and they've, for some unknown reason, installed PHP version 5.3.3. I'm fine with being on version 5.3.X, but I believe the latest version is 5.3.29.  I did some Googling but couldn't find the answer, so wondered how I upgrade the PHP install to the latest 5.3.X version?  Thanks!


Google Analytics: How can 'Avg time on page' stat be larger than my 'Avg visit duration' stat?

I've been reading some about the difference between Google Analytics "Avg Visit Duration" statistic and their "Avg Time on Page" statistic.  I've found many good answers, among them, this .  However, even as I read these explanations of the two numbers, I'm struggling to understand how it could be that my blog site has an Avg Time on Page that is far above the Avg. Visit Duration...  My Avg. Time on Page is currently   05:23   My Avg. Visit Duration is currently 01:58  Does that make any sense?  I thought that the average visit duration has to be larger than the average time on page, because it's a super-set of that.  I thought it's the difference in time between the first and final pageviews of a visitor, which would always be larger than the view time of a single page... What am I misunderstanding?  Thanks!


Is there some way that I can see performance in Ubuntu?

I am a new Linux user. In Windows, I used to monitor and sometimes improve my performance by using a software called "Advanced Systemcare". Is there some kind of software like this for Ubuntu? or someway that I can monitor how the things are going?  Thank You!


Will installing Ubuntu using Wubi erase Windows?

I have an HP laptop with 2 partitions:  C: and D:, with windows 7 installed in the C: drive and D: is the Recovery partition.   When I try to install Ubuntu 12.04 LTS using Wubi, it only shows the C: drive for installing and not the D: drive where I wanted to format and install ubuntu.   So, if I go ahead and install in the C: drive where windows 7 is already installed, would Wubi erase windows 7? Or it will just install Ubuntu as a program in windows?


Find the projection of the vector onto subspace W.

I cannot find the exact way to do this.... W is an orthogonal basis...  w ={{1,2,2,4},{4,-2,8,-4},{0,0,0,0}}  vector v = {7,2,2,1}  Anyone know how to project v onto w?


Ubuntu 16.04 tile windows no longer working

At some point recently the tile windows feature stopped working for me. Hence if I drag a window to the left or right of the screen it no longer fills half the screen. Similarly, dragging a window to the top does not maximize it.  Ctrl  + Super + Up still maximizes  Ctrl + Super + Down still minimizes  Ctrl + Super + Left/Ctrl + Super + Right do not make the current window fill the left/right of the screen.  I am guessing this is a failed update somewhere. Does anyone know which packages to try reinstalling to regain this feature?


Win8 downgrade - Windows 7 installation "Driver not found"

I have an Asus R500VD laptop which came with the preinstalled Windows 8. As actually this computer will be used by my grandmother (and she's only using win 7) I'd like to downgrade it.  Thanks to other thread here, I was able to successfully boot computer from Windows 7 USB stick, but unfortunately during install I got a message:  A required CD/DVD drive device driver is missing. (...)   and I can't get pass it... This is what I've done:   I've downloaded all drivers from Asus Website (), unzip and copied to visible location for windows 7 installation - I've picked each one of them, none has helped. As I belive it's some kind of problem with SATA/RAID/AHCI drivers I went to Intel site and downloaded various "Intel Rapid Storage Technology" drivers - a lot of them were recognized by win7, but none of them helped.   Does anyone have an idea what can I do next? Any help would be really appreciated.


Why is the \bf command applied to more than I asked?

MWE:  \documentclass{article}  \usepackage{bm}  \begin{document} $$x(t), \bf{x}(t), \bf{x(t)}$$ \end{document}   Result:    Question:  Why are the second and third x(t) typeset the same? In the second  expression, it was asked to apply \bf to only x.  EDIT:  I had not payed attention to it when asking the question, but I would like to have a bold and italic x.


It would be nice if backticked code in question titles were rendered the same way they are in question bodies. Since there are so many questions with code in them I feel it would be a big plus. .  This would look a lot nicer in listings and on the page itself if the code strings were rendered as such.  Similar ideas discussed .


likelihood of machine learning model with continuous data must be zero?

Unlike the discrete case, the probability of any particular point in a continuous probability is zero. We must integrate over a small range of the pdf to bring a non-zero value.  In a machine learning model that assumes continuous data (as is oftend done for sound or images), the probability of any particular training data is zero.   Some models (such as variational inference models) are evaluated by their log likelihood.   My question: if the data is continuous, how can the likelihood be non-zero? The likelihood is assumed to factor over the data points, and the probability of each data point is zero, ...


Why hide .NET URL extensions and make them appear to be .html?

I'm new to the web engineering and I have done some searching for URL/Domain masking. In my company, my HOD asked one question during meeting and wants the answer in the next meeting. He asked that why are some sites will hide their real file type?  E.g. http://example/examplefolder/page.NET into http://example/examplefolder/page.html. Why the extension of the pages will always end up in html? Is is the reason to prevent some curious outsider from trying to attack the web site? Is this related with URL rewritting?


Real games that use powerful video cards.


ANDROID JSON jsonObject with value shows NullPointerException error

This is one of the functions in my ExpendableListAdapter for the listview for the child of a particular list group. groupPosition == 2 means when user expand the third list group, I want to show a different view from the first and second list group which only contain a textview.  public View getChildView(int groupPosition, final int childPosition,                          boolean isLastChild, View convertView, ViewGroup parent) {      if (groupPosition == 2)     {         JSONObject jsonObject = (JSONObject) getItem(childPosition);         Log.d("TestJson rating2", jsonObject.toString()); //line 62 <<<<<<          if (convertView == null) {             LayoutInflater infalInflater = (LayoutInflater) this._context                     .getSystemService(Context.LAYOUT_INFLATER_SERVICE);             convertView = infalInflater.inflate(R.layout.row_detail_review, null);         }          TextView username = (TextView) convertView.findViewById(R.id.username);         RatingBar ratingBar = (RatingBar) convertView.findViewById(R.id.userRating);         TextView review = (TextView) convertView.findViewById(R.id.review);          String username2 = "";         String ratingBar2 = "0";         String review2 = "";          if (jsonObject.has("username"))             username2 = (jsonObject.optString("username"));          if (jsonObject.has("rate"))             ratingBar2 = (jsonObject.optString("rate"));          if (jsonObject.has("comment"))             review2 = (jsonObject.optString("comment"));            username.setText(username2);         ratingBar.setRating(Float.parseFloat(ratingBar2));         review.setText(review2);          return convertView;     }      else     {         final String childText = (String) getChild(groupPosition, childPosition);          if (convertView == null) {             LayoutInflater infalInflater = (LayoutInflater) this._context                     .getSystemService(Context.LAYOUT_INFLATER_SERVICE);             convertView = infalInflater.inflate(R.layout.row_detail_item, null);         }          TextView txtListChild = (TextView) convertView.findViewById(R.id.lblListItem);          txtListChild.setText(childText);         return convertView;     } }   I check the log which shows that there are values in the jsonObject but after that it shows the following NullPointerException error.  04-20 11:14:19.790 1759-1759/com.domain.appname D/TestJson rating2: {"username":"luqman","rate":"5","ratingId":"1","comment":"best","userId":"15"} 04-20 11:14:19.794 1759-1759/com.domain.appname D/TestJson rating2: {"username":"sumak","rate":"4","ratingId":"2","comment":"sedap","userId":"14"} 04-20 11:14:19.798 1759-1759/com.domain.appname D/AndroidRuntime: Shutting down VM 04-20 11:14:19.798 1759-1759/com.domain.appname W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0xa4cfbb20) 04-20 11:14:19.798 1759-1759/com.domain.appname E/AndroidRuntime: FATAL EXCEPTION: main Process: com.domain.appname, PID: 1759  java.lang.NullPointerException  at com.mycompany.loginregister.ExpandableListAdapter.getChildView(ExpandableListAdapter.java:62)   What cause the error?


How do I SSH to my remote machine through another machine?

I want to connect my remote machine via ssh, and I must connect to a proxy and in that proxy machine to connect my remote machine(remote machine is in the LAN of proxy machine, and it dosen't have a private ip address).  The following are my commands to connect my remote machine.  me@local_machine: ssh proxy # passwordless proxy@proxy_machine: ssh my_remote_machine # passwordless me@remote_machine:   How should I write a script in my local machine to connect my remote machine so that I don't need to type ssh command so many times to connect the remote machine.  I have a write a script in my local machine to connect the proxy, here show my code.  connect.sh  ssh -p 22022 proxy@proxy   But the above script is just connect the proxy machine, and in proxy machine, I still need to type ssh command to connect the remote machine.  What should I do, thank you !


I plan to take Analysis I next semester, covering roughly the first 5 chapters of Rudin. I've heard that relying on Rudin alone can be exasperating; are there any recommendations for supplementary material? I supplemented Friedberg with Axler during Linear Algebra and found the combination to be very helpful. Any recommendations for similar combinations in Analysis? Perhaps Apostol?


"it's what happened" vs. "it's what has happened"

Note: This post is not about the concept of present perfect. It's not about the general rules either. It is about real life context. I know the general rules I just don't know how do I use some of those in this particular situation. Telling the general rules again does not always help solve specific questions, right?    When describing something happened, people usually use "it's what happened" or "it's what has happened".  However,  indicates the former is much more commonly used than the latter, why is that?    Does they mean the same? Could someone please give a hint? Thanks in advance.


How to combine Euclidean and Cosine distance?

EDIT (No duplicate of ): This question is centered on asking how to combine values from Euclidean and Cosine distances obtained from not-normalized vectors. Being not normalized the distances are not equivalent, as clarified by @ttnphns in comments below. Also I have cosine distance (1- similarity), not cosine similarity.  Short question: How can I combine Euclidean and Cosine/Angular distances between multivariate vectors successfully? Are there special considerations regarding to the objective of the comparison? (for example: to take more into consideration magnitude over orientation)  Background:   I'm using Dynamic Time Warping (DTW) for matching short time series and building a similarity matrix, with the intention of clustering the different time series and get insights from the clusters.  I'm using physical performance features of athletes, but instead of using the overall magnitude of each measure, I use the number of standard deviations that an athlete from the group mean. So the time series (multivariate) is conformed by successive points indicating the deviation from the mean an athlete has over time.  My main objective is to cluster together windowed-sections of the time series that reflect remarkable similar behavior in the up-and-down of values.  So, for DTW I need a distance measure to be used to find the warping path, and then compute the overall distance between pairwise time series. I will like to take into account both the magnitude of the vectors (each point in the time series) and the orientation. It seems then that Euclidean distance can work well for the first one and Cosine/Angular distance for the second one.  How can I combine both distances in order to keep their properties?


I appreciate anyone's help in advance. This is driving me crazy.  I am going to explain all I have done so that I hope it helps in figuring this out.   I installed 18.04 on a 2007 MacBook Pro. Didn't notice any errors. I installed using a USB made from a Windows machine and formatted the drive. On restart, I noticed that the graphics seemed off at first but then recovered when the logo appeared. During the boot-up, the system stalls. I restarted multiple times and the system stalls at various points. I don't see anything consistent. I researched this and found many users with the same problem and I followed mostly all the advice given. Someone suggested that because I didn't unmount my USB, it could be a problem. So I followed the instructions but instead of seeing the USB, I saw 2 instances of MacOS and one of them was in the boot sequence. I deleted all instances of the MacOS but the problem continued. Lastly, I found a solution that stated that the partition might be too small and its running out of space. So I deleted all the partitions, made an EFI partition of 256mb and a root partition (about 250gb) and reinstalled. I encountered the same problem. This time though, I did notice some errors and I am writing what came up as I am not allowed to post pictures yet:   After installation:   [ 10.475782] Couldn't get size: 0x80000000000000e [ 10.475830] MODSIGN: Couldn't get UEFI db list [ 10.512237] Couldn't get size: 0x80000000000000e [ 10.548659] Couldn't get size: 0x80000000000000e [ 11.101311] NOUVEAU 0000:04:00.0: bus: MMIO write of 0000807f FAULT at 100c18 [ 11.184522] NOUVEAU 0000:04:00.0: bus: MMIO write of 0000807e FAULT at 100c1c   During Boot:   [ OK ] Started Login Service  [ OK ] Started Hold until boot process finishes up. [ 68.760956] nouveau 0000:04:00.0: fb: trapped read at 01004b8000 on channel -1 [0fedf000 unknown] engine 06 [BAR] client 08 [PFIFO_READ] subclient 01 [IN] reason 0000000b [VRAM_LIMIT]   I rebooted again and it just stalled (HOLD) after Accounts Services, without any error messages.  Thanks, Hector


Can this sentence work without 'that'? If yes, why?

And given (that) the Nord wasn't a thing when the 8-series was launched, we could see the OnePlus 9 phones get pricier than that.


Short Story about Schoolchildren on Venus

I've been wracking my brain trying to figure out the title and author of a short story I read in school so that I can share it with my husband who also really appreciates science fiction.  It is about school children on Venus where the rain only stops once every 7 years (or maybe it was 10 years).  The day when this story takes place is the only day that they can play outside for years.  One girl is bullied and subsequently locked in a closet for this event by her classmates.  She misses the sun break entirely.  It's wonderful tale that I read in a short story collection in the mid-80's (The books were tan colored - and I think there were at least 2 or 3 of them in the series).  I don't know if these books were originally published in the 80's or not.  But, seeing as these were schoolbooks my guess is that they were published in the 1970's or earlier.  They also contained Rudyard Kipling's The Jungle Book stories, if that helps.  Does anyone happen to know the title and/or author of this short story?  I would love to be able to read it again and share it.


Can all real numbers be represented by the sum of a convergent series?

I've come up with an example that I think can represent every non-zero rational number:  $$\sum_{n=0}^\infty \frac{k}{mx^n}$$  where $k\in \mathbb{Z}_{\neq0}$, $m \in \mathbb{N}_{\neq0}$ and $x \in \Bbb Z \setminus \{ -1, 0, 1 \}$.   And I know there are series that converge to irrational numbers like $\sqrt{2}$ and transcendental numbers like $\pi$ or $e$, that use a finite number of variables that are non-zero integers. But is there such a series for every real number?    Edit  To be more clear, I am talking about infinite series that converge to a real number, that can be expressed in finite terms. For example $\pi$ can be expressed as $$\sum_{n=0}^\infty \frac{4(-1)^{n}}{(2n+1)}$$ This would fit the bill as opposed to $$\frac{3}{10^0} + \frac{1}{10^1} + \frac{4}{10^2} + \frac{1}{10^3} + \dots$$ which would require infinitely many terms to describe.


X forwarding from Ubuntu Server Ed to Windows 7

The Goal: I would like to open a program from my ubuntu server in my windows 7 desktop.  Steps Taken: Putty > SSH > X11 check 'enable port forwarding' I have started VNC Viewer in listening mode started putty ssh session apt get install xinit startx & geany (it's a c language ide; it uses the GUI so I"m using it to test x forwarding)    Error Messages: geany returns "cannot open display" startx returns "setversion 1.4 failed"    I'm working on Windows 7 and headless Ubuntu Server 12.04 LTS  Obviously I forgot something, but I'm having difficulty figuring out what. The goal is to not use sudo apt get install desktop, since I only want to use one program at a time, and anyway my server isn't hooked up to a monitor.   Any ideas? Questions? Thanks for your help! Curios


From Java Concurrency In Practice:  package net.jcip.examples;  import java.util.concurrent.atomic.*;  /**  * NumberRange  * <p/>  * Number range class that does not sufficiently protect its invariants  *  * @author Brian Goetz and Tim Peierls  */   public class NumberRange {      // INVARIANT: lower <= upper     private final AtomicInteger lower = new AtomicInteger(0);     private final AtomicInteger upper = new AtomicInteger(0);      public void setLower(int i) {         // Warning -- unsafe check-then-act         if (i > upper.get())             throw new IllegalArgumentException("can't set lower to " + i + " > upper");         lower.set(i);     }      public void setUpper(int i) {         // Warning -- unsafe check-then-act         if (i < lower.get())             throw new IllegalArgumentException("can't set upper to " + i + " < lower");         upper.set(i);     }      public boolean isInRange(int i) {         return (i >= lower.get() && i <= upper.get());     } }   It says “Both setLower and setUpper are check-then-act sequences, but they do not use sufficient locking to make them atomic. If the number range holds (0, 10), and one thread calls setLower(5) while another thread calls setUpper(4), with some unlucky timing both will pass the checks in the setters and both modifications will be applied. The result is that the range now holds (5, 4) an invalid state.”  How could it happen if AtomicIntegers are thread-safe, did I miss some points? And how to fix this?


I am stuck with the proof of below expression;  "If F is an infinite field, then no infinite subgroup of F* (the multiplicative group of F) is cyclic."  anyone can help?


Why does time evolution operator have the form $U(t) = e^{-itH}$?

Let's denote by $|\psi(t)\rangle$ some wavefunction at time $t$. Then let's define the time evolution operator $U(t_1,t_2)$ through $$ U(t_2,t_1) |\psi(t_1)\rangle = |\psi(t_2)\rangle \tag{1}$$ and Hamiltonian $H$ through $$ H |\psi(t)\rangle = i\frac{\partial}{\partial t} |\psi(t)\rangle. \tag{2}$$ (We have set $\hbar = 1$.) Question. What is the relation between $U$ and $H$, given that $H$ doesn't depend explicitly on $t$? Attempts. It is well-known that the answer is $U(t_2,t_1) = c \cdot e^{-i(t_2-t_1)H}$ for some scalar $c$. Some sources postulate it follows from operator equation $HU = i \frac{\partial}{\partial t} U$ but we cannot integrate it like we could an ordinary differential equation $f(x)g(x) = \frac{\partial}{\partial x} g(x)$ (at least I don't know how to integrate operators!). Then we could also "guess" the solution $U(t_2,t_1) = c \cdot e^{-i(t_2-t_1)H}$ and verify by inserting into $(1)$, but then we still need to show that this is the general solution, i.e., $e^{-i(t_2-t_1)H}$ spans the set of all solutions. Also this approach doesn't enlighten as to why we chose that particular guess.


Why recharge the suit when it is powered by the arc reactor

In Iron Man 3, after escaping in the boat with Rhodes, we see Stark recharging his suit from a battery. My understanding was that the suit is powered by the arc reactor in his chest. Why does he then use the battery for recharging? Had the arc reactor stopped working? Or is my understanding of the arc reactor wrong?


Don't you think the explosion of the number of communities is fragmenting the space uselessly? Lately you don't even know if you need to send your question to , , or . Note: I agree with this:  Notably this fragmentation results in the creation of a lot of accounts, which thank god, is just one click away. But you end up with 101 reputation points everywhere. Also I'm not aware if search boxes do cross-community queries(?). Another thing is the more questions that can belong to multiple communities, the more you lose . I am not alone with this concern, and Robert Cartaino gives good hints about why fragmentation looks bad at first, but may have reasons to be accepted, in the article .


From careful experimentation (i.e. randomly shooting bugs) I've discovered that the aliens become hostile if you attack them. However, I can't quite tell if this is per-unit (i.e. that unit becomes hostile), per-nest (all units from the nest) or global (all aliens) become hostile. They certainly don't all attack at once the same as if I declared war on another civilization. I've also seen them attack first if I stray too near their nest.  I also noticed an upgrade (can't find it now) that claims to cause their hostility to go back to normal twice as fast, which suggests they have some internal aggression counter that gets increased when I attack and decreases naturally at some rate?  So, does anyone have a good summary of how alien hostility works and what I should watch out for?


In Unit circle, in second quadrant, why is X taken negative?

Cos theta = base / hypotenuse  Base and hypotenuse are lengths, so they should always be positive.  So why is cos 3π / 4 negative ?


Just started using Lubuntu and wanted to customize it a bit.   I am trying to install .  I tried everything I found on the internet like putting it in the /usr/themes directory or creating a /home/[name-of-user]/.themes directory and putting it there.


What is one word for "the nervous excitement associated with new things"?

Here are feelings which to some degree are related:   The feeling of waking up in a new city for the first time or starting work on a new job. The feeling of new love, meeting someone for a date, getting married or having a baby. The feeling of imagining what will it be like being in some place or time you have only read or heard about.   I have always felt myself at a loss of words, trying to convey that sort of a feeling precisely. I have to throw in several words to convey the effect: anxious, dreamy, excited, nervous, fresh, overwhelmed and so forth.   In contrast, if I have to describe the sad longing associated with old things, I have a precise term, namely, 'Nostalgia'.   The closest one word I could think of was 'Forward-looking'. But I feel, it is a bit too positive. Another word that I would consider is 'Ambivalent', but it needn't necessarily convey the feelings of new beginning. There must be a better word, isn't it?   p.s.: There are other similar questions like:  or . So I have tried asking the question in manner, that highlights the different expectations from the answer.


How is saltatory conduction faster than conduction of unmyelinated fibers?

It's always the same explanation that currents are able to "hop" along Ranvier nodes instead of passing continuously along the axon making saltatory conduction more efficient than continuous conduction.  However, if we take this down to the molecular level, I cannot understand how they are different. Conduction in unmyelinated nerve fibers are first triggered by an effective stimulus, changing the cell membrane potential and thus opening the voltage gated sodium channels, causing an explosive influx of sodium ions. The action potential is conducted along the fiber through stimulating sodium channels in nearby regions, causing rapid flow of sodium ions into the cell in membrane immediately near the segment of stimulation and this process repeats as the action potential passes unidirectionally along the axon.  Conduction in myelinated nerve fibers are usually described as hopping along the axon, but on the molecular basis, sodium channels are congregated at the site of Ranvier nodes, large numbers of sodium ions that made its way into the cell swim down the axon in the cytoplasma of the nerve fiber reaching the next ranvier node, changing the membrane potential in that specific site therefore triggering another influx of sodium ions.  So to put the question simply, the mechanism of continuous conduction is triggering voltage gated sodium channels continuously along the way, whereas the mechanism of saltatory conduction is triggering-swimming-triggering-swimming...how does this difference essentially make saltatory conduction faster?


I am flying from London to Maun botswana and changing in johannesburg. I have bought two seperate tickets and have a 2 hour stop over.   I am only taking hand luggage but will i need to exit customs and re-check in for my next flight? Or can I walk straight through to international flights? Is there somewhere to check in?


What is the meaning of the correlation in glm

I have fitted a model using glm.  In the summary(model) I get a correlation matrix, but I don't understand how the correlations are calculated and what the interpretation is.  The documentation says "The estimated correlations of the estimated coefficients", but the estimated coefficients are real numbers (one-dimensional) so the correlation does not make sense.


Are these trim or bleed lines? And How can I add them to a design?

So basically, I've made a set of playing cards for a client and he said the printer wants to add 3mm bleed lines to the cards like  .. However these don't look like bleed lines to me?(the pink line) Aren't bleeds on the outside of the image not inner? I'm guessing they're trim lines.. I've been looking for tutorials everywhere on how to add them with no luck.


Will my image be of ok quality when printed on a blanket

My original image taken on my mothers new canon is 4650 x 5829. I am looking to print this image on a fleece blanket 60x80 in size, to give to my father but when i input it into the computer it tells me poor quality image of 72 dpi. Will this image be of good quality to print to give to my father or should i find another method? Please help!!!!


how to find the order of an element in a quotient group

Consider the quotient group $\mathbb{Q}/\mathbb{Z}$ of the additive group of rational numbers. Then how to find the order of the element $2/3 + \mathbb{Z} $ in $\mathbb{Q}/\mathbb{Z}$.


All the software in the center are on their older virsions and the update software doesn't detect the programmer. I want to play minetest 0.4.6 but the one in the software scenter is 0.3.1  if i try to download the 0.4.6 from the internet , the software center doesn't aloww me to install it. And i have the newest ubuntu (13.4) Please update it


Does the difficulty setting have any impact on the results of Interceptor dogfight?

My question is pretty much asked within the title. Basically, I just want to know what, if anything, the Difficulty Setting affects in terms of Aerial Combat.  Will my Interceptors struggle more in Classic than in Normal?  Or will I begin to see bigger, stronger UFO's sooner in a higher difficulty game?


For fixed positive integers $m$ and $n$, let $$S=\sum_{k=0}^m (-1)^k\binom{m}{k}(m-k)^n.$$Show that $S = 0$ if $n < m$ and $S = n!$ if $n = m$.  I know that I have to use PIE(principle of inclusion and exclusion) and a counting argument. Here's my work so far:  There are $m$ people, $\binom{m}{k}$ represents all the ways to pick $k$ people out of $m$ people. $(m-k)^n$ represents all the ways of giving the people that weren't chosen nn distinguishable objects. What I don't get is how to apply PIE, why the signs are alternating, and how does  $S = 0$ if $n < m$ and $S = n!$ if $n = m$. Could anyone offer an answer by the counting argument I started? Thanks!


Migrate local profile to domain profile on same computer in Windows 7?

I have found variations on this, but not this specific one. I have had a local account on my laptop for some time, which has just been joined to the company domain. I am a local admin, but not a domain admin. I'd like to copy my local profile into the domain profile. (Not hack up the registry to point both accounts to the same directory)  Windows Easy Transfer requires me to be a domain admin. The 'registry profile list' method on Technet leaves you with one profile essentially, and also doesn't work for me (can't open ntuser.dat for the local profile). Is there another way, or a tool to do this?


Can anybody explain me this: s[81:67:-1] When s is "this is me asking a question on stackoverflow.com and hoping to get an answer that will help me further"


Command to know software version from terminal before installing

Am trying to install Bibletime v2.9.2. I purged v2.8, added the crosswire ppa (ppa:pkgcrosswire/ppa) to my software sources and did a sudo apt-get update.  Since I don't have a fast internet connection, I wanted to know the Bibletime version available before installing it via terminal. I'd be glad if anyone can point me in the right direction.  Thanxs.


My understanding is that the launch of Stack Overflow was brilliant from both a business perspective and a technical perspective.  Having recently discovered the site, I was not present at the launch and the Spolsky blog and podcast don't seem to do the launch justice.  Can you summarize and explain the aspects of the SO launch that were brilliant? Which of these aspects can be copied by other startups?


Someone told me about wake-on-lan options in bios and it sounds great. It would be kinda cool if I can turn my computer from office when it happens that I forgot to turn it on before I go to work so later on I could use teamviewer or what ever. Can someone help me with this in details cause I never done this before?


It is given $23!=2585201xy38884976640000$. Now it is required to find the value of $x$ and $y$. I know I could find it by using divisibility rules and solving simultaneous equations. Is there any other way to solve it (without computing it by a calculator)? This question is just out of curiosity.


How can spin be angular momentum and particles dimensionless?

On the Wikipedia page it says that . Wikipedia also say . However if particles are actually "dimensionless" there would be no way to deduce angular momentum, since angular momentum requires non-uniform momentum of an entity, which has to mean the entity consists of more than one point in space. Can someone explain to me how these two concepts are compatible?


I'm using the Glossaries package, which is fantastic, but I'd like to put in pictures which explain the term better than words would. Is there a way for me to do this?


My software sources are selected as ubuntu old version 12.something while installing adobe reader

My software sources are selected to an old version of ubuntu while installing the adobe reader and im using ubuntu 14.04 LTS.now i am getting a notification in the above system tray that says "The update information is outdated.This may be caused by network problems or by the repositary that is no longer available.............." and i am getting the following errors in sudo apt-get update W: Failed to fetch   404  Not Found  W: Failed to fetch   404  Not Found unfortunately i cant post more than 2 links I want to fix this the other questions related to mine...doesn't really solved my problem


Original problem  Show that there are exactly 16 pairs of integers $(x,y)$ such that $11x+8y+17=xy$.  My work  From case by case analysis I come to know that the equation will hold if and only if $x$ is odd and $y$ is even.  Also I found that $(8-x)|(11x+17)$ and $(11-y)|(8y+17)$  This is all what I have found.  Please see that my work are right or not.  This is a new kind of question which I have encountered so please help me is solving this problem.


Why does my reputation decrease if I downvote another post?

Hi,  I am wondering why do my reputation points go down if I downvote someone else's post?  Thank you for your time.


This has been . It is unfortunate the accepted answer is so far from reality.   There are some facts:    's MD5 hash is an unsalted MD5 hash of an email address. A 3rd party could harvest every MD5 hash for every user's email on Stack Overflow.  The 3rd party could store all the hashes in a lookup table Email addresses are usually of a very particular format The attacker could start with a brute force of @gmail.com followed by @yahoo.com, etc. The attacker has the advantage that he/she could attack a huge set of emails in one go. So instead of needing to brute force every email individually the attacker can brute force in bulk.   The algorithm is quite simple, calculate a "random" MD5, look it up in the lookup table.       Is Gravatar a big enough security risk to warrant caching images locally?     Examples:    Someone could harvest about 50k email addresses quite easily and shoot off a bogus promotion from Stack Overflow to all the users. A spammer/stalker/generic evil guy can tie you identity to all the rest of the sites that use Gravatar.


How to prevent children from sucking their thumb?

My 4-years-old daughter still sucks her thumb while sleeping.  How can help her stopping this habit?  I have tried to give her a pacifier, but she refuses it. She does not have this habit during the day and is also upset in the morning when she sees her nails are flaky and her thumb hurts.


Which close reason should I use for questions that do not demonstrate research effort?

I regularily encounter questions on StackOverflow which are asked only because of the sole fact that the poster haven't made the effort to google for and the docs of a particular function/class/framework/whatever. My question is, to which category of the five proposed one should I vote when I vote to close the question? Is it: off-topic, not constructive, not a real question, exact dupe or too localized? I tend to be all for 'not a real question' - am I quite right?


I'm having a hard time trying to understand the units between angular velocity and basic velocity of a circle. For angular velocity the units are Radian(s) per second(s) or degree(s) per second(s). The speed or velocity of the circles circumference is the angular velocity times the radius, but the units for this is meter(s) per second(s). So where did the radian go? It counts as a unit for angular velocity but why it doesn't count for the speed?


Does upgrading window 8 to window 8.1 will affect Ubuntu

i have a window 8.1 update to my laptop.But am afraid that after updating window 8 it will affect the grub menu and i wont able to boot into Ubuntu..is it safe to upgrade to window 8.1 ??


What has Ramsay done to Theon torture-wise?

My friend told me that Ramsay flayed Theon; this question is in two parts:   Is this correct? and What else has Ramsay possibly done?   I have not read the books, but don't mind spoilers from them.


May we have some more SO stickers, please?

I realize we did receive some stickers before, but I believe more stickers would be tolerated. Of course, you should deserve them first. Are there any possible sticker competitions?


I want to use Drupal as a Framework for my application. Apart some modules, such as Image, Imagecache, Views, and Panels, I will make custom modules. I need the best performance and result.  What version of Drupal should I use?


I thought I know how to add pagination to a custom loop and I've seen these questions and tutorials:        but for some reason it doesn't work at this time. I created myfile.php, named it to "My Page Template" and set that to be my front page in Admin Panel > Settings > Reading.  $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;  $args = array(     'post_type' => array('my_custom_post_type'),     'paged' => $paged,     'posts_per_page' => 3,     'ignore_sticky_posts' => 1 );  $wp_query = new WP_Query( $args ); var_dump($wp_query); if($wp_query->have_posts()) :     while($wp_query->have_posts()) : $wp_query->the_post();         // show post     endwhile; endif;  next_posts_link('Next posts');  wp_reset_query(); wp_reset_postdata();   What happens:   Front page shows 3 posts as expected. "Next posts" link is shown and points to  as expected. While I'm on  it shows the same set of posts and "Next posts" link points to  which is not what I want. var_dump($wp_query) shows public 'max_num_pages' => float 8. var_dump($wp_query) shows public 'found_posts' => string '24' (length=2). var_dump($wp_query) shows public 'is_paged' => boolean false. var_dump($wp_query) shows 'paged' => int 1 (when I'm on page number 2). When I'm renaming $wp_query to $my_custom_query then "Next posts" link doesn't show at all.   Is there anything else I should do here?  UPDATE: I managed to set proper $paged by changing $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; to $paged = (get_query_var('page')) ? get_query_var('page') : 1; but it still shows a wrong navigation link.


How old were each of the Doctor's incarnations?

As of the second season of Matt Smith as , we've seen him give his age variously in a range between 900 and 1100 years (Note: I'm being deliberately vague here to avoid spoilers; being more accurate wouldn't add to my question).   As Matt's the eleventh doctor, this implies an average of 100 years of living per incarnation, assuming that the ages are somewhat accurate and not just fabrications.  Do we know the ages of any of the "other" Doctors?  How old was the Jon Pertwee Doctor, for example? Was he younger than expected, given that the regeneration was forced upon him?  William Hartnell's Doctor looks oldest physically, but did that correlate with actual age in any way?


Proof or disproof that for composite $n$, $(2^n)-1$ is also composite

While trying to solve a problem my friend asked me, "is $(2^{50})-1$ prime?", I found a pattern where if $n$ is composite, $(2^n)-1$ is also composite, and in many cases if $n$ is prime, the term is also prime. However this fails at a few prime numbers, the first of which is $11$. I was able to check for composite results up to $80$ before having to work on other things. I am wondering if anybody can prove or disprove the assertion above. While playing around with the pattern, I also found that for composite $n$, $(a^n)-(a-1)$ is also composite. I am less sure about this one, but it is much more exciting if true.


Custom permalink structure with a prefix just for posts

I would like to set a permalink structure with a prefix that will appear just on the posts. The prefix should only be displayed for the posts and not for the permalinks of categories or tags.   I set the permalink structure as /post/%post_id% and the post URL is example.com/post/12345. But the prefix added also to the categories and tags and it become example.com/post/category/news instead of example.com/category/news. How I can do it?


Given $a_1 \in \mathbb{R}$ , consider the  sequence  {$a_n$} defined by   $ a_{n+1}  = \begin{cases} \frac{a_n}{2} &\text{ for  even n} ,\\ \frac{ 1+ a_n}{2} & \text  {for  odd n} \end{cases}$.  find the  the  limit points of this  sequence..      My attempt :  For  n odd  i get $ a_{n+1}= \frac{ 1+ a_n}{2}$ nad putting  $a_{n+1} =  {a_n}  = l$  Now  i get   $l= \frac{ 1+ l}{2}$ as  i get  $l =  1$  for odd..  as I don't  know  how to find the  $a_{n+1}$  when  n   will even  Pliz help me,,,,,


Moderator bias and stifling of discussion on Stack Exchange

Recently I have come across instances of moderators being biased and trying to stifle the discussion through their special privileges on Stack Exchange sites (especially if the point of view or discussion is against their own personal views and they are involved in it). The problem is that there are many policies about what can be posted and what is not allowed which can be interpreted and justified by a moderator in his/her favor as those are quite subjective and open to interpretation. They use those policies as an excuse to close discussions or hinder users who they might have a personal bias against due to some past interactions. What can be done to mitigate this problem and what steps can a normal user take to discourage such kind of behavior?


trying to categorise files and folders. but both list are having same output

I am trying to make my own os walk function. but the initial part is failing to categorize files and folders into two directories. Instead, all files and folders are listed in both list  import os path = '/root/Downloads' files=folders=[] dirs = os.listdir(path) for dir in dirs:     if os.path.isfile(dir):         files.append(dir)     else:         folders.append(dir)


Why do we say 'in the air', not 'in air'?

Why is 'the' used before air in the expression in the air? Air is an uncountable noun. However, 'the' (the article) precedes the word 'air'. For example: He hit a ball in the air. How can air be specific?


Can I upload a pre-print during peer review that includes changes suggested by reviewers?

My paper is in the late stage of peer-review and probably will be accepted once I complete the last minor revisions, but it is not formally accepted yet. During peer-review the manuscript changed quite a lot because of the helpful comments by the reviewers.  The journal is not open access and therefore I want to upload the manuscript to a public repository like arxiv to make it more accessible. The last version of my manuscript that I plan to upload is probably close to the final published version once it is accepted.  The publisher of the journal is Wiley-Blackwell, according to the sherpa/romeo database it is in the yellow category:   They allow pre-prints, but it says 'pre-refereeing', so I am not completely sure if it is allowed to upload a pre-print at this stage.


compiler does not allow me to edit the passed string

I looked around and I could not find a solution of my problems in other question. For some reason, then I get segmentation fault when I run my program and it seems to be because i am changing the give string. I tried passing a pointer to a char pointer and edit that, but to no avail.  what I get:  before: juanpablo Segmentation fault (core dumped)  My code:  void rm_char(char* word, int pos){     printf("before: %s\n", word);     int len = strlen(word);     int i;     i = pos;     while(word[i+1] != '\0'){       word[i] = word[i+1];       i++;    }      word[i] = '\0';     printf("after: %s\n", word); }    int main(void){     rm_char("juanpablo", 2);  }


How to make a query with AND operator between rows

I have the following table, witch is the relationship pivot table, between posts and tags:    I need to get the posts that strict contain a 'X' given tag(s).  For example:   If I need posts with exclusively tags 1 and 2, it should returns post_id 1 and 4. If I need post with tag 2, it should only returns post_id 3. If I need post with tag 23, it should't returns nothing.   I've tried with:  SELECT * FROM `post_tags` WHERE tag_id = 1 OR tag_id = 2;   but obviously it returns all post_id with these tags_id  And with:  SELECT * FROM `post_tags` WHERE tag_id = 1 AND tag_id = 2;   It doest's return anything, because it's trying to comparate between columns.  Any solution?


Good Day!  I Need help with a Libgdx Project. What i want is to remove a tile, which is in my graphics layer (layer 0).  This is what i got so far:  if(object1.getUserData() != null && object1.getUserData() == "polyblock"){        polyblock1 = true;        System.out.println("PLAYER 1"); }else if(object1.getUserData() != null && object1.getUserData() == "redcoin" || object1.getUserData() == "greencoin" ||  object1.getUserData() == "bluecoin" ){            B2dObjectGetter.getCell(object1.getUserData() == "redcoin" ? 3 : object1.getUserData() == "greencoin" ? 4: 5).setTile(null);       }   The coin bodies and the getCells Method:  for (int i = 3; i <= 5; i++){      for (MapObject obj : map.getLayers().get(i).getObjects().getByType(EllipseMapObject.class)) {             Ellipse ellipse = ((EllipseMapObject) obj).getEllipse();              bdef.type = BodyDef.BodyType.StaticBody;             bdef.position.set((ellipse.x + ellipse.width / 2) / GameJLibGDX.PPM, (ellipse.y + ellipse.height / 2) / GameJLibGDX.PPM);              CircleShape shape = new CircleShape();              coinbodies[i] = world.createBody(bdef);             shape.setRadius(ellipse.width / 2 / GameJLibGDX.PPM);             fixdef.shape = shape;             coinbodies[i].createFixture(fixdef).setUserData(i == 3 ? "redcoin" : i == 4 ? "greencoin" : "bluecoin");         }     }  }  public static TiledMapTileLayer.Cell getCell(int i){     TiledMapTileLayer layer = (TiledMapTileLayer) map.getLayers().get(0);     System.out.println(coinbodies[i].getFixtureList());     return layer.getCell((int)(coinbodies[i].getPosition().x * GameJLibGDX.PPM / 128),(int)(coinbodies[i].getPosition().y*GameJLibGDX.PPM / 128)); }   It seems to work really fine except one Thing:  Blue coin got hit:    Green coin got hit:    Red coin got hit: Cant post more than two Pictures :(. The red coin is disappering and everything is fine. But only if I hit them one after another. So i mean in the order: Redcoin, Greencoin, Bluecoin  I noticed something really weird:    but:    Thank you for your time!


I read the blog post "" by Jeff Atwood. As I understand the post, SE "require[s]" that reusers "Hyperlink directly to the original question", that reusers "Hyperlink each author name", that users use "standard HTML", and that "the links must not be nofollowed." Taken literally, this would mean that republishing substantial portions of a question or answer in any medium other than the web would infringe copyright, as would republishing in web environments that forbid hyperlinks to SE sites. It would end up ruling out substantial quoting in the following situations:  Print, because hyperlinks are impossible. URLs may be printed, but that's like using nofollow. Sites like Everything2, because external hyperlinks are disabled as a spam control measure. URLs may be posted as text, but that's like using nofollow. Several web sites' comment systems, because external hyperlinks are disabled as a spam control measure. They reject any post that contains text that looks like a URL.  What did I misunderstand? Or did SE intend to forbid quoting questions and answers outside the web when it set the attribution policy?


Is it safe to have permission to create files in var/www/html?

I am currently learning PHP, and I am new to Ubuntu. When I was practicing PHP on Windows, I used XAMPP and create files in htdocs. Now that I am using a Linux machine, I have installed the LAMP package, but I did not initially have access to create files in the var/www/html folder.  I used sudo nautilus to give myself access to create and delete files for testing purposes. Is this OK? Does it open me up to any risk? This is all local work on a local machine. Another difference from XAMPP is the ability to turn MySQL and Apache on and off/open and close the ports. Do I need to worry about this now that I am using LAMP? I just want to be secure; I'm new to this.   Thank you in advance.


advantages of using puppetmaster over git pull

I am currently setting up puppet for a network of around 30 servers in a master / agent setup, but since I am using the open source version of puppet, is there really any advantage of using a puppetmaster?   I have to ssh to the server to set up the puppet agent anyway, so why not setting up a cronjob that pulls directly from github (a 'release branch' maybe?) and applies certificates directly seems also very attractive.   Are there any significant advantages of using a open source puppetmaster? Since puppet kick got deprecated, I can't think of any that come out of the box.


I have seen this problem in a book .   But I don't know what should be the solution . Question is   There is a sequence defined by $$\sqrt[1]{1},\sqrt[2]{2},\sqrt[3]{3},\sqrt[4]{4},\cdots,\sqrt[n-1]{n-1},\sqrt[n]{n}$$  We have to find the largest number in this sequence.  What I did is as usual what I do when comparing two irrational numbers  I compared $\sqrt[1]{1} $ & $\sqrt[2]{2}$ and found that $\sqrt[2]{2}$ is greater.  Then I compared $\sqrt[3]{3} $ &$\sqrt[2]{2}$ and found $\sqrt[3]{3}$ is greater.  Then I compared $\sqrt[3]{3} $& $\sqrt[4]{4}$ and found $\sqrt[3]{3}$ is greater.  And then I compared  $\sqrt[5]{5}$&$\sqrt[4]{4}$ and found $\sqrt[4]{4}$ is greater.  And finally I compared $\sqrt[5]{5}$&$\sqrt[6]{6}$ and found $\sqrt[5]{5}$ is greater.  I cannot guarantee will it work up to infinity or not and found $\sqrt[3]{3}$ is greatest term.  And now I have to prove my result.  More generally I have to prove that $\sqrt[n]{n}\gt \sqrt[n+1]{n+1}$ for all $n\in\mathbb N$ and $n\gt 2$  I applied induction to prove it but didn't got the solution.  Please help me in proving this .  Or please tell me an alternative way to tell which number is largest in the sequence.


Implementing support for nested transactions using JDBC 3.0

our legacy application uses JDBC 3.0. it supports transactions by implementing its own transaction manager that is capable of returning the same JDBC connection for each thread. The problem I recently discovered is that it doesn't support nested transactions: if a transaction is started inside an another transaction, then every SQLs running in the context of the inner transaction will be executed using the same db connection, and when it's commited or rolled back it will automatically commit or roll back all the changes starting from the outer transaction.  As far as I understand I can implement the support for nested transaction using JDBC 3.0 savepoints: whenever a nested transaction is started, I can set a new savepoint for the current connection. Afterward, if the nested transaction is rolled back, I will just rollback to this savepoint. If, on the other hand, it is commited, I will just do nothing. Only the commit of the most outer transaction will save the changes to the db.  Is this correct? Does this approach have any flaws? If yes, what are my possibilities?  Thanks.


Newton said that attraction was due to forces at a distance. RG said that matter fields change the metrics of space time Rovelli says the fields ARE space time (not enbedded in it). How does attraction emerge from the spin foams and networks? Are there formulas showing that objects attract? that it decreases with distance?


I am building a custom WordPress function/plugin that uses get_posts.  The following code returns an empy array.  I have included wp-load.php in my script.  Is there something else I am missing?    $args = array(     "posts_per_page"   => -1,     "paged"            => 0,     "orderby"          => "post_date",     "order"            => "DESC",     "post_type"        => "carellcars, ccf, attachment",     "post_status"      => "publish, inherit",     "post_author"       => "2"  );  $posts_array = get_posts($args);   print_r($posts_array);  die;   If I use arrays for post_type and _status the array is not populated, but if I use single values for post_type and _status the array is populated?  Not populated:  $args2 = array(     'posts_per_page'   => -1,     'paged'            => 0,     'orderby'          => 'post_date',     'order'            => 'DESC',     'post_type' => array('carellcars', 'ccf', 'attachment'),     'post_status'      => array('publish', 'inherit') );   Populated:  $args2 = array(     'posts_per_page'   => -1,     'paged'            => 0,     'orderby'          => 'post_date',     'order'            => 'DESC',     'post_type' =>  'carellcars',     'post_status'      => 'publish' );   Update, removing "ccf" post type produces results, but I do have a ccf post_type and would like to include them.  Any ideas?      'post_type' => array('carellcars', 'attachment'),     'post_status'      => array('publish', 'inherit')


Is there such a thing as a muggle werewolf?

I was reading Fantastic Beasts and Where to find them, and I found this quote:  “Werewolves spend most of their time as humans (whether wizard or Muggle).”  (Fantastic Beasts and Where to Find Them) Does this mean, if a muggle is bitten by a werewolf, and somehow survives (rescued by wizards, then had their memory modified), that they will become a werewolf? I may make a second question on this topic regarding how the wizarding world would remain hidden to this muggle, if they do indeed become a werewolf. I am looking for canon answers based on JKR interviews, the books, or simply your own canon-based speculation!


Under burnt layer prevention for briyani

When I cook briyani on a electric stove top, how do I prevent the bottom layer of the dish in the pot from burning?


Suppose that we have 30 plants (that are the same exact plants). Suppose that we choose 15 out of a sample of 30 plants and we seeded them with a drag. We then want to test whether this drag has an effect of making them grow faster. So we have 15 plants with a drag, and 15 plants with no drag.   Let's suppose that the weather conditions are the same and they are at the same exact place-location. Are they paired or unpaired? Before I ask this question I searched it and by definition:  Paired samples mean that we take a sample (let's say a plant) and we see how it grows, then we put the drag to the EXACT same plant and see whether it makes any difference. According to this definition, I would use UNpaired samples since I am choosing two different groups of plants and not the same plant each time. BUT, concerning the fact that all these 30 plants are the same (they are the same object) can I still use a paired t-test? Thank you, I hope my question makes sense.   I read many examples with animals or humans. Of course if we have humans or animals then of course the answer is very simple, since every animal or human being is different. Subsequently if I use two different groups of human for example, the samples could be unpaired. But when I use objects like plants or clouds or trees or something like that. Does it make any sense to consider them as different, avoiding the fact that we are talking about the same object.


Extra space character is added when reporting a bug via the app itself

When adding a bug report via Android app, list of specification items added to message body automatically. And for the last one (OS) extra space character is added.


I am getting ads that pop up in front of my activities

I get some ads that keep popping up. I got fed up of it and clicked the opt-out button next to it. That opened a tab on Chrome, and thats this:    Can anyone help me disable these ads? I don't know why these ads came in the first place.


Can I still use my passport if it has loose stitching?

My Indian passport has got loose stitching; will it be considered damaged? I have a trip to Singapore coming up in 7-10 days. Will this create any problems at Immigration? While the stitching is worn, all the other parts, like photo and my details, are not damaged.


I opened up a remote I had and saw there were two soft "objects" next to the display in it. What is it's name and function?


My file is a .txt file and all comments have no spaces before them.  I have a file with 10,000 lines that looks like this and I am reading every line of the file.  ## something ## something ## something 12312312 123123 12312312 123123 123123   However, my code will fail if there is not a value in every line.  Is there a way in Python to exit the program if the line is blank?  I just need a simple If statement to fix my program.  Something like   if line == blank:     quit


If f is a monotone function which defined on interval, then f is measurable

Prove that      If $f$ is a monotone function which defined on interval, then $f$ is measurable.    Proof: If $f$ is increasing and define on interval, then the set $A=\left\{x:f(x)>a\right\}$ will be an interval for all a, and it's measurable since each interval is measurable.   Does this an accepted proof? Need I to show that A is an interval? If yes; how can I prove that?


I can't upgrade my system, what should I do now?

When I update, after some file downloads it shows the below errors.  What should I do now?  W:Failed to fetch cdrom://Ubuntu 14.04.3 LTS _Trusty Tahr_ - Beta amd64 (20150805)/dists/trusty/main/binary-amd64/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs , W:Failed to fetch cdrom://Ubuntu 14.04.3 LTS _Trusty Tahr_ - Beta amd64 (20150805)/dists/trusty/restricted/binary-amd64/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs , W:Failed to fetch cdrom://Ubuntu 14.04.3 LTS _Trusty Tahr_ - Beta amd64 (20150805)/dists/trusty/main/binary-i386/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs , W:Failed to fetch cdrom://Ubuntu 14.04.3 LTS _Trusty Tahr_ - Beta amd64 (20150805)/dists/trusty/restricted/binary-i386/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs , E:Some index files failed to download. They have been ignored, or old ones used instead.


Cannot tap top right reputation change indicator

The navbar button for the rep/activity log can't be tapped when displaying a rating change (+5).     Persists between app runs.    App Version: 1.6.2.5 Device: iPhone 5 (Global) OS Version: Version 10.2 (Build 14C92)


To which specific Microsoft Windows patch does this InfoWorld article claim is being implicated in increased snooping?

In this , Woody states that there is a possible patch to resolve Microsoft's Windows Update taking eight hours to just check for updates.  Woody writes:     Back in June, we saw a harbinger of this new technique. As I , you could get a new patch that would speed up Windows 7 update scans, but in order to install it, you had to install six completely unrelated patches -- at least one of which has been implicated in increased snooping.   Upon reading the initial article, as well as , I do not see it mentioned which Microsoft Windows patch has been implicated in increased snooping.  Unfortunately, it must be said, that Microsoft has been publishing many patches that reportedly contain code that performs snooping behavior; but for this question, I am asking to which specific patch the above quote refers.  Bonus: For that specific patch, is there any information to confirm or deny the alleged snooping behavior?


How to undo a \def (i.e., Need a \undef capability)

I thought the way to undo a \def was to define it to \relax, but that does not appear to work.  Also, am not sure why this produces no output if I try to use \def instead of \let in my attempt to do an undef.  \documentclass{article}  \begin{document}  \def\CaseA{}%  \ifdefined\CaseA%     \def\ProcessCaseA{}%     % Do stuff that uses \ProcessCaseA     %\def\ProcessCaseA\relax% no output if use this, and comment next line     \let\ProcessCaseA\relax% no output if comment this, and use above line \fi  % Now do stuff that requires \ProcessCaseA NOT be defined \ifdefined\ProcessCaseA     ERROR: \textbackslash ProcessCaseA is still defined \else     SUCCESS: \textbackslash ProcessCaseA is not defined \fi  \end{document}


The bottom bracket of my bike was completely stripped to the point that when you push the left side crank arm, the right crank moves and you can see the bottom bracket lock move out the frame. The bike shop tried putting Teflon tape but it's temporary. It's a 26' xc hard tail. For all I know both sides of the bottom bracket(square tapered) are stripped clean hence the Teflon tape put by the previous owner. Can I fix the problem by changing into a hallow tech cranks because it works like a thread less bb, or should I just buy a thread less square tapered bb? Any suggestion on what to do?


Specific format/formula when changing column datatype

Can one modify a column's datatype using a very specific conversion format?   For example, when converting from datetime to varchar I'd like to use the yyyy-MM-dd hh:mm:ss format, not the system default which is 109 I believe.  Is there any way to achieve this without creating a temporary column?


Does at scheduled tasks remain after reboot?

I'm using at to schedule a task for a later time.  Will it survive a reboot, or should I re-assign all the tasks after reboot ?


When I read other answers to my question it says to feed the Ocelot raw fish till it emits hearts and it will be tamed. Why isn't it working for me?