These may be separate questions, but the following MWE:    \usepackage{pdfpages} ...   \addcontentsline{lot}{subsection}{\ref{tab:UserRoles} \textbf{User Roles}}   \includepdf[pages={-}, pagecommand={\label{tab:UserRoles}}, offset=0in -1in, addtolist={9, table, {The User Roles table}, tab:UserRoles}]{UserRolesTable}   ...   has several unexpected behaviors.   I get the following warning:  Package pdfpages Warning: There's something wrong with the entries of `addtolist'. Not all entries were processed. Check `addtolist' [in the MWE]."    Probably due to the \label not being bound to the inserted pdf (in a table environment), my inserted PDF is numbered using the section, and not the expected "Table X" value.   The manually-inserted LoT line (which also uses the section number rather than the incremented table number) is not formatted like the other lines in the LoT - the number lines up, but the table caption itself is not aligned with the others in the list.   The source PDF has no errors and displays correctly in the output PDF.  PDFLaTeX -> BibTex    MWE:  \documentclass[11pt,letterpaper,twoside,final]{article} \usepackage{pdfpages} \begin{document} \listoftables \begin{center} \textbf{Table \ref{tab:UserRoles} - The User Roles Table} \addcontentsline{lot}{subsection}{\ref{tab:UserRoles}  \textbf{User Roles}} % manual entry in ToC  \includepdf[pages={-}, pagecommand={\label{tab:UserRoles}}, offset=0in -1in, addtolist={9, table, {The User Roles table}, tab:UserRoles, lot}]{UserRolesTable} \end{center} \end{document}


Is learning Python over Java is preferable in future for automation testing?

Want to be master in automation..so please folks help me to achieved it.  I know core java basic which I used in automation testing Selenium web-driver (learning phase using it for past 2-3 months). So does learning python will help? Or should I continue it java.


Proof: For any prime number $p$, there must be integer $a$, $b$, $c$, $d$ such that $x^4+1 \equiv (x^2+ax+b)(x^2+cx+d)\ (mod\ p)$.

This is a question comes from a book about Number theory, and the question is related to Quadratic residue.  I start with  $$ x^4+1 \equiv (x^2+ax+b)(x^2+cx+d) \\ \equiv x^4+(a+c)x^3+(b+d+ac)x^2+(ad+bc)x+bd\ (mod\ p) $$  and then  $$ \begin{cases} a+c \equiv b+d+ac \equiv ad+bc \equiv 0\ (mod\ p)\\ bd \equiv 1\ (mod\ p) \end{cases} $$  and I don't know what to do next.  The Legendre symbol and Jacobi symbol Properties and Calculating is ok for me.


How can I run test by JUnit4, with more threads?

I have a unit test class, and execute test with Spring JUnit4. All tests execute about 15 minutes, because test runs one by one. Here is my problem. This test we won to execute for continuing integration. After every commit we need to wait this 15 minutes, and this is not acceptable. How can we execute this test with more than one thread, or all tests execute in parallel?  e.g I mean,run all @Test method in parallel,not two different class in parallel. if i have 60 test methods in one class,execute this 60 methods simultaneously.


C++: Is it possible for a class to called its member variable's method and send itself as the argument?

I have two classes. Class A contains a pointer to an instance of class B. In class A, I would like to call class B's instance method and send class A itself as the argument. I wrote the following code but it doesn't compile:  Source for Class A:  //a.h #ifndef A_H #define A_H  #include "b.h"  class A{   friend class B;   int i;    B *b;  public:   void callB(){b->calledByA(this);} };  #endif   Source for Class B:  #ifndef B_H #define B_H  #include "a.h"  class B{   int j;  public:   void calledByA(A* a){     //j=a.i;   } };  #endif   The error given by VS 2010 is   error C2061: syntax error : identifier 'A' error C2660: 'B::calledByA' : function does not take 1 arguments   Why?


illustration about definition of radicals


What does setting the domain name of linux system do?

When installing many different distributions of Linux, there is usually an option to set the domain name, as well as the hostname. Often the domain name can be left blank. What does this options actually do? What is its purpose? If I own a domain name, and I enter it at this point during the installation (or even change it after installation) what would be the difference compared to leaving it blank? Additionally, what happens if I set it incorrectly? For example, I used a domain name which exists, but I do not own, or I used one that doesn't exist. For example I could enter google.com as my domain name, but clearly I do not own this domain, so what would happen in this instance?


Do you produce more sperm after 1 week of abstinence vs 1 year of abstinence

Question: I was wondering if the amount of sperm increase with the amount of abstinence?  Side questions:    Is their a max amount of sperm? What happens with the excess amount?


Find the average of the number $n \sin n^\circ$ for $n=2,4,6\cdots,180$

I have been asked in a exam to find the average of the number: $$n \sin n^\circ$$ for $n$=$2,4,6,\cdots,180$ I have tried a lot basically with sum product, or pairing the inputs...but at the end don't able to find any way to solve it, can someone help me with the approach?


How can one prove the Killing form given by $B(X,Y)=Tr(ad(X) \circ ad(Y))$, where $X,Y \in \mathfrak{g}$ and $Tr$ is the trace, is $ad$-invariant. I mean, it verifies: $B(ad(X)(Y),Z)+B(Y,ad(X)(Z))=0$, with $ad$ the adjoint representation of Lie algebras and $ad(X)(Y)=[X,Y]$, Applying two times the Jacobi identity to $[Z,[X,[Y,W]]]$, I got: $ad(Z) \circ ad(X) \circ ad(Y)=ad(ad(Z)X) \circ ad(Y)+ad(X) \circ ad(ad(Z)Y)+ad(X) \circ ad(Y) \circ ad(Z)$ Then I tried to apply the trace, but I do not achieve what I want. Some ideas? Is there an easier way to do it?


hiding from who command and strange carcvncgiw process

my server have what i think is a suspicious activity, there is bash process that consume more than 30% cpu when i trace it with lsof -p it show:  COMMAND     PID USER   FD   TYPE   DEVICE SIZE/OFF    NODE NAME carcvncgi 39259 root  cwd    DIR    253,1     4096  813203 /var/www/elasticsearch carcvncgi 39259 root  rtd    DIR    253,1     4096       2 / carcvncgi 39259 root  txt    REG    253,1   625622 1109822 /usr/bin/carcvncgiw carcvncgi 39259 root    0u   CHR      1,3      0t0    1029 /dev/null carcvncgi 39259 root    1u   CHR      1,3      0t0    1029 /dev/null carcvncgi 39259 root    2u   CHR      1,3      0t0    1029 /dev/null carcvncgi 39259 root    3u  IPv4 36094970      0t0     UDP *:44932    but when i check it with who it only show :  USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT root     pts/4    182.253.177.249  09:07    6:45  17.35s  0.28s -bash root     pts/5    182.253.177.249  09:25   23:57   1.82s  1.75s iftop root     pts/7    182.253.177.249  09:33    5.00s  0.14s  0.00s w root     pts/0    103:S.0          22:45    9:29m  0.34s  0.27s /bin/bash   three from the top is my ip, the last one i think the provider ip.  is it possible someone accessing my server and hide it from who command ? is there a way to solve this? and what is carcvncgiw process as mr.Google doesn't provide clear explanation ?  UPDATE  well, I followed here  and try to deal with the server and 'solve the problem', but the question is remain is it possible to hide from who command and what is the carcvncgiw process?  note: thanks to the one show me that link, seems i need to purge my server then  UPDATE 2  Result of cat /proc/39259/cmdline  bash   Result of cat /proc/39259/environ  nSHLVL=0OLDPWD=/UPSTART_JOB=lokamedia-elasticTERM=linuxPATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/binPWD=/var/www/elasticsearchNLSPATH=/usr/dt/lib/nls/msg/%L/%N.catXFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt   Result of ls -lh /usr/bin/carcvncgiw  -rwxr-xr-x 1 root root 597K Mar 10 00:14 /usr/bin/carcvncgiw   thank you


What is the angle between the two wings of Lorenz's strange attractor?

When reading about chaos theory, I am often presented with a picture of a butterfly shape formed by two spirals - Lorenz' strange attractor.  I presume that there is a specific function that generates the most natural example.  If it is a meaningful question, what is the angle between the two planes on which the paths of the spiral, more or less, are located?


udev held back by apt-get while using ondrej systemd PPA

For probably about a month now, udev has been held back by apt-get when running apt-get updgrade.  The following packages have unmet dependencies:  udev : Depends: sysv-rc (>= 2.88dsf-24) but 2.88dsf-13.10ubuntu11.1 is to be installed or                  file-rc (>= 0.8.16) but it is not installable E: Unable to correct problems, you have held broken packages.   I thought it might go away eventually as packages were updated, but as I said, it's been about a month now. I'm wondering if someone might have some insight on why I can't update this package (I tried googling, but my google-fu on this problem is a little weak).  I'm running Ubuntu 12.04, and this is on a server-type machine (no GUI).  I have the following PPA's on my system:             And also the . I looked through them all, and didn't see any of the packages above being provided by these PPA's, but I thought I would mention it.


"Both John and Christina takes an apple." or "Both John and Christina take an apple."?

Both John and Christina takes an apple        Both John and Christina take an apple.   Which one is correct? Why?


Easiest way to just get quotation marks to do what they should

When I write "test" in latex (TeXStudio), I get this:    Clearly this is not what quotation marks should look like. There are a lot of answers on stackexchange about this question, but the ones I've seen seem pretty complex. What is the easiest and quickest way to get them to look properly without me having to go through my entire document and change any quotation marks?   ps. Why is this the default behaviour of quotation marks in Latex? It seems to me that nobody would ever want this.


Making borders between polygons disappear in QGIS?

I want to have no borders between the polygons of a layer WITHOUT dissolving it. If I set the border color to the same as the fill colour there shouldn't be any borders visible, right? I also tried to set the border width to 0, however, the result looks like this:  you can hardly see the lines but there must be a way to get rid of them like in ArcGIS?


What is a good word to describe someone who is empathetic, quick, and witty in conversation

I’m looking for ideally a single word that describes with positive connotation a highly empathetic and witty person — the type of person who’s a fantastic conversationalist as a result of these qualities. What describes that person who can masterfully pick up on the subtle nuances of a conversation, and then respond appropriately, empathetically, quickly, and keenly?  After scraping the thesaurus around empathetic, witty, smooth, sharp, sagacious, etc I could not come up with anything that fit the association well.  Empathetic didn’t imply the good-to-talk-to, conversational properties. Witty in the context of conversation brings up thoughts of interesting facts, word puns, and trite remarks without much association with one in tune with the nuances of how the other person is thinking.  As an aside, I feel like this word would be extremely useful to me. Anyone who exemplified in the qualities that this word is trying to convey would be an interesting person to talk to.


How can I intercept XMLHttpRequests from a Greasemonkey script?

I would like to capture the contents of AJAX requests using Greasemonkey.  Does anybody know how to do this?


Finding the limit of $\sqrt{9x^2+x} -3x$ at infinity

To find the limit $$\lim_{x\to\infty} (\sqrt{9x^2+x} -3x)$$  Basically I simplified this down to  $$\lim_{x\to\infty} \frac{1}{\sqrt{9+1/x}+3x}$$  And I am unaware of what to do next. I tried to just sub in infinity and I get an answer of $0$ , since $1 / \infty = 0$. However, on symbolab, when I enter the problem it gives me an answer of $1/6$.  Can anyone please explain to me what I need to do from this point? I haven't learned l'Hopitals rule yet so please don't suggest that. Thanks


I want to do a survey of textbooks in set theory. Amazon returns 3582 books for the keywords "set theory". A small somewhat random selection with number of references in Google scholar is the following.   Two questions:    What textbooks in set-theory are considered standard?  What is a good place to aggregate standard references (of textbooks)?    (I'm only interested in text-books, which as a format already provide a kind of standardization)  Textbooks on set theory (author: title (year) #Google Scholar citations )   Thomas J. Jech: Set Theory 3rd Edition (1978) #2441  Kenneth Kunen: Set Theory (1980) #1881  P. R. Halmos: Naive Set Theory (1974) #1079 AA Fraenkel, Y Bar-Hillel, A Levy: Foundations of set theory (1973) #696 K Kuratowski, A Mostowski, M Mączyński: Set theory (1976) #609 Suppes: Axiomatic set theory  (1972) #589 Quine: Set theory and its logic (1969) #442 A Levy: Basic set theory (1979) #442 Herbert B. Enderton: Elements of Set Theory (1977) #349 Karel Hrbacek, Thomas J. Jech: Introduction to set theory (1999) #284 RR Stoll: Set theory and logic (1979) #281  N. Bourbaki: theory of sets (1970) #211 K Devlin: The joy of sets: fundamentals of contemporary set theory (1994) #182 Ciesielski: Set theory for the working mathematician (1997) #156 YN Moschovakis: Notes on set theory (1994) #138 FW Lawvere: Sets for mathematics (2003) #118 G Takeuti, WM Zaring: Introduction to axiomatic set theory (1982) #106 Kaplansky: Set Theory and Metric Spaces (2001) #103 Potter: Set Theory and Its Philosophy: A Critical Introduction (2004) #91 PT Johnstone: Notes on logic and set theory (1987) #87 Judith Roitman: Introduction to Modern Set Theory (1990) #47 Derek Goldrei: Set Theory: For Guided Independent Study (1996) #31 Basic set theory: A Shen, NK Vereshchagin (2002) #14 Ralf Schindler: Set Theory (2014) #13 Foreman, Kanamori: Handbook of Set Theory (2009) #38   Note:  Please feel free to add textbooks to the list, as long as they are not just on a smaller subset of set theory. (Some of the dates might not be the first published edition.)


Is article and auxiliary verb omission in modern English an emerging phenomenon?

I am obviously not talking about newspaper headlines etc. in this question.  I tried looking it up online but wasn't able to find much. In many instances of spoken English (and, probably, making its way into written English as well), I notice people omit articles where they grammatically shouldn't.  An example from Daredevil which I just watched and remembered I've had this question for a while: "Kid's half an idiot! – It's the other half that counts." I'm positive you know what I'm getting at here. One could say "Dude is built like a tank" when the dude in question has been addressed already (and technically should have a "the" preceding it). I have an intuition that the longer the phrase is, the less natural the omission sounds. For example, it's harder for me to imagine a phrase like "Dude flipped the table like it was made out of carton" without wanting to slap a "the" at the beginning.  I swear I've heard someone say "less you know about this, the better."  And finally, something that is probably the most widespread: dropping auxiliary verbs. It is so normal to ask a question like "sleep well?", meaning "did you sleep well?".  Yet, I cannot find any articles on this topic, and sometimes it makes me question whether I'm mishearing things. Yet, it is so widespread, there is no doubt it is a real phenomenon.  Is it a new phenomenon? Has anything like this happened before, either in English or in other languages? Are there any particular rules governing it?  Notes:   As of January 4, 2018, it is not listed as a type of grammatical ellipsis on Wikipedia (). It is not an example of . Questions like  boil down to variations of headlinese / computerspeak, which is, again, not the case.  may not be relevant here, but it would be delightful if there are parallels.


How to restore the pre-17.10 behaviour of gnome-calculator: opening multiple instances by middle-clicking in the Ubuntu dock?

In ubuntu 17.04 and earlier, a middle-click on the calculator icon in the launcher would start another instance of it, like it still does for most other programs. This does no longer work in 17.10/18.04 - how can I restore the old behavior?  (I know that I can open a terminal and type gnome-calculator but that is too cumbersome)


Linux Operating System and Version, Regardless of Distibution

I would like to know a linux command that can tell me the operating system and version regardless of what distribution I am using as it seems different distributions have a different way of doing this.  That may make such a thing tricky but then again there may be a way and perhaps the community already has this.  Previous questions on this have elicited responses such as "these users have answered that" but then didn't give a link to the answer or indeed previous question, only the users who had ansked the question which makes finding the answer somewhat of a challenge.  Other resposnes to similar questions have been specific to redhat or whatever and as such not an answer to my new question here.  Many thanks for any help provided.


I want to keep monitoring a specific job on a slurm worload like cluster. I tried to use the watch command and grep the specific id. If the job id is4138, I tried   $> watch squeue -u mnyber004 | grep 4138 $> squeue -u mnyber004 | watch grep 4138   but they doesn't work. The second command works for the first few seconds, but stop working when watch refreshes.  A better idea please?


Can you help me with this limit? What do I have to do? I'm lost.  $$\lim_{n\to\infty}n\left(\sum_{i=1}^{n}\dfrac{1}{(n+i)^2}\right)$$  The solution given is $\dfrac{1}{2}$.


I have nikon D3400 and an extra sigma lens 70-300mm DL Macro Super. They are not compatible because the lens does not have a built in af motor and d3400 also does not have af motor in it. Is there any extension or adapter that would make these 2 compatible? THANKS


On episode two of TNG and the movie First Contact Data states that in the area of sexuality he is "fully functional." Does that mean he has genitals? In episode 13 Lore said that Data was built first. When they find Lore's parts I see no sign of genitals. Did Soong not add them on Lore or does Data not have them either?


I am creating custom theme for Drupal 8. I am uploading the logo from theme setting, but I am not able to print the path of that logo. What I am doing to print the full path of logo is using {{ logo }}, but it is not working.  In Drupal 7 we can get the full path of logo with the following code.   <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" />   What is the equivalent for Drupal 8?


apt-get is stuck at "Fetched XXKb in XXsec"

I tried to install crossover and after downloading the .deb from their website, I followed the steps as indicated when opening it with Ubuntu Software Centre:     On 64-bit flavors of Debian and some Ubuntu variants, first open a   terminal and run sudo dpkg --add-architecture i386 ; sudo apt-get update   Since I have Ubuntu 16.04 LTS 64 bit I perform the command.  But when copying and pasting that command into my terminal, it stopped at Fetched 535kb in 7sec and stalled there for about 20 minutes. I ended up  closing it and tried to run both commands separately but after doing the sudo apt-get update command it also stalls again after "Fetched XXKb in XXsec."  I restarted my computer and decided to run the software updater and it stays stuck at roughly 75% for hours.


What to write in first mail to a role-model researcher for PhD position?

I have been following a researcher since last three years and have read all most all of his research papers (whichever is freely available). At the same time, I have been continuously upgrading my skills as per his research profile. I have got only one chance to prove my worth. What should I write in the e-mail, should I express my self or proceed as per normal formal applicant?


How to find the inverse metric in this case?

Caroll, while proving the Newtonian limit takes $$g_{ab} = \eta_{ab} + h_{ab}$$ He then just writes down the inverse metric to 1st order as $$g^{ab} = \eta^{ab} - h^{ab}$$ I don't see how this calculation has been done. It looks like some kind of  Binomial theorem has been used but I don't see how. Can anyone help me with the steps in between and what the inverse metric will look like to 2nd or 3rd order in $h$?


Managed package callout invoked from managed package extension causing test class failure

We have a managed package that has executes a HTTP callout from a trigger that calls a future method on the insertion of new records on a particular object.  We have a managed package extension that inserts records on the managed package object which invokes a callout through the managed package.  The problem is in test classes in the managed package extension.  The test classes are failing because it is inserting these records which cause a callout through the managed package.  Normally you would just implement Test.setMock(HttpCalloutMock.class,..) inside the Test.startTest() logic however it is not working.  From what I have read you must implement the Test.setMock method from within the managed package that is actually doing the callout.  Has anyone dealt with this before?  Is the solution as simple as building in logic in the managed package trigger to recognize that it is being executed from a managed package extension and to then invoke Test.setMock from the trigger prior to the attempted callout?  For example:  Option 1:   Managed Package Extension inserts new records  Managed Package Extension sets a global variable value inside of the Managed Package Managed Package trigger fires and looks at the global variable and implements Test.setMock since it was invoked from the managed package extension.   Option 2: Add logic in the trigger to always invoke Test.setMock when it is running in a test context (Test.isRunningTest()).  Thoughts?


Why Passing parameter to click event listener function causes a weird result?

document.querySelector('#showButton').addEventListener('click', showBtn);  function showBtn(){   let containerDivElement = document.querySelector('#button-container');    let button = document.createElement('button');      button.id = "btnId";   button.innerHTML = "Click me!";    // append elemnt to the container div    containerDivElement.appendChild(button);      document.querySelector('#btnId').addEventListener('click', createAlert('Ouch!')); }  function createAlert(message){   alert(message); } .container{   width: 75%;   margin: 0 auto;   display: flex;   flex-wrap: wrap;   justify-content: space-around; }
     <button id="showButton">Show button</button>

     I'm a junior developer who's developing a deep understanding of JavaScript, and while I was working on some demo a weird event grasped my attention.   The previous demo showcases the weird event, I used an addEventListener() to attach an event handler to the showButton element of type click which causes the showBtn() to be called that creates other button element and appends it to the container div.   Also, In the showBtn() I created other addEventListener() to attach an event handler to the second button of type click that causes createAlert() to be called and this function takes an argument (message) to show it in an alert.   The weird event is when I pass a parameter to the createAlert function using addEventListener() of the element that has been created by the showBtn(), the createAlert() click event occurs when the ShowButton is clicked.  As I found out, it's wrong to pass a parameter in this way, but this made me curious to know the reason for this wired result.


How to prove that $364 \mid n^{91} - n^7$?

I am trying to prove this statement which is equivalent to show $n^{91} = n^7 \pmod{ 364}$. By splitting modulus theorem $n^{91} = n^7 \bmod 91$ and $\bmod 4$. Then I don’t know what to do next... Can anyone help me?


If we had a radio antenna produce visible light?

If we had a radio antenna produce visible light would it degrade the quality of the antenna due  to the light production.  How fast would be the degradation?


In theory, hot questions are intended to be a buzz feed like list of "neat stuff from across the Stack Exchange network." Ok. Could we get them to age a little bit faster?  It gets rather boring seeing the same question for an extended period of time. As I'm typing this, I see on the side a box with a question that I've seen before.    This question, when going to the original site:    This is really getting old. Yes, it has 1000 views/day... but I've seen it for two weeks show up on the side. Surely across 152 sites, there has to be something that has only been around for a few days that would do better to provide a continuing interest in the other sites on the network rather than continuing the display of a post that was community protected (deleted posts? new user answers?) a week ago.    Make it something fresh to look at rather than something that makes me wonder about blocking them. (Related and apparently   ) From   I agree that two weeks was extreme for that question, but as you can see, it is no longer present. That is also a very, very rare event. Can you think of another time that has happened since we introduced the MultiCollider? I don't think we need to rearchitect the entire se.com cross-site hotness algorithm on the basis of a few hundred year floods.  Apparently, these aren't 100 year floods. They're about monthly occurrences.


how to not commence a command depending on player health?

I have a command that simply turns grass into dirt when a player stands on it.  execute @p ~ ~ ~ detect ~ ~-1 ~ grass 0 setblock ~ ~-1 ~ dirt   Is there any way to make this not happen when the player's health is full? (It may not involve any comparators, only command blocks as I am using a single command block generator, therefore it will come with a constant clock as well.)


Assume that I have some subclasses that extend a superclass. These subclasses differ by the parameters passed to the superclass. Unfortunately, like the following example, I can end up with "many" parameters. Is there a general method of avoiding this? Are constructors with "many" arguments considered good practice? Would it be better to have getter/setter methods instead of passing every parameter via constructor?  public abstract class SuperClass {     private int a;     private int b;     .     .     private int z;      public SuperClass(int a, int b, ... int z) {         this.a = a;         this.b = b;         .         .         this.z = z;     } }  public class SubClass1 extends SuperClass {      public SubClass1() {         super(4, 3, ..., 9);     } }  public class SubClass2 extends SuperClass {      public SubClass2() {         super(1, 7, ..., 2);     } }


What is the expected number of cards you should turn before finding a queen (WITH REPLACEMENT)

I see this as a geo-distribution problem but i'm very confused about it. Pls help


Techniques to deal with unobserved values in test

In my data, I have some items that a customers purchase. I need to predict the customers behavior with different items. But in the test set, there are some items that are not present in the training set, how can I deal with these?  Thank you.


pilots-made and node shown on x-axis using different column data

Here is my data using for construct plots(in a file named "00-data.txt") with the package "pgfplots".  id a b  time 1  1 1  235958 2  2 4  235959 3  3 9  000000 4  4 16 000001 5  5 25 000002   I construct my plots with the column "id" as the data of x-axis, butI want to use the column "time" as the nodes shown on x-axis, that is to say, "235958, 235959 ..." shown on x-axis, not "1, 2, 3, 4, 5". Anyone can help me with this?  My MWE:  \documentclass{article} \usepackage{pgfplots} \begin{document}  \begin{tikzpicture} \begin{axis}[ title=example, xlabel={$time$}, ylabel={$data$}, ] \addplot [blue] table {00-data.txt}; \addplot [red] table[x=id,y=b] {00-data.txt}; \end{axis} \end{tikzpicture}  \end{document}


I Can't fix the issue With my If Statement

This Piece of code is not working at all. I've tried everything I know!  public static String[] CheatCodes = {"k1lla1otch3at", "H1gh$c0re!!", "wr1t3H1gh$C0r3$"}; if (actionconsole == 5){// Cheats         String CheatSelection = JOptionPane.showInputDialog(null, "What Is You Code?"+eol+"Type It In Below"+eol+"WARNING! If You Get It Wrong Your Leader Will Lose Health!", "Cheats", JOptionPane.WARNING_MESSAGE);         System.out.println("  Cheat Selection: "+CheatSelection);          if(CheatSelection == CheatCodes[0]){             warriershealth = 2;             archershealth = 1;             leaderhealth = 2;             System.out.println("  successful!");             JOptionPane.showMessageDialog(null, "Lots Of Enemies Have Been Killed!", "Cheat Successful", JOptionPane.INFORMATION_MESSAGE);         }else{             System.out.println("  NOT Cheat 1");             if(CheatSelection == CheatCodes[1]){                 ScorePlus = 200;                 System.out.println("  successful!");                 JOptionPane.showMessageDialog(null, "Your Score Has Been Increased!", "Cheat Successful", JOptionPane.INFORMATION_MESSAGE);             }else{                 if(CheatSelection == CheatCodes[2]){                     WriteHighScore();                     System.out.println("  successful!");                     JOptionPane.showMessageDialog(null, "The High Scores Have Been Writen!", "Cheat Successful", JOptionPane.INFORMATION_MESSAGE);                 }             }         }     }   The output of this is:   Cheat Selection: k1lla1otch3at  NOT Cheat 1   Please help!


I'm using ClassicThesis v.4.1. for my Thesis. The thesis should be published in B5 size.  How do I adapt classicthesis (A4) to B5?  I have tried  \usepackage[a4paper,layout=b5paper,twoside,layouthoffset=17mm,layoutvoffset=23.5mm, showcrop]{geometry}   It gives me A4 paper with cropmargins for B5 paper. When cropped, margins are marginal and the footer and header are cropped out.   What I really would like it to be is to have B5paper with reasonable font size and reasonable margins.


I cannot start Ubuntu 13.10 on my laptop! I burned 2 cds and made a bootable pendrive but when i reboot my pc it start Windows 7, but when i try to boot Ubuntu 13.04 it starts normally.  Sorry for the grammar errors, i'm not a native speaker.  Edit: I'm using the 64bit version


Adding Basemaps from Google or Bing in QGIS

ArcGIS Desktop has the option of using basemaps from ArcGIS Online. Does QGIS have any such options?


Show that $X_{n} \to X-$a.s. when $E(\sup \xi_{n}^{+})< \infty$

Let $X_{n}, n \in \mathbb N_{0}$ be a submartingale where $\sup X_{n} < \infty$. Further, let $\xi_{n}=X_{n}-X_{n-1}$ where $E(\sup \xi_{n}^{+})< \infty$.  Show that $X_{n}-$a.s converges.   This is clearly a case for the martingale convergence theorem, i.e. I need to show that $\sup E(X_{n}^{+})< \infty$  My idea: Since $X_{n}$ is a submartingale, we know that $E(X_{n+1})\geq E(X_{n})\Rightarrow E(X_{n+1}-X_{n})\geq 0$ and from $\sup_{n}X_{n}< \infty$ we know that for an $N \in \mathbb N$ large enough: for all $n \geq N$: $\xi_{n}^{+}=0$   Hence $E(\sup \xi_{n}^{+})=E(\sup\limits_{1\leq n < N} \xi_{n}^{+})$ and   $\sup E(X_{n}-X_{n-1})\leq E(\sup \xi_{n}^{+})$  I do not know how to use these facts to show that $\sup E(X_{n}^{+})< \infty$, any ideas?


When do I need a resistor during LED flashing?

My goal is to flash a few white LED in serial using 9V battery.    Here are the .  As I saw the Forward Voltage is 3.4V, but what does it really mean?  Can't I plug this LED into more than 3.4V battery without using resistor?  Also I know that max current of this 10mm LED is 300mA.  As I know during serial connection voltage is trying to split to each LED equally. But in parallel connection voltage is the same to each LED and current is growing up!    So tell me can I flash a few 10mm white LED without using a resistor? If I can.. then tell me how many LEDs should I use? So what is a solution?


Javascript regex for email and empty string

I'm using this regex /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/ for validating email format but when I leave the the email field blank it shows an error that the format is invalid. Can somebody help me how to add a regex for empty string?


In substances where light is slowed down, is its momentum lessened and if so, how does it speed up again when emerging from that substance?

I think in some media, light can be significantly slowed down; but even if only slightly, where would the momentum go when the light slows down and where does it get the extra momentum when it leaves that medium? An example is a water.


Converted Mapinfo file (originally in Chinese) to SHP but the attributes are jumbled/wrong

I converted a set of MapInfo files to SHP using . Unfortunately, the attributes got jumbled. The original dataset was in Chinese, so that is probably contributing to the jumbling. Screenshot below shows jumbles.  I uploaded the source Mapinfo files to filebin , and I uploaded the converted SHP to filebin .  Is there anyway to recover the jumbled attributes? I have opened SHP in ArcGIS with Chinese characters in the attributes before, so it's not solely a language character rendering issue.


I want a bash command that I can pipe into that will sum a column of numbers. I just want a quick one liner that will do something essentially like this:  cat FileWithColumnOfNumbers.txt | sum


Google Sheets, formula, reference to variable sheets

Google says in their web help how to reference data from another sheet, but what happens if what I need is to make the reference depending on my fields on the current sheet?  Let's say I have a sheet named 'Sheet1' and a sheet named 'Sheet2'. And on my current sheet (results) I have a column where I'll place the name of each sheet:  On Cell A1 value is: Sheet1 On Cell A2 value is: Sheet2 and so.  I want to have Cell B1 to get some data from the sheet quoted in A1 (i.e.Sheet1): =Sheet1!$AC$1  I want to have Cell B2 to get some data from the sheet quoted in A2 (i.e.Sheet2): =Sheet2!$AC$1  ...and so on (for that, I need to copy down the formula with reference to column A content, to say, the corresponding sheet)  In summary: the formula should include reference to a VARIABLE sheet. I've tried with both =concatenate() and also with =indirect() but no success...  Is it possible?


prove that for all: $x_{1},...,x_{n} > 0$  $\lim\limits_{t \to 0} (\frac{1}{n}\sum_{k=1}^{n}x_{k}^{t})^{\frac{1}{t}} = (x_{1}\cdots x_{n})^{\frac{1}{n}} $  i tried to some how use: Inequality of arithmetic and geometric means but with no success


When does the "==" operator successfully compare strings?

I understand that the equality operator compares references to the strings. So, it will check to see if the strings refer to the same object and not if they are equal character by character.   As a first step in learning about search algorithms, I set up the following program where I have an array of names and then I check if a certain name appears in the array.  First Approach :   I declare and initialize the array of the names. And I ask the user to input a name to check if it appears in the array.   Here's the code I used -   import java.util.Scanner;  public class Strawman{      public static void main(String[] args){          System.out.println("Enter the name to search for:");          Scanner scanner = new Scanner(System.in);         String key = scanner.nextLine();          String[] names = {"alice", "bob", "carlos", "carol", "craig", "dave", "erin", "eve", "frank", "mallory", "oscar", "peggy", "trent", "walter", "wendy"};          for (int i = 0; i < names.length; i++){              if (key == names[i]) {                 System.out.println("Index " + i + " has the name " + key);             }          }     }  }   One of the runs of this program is shown in the following screenshot -    As expected, because I'm using the == operator to compare strings, this fails to find the name "oscar" in the array, even though it appeared in the initial array. This output is as expected based on my understanding of how equality operators compares references of the strings.  But, I don't understand why the program seems to work if instead of asking for user input, I declare the name to search for as a string.  Second Approach:  The name "oscar" to search for has been declared as a string instead of asking for user input -   public class Strawman2{      public static void main(String[] args){          String[] names = {"alice", "bob", "carol", "craig", "carlos", "dave", "eve", "fred", "greg", "gregory", "oscar", "peter"};         String key = "oscar";          for (int i = 0; i < names.length; i++){              if (names[i] == key){                 System.out.println("Index " + i + " has name " + key);             }          }      }  }   Now, if I run the program, the name "oscar" is found in the array -    Can someone explain the difference in the two cases?


detect new or modified files with python

I'm trying to detect when a new file is created a directory or when an existing file is modified in a directory.  I tried searching for a script that would do this (preferably in python or bash) but came up short. My environment is linux with Python 2.6


I would like to start each section on a new page. Is adding the following to my preamble this the preferred method, or a hack?  \let\stdsection\section \renewcommand\section{\newpage\stdsection}


I was checking the following number theory exercise:     Use induction to show that if $n\geq 0$ then    $5^n\equiv 1+4n\pmod{16}$   Applying the induction hypotesis I'm starting from here:  $16\mid 5^{n+1}-5-4n$  I don't know how to proceed from there or to go ahead in the exercise, any help will be really appreciated.


LAStools in QGIS error at activation: "wrong value for parameter 'OTB applications folder'..."

I have a problem with LAStools in QGIS 2.14. I've followed the LAStools instructions for downloading LAStools for QGIS. `  I replaced 'lidar' folder in C:\OSGeo4W64\apps\qgis\python\plugins\processing\algs\lidar with the folder downloaded from .  I downloaded the 'LAStools' folder and put it in the following location: 'C:\LAStools'. I activate LAStools in to Processing, and type 'C:\LAStools' for the 'LAStools folder location', but I get the following message:      "Wrong value for parameter "OTB applications folder":   Specified path does not exist:   C:/OSGEO4~1/apps\orfeotoolbox\applications"   LAStools appears in the processing toolbox. I can start to run a lasview. The data appears in 'just a little LAS and LAZ viewer', but the program hangs and then crashes.  Is this happening because of the error message? I have looked through the StackExchange for other examples of this specific problem, with no success. Any suggestions on what am I doing wrong?


Ubuntu: Write to serial port: permission denied

I've connected a USB to Serial bridge dongle, and running dmesg | grep tty outputted the following:  [    0.000000] console [tty0] enabled [603199.380677] usb 2-2: cp210x converter now attached to ttyUSB0   So now I'm trying to write to it as per  by running the following:  cat hello.txt > /dev/ttyUSB0   and   sudo cat hello.txt > /dev/ttyUSB0   But both result in the following error:  bash: /dev/ttyUSB0: Permission denied   What am I doing wrong?  Thanks


How to can I restart apache server in linux?

I got error in my laravel project 413 (Payload too large) on ajax post.  Now I edited the post_max_size & upload_max_filesize on php.ini file in my   /etc/php/7.1/cli/php.ini.  Now I want to restart apache server since I updated the php.ini file.  I have done this  /etc/init.d/apache2 restart   And still got the error.  Is there something missing? Hope anyone can help me. Thanks


Say I have a project that I've done in 30 FPS.  I now want to re render it for final use at 60 FPS to match my destination project (shot at 60fps).  My current project (at 30FPS) is 2 seconds long. Of course, if I set the project to 60, it will need double the frames. So my current 60 frame project must be "expanded" to 120 frames. If I have key frames at, let's say, 15 and 30 frames (I have more too), is there an easy way to just tell it to scale all the key frames to fit my new project length and frame rate?


general jurisdiction sessions. [5] Proponents of going   digital say that technology is the easiest way to get the   most accurate record of the proceedings, as the machine   records everything faithfully as it occurs and is not   [26] subject to human errors such as mishearing or   mistyping. [6] However, with the rise of high-quality   recording technology, reliance on court reporters 27 as a   record keeper is decreasing.   In the short excerpt above, the word following [26] will be subject or subjected. I think it should be subjected, but I am not really sure and can't convince myself why. Any help will be much appreciated.


Is there a simple way to install a list of packages in Cygwin?

Is there a simple way to install a list of packages in ?  I’ve tried the command line arguments with no success.  For example I’ve tried the following with no success in uninstalling wget.  ./setup-x86_64.exe -q -x wget


Can my cleric/warlock's deity and patron have opposing alignments?

In the campaign, I'm participating in, my character is a wizard/warlock with Vecna as his Patron, his ultimate goal being to achieve lichdom. In order to obtain more knowledge about magic in general to continue his research, I'm considering taking a dip in arcana cleric of Mystra to get some divine help and those cleric spells. The problem is that Vecna is NE and Mystra is NG, so I really don't know how they would get along. I know that they are from different worlds, but I don't know if their differences in opinions would make it difficult for my character. Would there be any chance that my character could successfully pull off having both Mystra and Vecna in his head without any controversy between the two?


Split $n$ into nontrivial factors via a nontrivial square-root of $1\!\pmod{\!n}$

Coming from an understanding of Fermat's primality test, I'm looking for a clear explanation of the Miller-Rabin primality test.  Specifically: I understand that for some reason, having non-trivial square roots of 1 mod p means that p is definitely composite; and I gather that you can find these non-trivial square roots by squaring x, but I don't really understand what these reasons are. Specific examples of non-trivial roots of a composite number would be helpful.  Cheers!


I have a very weird problem. I have a crontab which looks like this (this is the output of crontab -l:  * * * * * touch /home/<user>/Desktop/crontest.txt   A sample output of sudo grep CRON /var/log/syslog gives:  Jun 19 09:49:01 set-l-me-l16039 CRON[8399]: (u0128861) CMD (touch /home/<user>/Desktop/crontest.txt)   Yet no file is created in my Desktop! Running the command in the terminal produces the text file crontab.txt but the cron job doesn't. I'm running Ubuntu 18.04.  EDIT: I use crontab -e to edit my crontab. Also I should mention that the same happens on my other machine running Ubuntu 18.04.


"E: The list of sources could not be read." while trying to update

When I try to update, I get this:   root@deepit-R405-A-CPD6A2:/var/lib/apt# sudo apt-get update E: Type '123443215' is not known on line 61 in source list /etc/apt/sources.list E: The list of sources could not be read.   Any idea what I can do?


What happens to light at points of intersection?

Background Knowledge  Researching on light led me to wave-particle duality and its properties regarding photons. All the sources I have seen agree that the frequency of the wave nature defines how we perceive light. And the amount of photons (maybe particle nature, it's sort of unclear) defines the light's intensity or brightness. There is also little to no interactions between photons. But I've come across a conundrum of when photons interact.  Question  If I point two lasers that emits different frequencies with the same intensity at a single spot at the same time, what would be observed?  Edit: More specifically what happens to the photons when they intersect?  Constraints  When answering, keep in mind the following:   The photons are traveling in a vacuum between the source and the detector. The observation should describe the configuration of the photons, not the color representation, at the point of intersection.   (When I say the "configuration of the photons" I mean what happens to the wave and particle nature of the photons, like if interference occurs)


How to make the email app on iOS work like Gmail app?

I tried searching for Macy's e-receipt by typing in Macy receipt on my Mac using Gmail, and the result came back in 1 second. (some of those emails were 1 month old, and another one 2 months old).  But when I tried that using the email app on iPhone with iOS 6.1.4, nothing came back, and I click "Subject", and I changed the keyword to Macy's e-receipt and clicked "Continue Search on Server..." and it just kept on turning the spinning wheel for 2 minutes and nothing came back.  And then I searched for and installed the Gmail app on the iPhone, and type in Macy receipt and the result came back in 1 second.  So how do I make the email app standard on iOS work like Gmail's search?


What is this style of text-as-image called?

I'm seeing a trend (especially on pinterest) of these posters where the image and subject is the text. THe text itself isn't really that important either, it's mainly the typefaces used and composition.  Does this style have a name to it? Is it just called text-as-image?


After I murdered/robbed people, how do I get rid of the bounty?

I thought it would be nice to steal some useful stuff from people. However, the whole town got angry for me doing so. Seems someone did spot me doing so, I survived the first people by walking back out of the town and had to murder three man where I used up all my potions. When entering the town again I entered a building but the immediate moment I enter the building an angry person also enters right behind me and is much stronger than me. I don't seem welcome in this town anymore...  Here are my questions:   What should I do to survive from him and get rid of the bounty? Can I run out of the town for a long distance so I lose aggro or bounty? Or will he keep following?


What is the best way to do Subversion backups (on a Debian based server).  Is it to use svnadmin?   svnadmin dump /path/to/reponame > reponame.dump   Or maybe just to tar the dir where the repositories are?  tar -cvzf svn.backup.tar.gz /var/subversion/   What are the pros and cons of the above?  Thanks  Johan    Update:  This is a small server with only a handful of repos.  So incremental backups are probably not needed,  I think it is better to focus on keeping it simple.  Update: I used packs wrapper script (that in turn was a wrapper for svn-hot-backup) to do a full backup and then did a full recovery on another clean computer. However I removed that "SVN_HOTBACKUP_NUM_BACKUPS=10" part since it was not working for me.  Please note that I feel it was kind of simple and the result was very close to just tar the dir.  But as Manni pointed out here to use svn-hot-backup/"svnadmin hotcopy" is a more reliable method,  since tar could create corrupt backups from time to time if you are unlucky.


How to make UEFI bios start GRUB, not Windows?

The TL;DR, added in the edit:  The question is: How can I make the BIOS prefer GRUB over Windows Boot Manager on the same UEFI boot partition? The problem is not with Grub; Grub does the right thing when the BIOS starts it. The problem is not with "the disk isn't bootable," because both the Windows UEFI bootstrap and the Grub UEFI bootstrap are bootable. The problem is which UEFI bootstrap the BIOS chooses to boot from.  I'm setting up a new computer, and want it to by default boot into Ubuntu, but have the option to select Windows on boot. This is especially important if power goes out and comes back; I won't even be in the house. I started out by installing Ubuntu 17.04 on my internal NVMe disk, partitioned with GPT to use half the disk, and a separate UEFI boot partition. GRUB boots that just fine, and I see the GRUB boot menu on start-up where I can select whatever items GRUB knows about. Then I installed Windows 10 Pro from a recently downloaded ISO. It installed Windows Boot Manager onto the same UEFI partition, and left the Ubuntu intact (great!) and that boots fine into Windows 10. However, it did "something" that makes the UEFI firmware immediately select the Windows Boot Manager rather than GRUB on power-up. The only way to boot Linux now is to use the BIOS boot manager (F11 on my BIOS) and select the GRUB boot loader manually. The UEFI BIOS knows that there are multiple bootable installs on the UEFI partition, because I can choose between them in the boot manager. However, when I'm in the setup menu in the UEFI BIOS, it just lets me choose "UEFI boot my internal drive" in the boot priority selection -- it doesn't let me choose which particular boot loader on that partition to use. And, by default, it chooses Windows, not GRUB. The internets (and this site) suggests that the old way to fix this is to run update-grub (so GRUB recognizes Windows) and then grub-install (to put GRUB back on the device.) I have done this, but unfortunately, it still has the behavior as described above, where the BIOS by default chooses Windows Boot Manager. (update-grub does find the Windows Boot Manager install, and adds that to the menu, and that menu item works when I manually choose the GRUB partition in the UEFI boot manager.) What can I do to make GRUB the "default" boot on my UEFI boot partition? Using a MSI X399 Carbon motherboard. Second edit: Because the correct answer ends up being mentioned in a comment to a response, I'll repeat it here: "BCDEDIT" in an admin shell on Windows is the working solution. The others don't work.


I have bought a Macbook Pro Early 2011 17 inch (A1297) with the known AMD GPU problem. I'd like to fix that in the near future using the Demux or Tiresias solution.  Now, before doing that, I tried to bypass the AMD GPU with software, so I did this tutorial:   I've succesfully done the tutorial before on a A1286 late 2011, so I figured it would work on my 17 inch Macbook Pro early 2011 (A1297). The weird colours and stripes dissapeared... except for a vertical white bar. (as seen on the picture)   Does anyone know a solution for this? Might this be the intel GPU? Do I need to look somewhere else? I'm pretty sure it's not the display itself (as it does not have any crack or damage).  Thanks! Lorenzo


How can the size of a .blend file be reduced?

I noticed that a .blend containing a single material downloaded from  has only 63KB.   The default scene saved with compression already uses 447KB of disk space. How can files with less than 100KB be created?


I have a method:    add(int x,int y)   I also have:      int a = 5; int b = 6; string s = "add";   Is it possible to call add(a,b) using the string s?


Reviewers want me to cite their barely related papers

I recently sent a paper to a journal which has now been reviewed by 2 reviewers. Both of them have some good points that I should change. However, both reviewers also suggest to include specific papers to "enhance" my paper.  However: These papers are barely related to my paper.   In case of reviewer 1 the whole research group of the papers suggested by this reviewer is identical for each paper. In case of reviewer 2 five papers have been suggested. Even though different authors are listed two identical authors appear on each of these papers. Sometimes as a first author, sometimes not. But it seems obvious to me that one of these two authors must be reviewer 2.   I don't know how to deal with that. Should I write the editor? Should I ignore their suggestions? Should I include at least one of these references to make them happy? Their general opinion about our paper was good.


Does pi have every possible string of combinations?

I was wondering if Pi has every single possible string of combinations because of its infinite possibilities.


I would like to perform PCA on a dataset, however, not all of the data is in the same scale. Some variables are Height, Weight, Age, while others are Dribbles per Game, Shots per Game, Blocks per Game.  When I re-scale my data, can I use the standardizaiton method such that each newly transformed varaible has a mean of 0 and standard deviation of 1? So my process would be take each value, subtract the mean, divide by the standard deviation.   Also, I have read in some cases for variable like height or weight, it is better to take the log-normal transformation? Once you do that though, the scale is not helpful.  When I perfrom the PCA in R, I planned on using the covariance matrix to see how much of the data I explain with my 2 principal components.


Find out exact installation time of CentOS

I installed CentOS on my laptop about 8 month ago, and  I want to know when exactly I installed it , how can I do that in CentOS 6.4 ?


I was trying to understand qqPlot and found that for finding Normal Distribution of data , qqPlot is a good tool.  Then I ran 2 set of examples and got the following output where in both the case, all the points lies close to the identity line but both the graph gave a different look-  model2 <- lm(Withdrawal ~ Deposit   +Balance,data = cdata) #to find the normal distribution of data qqPlot(model2,id.n=3)       Here all the points are close to X-axis , so what should I derive here , is it normal distribution.  Lets consider the other example-      row.names   education   income  women   prestige    census  type 1   gov.administrators  13.11   12351   11.16   68.8    1113    prof 2   general.managers    12.26   25879   4.02    69.1    1130    prof 3   accountants 12.77   9271    15.70   63.4    1171    prof 4   purchasing.officers 11.42   8865    9.11    56.8    1175    prof 5   chemists    14.62   8403    11.68   73.5    2111    prof 6   physicists  15.64   11030   5.13    77.6    2113    prof 7   biologists  15.09   8258    25.65   72.6    2133    prof 8   architects  15.44   14163   2.69    78.1    2141    prof 9   civil.engineers 14.52   11377   1.03    73.1    2143    prof 10  mining.engineers    14.64   11023   0.94    68.8    2153    prof 11  surveyors   12.39   5902    1.91    62.0    2161    prof 12  draughtsmen 12.30   7059    7.83    60.0    2163    prof 13  computer.programers 13.83   8425    15.33   53.8    2183    prof 14  economists  14.44   8049    57.31   62.2    2311    prof   data(Prestige) model2 <- lm(prestige ~ education*type +log2(income)*type, data = Prestige) qqPlot(model2$res,id.n=3)     Here the line crosses almost 45 degree and the plotted points fall closely onto the identity line, so the data do not seem to come from the normal distribution So exactly what is the difference between these 2 plots.


Virtual Machine Manager on Ubuntu Desktop stuck at v1.5.1

Running Ubuntu 18.04.3 Desktop, Virtual Machine Manager (virt-manager) seems to be stuck at v1.5.1.  I've added the universe repo and tried the cli 'apt-get install virt-manager'  The current version is 2.2.1 (July 03 2019)


Can someone show me how to use HTML or other coding for links?

I had a perfectly reasonable request that I create a link with words instead of a 'bare link'. Another person gave me an example, but I don't understand it and should not ask that in comments. Could someone help me? I would prefer an example with step by step instructions as I am not particularly savvy.  if what I have here works, I can do this (like a stupid pet trick).  http://meta.stackexchange.com/questions/ask?newreg=48251eb69f774f069cf3f85f3dc5a7e2' target='_new'>question   Sorry but using words like Markdown only works for a person with some understanding -- this is why the question is not a duplicate for me.


Having done something,... vs Doing something,

Do these two sentences mean the same thing? If not, please elaborate.      Growing up in California, I experienced life that was different than most people in Mexico.     Having grown up in California, I experienced life different than most people in Mexico.


I am not able to make citations. I set up my .bib file, my \bibiography{path} and \bibliographystyle{plain}, I compile my file stuuf so latex bibtex latex latex and I only get [?] were the reference should be and a warning:      LaTeX Warning: Citation `blablabla' on page n undefined on input line 214.   Any ideas? My example code:   \documentclass[12pt,a4paper]{article}   \usepackage{cite}  \begin{document}  Citations are fun \cite{blumEcologyRiverAlgae1956}  \section{References}  \bibliography{path to/Mylibrary}  \bibliographystyle{plain}  \end{document}   Example from my .bib file  @article{blumEcologyRiverAlgae1956,   title = {The Ecology of River Algae},   volume = {22},   issn = {0006-8101, 1874-9372},   doi = {10.1007/BF02872474},   language = {en},   number = {5},   journal = {The Botanical Review},   author = {Blum, John L.},   month = may,   year = {1956},   pages = {291-341},   file = {path to the file} }   I also get the notification:     Process started I couldn't open file name `Mylibrary.aux' Process exited normally   when I compile my .bib file. Not sure if this is relevant because when I tried citing on a new empty document  (so not my main document) it worked once but then never again.


In the first episode of Game of Thrones, a Night's Watchman deserts his patrol after seeing his two comrades killed by White Walkers, is caught (south of the wall), and beheaded.  My question is, how did he escape to the south? I thought the only way south was through a gate that was manned by the Night's watch. But if he made it that far, then surely he had made it to safety anyway, and so could have just reported back from his patrol as he was supposed to.


Is the google cloud instance id will be reused?

Today lots of peoples/developers are using VM's in google cloud, so keeping in this mind there are lots of VM's were getting created and deleted every day.  Also, Google compute engine allocates an ID (auto-generated) to each instance in the cloud at the time of VM creation.   So, Is there any chance that this ID gets reused(repeated) considering this same ID was assigned to an instance but now that instance got deleted?  Thanks


Exponential generating function question help

I have the following formula I am looking to find an explicit formula for the coefficient $ a_n $: here $ a_0 = 1; a_1 = 2 $ for $n\geq2$  $$ a_n = n(a_{n-1} + a_{n-2}) $$   define the exponential generating function:   $$f(x) = \sum_{n\geq0}a_n\frac{x^n}{n!} $$  multiplying by $ \frac{x^n}{n!}$ and summing over the value for n we get:   $$ \sum_{n\geq2}a_n\frac{x^n}{n!} = \sum_{n\geq2}na_{n-1}\frac{x^n}{n!} + \sum_{n\geq2}na_{n-2}\frac{x^n}{n!} $$  this gives:   $$f(x) - 2x - 1 = xf(x) + x^2 \sum_{n\geq2}a_{n-2}\frac{x^{n-2}}{(n-1)!} $$   I have kind of hit a dead end here, how do I make the last term on the RHS to make sense? Any help would be appreciated.


I was playing the main questline for Skyrim until I encounter my first dragon. When I killed it, nothing happened. I didn't absorb his soul.  I thought it was some sort of bug so I posted about it on another website. They say I should try completing the Dragonborn DLC and see if that helps (I have Skyrim Legendary Editon).   I'm now up to the last do the Dragonborn mission. In this mission you have to kill Miraak. And I kill the first dragon that's supposed to heal Mirrak but all he does is stand there. I'm certain this has to do with the fact that I cant absorb dragon souls. (Note: I used console commands to unlock the Bend Will shouts because I cant absorb dragon souls).   As I said I have Skyrim Legendary Edition.


If $p,q$ are primes $(pq,a)=1$ and $p-1|q-1$ then prove $a^{q-1}\equiv 1\pmod{pq}$

$p,q$  primes, $(pq,a)=1$ and $p-1|q-1$ then prove $a^{q-1}\equiv 1\pmod{pq}$   Got this in an exam today and had no idea how to do it.


How do I prevent "Read more: www.site.com" from being injected with non-Tynt JavaScript into copy-paste actions?

There are many sites that insert something like "Read more: www.site.com" into your clipboard when you copy text in your browser.  I find this abominable.  A google search reveals   to stop this if the website happens to be using the service  (by just blocking the Tynt domain), but many websites use home-grown JavaScript.  Is there a general way to block this behavior besides just turning off JavaScript?   I use Chrome but I am interested in all solutions.  EDIT: To be clear, I want to be able to keep the rest of the JavaScript functionality for these websites, since many will break without it.  EDIT #2: Here are two example websites which continue to harass me despite my use of a Tynt blocker:  |   Here are two   and two   which explain ways to implement this shady practice manually without Tynt.  Here is a  describing how hard this turns out to be to block reliably.  Here is the  I could find (March 2013) which offers suggestions on how to block this in Chrome using AdBlock, but it didn't work for me.


Explain in simplest way(maybe some illustrations) why should/shouldn't I use friend function?

I still don't quite understand the concept of OOP in C++.   Is using friend function a bad practice? Does it reduce encapsulation? Why should I use friend function instead of changing my private members to public members? I found that friend function can reduce a lot of codes(eg. setter/getter methods). When should we use friend functions but not other approach?  Thank you.


Any way to view currently active trades with other civilizations?

I don't mean trade routes, but civ to civ trades with things like luxuries and gold. The only thing I can find is that you can get a little bit of info by hovering over your gold and see what is coming from trade deals that way - but I see no way of finding out what trade deals you have going on with other things like open borders, luxuries, etc. Is there no way of keeping track of that stuff?  This would really help to determine what luxuries you could trade for in order to increase amenities since having duplicates does nothing.


Unity will not load and cannot open terminal

I'm lost as to how I can support a seemingly legacy bug with Ubuntu.  I'll admit that I'm still rather new to Ubuntu but I'm running 14.04 and after logging into my username I'm presented with a blank desktop.    Issue is that when trying to enter TTY I just get a black screen.  I have no way to get to a terminal to do some of the fixes I've found on the forums.  Is there a way I can just boot into terminal?  I've tried pressing shift while booting after BIOS but it still just boots into the OS.  What's weird is that at the login screen, Unity is running but after logging in, it crashes.


Oversized \underbrace's label causes unwanted spacing

Consider this:  \left( x-1 \right) \underbrace{ \left( ? \right) }_{ \text{what is this?} }   The label is longer than the braced portion, which causes unwanted space between the parentheses.  Is there a way around that, so that the parentheses "touch" as they would normally?  Please note that I just started on LaTeX, and I'm using TexMaths inside LibreOffice Writer.


Tried to create properties file and retrieving information from it , but am getting an  java.lang.NullPointerException ,also tried try and catch , as am very new to coding, can anyone please let me know why am getting null pointer Exception.  package ObjectRepository; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.util.Properties; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.testng.annotations.Test; import org.testng.annotations.BeforeTest; import org.testng.annotations.AfterTest;  public class PropertiesGuru99Bank {     WebDriver driver;       @Test   public void f()  {       File file=new File("E:\\selenium\\Rahul\\Project\\src\\ObjectRepository\\object.properties");       FileInputStream f=null;        try {           f=new FileInputStream(file);     } catch (Exception e) {         // TODO: handle exception         System.out.println(e.getStackTrace());     }       Properties prop=new Properties();         try {              prop.load(f);         } catch (Exception e) {             // TODO: handle exception             System.out.println(e.getStackTrace());         }      driver.get(prop.getProperty("url"));       driver.findElement(By.id(prop.getProperty("id"))).sendKeys("rahul");   }   @BeforeTest   public void beforeTest() {     System.setProperty("webdriver.chrome.driver", "E:\\selenium\\lib\\chromedriver_win32\\chromedriver.exe");     new ChromeDriver();      }   @AfterTest   public void afterTest() {   } }


How to find out the package download count from a PPA?

I'd like to know how many downloads of a given package in a PPA there have been since it was first published.  I remember there was  about it about getting these metrics on the web UI, but as far as I know, it never got implemented.  But I think the number of downloads can nevertheless be obtained via the  if I'm the owner of that PPA. Any pointers?


I'm using locate(1) from GNU findutils for a little task and it seems as if it buffers its output.  I am piping the output of locate to another task that will process the lines as locate finds them.  Since locate might take a long time to run, I thought that locate would print out the files as they were found, but it seems that locate is buffering the output.  If I run locate on a TTY, it prints out the first match immediately, and uses maybe 10 seconds to find the rest of the matches.  If, instead I run locate but pipe to cat, I see nothing until the entire command completes.  It seems that locate buffers the output, and has no way of turning it off.  What I want to achieve is to locate some files, and run a command immediately after finding it by piping the output.  locate something | xargs -n 1 do_something   But what happens is that xargs and hence do_something aren't invoked until find completes.


Behavior of $\|f\|_p$ when $p$ is near the endpoint of $I$

Given measure space $(X, \mu)$ and measurable function $f$. If $p \in (0, +\infty]$, below are the facts I know about $\Vert f \Vert_p$:  (log convex in $\frac 1 p$) $\forall p_1, p_2\in (0, +\infty] \text{ such that } p_1 < p_2. \forall t \in(0, 1), \text{ let } \frac 1 p = \frac t {p_1} + \frac {1-t} {p_2}$, then $\Vert f \Vert_p \le \Vert f \Vert_{p_1}^t\Vert f \Vert_{p_2}^{1-t}$ ($0\cdot(+\infty)$ is defined to be $0$). (lower semi-continuity) $\forall p_0 \in (0, +\infty], \liminf_{p\to p_0}\Vert f\Vert_p \ge \Vert f \Vert_{p_0}$. If $0<\mu(X) < +\infty$, then $ \Vert f \Vert_p/\mu(X)^{\frac 1 p}$ is monotone increasing in $p$, combine it with (2) we get $\lim_{p\to p_0-}\Vert f\Vert_p = \Vert f \Vert_{p_0}$.  From (1) we know the set of $p$ such that $\Vert f \Vert_p < +\infty$ is an interval $I$ (possibly empty or a singleton).  If $I \not\in a = \inf I$ and $a \neq 0$, from (2) we know $\lim_{p\to a+} \Vert f \Vert_p = +\infty$. If $I \not\in b = \sup I$, then $\lim_{p\to b-} \Vert f \Vert_p = +\infty$.  From (1) and the dominated convergence theorem we know that if $I \ni p_0 \neq \inf I$ and $p_0 < +\infty$, then $\lim_{p\to p_0+} \Vert f \Vert_p = \Vert f \Vert_{p_0}$. If $I \ni p_0 \neq \sup I$, then $\lim_{p\to p_0-} \Vert f \Vert_p = \Vert f \Vert_{p_0}$.  If $I$ is nondegenerate and $+\infty \in I$, then $\lim_{p\to +\infty}\|f\|_p = \|f\|_{\infty}$.  If $\inf I = 0$, from (1) we know $\lim_{p\to 0+}\|f\|_p$ exists.   Question: How $\Vert f \Vert_p$ behaves when $p$ is the endpoint of $I$? To be more precise, assume $I$ is nonempty. Let $p_0 = \sup I$ (only right endpoint is considered for simplicity):  $p_0\in I$ or $p_0 \not\in I$? Can $I$ be a singleton? What if $p_0 = +\infty$? What if $0<\mu(X) < +\infty$?  Please also notify me if there is any mistake above.


Google Search Console - Use Only Preferred Site Url or Add All Variants?

I was having a discussion with someone about what sites we should add to google search console. I argued that we would only need our canonical site i.e.   https://www.example.com   Where as he argued that we should have all variants:   http://example.com https://example.com  http://www.example.com https://www.example.com   Annoyingly, he couldn't provide any reasons as to why we should add them all ' it's just something you do' he said. I'd be grateful if someone could shed some light on why you would want all the sites listed?   Note: We do server 301 redirects from the three non-canonical sites to the canonical one, so there is actually no way anyone could get to any URL other than https://www.example.com


all my website links is lables as Indexed, not submitted in sitemap in google search console

I have a weird problem with my WordPress website and I am using Yoast plugin with my SEO .. after submitting my sitemap inside my google search console and the status of the sitemap is Success .. I tried to test my links by URL inspection and no matter which link I test form the links inside my sitemap the result of Coverage is Indexed, not submitted in sitemap it means that google search console can't find my link inside the sitemap but iam sure that all my links are inside the sitemap even when i try to test my home page it gives the same result Indexed, not submitted in sitemap can anyone help me fix this problem my ranking is going down every day


How can I define a mathematical function as a LaTeX macro?

I am attempting to create a usable function within LaTeX such that its inputs are transformed mathematically. However, I cannot find any documentation that can perform such mathematical function definition.  Here is an example of what I am seeking:  Having defined a function entitled \myMathFunction which accepts only one parameter, the follow usage:  \myMathFunction{2}   should output 6 if the function is defined as follows: ({#1} * 5) - {#1}^2  Where {#1} is the parameter, and in the case of my example, is equal to 2.  Additionally, the function should be usable within a PSTricks plot. E.g.  \psplot[     algebraic,     linecolor   = red,     linewidth   = 1pt ]{0}{TwoPi} {\myMathFunction{x}}


I want to have an area that when my sister and my dad join, they spawn on that exact spot. Are there any commands that allow me to do that?


How to set proxy server to work from the command line

I have set up my proxy server so that it works through the browser ( in firefox: edit > preferences > advanced < network < settings ).  I also got it working from the command line ( in system settings: network < network proxy ) which has been working fine for the last few weeks.  Suddenly connecting to the internet through the command line has stopped working but connecting through the browser still works fine.  Does anyone know why this could happen and how to fix it? Surely if I can access the internet through the browser, why can't I from the command line?   Many thanks.


Can you be tripped by an AoO while standing up?

Let's say "John" is a fighter who has selected a number of feats to focus on tripping his enemies, including , and , and wielding a Reach Weapon while under the effect of a potion of Enlarge Person.  Greg is approaching John, and moving from 20ft to 15ft, is tripped by John's AoO, then hammered by Greater Trip.  Greg takes a move action to stand, granting John a second AoO.  Can John use this AoO to trip Greg again, thus keeping him prone?  (Using Greater Trip to provoke an AoO to prevent Heat Death of the Universe. Boredom may still be an unfortunate side effect)


I have tried this to remove anything from  to  tags.      $contents = "<object>     fdsfdsfds</object>";       $contents = preg_replace('#(<object[^>]*>)(.*?)(</object>)#xium', '', $contents);   But it does not work.  Any suggestion? Thanks in advance.


Data is showing MvcMiniProfiler results. Is that expected?

Not sure if this is actually desired, but  is currently showing me (a SE non-dev)  results, including all queries that are being run against the DB (not talking about data-explorer queries of course, talking about site rendering queries).    New feature of  or a deployment whoops?  Edit:  I didn't realize that data was .  With that in mind, this probably isn't a security problem after all, and is in fact more likely .


Geometry using Complex Numbers/Roots of Unity

I have no idea how to solve this problem, but I'm pretty sure that it could be made easier by using Roots of Unity! Help would be appreciated!   Let $A_1 A_2 \dotsb A_{11}$ be a regular 11-gon inscribed in a circle of radius 2. Let $P$ be a point, such that the distance from $P$ to the center of the circle is 3. Find $PA_1^2 + PA_2^2 + \dots + PA_{11}^2$.


Why use sucrose rather than glucose in an injectable vaccine?

These are the ingredients of :  Medicinal:  mRNA  Non-medicinal:  ALC-0315 = ((4-hydroxybutyl)azanediyl)bis(hexane-6,1-diyl)bis(2-hexyldecanoate) ALC-0159 = 2-[(polyethylene glycol)-2000]-N,N-ditetradecylacetamide 1,2-Distearoyl-sn-glycero-3-phosphocholine cholesterol dibasic sodium phosphate dihydrate monobasic potassium phosphate potassium chloride sodium chloride sucrose water for injection   Sucrose is broken up into glucose and fructose by digestion, and so it normally never enters the blood system. Yet here, it is being directly injected into the body. What happens to this sucrose when it enters the blood system, and why choose sucrose rather than the more standard glucose (dextrose)?


Justifying applying for US visa in a third country

I am currently a citizen of Russian Federation, but will be applying for a US B-type visa in Germany, because I need to attend a conference in the US in two months and visa waiting time in Russia is 300 days.  Do I need to justify the reason for applying in Germany while taking the interview? If yes, would the explanation above be enough?


show $\lim_{n\to \infty } (1+\frac{1}{n})^n =e$

This is an example in Applied Anlysis book that $$ \lim_ {n\to \infty} \left (1+\frac{1}{n} \right )^n=e. $$ The author just says it is an example of convergent sequence.   I'm wondering what technique is needed to prove it using $\epsilon$-$N$ definition.


The Bee Guy says he'll give me an even bigger reward for a Golden Bee. Is there a specific place these bees appear or a certain thing I need to do? Is the reward more rupees or an item?


Spotlight / Finder - search words within files and preview occurrence

When searching for specific words inside documents, upon getting the results, is there a way to then preview in the document where that word occurs without having to first open the document and perform the search again within the application?  Ideally, I'd like to hit spacebar and have the preview jump to that section of the document of the first occurrence of the word.  Would also consider 3rd party search tools if that provided the functionality.


I'm using Ubuntu 11.10 on Dell Inspiron N5110. As the touch pad is a bit large in this model it’s frequently getting in my way while typing. Although I try my best to not touch it, the cursor still  gets moved and ruins what I am typing.  I remember an option in the "Mouse and Touchpad" utility which let us lock the touchpad while we are typing but I couldn't find that option in this utility now.  Any clue?


Is there any tool in Ubuntu to create a bootable USB stick of an OS other than Ubuntu? Like Universal USB Installer in Windows.


Can an old question ever resurge as a 'Hot Network Question'?

By 'old', I mean questions older than 6 months.   If so, does anyone know the correlation between age of the question and Resurging?


how to describe a person capable of reading and writing in more than one language

what would describe the person who able to read and write in more than one language. Is there any other descriptive word than "Bilingual"?


SSH Connection refused after running pkill

I have a Linux VPS and I just ran pkill to kill a user because I was not able to do usermod. But after I did that I wasn't able to login anymore on that user, so I googled a bit and saw some posts what said you just have to reboot. Thats what I did but I am still not able to connect, so I went over to my host and decided to restart the server, that didn't work either... I am able to connect via recovery mode but I just don't really know how to fix this.  Can someone help me out?


Writing to a TextBox from another thread?

I cannot figure out how to make a C# Windows Form application write to a textbox from a thread.  For example in the Program.cs we have the standard main() that draws the form:  static void Main() {     Application.EnableVisualStyles();     Application.SetCompatibleTextRenderingDefault(false);     Application.Run(new Form1()); }   Then we have in the Form1.cs:  public Form1() {     InitializeComponent();      new Thread(SampleFunction).Start(); }  public static void SampleFunction() {     while(true)         WindowsFormsApplication1.Form1.ActiveForm.Text += "hi. "; }   Am I going about this completely wrong?  UPDATE  Here is the working code sample provided from bendewey:  public partial class Form1 : Form {     public Form1()     {         InitializeComponent();         new Thread(SampleFunction).Start();     }      public void AppendTextBox(string value)     {         if (InvokeRequired)         {             this.Invoke(new Action<string>(AppendTextBox), new object[] {value});             return;         }         textBox1.Text += value;     }      void SampleFunction()     {         // Gets executed on a seperate thread and          // doesn't block the UI while sleeping         for(int i = 0; i<5; i++)         {             AppendTextBox("hi.  ");             Thread.Sleep(1000);         }     } }


As much as I have tried, it doesn't seem possible to use separate labels when using a casesconstruction (from the amsmath package).  Ideally, I would like to be able to write something like  \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} f(x)=\begin{cases}   1&x\geq0\label{positive}\\   0&x<0\label{negative} \end{cases} \end{equation} \end{document}   and later refer to both cases at different places. What would be the best way to achieve this result?


Equality in Cauchy-Schwarz Inequality implies linear dependence.

I need some help to show that:  If  $| \langle u,v \rangle | = \|u\| \|v\|$ then $u=\lambda v$ for some scalar $\lambda$.  We have to consider this over an arbitrary field $\mathbb{F}$.  I appreciate your suggestions.  Thanks.


how to unzip/uncompress segmented zip files?

I downloaded a document, which is compressed as zip file and segmented,  their names are :  document.z01 document.z02 document.zip  I'm at a loss on how to unzip them.


Uncertainty of the translational effect of a force that does not pass through the center of mass of an object

I am a new learner of Physics, and I am just wondering is the translational effect of a force that does not pass through the center of mass of an object as big as the translational effect of another force of the same magnitude that does pass through the center of mass of the same object. Considering the following situation.  Thanks for reviewing the question.


Setting Blend Width on Mosaic Dataset using ArcMap

I've made a mosaic dataset of some thermal imagery. There are three overlapping images, seen here:  As you can see, there is a discontinuity (jagged edge) between the two images on the right, and a slight offset in the southern fenceline. I want to tackle this using the  function in ArcMap 10 to "average out" these small differences and create a seamless mosaic. The  tells me there should be a Blend Width option to control the area over which the rasters are blended... However, this is all I see:  How do I do this? I've looked in all the other tabs/online and can't find anywhere to define the blend with. I feel like I must be missing something obvious... I am using ArcMap 10.0 with an ArcInfo license on Windows 7.


I'm trying to write up a table but I'm missing the vertical rows in the last few columns. Anyone have any clues as to how to fix this?   This is my code.   However, it produces this output. How do I resolve the issue?


Using ed put character # to the beginning of lines 10 to 20 in file /etc/passwd. Solution is the following  ed /etc/passwd <<\END 10,20s/^/#/ %p Q END   my question is that what does << means here and \ before END and why we use it. Do we have to use it all the time or not?


Allow suggested edits on site metas and show them in the main site queue

Suggested edits are disabled on per-site metas, which means that only users with full edit privileges (>2k rep on graduated sites or >1000 rep on public betas) can edit posts on a site meta. This has been declared  by Jeff Atwood a while ago, .  But as already mentioned in comments there, the ideal solution would be to just add the suggested edits on the meta to the queue on the main site. That way there would be no additional queue, and the meta sites would be editable by anyone like all the main sites.  The whole SE network trains its users to expect being able to edit any post, disabling that functionality silently on the meta sites breaks the user expectations and only leads to confusion. It also drastically reduces the number of users able to edit on site metas for many sites.  I don't know if there are any technical aspects that make this solution difficult to implement, but from an external perspective just adding the suggested edits to the main queue seems like a good solution to this problem.


How is pressure an intensive coordinate?

Most textbooks explain intensive coordinates by asking us to consider a system and divide it into two parts. The properties which remain the same will be called intensive and the properties that change are called extensive. In other words intensive variables are independent of mass (so what is written in my textbook: "The intensive coordinates of a system, such as temperature and pressure, are independent of mass and the extensive properties are proportional to mass). Now say I have a system of gas of mass m and I introduce more mass m keeping the system's volume constant. Have I not increased the pressure and maybe temperature of the system too in doing so?


Can I install Ubuntu 14.04 having these   Memory       1GB Processor    AMD sempron Processor 3000+ Graphics     Gallium 0.4 on NV4C OS Type      32 bit  HDD          500GB


Please have patience and if you answer please explain like you would explain a moron. This is my setup. I have 2 routers:  Router 1 is  and connected with a  and  from .  Router 2 is connected to Router 1 with  and a  webserver, as well as another DNS from NoIP.   When I connect wirelessly to Router 1 or 2, I can access http://my address.com from Raspberry Pi webserver (Router 2) without any problems. But when I connect over the web (like 4G), the connection is refused. The Raspberry Pi also has a Dynamic DNS from NoIP.  is activated for NUC server on Router 1. If I stop DMZ on Router 1, I can no longer access the NUC webserver, which is connected to Router 1. Now, my question is, why I can't access my Raspberry Pi webserver over the internet? I would also like to take this opportunity to thank you very much for your help.


Calculate $\int_0^1\frac{x^9-1}{\log x}{\rm d}x$ using Beta and Gamma function

I used Wolfram to find the answer which is $\log(10)$ but can't solve no matter how hard I try.  $$\int_0^1\frac{x^9-1}{\log x}{\rm d}x$$


Looking for a time travel TV series with champagne that apparently bubbled down

I am looking for a TV series I saw around 2000-2005.    I believe it was about a secret organisation sending people in the past to prevent a disaster. I remember at the end of the episode, they were celebrating another successful mission - that person 5th or 10th - which was rare because all the other people sent before became insane after only 2 or 3 missions.    I do remember it because the main character was looking at a champagne glass, but the bubbles were going down, implying that mental health was degrading.


Find the hostname or IP of a remote ssh session in Solaris

If I am logged into a Solaris server from my Windows laptop via putty using ssh, how, on the server, can I determine my Windows laptop IP or hostname?


Automatic Login to Desktop with Xubuntu Vivid 15.04?

When I boot up the computer, I'd like it to boot right to the Xubuntu desktop, rather than prompting me to login with lightdm. I'm aware that I can set up lightdm to not ask me for a password, but it still requires me to click the login button to get to the desktop. Is it possible to just skip lightdm entirely and go right to the desktop?  Thanks!


How many "constants of integration" will a PDE have?

For smooth cases, we expect the solution of an $n$th-order ODE to have $n$ constants of integration.   Is there a name to the theorem which more precisely makes this claim? Is there an analogous theorem for PDEs?  That is, do we expect $n$ "integration functions" for an $n$th-order PDE?


How do i convert this string into an array?

I need to convert this string into a an array into the format shown below.  itemString   [{"_id":"1e12345","a":"abc","b":def","c":ghi"},{"_id":"1e678910","a":"xzx","b":sed","c":ert"}]  var item=itemString.split("},{").map(function(i){     return i }) console.log(item)    what i need to get from  from console.log(item)  0:{_id:"1e12345",a:"abc",b:"def",c:"ghi"} 1:{_id:"1e678910",a:"xzx",b:"sed",c:"ert"}   what i get from console.log(item)  0:"[{"_id":"1e12345","a":"abc","b":"def","c":"ghi"" 1:""_id":"1e678910","a":"xzx","b":"sed","c":"ert"}]"


Nested python lists imported from Matlab

I am importing a large struct from Matlab to Python using the scipy.io. The data seems to be imported OK, but it is full of nested lists, which I am not able to simplify. Here's one of the simplest examples:  sc = sio.loadmat(matlabFile) sc['DieID']['w']   which results in the following output:  array([[array([[ 1309.09090909]]), array([[ 1309.09090909]]),     array([[1000]], dtype=uint16)]], dtype=object)   Could you please suggest how do I reduce this particular field to a simple list [1309.09090909, 1309.09090909, 1000]?  Thank you for your help!


how to sort select option in lexical order

i have a select option   <select> <option>aaa</option> <option>ccc</option> <option>ddd</option> <option>bbb</option> </select>   How to sort them.  so output will  aaa bbb ccc ddd   this question is asked to me in an interview answer if any Know Thanks In advance


What did Voldemort do during Harry's sixth year?

We have no mention of Voldemort in Harry's sixth year. So, I was wondering- what could Voldemort have been doing?


Why do single-author math papers use "we" instead of "I"?

Even when math papers are authored by one person, you will see stuff like "We now prove so and so" or "In the following section, we show that...".   How come papers with one author use "we" instead of "I"?


How can I play the same world between PS4 and Mobile?

I have Minecraft on my PS4 and mobile device. Is there a way for me to share the world that is on my PS4 account to my mobile so I can play while I’m out and about?


Please help identify this 2-part TV movie: Alien woman crash-lands on earth, falls in love, 199x

In 1991 or 1992 I saw a two-part (probably made for) TV US movie. It is about an alien starship crash landing on planet Earth (in the USA). An attractive 100% human-looking woman (I believe the only survivor) interacts with our male lead so that they can solve a problem at hand (like communicating with other aliens, or recovering the ship, or working against an alien threat, something like that). She is telepathic and lost her spouse in the space ship wreck (or maybe she just can't ever get back to him because of the broken-down ship?). I remember her flashbacks where she is intimate with her spouse by the touching of hands.  During their time together on earth they fall in love and I believe she stays in the end.  I know this is not much but there aren't that many two-part sci-fi TV movies so someone may remember?


I recently uninstalled a managed package that had a lot of custom code built on top of it.  Some of the custom work is triggers. These triggers never had complete coverage as far as I know. Furthermore, the test classes for them were contained in a generic test class file that I deleted along with the managed package.  So effectively at the same time, I was able to make these triggers inactive and delete the managed package. I'm now left in a position where the Inactive triggers are still showing in the Production org and counting against code coverage but I cannot see them anywhere other than in the Dev Console code coverage list results. They are also written around now non-existent sObjects so I'm not even sure I could write and deploy a test class to cover them.  I need to delete these triggers out but I have no way of accessing them. If I download a full copy of the Prod org in an IDE these triggers are not included.  Has anyone had an experience like this where a trigger is included in code coverage but cannot be accessed in the web browser or through an IDE?


Orthonormal basis for $\mathcal{L}^2([0,1])$

$\textbf{Theorem:}$ The orthonormal family $\{e_n(x):\, n\in\mathbb{N}\}$, where $e_n(x)=e^{2\pi inx}$, is a basis for $\mathcal{L}^2([0,1])$.  In this case, $\{e_n(x):\, n\in\mathbb{N}\}$ being a basis would mean that any $f\in\mathcal{L}^2([0,1])$ can be written in the form  $$f=\sum^\infty_{k=0} \hat{f}(k)e_k(x)$$  where $$\hat{f}(k)=\langle f,e_k\rangle =\int_{[0,1]} f(x)\overline{e_k(x)} \ \text{d}x$$  I am attempting to get a solution in which we can say  $$\left\vert\left\vert f-\sum^k_{k=0}\hat{f}(k)e_k(x)\right\vert\right\vert\rightarrow 0 \ \ \text{as} \ \ n\rightarrow \infty$$  via Parsevals and Plancheral Identities, but I have been unable to do so.  Any hints please?


I'm doing a hard drive upgrade and it might ask me for the product key again.  How can I find it?


I have the following ODE:  $$\frac{d y}{d x}=y^2-(A \csc^2 x+B^2 \sin^2 x-C)$$  where $A,B,C$ are constants.  Can one come up with an appropriate integrating factor to make it exact?


Questions with declarative forms have the same meaning as their interrogative counterparts or not?

“So you can do what with it?”   ( by Sarah Blake, p.118)      And the focus of your research right now, Charles, is what?    (, Mon, 28 Apr 14, 14'18")   Can above questions, not having subject-auxiliary inversion, be used as the same meaning as their normal syntactic forms: “So what can you do with it?”, “And what is the focus of your research right now, Charles?”   I find no differences between the two forms above, yet I’ve only read in  that those types have some epistemic bias towards a positive or negative answer. Or they are used when what you heard is not clear or surprising (p,881;p.886). The questions above are or can be just simple, unbiased, questions or not?


Failed to start wordpress-5-vm: Operation type [start] failed with message "The zone 'projects/X-wordpress/zones/us-east1-d' does not have enough resources available to fulfill the request. Try a different zone, or try again later." Can somebody help with this issue, I have tried all the things nothing is working.


Equality of two chords formed by intersections of circle with tangent lines to another circle

We have two circle C(O,OC) and C(Q,QA). We know that AO and BO are tangent for C(Q,QA) and QC and QD are tangent for C(O,OC). We want to prove that LJ = KT.         Is it possible to help me?


Which has a higher order of growth, n! or n^n?

In our algorithms class, my professor insists that n! has a higher order of growth than n^n. This doesn't make sense to me, when I work through what each expression means.   n! = n * (n-1) * (n-2) * ... * 2 * 1 n^n = n * n * n * n * ... * n * n   Since n is, by definition, greater than n -1 or n-2, shouldn't any n^n, which is the product of n number of n's, be greater than n!, which is the product of an n number of integers less than n?


Out-of-control starship results in some crew members landing in a rebirthed universe?

I think this was a classic "golden oldie" hard sci-fi novel or novella published at least several decades ago.   I recollect:   An accident or crew mutiny causes the ship's ramjet or similar engine to not "turn off" or something. So the ships continues accelerating towards c. As the outside universe "speeds up" they steer the ship to edge of galaxies and/or the universe itself to lower the gas density to something that their ramjet and (energy?) shielding can handle. The universe experiences a big crunch, but apparently their ship is outside the area of effect and spirals both the contraction and then the new big bang; slowing down in some fashion (new physics? crew fixed the ramjet? temporary deceleration?) in the new universe enough for a couple of the remaining crew to escape pod from the ship to a conveniently habitable planet.   But I don't recall the name of the book.


Show the following points are independent on elliptic curve $y^2=x^3-82x$ using Sage.

How to show that the following points are independent on elliptic curve $y^2=x^3-82x$ using Sage or any other software.   There is some determinant of certain matrix which I need to compute constructed from Néron-Tate height pairing. If this determinant is non-zero, then the points are independent.  How to write a code to find this determinant? Three points on above curve are:  $[(-8,12),(-1,9),(49/4,231/8)]$


I am writing a module that allows users to put comment on each paragraph. So in my module I have added a new field to comment table called "paragraph_id" and I have also added a new field to comment form that say:   Which paragraph do you want to put comment on?   After each paragraph I have added a link saying:    Put comment on paragraph 1 (2,3, ...., the number changed based on the number of the paragraph.   in order to this, I have written the following in node.tpl.php:          for ($i=1;$i<$number;$i++) {          print render($paragraphs[$i]);        ?>        Put comment for Paragraph <?php echo $i?>
       <?php   I want to do one the following options:  1) Eliminate the new field which asks for the number of the paragraph from comment form, and do something that when a user for example clicks on a link like:     Put comment on paragraph 1   , the number "1" automatically got save in comment table in "paragraph_id" field.  2) Or  keep the field that asks for paragraph number in comment form and when user clicks on a link like    Put Comment on Paragraph 1   while he is getting directed to the comment form, the value of that field (paragraph_number in comment form) sets to 1.  How can I do it?


How do we prove the union bound inequality (Boole's inequality) for infinite sets?

I am aware that Boole's inequality can be proved by induction. How do we extend these results to an infinite set? (since induction cannot be applied in this case)  P($\bigcup\limits_{i=1}^{\infty} A_i$) $\leq$ $\sum \limits_{i=1}^{\infty} P(A_i)$


Are =, , ==, !=, &&, and || used for arithmetic expressions or conditional expressions?

In bash manual, Section 6.5 Shell Arithmetic says  <= >= < > comparison == != equality and inequality   && logical AND || logical OR   Their meanings seem to imply they are used for conditional expressions. But they appear in the section for arithmetic expressions.   So can they be used in conditional expressions?  In Section 6.4, we already have operators for conditional expressions, which are similar to <=,>=,<,>,==,!= for arithmetic expressions:     arg1 OP arg2      OP is one of ‘-eq’, ‘-ne’, ‘-lt’, ‘-le’, ‘-gt’, or ‘-ge’. These   arithmetic binary operators return true if arg1 is equal to, not equal   to, less than, less than or equal to, greater than, or greater than or   equal to arg2, respectively. Arg1 and arg2 may be positive or negative   integers.   We also already have operators for  conditional expressions, which are similar to && and || for arithmetic expressions:   -a and -o for test i.e. [...] && and || for [[...]].   Since we have the operators introduced for conditional expressions, why do we need those similar operators introduced for arithmetic expressions? Can they be used in test commands?  We know that if is followed by a test command     The syntax of the if command is:  if test-commands; then consequent-commands; [elif more-test-commands; then more-consequents;] [else alternate-consequents;] fi    [...] and [[...]] both take conditional expressions within and create test commands. Can they take arithmetic expressions?  What makes me even confused is when [...] and [[...]] with arithmetic expressions in them are used as test command, [...] behaves incorrectly, while [[...]] correctly:  $ if [ 1 > 2 ]; then echo h; else echo b; fi h $ if [ 1 < 2 ]; then echo h; else echo b; fi h $ if [[ 1 < 2 ]]; then echo h; else echo b; fi h $ if [[ 1 > 2 ]]; then echo h; else echo b; fi b