Accessing Javascript created span element that doesn't appear in HTML source code

I'm trying to access a series of span tags that begin with a certain string MTG_INSTR, but these span tags don't appear in the static HTML file that the website has when I view it on (rightclick -> view page source), but it does appear when I view it under (rightclick -> inspect -> elements), this is in chrome. I looked at the static HTML code and it has

   then when I view the page by inspect -> elements they insert a #document tag in between these two last tags in the original static HTML         #document         <!DOCTYPE html>                .....................................................................        .....................................................................        .....................................................................        href="javascript:DoBack('win0')" style="visibility:hidden" aria-        hidden="true">

   I deleted a lot of the code as it included many tables/table entries, eventually leading down to the desired span element that includes a teacher's name that I want to extract. There are a number of these teacher span tags that I want to grab and they follow this format
EXAMPLE NAME
   I was told I could use jQuery since it works with current DOM objects but it doesn't currently work with this line   $("span[id^=MTG_INSTR]").text('text');


If a creature had resistance to spells, and then cast fire resistance on it, would it take only 1/4 damage from all fire spells?


How to substantiate the claim that something is not known?

I am writing a master's thesis (in Number Theory) and there are multiple places where I need to claim that something is not yet known. Since I am not an expert (and even if I were) I would like to reference some more authoritative source than myself or, say, Wikipedia.  For example, consider the following statement:     In 1980 Schmidt proved that [some property holds]. No other necessary or sufficient conditions are currently known, though.   For the first sentence I can cite Schmidt's original paper, but how can I substantiate the second claim?


I'm following  to install on Nexus 7.  When I add the PPA and update it gives me a failed to fetch 404 error  W: Failed to fetch http://ppa.launchpad.net/ubuntu-nexus7/ubuntu-nexus7-installer/ubuntu/dists/saucy/main/binary-amd64/Packages  404  Not Found W: Failed to fetch http://ppa.launchpad.net/ubuntu-nexus7/ubuntu-nexus7-installer/ubuntu/dists/saucy/main/binary-i386/Packages  404  Not Found E: Some index files failed to download. They have been ignored, or old ones used instead.


Recently I found command: command which has no manual entry but help displays as follows:  $ help command command: command [-pVv] command [arg ...]     Execute a simple command or display information about commands.      Runs COMMAND with ARGS suppressing  shell function lookup, or display     information about the specified COMMANDs.  Can be used to invoke commands     on disk when a function with the same name exists.      Options:       -p    use a default value for PATH that is guaranteed to find all of         the standard utilities       -v    print a description of COMMAND similar to the `type' builtin       -V    print a more verbose description of each COMMAND      Exit Status:     Returns exit status of COMMAND, or failure if COMMAND is not found.   Is command -v is alternative of which?  What arguments are accepted by this command and how/when to use command?


Let's say I have the following polynomial:  $p(x)=(x+1)(x+2)(x+3)...(x+n)$  I want to find an expression for the coefficients $a_i$ of every term when I write the polynomial like this:  $p(x)=a_nx^n+a_{n-1}x^{n-1}+...+a_1x+a_0$  I tried by looking at some simple examples for small values of $n$ but I can't figure out an expression. Here are some examples with small $n$:  $p_1(x)=(x+1)=x+1$  $p_2(x)=(x+1)(x+2)=x^2+3x+2$  $p_3(x)=(x+1)(x+2)(x+3)=x^3+6x^2+11x+6$  $p_4(x)=(x+1)(x+2)(x+3)(x+4)=x^4+10x^3+35x^2+50x+24$  (It's obvious that the coefficient of $x^n$ will always be $1$ ,that the coefficient of $x^{n-1}$ is the sum of numbers from $1$ to $n$ so $a_{n-1}=\frac{n(n+1)}{2}$ and that the coefficient of $x^0$ is $n!$, but I have no idea about the other ones)


Find where a bash command is defined or sourced from?

Sometimes I want to know what a command I type into bash actually evaluates to. Usually I can figure out the location of the executable very easily with which.  $ which vim /usr/bin/vim   But what if I've created an alias for vim?   $ alias vim="echo mwahaha" $ which vim /usr/bin/vim   Hmm, not good. If I suspect something and want to check if vim has been aliased, I know I can type  alias vim   ... but if I had an alias vim='vim -p', I would never actually think to check vim aliases because it would still work just fine.  How can I know exactly what a specific command in bash is being evaluated to?


How to completely remove virtual packages?

It turns out that removing a virtual package with apt-get only remove the package itself,  leaving behind the real packages that were installed by it  So how do you remove a virtual package, along with all the real packages that it installs?


How does time travel take into account the rotation/revolution of the Earth?

Hypothetically, if you were to travel say, 6 months into the past with no spatial displacement, you would end up floating in space because the Earth would be on the opposite side of the sun.  I know when it comes to sci-fi, they can't account for everything and I don't expect them to. So I'm not nit-picking or anything, I'm just wondering if this is something that has been addressed to any detail, as it seems like it would have to be a major component of any time travel.


I'm trying to install JDK on ubuntu 14.04 LTS. I downloaded it from oracle website. Than I extracted it and moved in usr/lib/java. It says java doesn't exist but it does.    I use this video


How to turn on DPI scaling for just one monitor?

I have two 1920x1080p monitors. One is kinda further away on a secondary desk though. I want to increase the display scaling on that monitor, so it's more readable from the distance I'm at. How can I do that without affecting my main monitor that is should just be set to 100% scaling (ie, no scaling)?


Call function passed as an argument with arguments

I have a function, which takes a function and string as arguments, I want to call this function with the string argument and return the result.  Something like this:  public static String mainFunc(Callable func, String s) {     return func.call(s); // Error }  mainFunc(SomeObject::instanceMethod, s)   But as you can see it is not working. Please note that I don't necessarily need to use Callable, it can be any other interface.


Is there a word to describe words that can be spelled different ways?

Is there a word in English to describe words that can be spelled more than one way?  For example:   colour and color favourite and favorite   However, this shouldn't be limited to words spelled differently in different dialects, though I'm not sure what other case there would be.


Xterm does not display unicode character

Fellow people of the internet,  I got an issue with Xterm, as i try to use a zsh theme using unicode characters. However, Xterm refuses to print them, which is a bit annoying. My Xressources is a followed :  hereXTerm*reverseVideo: on xterm.vt100*FaceName:   hack XTerm*FaceSize:         15   My locale is set to "C", for all of it, i guess the issue comes from here, but i surprisingly don't find a way to set it to en_US.UTF-8, even if it is the only uncommented line in my locale.conf. We are talking basically any unicode character, for instance ❌, which is translated into # followed by 2 blanks.  . My command line basically looks like this :   While it is supposed to look like this :  If it can be of any help, i'm running the latest version of arch.  EDIT: Updating to UTF-8 doesn't solve the issue.  Is there any chance one of you have a solution ? Thanks


So, I installed fedora on my system but the grub menu does not show up. I saw  but it was for Manjaro. How do I do it for fedora?


Every time I try to assign a shortcut to switch the language by using (Shift+Alt) the system does not accept it. However it accepts other shortcut buttons.


RSA plaintext repetition attack, (same plaintext, different ciphertext)

Billy wants to send a message to Bob. He generates secure primes p and q for each time he sends a message. However, he accidentally sends the same message multiple times. Is Billy's message still safe? More formally, I know that e=3 and that the plaintext remains the same for more than 1 message, but the value of n (and subsequently the ciphertext, c) changes. e=3 n=pq c=123 plaintext=my-cool-mesage  e=3 n=p'q' c=456 plaintext=my-cool-mesage  If an attacker has access to the e, n, and c for each message, can they recover the plaintext with the fact that the plaintext is shared, even when n changes?


Extending a C:\ Bitlocker Encrypted partition

I'm using a Windows 7 PC got a C:\ (bitlocker encrypted) partition that I would like to extend to some unallocated space free on the drive. However, I can't extend the partition (extend is grayed out). Is there any way I can do this?


Need help in computing the p.d.f. of the random variable $F[X]$

Let $X$ be a continuous random variable with probability density function, $f$ and c.d.f  $\;F$.   Suppose that $f$ is continuous and $f(x)>0$ for all $x\in \mathbb{R}$. Compute the p.d.f. of the random variable $F[X]$  How can I start? Kindly give some hint.  Thanks.


Why do you need to know who I know on Google?

I just created a SE account using my Google account. It said that it needs to "Know who you are on Google" (I guess my connections). As far as I know, SE is not a social network. I can't even follow other people (seeing when they post questions and answers).  What is the reason you need to know my Google connections?  This was on code review. Actually I have an account there, but for some reason it asked me to reconnect. This is the same on MSO; one sees this explained as "This app is requesting permission to associate you with your public Google profile":


Ubunbtu 18.04 I started getting the notice that not all updates can be installed - which led me to the following post:  I ran the two commands mentioned - sudo apt-get update && sudo apt-get upgrade Then re-booted, and re-ran software updater, and got the same notice I ran the 2 commands again, and nothing was installed, but I still get the same notice when using software updater.  If I click on continue, I see this:  Can anyone shed any light on this?  How can I prevent seeing the partial upgrade notice?


Is there a term for this kind of wordplay (rhyming slang)?

Swapping the phonemes of often used phrases while keeping them the same size and structure, for example:   Washing the Dishes -> Wishing the Dashes / Dashing the Wishes (or even Flushing the Fishes) Making Breakfast -> Braking Makefast Go to the shop -> Sho to the Gop (dictionary words not required, but preferred) / Flow to the Drop (completely removed from original)   I did not find a match on . I'm guessing it might be a form of rhyming slang?


Aren't questions being closed too quickly?

I'm talking about questions like  and  (full disclosure: I answered both of them).  I completely agree that questions of this kind are "ambiguous, vague, incomplete, or rhetorical," but on the other hand, I'm pretty sure answering these questions helped the people who asked them. Doesn't that count? Why not let them have answers, even if there isn't much added value for the community as a whole?  Edit: I realize you guys are experienced with this kind of user, but take a look, for example, at my first link. The poster left two (kind) comments after asking the question. Couldn't it be that the vagueness of her question came simply from not knowing? There isn't a real "answer" to what I'm asking, I just think you should be more tolerant.    Edit 2: You seem to agree that answering these questions is a mistake. I on the other hand, am quite sure closing, downvoting and cynically commenting these questions, just scare off newcomers. I believe answering kindly will make those posters want to come again, and in time they'll get the atmosphere and the manners people here share. Obviously there are questions that cross the line, and maybe we should only be extra tolerant with newcomers because they're new. Just reconsider please.


I have a Mac only, so I am not able to get Terraria through Steam. I was wondering if I can play Terraria on my iPad Mini with a friend who has it on his PC. I was wondering this, because I saw that Deepworld on iOS is compatible with the Mac version.


I started a program on a directory but accidentally removed it, and the program inside. The program generates a couple of output files. The program is still running. I wonder if I create the same directory the program will still create the output files there. Is that possible?


How to use however in a contrarian statement that ends with a question?

After making a statement in the prior sentence, I want to make a statement that contradicts it and then asks a question.  I want to use however and I want to know to make my contrarian statement. I am just unsure of the best way to go about this.  Here are the three options that narrowed it down to:  Option 1:     ... end of statement. I want to know, however, are there any ... ?   Option 2:     ... end of statement. However, what I want to know is: Are there any ... ?   Option 3 (combination of 1 and 2):     ... end of statement. What I want to know, however, is: Are there any ... ?   Note: Feel free to correct my tags for this question.  I have no idea how to best tag this type of question other than the 3 I chose.


Will the Samsung galaxy s7, run Ubuntu mobile OS

I am planning on buying a Galaxy s7 and run ubuntu's mobile OS on it, is the phone able to run it stably?


Convergence in measure implies convergence almost everywhere of a subsequence

How can I prove that if a sequence of functions $\{f_n\}$ that converges to $f$ in measure on a space of finite measure, then there exists a subsequence of $\{f_n\}$ that converges to $f$ almost everywhere?


Mean curvature is the divergence of the normal

As a definition, I was told that for a surface in 3D,   $ 2H = -\nabla \cdot \nu$  where $H$ is the mean curvature and $\nu$ is the normal unit vector. In some results that I am studying, the factor 2 always disappears... Is this normal ? can we ignore the factor 2 and consider the definition "up to a constant" ?


Defining, Using a variable in batch file

set "$today=(Get-Date).ToString('MM_dd_yy')" echo "%today%" I have created the date.bat file but it's not printing the date. Please help me to fix this issue. Thanks in advance Output -     + CategoryInfo          : NotSpecified: ('$today' is not...ternal command,:String) [], RemoteException   + FullyQualifiedErrorId : NativeCommandError     operable program or batch file. C:\Desktop>echo "$today" "$today"


Is there anyway to make a bezier curve into a mesh object?

I am looking at this tutorial () and I want to make the curve into a watertight model for 3D printing. Is this possible?


Sum of multiples of $2$ coprime numbers cover positive integers

I have a conjecture that any two positive coprime integers $a$ and $b$ can be added to form any integer greater than or equal to $(a-1)(b-1)$.   This is true for $3$ and $5$, which can form any integer greater than or equal to $8$, where $8=3+5, 9=3+3+3, 10=5+5; k=3n+8$ or $3n+9$ or $3n+10$.  It is true for $4$ and $7$, which can form any integer greater than or equal to $18$, where $18=4+7+7, 19=4+4+4+7, 20=4+4+4+4+4, 21=7+7+7$, etc. How can it be proven that this will work for any two coprime numbers?


I often see that revision comments are formatted to be in lowercase and items are separated by a ;     edited title; deleted 41 characters in body   So my question is: what rules do I need to be aware of when leaving revision comments?   Do they need to be in lowercase? How can I separate some items of my coments? Punctuation: do the comments need a full stop? Other remarkable aspects?


I am interested in disabling-turning off taxonomy terms.I don't want to delete them so as to enable them later. How is this possible to do? thanks


Collection of short stories; in one a spy attempts to escape detection on Mars's moon by moving faster than the spaceship can scan

I'm trying to track down a collection of older short stories I read as a kid. I can recall only one of the stories quite clearly.  It involves a spy, telling a story years later, attempting to escape detection by hiding on either Phobos or Deimos. He is being chased by a spaceship, but because of the short horizon and rocky surface, he is able to move about much faster than the spaceship can scan the surface.  I came here because I had just remembered a second story from the same collection, but by the time I wrote the section above it was gone...


$\overline{Y}$ is irreducible in $A:=\Bbb{C}[X,Y]/ (X^2-Y^3)$.

I would like to prove that $A:=\Bbb{C}[X,Y]/ (X^2-Y^3)$ is not a UFD. This is equivalent to find an irreducible element which is not prime.   I can prove that every element looks like $\overline{P_1X+P_0}$ for $P_1,P_0\in \Bbb{C}[Y]$. After that let $\overline{Y}$ be the "image" of $Y$ in the quotient. It's not prime because the ring $A/(\overline{Y})$ will be isomorphic to $\Bbb{C}[X]\ (X^2)$.      But I am stuck to prove that $Y$ is irreducible,    that is, I write: $$Y=P_1Q_1X^2+P_0Q_1X+P_1Q_0X+P_0Q_0 =P_1Q_1Y^3+P_0Q_0+(P_0Q_1+P_1Q_0)X$$  So by unicity on $\Bbb{C}(Y)[X]$, it's equivalent to  $$Y=P_1Q_1Y^3+P_0Q_0$$ and $$(P_0Q_1+P_1Q_0)X=0.$$  Now taking the value at zero in the first equation, we get that $P_0(0)=0$ (by symmetry). It means that $Y$ divides $P_0$.   Question: How can we continue ?


how to create a DNS SPF record with long text

Our email hosting company provided a SPF records which is too long.  I can't put all into one record.  what can I do?    Thanks in advance.  David


What is the cardinality of the set of equivalence classes of countable order types under bi-embeddability?

Two ordered sets have the same order type if there exists an order isomorphism between them.  Now the set $X$ of all order types of countable totally ordered sets has cardinality $2^{\aleph_0}$; see .  But I'd like to find the cardinality of a smaller set.  Let us define an equivalence relation $\sim$ on $X$ as follows.  If $a$ is the order type of $A$ and $b$ is the order type of $B$, then we say that $a\sim b$ if there exists an order isomorphism between $A$ and a subset of $B$, and an order isomorphism between $B$ and a subset of $A$.  My question is, what is the cardinality of the set of equivalence classes of elements of $X$ under this equivalence relation?  Is it still $2^{\aleph_0}$, or is it smaller than that?


What does "Site Type" mean when creating a Site in a Spring 20 Scratch Org?

I've been trying to test the changes to Guest User access in Spring 20. In doing so, I've created a scratch org on Spring 20 and tried to create a Site to test with. However, it comes with options that are both confusing and apparently undocumented. I made my scratch org with a basic scratch org def: {   "orgName": "Spring-20-Guest-Test",   "country": "GB",   "edition": "Developer",   "features": [     "Sites"   ] }  Then I went to Sites in the setup UI and clicked "New". At which point it asks me to choose the Site Type as either "Guest User License" or "Guest":  What do these mean? Which one is like a Site created prior to Spring 20 so that it represents a realistic test of what will happen to existing sites after the release?


Finding limit of $\left(1 +\frac1x\right)^x$ without using L'Hôpital's rule.

Is there a way to find this limit without using L'Hôpital's rule. Just by using some basic limit properties.  $$\lim_{x\to\infty}\left(1+\frac1x\right)^x=e$$


Why would the basilisk gaze melt the film in Colin's camera?

As far as we know the gaze of the basilisk will instantly kill someone or eventually petrify him/her in case the gaze is somehow softened or reflected.   But why would it melt the film in Colin's camera? The film is just plastics with some specific chemicals.   A bit broader question would be - is the some information that the basilisk's gaze is somehow destructive to non-alive objects too and under what circumstances could it happen?


Using jQuery with dynamic elements and their dynamic Id

My problem is that I create a table with php that displays when you enter the page, and below the  where the element information is.  I echo 2 more tr, one with text on each , the other  has an input text, a select and a button to send the changes. I want to be able to change the information on each element by sending an AJAX request with the values on my input text and my select when I click the button.  MY php  <?php $Municipios = $wpdb->get_results("SELECT * FROM cor_municipio INNER JOIN cor_estado ON cor_municipio.estado_id = cor_estado.estado_id;"); echo "
";     echo "
";         echo "
";             echo "Municipio	";             echo "Estado	";             echo "Acciones	";         echo "
"; foreach($Municipios as $Eresult){     echo "
";     echo "".$Eresult->nombre_municipio."	";     echo "".$Eresult->nombre_estado."	";     echo "<button class='editar' id='".$Eresult->municipio_id."''>Edit</button>	";     echo "
";     echo "
municipio_id."'>";     echo "MUNICIPIO A CAMBIAR	";     echo "ESTADO A CAMBIAR	";     echo "PRESIONE BOTON PARA ACTUALIZAR	";     echo "
";     echo "
municipio_id."'>";     echo "<input class='input' id='name_mun_".$Eresult->municipio_id."' value='".$Eresult->nombre_municipio."' placeholder='Nombre del municipio' type='text' autocomplete='off'>";     echo "<select class='sel'type='text'>";     echo "<option value='".$Eresult->estado_id."' selected>".$Eresult->nombre_estado."</option>";     $r = $Eresult->estado_id;     $A = $wpdb->get_results("SELECT * FROM cor_estado WHERE estado_id != 1 AND estado_id !=$r;");     foreach ($A as $W ) {         echo "<option value='".$W->estado_id."' type='text'>".$W->nombre_estado."</option>";     }     echo "</select>	";     echo "<button class='insertar'>Actualizar</button>	";     echo "
"; }     echo "
"; echo "
"; ?>   MY jQuery  jQuery(document).ready(function() {     jQuery(".edit").hide();     var mun_id;     var name_mun;     var id_es;     jQuery(".editar").click(function() { //this is the button displayed on the table         mun_id = jQuery(this).attr('id'); // $(this) refers to button that was clicked         jQuery(".edit").hide(500);         jQuery("#edinfo_"+ mun_id).show(500);//show the row with text         jQuery("#edit_"+ mun_id).show(500);//row with inputs     });      jQuery('#sp_'+mun_id).on('click',function(){//id of the button on the input row         jQuery('#name_es'+mun_id).change(function() {//id of the select on the input row             id_es = jQuery("option:selected", this).val();         });         name_mun = jQuery("#name_mun_" + mun_id).val();         alert("su info es  id: " + mun_id + " municipio: " + name_mun + " estado: " + id_es);     }); }); </script>   I also have the problem that I can't get the value of the select, even if the selected option has a value attribute. I've tried setting an if, but I couldn't get it right.  I've read that jQuery has problems with dynamic elements that aren't rendered when the page loads, and that the .on('click', function) is the method to use, but I can't get it to work, I don't know if I need to search for a plugin in or something like that.


How do I "cool" down very spicy tortilla soup?

Thought the recipe asked for a full can of chipolte peppers, of course it was only one. was able to remove most but is still to spicy for company.


Extracting data from multiple raster layers in QGIS

I have a raster layer containing climatic monthly data:   rainfall maximum and minimum temperatures   There is one layer for each variable and month.  I want to extract the average and maximum values for all of these layers into an Excel sheet.  Is there a way to do this without having to manually extract each value for every raster layer?


On my desktop I have a .desktop file. If I type:  Icon=/home/ianbell/Pictures/myLogo.png   the icon of the .desktop file changes (the expected result).  But, if I type:  Icon=~/Pictures/myLogo.png   it doesn't work.  Isn't ~/ a shortcut for /home/$USER?


Very short story about  engineering problems with weapons development in an intergalactic space war. Force field, matter shrinking technology. Taught in engineering design programs.


If matrix A is invertible, is it diagonalizable as well?

If a matrix A is invertible, then it is diagonalizable. Is it true or false?


What does "total = n" in the output of "ls -l" indicate?

ls -l  total 36  -rwxrwxr-x 1 vips vips 8776 Jan 11 20:56 a.out     -rw-rw-r-- 1 vips vips   52 Jan 11 21:44 filemk.sh     drwxrwxr-x 2 vips vips 4096 Jan 11 22:14 hello     -rw-rw-r-- 1 vips vips 7174 Jan 11 09:23 installation.txt     -rw-rw-r-- 1 vips vips  928 Jan 11 22:26 linux_Commands     -rw-rw-r-- 1 vips vips  142 Jan 11 20:56 prog1.c   What does total indicate? Somewhere I read that it shows the number of blocks, but the number of blocks in my case is  1+1+2+1+1+1 = 7 .  Then what is it?


How do I clear a string stream. I am tokenizing a file line by line, and the stringstream is global. I can tokenize the first line, but I can't get the second line working  stringstream currentLine;  while (!inputFile.eof()) { currentLine << getlinefromfile(); //Gets the next Line tokenizeLine(); //Tokenizes the line using the global stringstream peek() fnc currentLine.str(""); currentLine.clear(); }   The above is my current attempt, but it doesnt work.


Having a Promising Assistant Professor vs Well- Known Full Professor as a PI

If one's ultimate goal is to obtain tenure (as a professor of chemistry or some other STEM field, for example), is it honestly better to have a more well-known professor as a PI versus an assistant professor (assuming both have equally good research and are in top-tier institutions)?


How do I construct a geometry point in SRID 4326 from lat and long?

I have a geometry(Point,4326) column on my table:  CREATE TABLE foo ( geom geometry(Point,4326) );   I want to insert into it. Currently' I am running  INSERT INTO foo (geom) VALUES (   ST_GeomFromText('POINT(latitude longitude)', 4326)) );   To save a geometry value. I think ST_GeomFromText('POINT(latitude longitude)', 4326) is wrong method, I tried


What is wrong with my blender zoom interface?

When my view is on the positive view axis, it zooms in just fine.  But when I rotate to the other side, when I zoom in, it infinitely gets slower and slower until I can't zoom in anymore.  How do I make both zooms even?


when i am getting user info from jwt token HTTP Status 500 - Internal Server Error (tomcat 8.5, java)

public void doFilter(ServletRequest req, ServletResponse response, FilterChain next) throws IOException, ServletException {     HttpServletRequest request = (HttpServletRequest) req;     String accessToken=(String) request.getSession().getAttribute(AppConstants.AUTHZHEADER);     new JwtBearerTokenHandler(accessToken);     UserInfoWrapper userInfo = new UserInfoWrapper();     List<String> roles = userInfo.getRole();     String user = userInfo.getUid();     if (null != user) {         next.doFilter(new UserRoleRequestWrapper(user, roles, request), response);     } else {         next.doFilter(reqeust, response);     }     ...  Error: Message: Network error: An IO error occurred sending the request. Details: java.io.IOException: Connection closed during ALPN negotiation. <!doctype html>               <title>HTTP Status 500 â€“ Internal Server Error</title>
HTTP Status 500 â€“ Internal Server Error

             Type Exception Report

             Description The server encountered an unexpected condition that prevented it from fulfilling the request.

             Exception

java.lang.NullPointerException              abc.SelectMarqueServlet.performTask(SelectMarqueServlet.java:68)             cmetool.runtime.servlet.BasicServlet.doPost(BasicServlet.java:66)             javax.servlet.http.HttpServlet.service(HttpServlet.java:652)             javax.servlet.http.HttpServlet.service(HttpServlet.java:733)             org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)             com.renault.common.log.LogMdcFilter.doFilter(LogMdcFilter.java:62)             com.renault.auth.filter.UserRoleFilter.doFilter(UserRoleFilter.java:55)

             Note The full stack trace of the root cause is available in the server logs.

Apache Tomcat/8.5.57


The graphical intuiton of the LASSO in case p=2

Since this question was already ask , I hope that it isn't a duplicate because it isn't answered. In my question I'll use another graph to make it more clear:      The left plot is describing the lasso-problem. My question is regarding to the cases when it is more likely to intersect the corner (in this case $\beta_j=0$) or the side of the constrained area.   I more or less figured out two dependencies:   As in the picture, if we increase the budget of the constrained area or decrease the tuning parameter $\lambda$, the diamond will be getting bigger. It will be more likely to intersect with a side as with a Corner. The intersection depends on the "graphical position" of the OLS solution. But I can't explain to myself how the dependence works. Can some of you give me some graphical intuition in the case of $p=2$, when the LASSO will not set coefficients to zero?


I need to remove a Schlage double-cylinder deadbolt from our front door. Problem is, there is no visible way to remove it. There is a hole on one side and a pin with no head on the right. This deadbolt does not have caps covering screws not same as another user's post  I've tried this and that, but nothing worked. I've enclosed a picture of lock (hole on left and pin on right)    The only person who might have know anything is no longer with us, any ideas with how to remove deadbolt without destroying door would be appreciated.


Show $\lim_{n \to \infty} \sum_{i=1}^n Y_i/\sum_{i=1}^n Y_i^2 = 1$ for Bernoulli distributed random variables $Y_i$

I want to show that: $\lim_{n \rightarrow \infty} \frac{\sum_{i=1}^{n} Y_i}{\sum_{i=1}^{n} Y_i^2} = 1$ almost surely given that $(Y_n)$ is a sequence of independent and identically distributed random variables, $P(Y_i = 0) = a, P(Y_i = 1) = 1-a$.  I am confused about this 'almost surely'. What is a sequence of random variables? I guess somehow I can maybe convert the sum into a product and then use the independence...Any hints?  Edit: found out that 'almost 'surely' means that the probability of it is 1. Also, in our case we actually just have an IID.


I'm having trouble parsing through a CSV file to add users.  I wrote a small script to add a list of 1000 users:  export IFS=","  cat users.csv | while read a b c d e f g; do useradd -d -u $a -U $d ; done   The CSV file is formatted as:  ps2946,male,Phil Harris,Recording,6508 Hollywood Blvd,Nov 16 1950,760 901 3537 mc3225,male,Mel Blanc,Radio,6385 Hollywood Blvd.,Oct 1 1983,626 647 5560 fn1029,male,Franklin Pangborn,Motion pictures,1500 Vine Street,Mar 10 1911,858 497 6108 we9602,undefined,Webb Pierce,Recording,1600 Vine Street,Sep 3 1988,559 595 6063   However upon running the script it iterates through the entire file repeating:  useradd: invalid home directory '-u'   I used export IFS to separate the words by comma and use them as the parameters for the useradd command.   I read the manual and used the value for the home directory, but I feel like my entire script is off.  Can someone please help me in properly formatting a script to add users from a CSV file?  For reference I used this thread as a base:


Show an exponential function has a valid density.

Given:  Let $X$ be exponential with parameter $\lambda$, that is   $$ f_X(x) = \begin{cases} \lambda e^{-\lambda x} & \text{if }x> 0, \\ 0 &\text{for }x\leq 0. \end{cases} $$  where $\lambda>0$ is called the rate of the distribution.  Question:  Show that this is a valid probability density function (pdf).  Attempt:  Need to show that  $$ f(x) = \int^{\infty}_{-\infty} \lambda e^{-\lambda x}\,  dx=1\\\\ $$ Thus, \begin{eqnarray*} f(x)&=&\int^0_{-\infty} \lambda e^{-\lambda x} \, dx+\int^\infty_0 \lambda e^{-\lambda x} \,  dx\\[8pt] &=&0+\int^\infty_0 \lambda e^{-\lambda x} \, dx \\[8pt] &=&\lambda\int^\infty_0 e^{-\lambda x} \, dx \\[8pt] &=&1 \end{eqnarray*}  The problem is that my professor just told me that I skip a step right before I derive $1$. Any insight?  EDIT:  Given the great feedback, here is the answer:  \begin{eqnarray*} f(x)&=&\int^{\infty}_{-\infty} \lambda e^{-\lambda x} dx=1\\\\ f(x)&=&\int^{\infty}_{-\infty} f_X(x)dx\\ &=&\int^{0}_{-\infty} 0\,\,\, dx+\int^{\infty}_{0} \lambda e^{-\lambda x} dx\\ &=&0+\int^{\infty}_{0} \lambda e^{-\lambda x} dx\\ &=&\int^{\infty}_{0} \lambda e^{-\lambda x} dx\\ &=&\int^{\infty}_{0} e^{-\lambda x} \Big(\lambda \,\,\,dx\Big)\\ &=&\int^\infty_0e^{-u} du\\ &=&-e^{-u}\Big|^{\infty}_0\\ &=&1-\lim _{x \to \infty} e^{-u}\\ &=&1\\ \end{eqnarray*}


I have two independent variables: "vaccination status" and "antibody titer assessment". Vaccination is coded as 0 and 1. The other variable is supposed to explain if the person has checked that whether the vaccination has increased his antibody titer sufficiently. The second variable has two states: yes or no.  The problem is that people who are not vaccinated do not need to check their antibody titer (it is not logical). So I don't know if I should leave the cells in the column pertaining to tier check blank or not, when the persons' vaccination status is zero. Or should I enter zero even for the lack of antibody titer assessment, even if the person has not received any vaccination in the first place?  The difference between the two is that if I fill those blank cells with zero, these two independent variables would become highly correlated (source of multicollinearity). Otherwise, if i leave those cells blank, I would loose data in listwise deletion unless I use other methods such as pairwise deletion or mean substitution (in SPSS).  What do you suggest? Do you have any other ideas that these two options?


I am looking for a way to clip image collection by a given polygon geometry with Python API, The GEE JavaScript equivalent is simply ImageCollection.clip(geom) () With the python API I get the error: 'ImageCollection' object has no attribute 'clip'.  I'm adding my code after using .mean() as a reducer My code: set the boundary polygon my_boundary = ee.Geometry.Polygon([ [[-5, 40],[65, 40],[65, 60],[-5, 60],[-5, 60]]] ,proj=None) #set the ImageCollection and Image img_Collection = ee.ImageCollection('COPERNICUS/S5P/NRTI/L3_NO2').filterDate('2020-03-01', '2020-03-27').select('NO2_column_number_density') my_Image=img_Collection.mean().clip(my_boundary) #Create Ipyleaflet map my_map = ipyleaflet.Map(zoom=7) my_map.add_layer(layer=my_Image) my_map error: AttributeError: 'Image' object has no attribute 'model_id'


Word for a desire that you can not do anything about

I'm looking for a word that means a desire/wish that is improbable to be fulfilled ( and you can not do anything to change it).


Rigorous Proof: Circle cannot be embedded into the the real line!

Can somebody give rigorous proof that the circle cannot be embedded into the real line? Obviously, if so it must be necessarily continuous and I guess this suffices in this case since there is no continuous injection by intuition...


What was missing in Dirac's argument to come up with the modern interpretation of the positron?

When Dirac found his equation for the electron $(-i\gamma^\mu\partial_\mu+m)\psi=0$ he famously discovered that it had negative energy solutions. In order to solve the problem of the stability of the ground state of the electron he invoked Pauli's exclusion principle and postulated that negative energy states well already filled by a "sea" of electrons. This allowed him to predict the positron, viewed as a hole in the sea.  This interpretation was ultimately discarded owing to its inapplicability to bosons and difficulties with explaining the invisibility of the infinite charge of the sea.  According to my understanding, the modern argument goes something like this. There is a discrete symmetry of the lagrangian called charge conjugation $\psi \rightarrow \psi^c$ which allows the negative energy solutions to be interpreted as positive energy solutions for a second mode of excitation of the electron field with opposite charge, called positrons. The decay of electrons to positrons is then suppressed by the $U(1)$ gauge symmetry of the lagrangian forcing conservation of electrical charge.  According to this interpretation What Dirac would have missed was the lagrangian formalism. Is this historically and physically correct?


Biblatex: Requesting help customising for bib names uppercase

I have been having trouble trying to figure out where to start for customising biblatex.  With so many moving parts, old docs, old answers etc it was easy for me take wrong turns such as trying to use makebst, and whilst it has been fun, I have not made as much progress as time requires and am thus asking for help here.  I am sorry if this is not a technically interesting question - I have looked at a fair bit of fine material and watched some well produced videos.  My request is in the absence of a primer, for a few pointers at to what I need to learn in order to produce a useful cfg to document and share.   As a starting point, I need author year citations, and uppercase author names in the bibliography. Once I have learnt to do those I am sure I will be able to refine the cfg to the requirements.  One conundrum that is not clear to this novice is where to start, when the required style is between other styles.  I have been navigating the answers here, e.g.  I have mucked about with various other answers too. I have had a lot of fun.  I want to produce:  Doe (2012) identified a number of ways to embolden citations but due to lack of user clue these dont appear to be effective in understanding how to do this in the bibliography. [and] There is a lack of skill in this user (Doe 2012).  Refs: DOE, J. 2012. A macro for formatting names.  With gratitude.  %% kludge test MWE to  \documentclass{article}  \usepackage[style=authoryear-comp,firstinits=true,backend=biber]{biblatex}   \usepackage{filecontents}  \begin{filecontents}{\jobname.bib} @misc{Doe12,   author = {Doe, John},   year = {2012},   title = {A macro for formatting names}, }  \end{filecontents}  \addbibresource{\jobname.bib} \nocite{*}   \newbibmacro{name:newformat}{%     \uppercase{\namepartfamily}  % this doesn't do it.    \textbf{\namepartgiven}   % this works as intended    }  \DeclareNameFormat{newformat}{%   \nameparts{#1}% split the name data, will not be necessary in future versions   \usebibmacro{name:newformat}%   \usebibmacro{name:andothers}%  }  \DeclareNameFormat {namepartfamily}{\MakeUpperCase{#1}} %% this doesnt do make my refs uppercase \renewcommand{\mkbibnamefirst}[1]{\uppercase{#1}} %% not this either  \begin{document}    \section*{Testing the format here}  I am autociting \autocite{Doe12}.  Whereas here \textcite{Doe12}, says that '\texbf{texbf}' does not work in the same manner as ' \uppercase{uppercase}'.   \printbibliography \end{document}   Thank you!


passing Values in Url when the api has dictionary

This is my Api and i need to pass values for Passport number Expiry data and other fields i know to pass data when its just normal values. I am not sure how to pass data inside the Dictionary Passport field  { "CustomerID":0, "UploadType":"String", "Passport":   {   "PassportNumber":"String",   "ExpiryDate":"\/Date(-62135596800000-0000)\/",   "CountryOfIssue":"String",   "FileName":"String",   "FileDescription":"String",   "FileExtension":"String",   "MimeType":"String",   "FileData":"AA=="   },  "RequestID":"String" }   I tried this but it didnt work out  NSString *urlString =[NSString stringWithFormat:@"UploadPassport/?CustomerID=%@&UploadType=%@&Passport=&PassportNumber=%@&ExpiryDate=%@&CountryOfIssue=%@&FileName=%@&FileDescription=%@&FileExtension=%@&MimeType=%@&FileData=%@",customerID,uploadType,passportNumber,expiryDate,CountryIssue,fileName,fileDesc,fileExtn,mimeType,fileData];


Why was it so easy for Councillor Troi to become a commander?

Why was it so easy for her to become a commander after deciding to take the commanders test? Would it have been just as simple for Data or Geordie to have decided to take the test, so that they could have become commanders too?


I have something similar to this,  class Image {   template <typename T> using iterator = ImageIteratorBase<Image, T>; };  template <typename ImageType> class Filter {   template <typename PixelType> apply(); };   In my Filter::apply() function, I need to do this:  template <typename ImageType> template <typename PixelType> void Filter<ImageType>::apply() {     using IteratorType = typename ImageType::iterator<PixelType>; }   But this does not work and yields the error   error: expected ‘;’ before ‘<’ token   What is wrong in here? Thanks in advance


Equality operator "==" in while loop is not working as expected?

Nothing is printing why? It should print at least for one time, shouldn't it?  #include <stdio.h> #include <stdlib.h>  int main() {     float x = 1.1;     while (x == 1.1)     {         printf("\n%f", x);         x = x – 0.1;     } }   The program is running if I change "==" to ">="; how is x>=1.1 true when x is equal to 1.1 by definition.   #include <stdio.h> #include <stdlib.h>  int main() {     float x = 1.1;      while (x >= 1.1)     {         printf("\n%f", x);         x = x - 0.1;     } }


How to project anything in medium(air) like projection in wall, as in a free medium

I just go through books and the internet. But I didn't get my answer that, can I project light in the middle of the air, or wherever we want, not only on wall. I found neon lasers but it also didn't work.


What can we do, as a community, to help make MSE a friendlier place again?

MSE is burning, there is fire everywhere. I'm terrified every time I write a question over here and I make myself ready for a fight every time I write an answer.   I don't dare to look at comments or answers anymore and, if I see a rude/abusive comment, I'm dreadful to report it in chat because I don't want to be shout out for it.  This is all wrong.  People should be able to ask a question on MSE without fearing to be scolded for it. They should be able to suggest new, unusual, ideas to be screamed at because people disagree with the premise of their question.  People should be able to answer a question and be done with it. They shouldn't have to fear endless criticism and fight and comments war.  Because, if people are afraid to ask good faith questions, if they are afraid to suggest anything, if they are afraid to answer questions, then they will stop doing it.  And I, strongly believe that every voice is valuable. That driving away people that are afraid of conflicts, people with low self-esteem, people with anxiety issues, that driving away all those people and even more is a terrible thing.   I want people to feel safe here, and I think you want that too.  I don't feel safe here.  So, what can we do, as a community, to help make this place a safer one?    Note that I'm not talking about Monica or Robert. I'm talking about regular users who see all those conflicts and hatred and are driven away by it.  Note that I'm also not talking about what SE Inc. or mods can do. The responsibility of all this isn't and shouldn't be on their own shoulders.  We, as a community, are the ones screaming and making this place unfriendly. We are the ones that are at each other throat. We are the ones that are fighting in comments, about comments, around comments.   Not SE Inc, not the mods, us, the community.    So, what can we do, as a community, to help make this place friendlier and safer again?  What can we do to make sure that, even if the mods aren't available, even if there are no diamonds around to erase all the bad things that are said, what can we do to make sure (as much as we can) that this place keep being safe and friendly?     Edit: To people wondering if it's a duplicate of , it's not. Flagging the way we are currently doing is definitively not enough to solve the current situation. We need other, better, outside of the box, solutions.


I downloaded the latest  and installed it.  But apparently, there is no /var/www folder.  Can anyone tell me the default location of the Apache's DocumentRoot directory within XAMPP installation?


How do I know how many classical limits (if any) a given quantum theory is going to have?

I was reading , where it is mentioned that some quantum theories can have no classical limit or even more than one classical limit.   A possible example might be quantum spin, which doesn't have a classical analog. What is the precise condition (does it arise solely on imposing $\hbar \to 0$, which I am not able to see for quantum spin) that determines the number of classical limits of a quantum system?  What are some other examples of this, especially of systems having more than one classical limit.


I want to write this following picture in tex. I am new in drawing branching in tex. So I saw some examples in this site. But could not find this type. Again how to put dots in the end? A picture is given below:


Choose the Google Sitelinks that are shown when somebody searches for my website

How can I remove Search for product, About us, Log in, etc. which are displayed in Google Search?  And how can I add particular categories like Automobiles, Mobiles & Tablets, etc.?


Is there any substance in the brains of Vulcans that makes them feel less feelings?


How do I unlock the Autobiographer badge?

I've filled out all the profile fields, but I still don't have the badge. Is it a bug or am I missing something?


can't get click event of div element in jquery

This problem is so weird and the title might not seem to fully explain the meaning, so this is what i mean, i have list of div nested in each other and i can get the click event and other event of the outer Div but can't get the click event and other event of the inner div and it's content. below is my code      var scrollWidth = 124; var currentPhoto; var defaultDisplayPhoto = 5; var maxScrollCount=0; var maxScroll =(scrollWidth*currentPhoto)-(scrollWidth*defaultDisplayPhoto); var maxScroll; var timeCounter; var duration = 1000; //time to wait to fire the event; var photoAllowed = 12; var canAddMore;  var eventCounter= [];                 $("input.upload").on('change',function(event){                $(".mycarousel-container").show();                if(eventCounter){                    i=eventCounter.length;                }else{                    i=0;                }                imgsrc = URL.createObjectURL(event.target.files[0]);                //for(var i=0; i <eventCounter.length; i++) var div = $("

");                var transparentDiv = $("

");  var deleteIcon = $("");                var imgPreview = ""                transparentDiv = transparentDiv.html(deleteIcon);                div = div.html(transparentDiv);                div = div.append(imgPreview);                $(".carouser-inner").append(div);                 left = left+120;                 eventCounter.push(imgsrc);                if(eventCounter.length>5){                     $("#carousel_control_left").show();                     $("#carousel_control_left").addClass('myActive');                     scrollThumb('Go_R');                 }else{                     $("#carousel_control_left,#carousel_control_right").hide();                 }                  if(eventCounter.length == 12){                     alert('end')                     $("input.upload").attr('disabled',true);                 }else{                     $("input.upload").attr('disabled',false);                 }             });         $('.mycarousel').click(function(){         alert('this is inner div with border color blue');       });       $('.myimg').click(function(){        alert('this is inner image');       });    please see the demo on fiddle and add some images and divs will show up, now try to get the click event of the div with border color BLUE or the image in it


How can I make this symbol?    Already searched through , but can't find it.


The Favorite is disappeared from the sidebar of the download and upload window of the browser

The favorite is disappeared from the sidebar of the download and upload window of all browser, either Chrome and Safar.  You can see in the screenshots that I attached.  I can see favorite on the sidebar of the normal finder.  I don't know what happened.  Anyone who know how to solve this problem??  Thank you in advance.


My os was installed from debian 8.5.0 amd64. Execute commands after installation.  cat /etc/issue Debian GNU/Linux 8 \n \l   No 8.5 here.  cat /proc/version Linux version 3.16.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 SMP Debian 3.16.43-2+deb8u2 (2017-06-26)   No 8.5 here too.  Does deb8u2 means debian 8.5?


Extruding surface while keeping the shape

here is the picture of what I would like to get(example nr. 2). I need the edge frame to be same in width and length. Also the extrusion is on surface (without depth) I tried extruding region, but it did not give me the result I wanted.   I know I could just adjust the scale and do it manually, but that would be eyeballing without achievign accuracy. I would like to know if it is possible to extrude or inset while keeping the shape (even edge space)


My understanding is that interferometers can detect distance changes on the order of the wavelength of light being used. LIGO uses 808 nm light but has a sensitivity of 10^-18 m. Where do those 11 orders of magnitude come from?


Server: Ubuntu 12.04 w/ LAMP I can access the default index.html, but I created a symbolic link to a folder in my Dropbox.  Whenever I try to access 192.168.2.6/Joomla (Joomla is the symbolic link), I get a 403 error.  Editing my httpd.conf according to  didn't work.  I can post conf files, etc, just ask.  I've tried using chmod to allow all permissions on the files in question, but that didn't help.  Also, I deleted the default index.html to force Apache to show the www directory.  It shows, but is empty (Symbolic link doesn't show up)  Output from ls -lSrah (in Joomla):   total 7.6M -rwxrwxr-x  1 somekittens somekittens  865 Mar 31 18:03 robots.txt -rwxrwxr-x  1 somekittens somekittens 1.3K Mar 31 18:03 index.php -rwxrwxr-x  1 somekittens somekittens 1.7K Mar 31 18:03 web.config.txt -rwxrwxr-x  1 somekittens somekittens 1.8K Mar 31 18:07 joomla.xml -rwxrwxr-x  1 somekittens somekittens 3.1K Mar 31 18:03 htaccess.txt drwxrwxr-x  2 somekittens somekittens 4.0K Mar 31 18:03 tmp drwxrwxr-x  6 somekittens somekittens 4.0K Mar 31 18:03 templates drwxrwxr-x 13 somekittens somekittens 4.0K Mar 31 18:03 plugins drwxrwxr-x 26 somekittens somekittens 4.0K Mar 31 18:03 modules drwxrwxr-x 15 somekittens somekittens 4.0K Mar 31 18:03 media drwxrwxr-x  2 somekittens somekittens 4.0K Mar 31 18:03 logs drwxrwxr-x  7 somekittens somekittens 4.0K Mar 31 18:03 libraries drwxrwxr-x  4 somekittens somekittens 4.0K Mar 31 18:03 language drwxrwxr-x 10 somekittens somekittens 4.0K Mar 31 18:03 installation drwxrwxr-x  2 somekittens somekittens 4.0K Mar 31 18:03 includes drwxrwxr-x  4 somekittens somekittens 4.0K Mar 31 18:03 images drwxrwxr-x 13 somekittens somekittens 4.0K Mar 31 18:03 components drwxrwxr-x  2 somekittens somekittens 4.0K Mar 31 18:03 cli drwxrwxr-x  2 somekittens somekittens 4.0K Mar 31 18:03 cache drwxrwxr-x 10 somekittens somekittens 4.0K Mar 31 18:03 administrator drwxrwxr-x  5 somekittens somekittens 4.0K May 25 08:51 .. drwxrwxr-x 17 somekittens somekittens 4.0K May 25 08:53 . -rwxrwxr-x  1 somekittens somekittens 4.2K Mar 31 18:03 README.txt -rwxrwxr-x  1 somekittens somekittens  18K Mar 31 18:03 LICENSE.txt -rwxrwxr-x  1 somekittens somekittens 7.5M Mar 31 18:18 Joomla_2.5.4-Stable-Full_Package.zip   Output from ls -lSrah (in /var/www/):    somekittens@KittensTest:/var/www$ ls -lSrah total 7.5M lrwxrwxrwx  1 root root   41 May 25 09:39 Joomla -> /home/somekittens/Dropbox/Project/Joomla/ drwxr-xr-x 13 root root 4.0K May 24 20:50 .. drwxr-xr-x  2 root root 4.0K May 25 10:08 .   /etc/apache2/httpd.conf  <virtualHost indextj:80> ServerAdmin webmaster@indextj  DocumentRoot /home/somekittens/Dropbox/Project/Joomla <Directory />         Options +FollowSymLinks -SymLinksIfOwnerMatch         AllowOverride All </Directory>


Let $S$ be the set of all $3 \times 3$ symmetric matrices. $S$ is a subspace of $\mathbb{R}^{3\times3}$. Find a basis and the dimension of $S$.  I am quite confused by it. I know how to find basis and dimension but don't understand the pre-stated set.


Regarding this thread:    Why is the idea that the total energy in the universe "zero" so popular (re: Laurence Krauss) and why is the flatness of the universe used to back this up when, according to that post, an open universe would not conserve energy so the total energy of the universe cannot be "zero", can it? What's the energy being defined as zero and why is that energy used to predict things about the universe when "the" energy (as the term is used in that post) is not zero?  Additionally, I found one very good explanation here for this,    This seems to indicate that in flat space (the sort of space used in these zero energy universe theories) the mass can NOT be positive thus contradicting the notion that mass is positive and gravity negative and the whole thing winds up being zero. Did I interpret that correctly?  The MO question is cross-posted to Physics.SE here,


Add "show conky" button to ubuntu top bar

I'd like to add, next to bluetooth, wifi indicator, etc. another button that would bring conky to the front of opened windows.  Any tips? Googling didn't really help me much, only instructions how to set up conky.  My Ubuntu version is 18.04 my desktop enviroment is GNOME3.


Separate clarifying comment questions to the original post from non-clarifying comments

Some questions tend to gain a LOT of comments on them, needing to separate follows-up on questions from general comments like "doesn't work for me either."    Unfortunately, the way those comments are hidden means that you could quite easily miss important ones (like follow-up questions) if they weren't up-voted.  One way to alleviate this is to separate out questions about the original post from regular comments on the post.  For example, we have the answer area just below the question. Why not add tabbing to it such that one tab has "answers" and a second tab has "questions for the OP"?    This would solve the second problem where the amount of space available for comments can be restrictive for complicated talk back to the OP.  For example, consider the following question:   There are several actual questions to the OP in the comments section.  There are also several comments that quite frankly aren't questions to the OP and may, or may not, have value.    Regardless of the value of those ancillary comments, I'd really like to see the actual "questions to the op" separated out.


I accidentally wiped /etc/default/grub with a mistyped :w !sudo tee %. Is there a way to regenerate its content? Is the original available somewhere to copy?


Process "mtmfs" is using 98% of cpu, heating up the core and runing the fans flat out.  I have quite the process through activity monitor, but does anyone know a longer term solution?  I am running a MacBook Pro 2.2 GHz Intel Core i7 with 8GB RAM and OS 10.7.1


I want to strike out the superscripts and subscripts for an expression like  $$\Gamma^{\lambda}_{\mu\nu}$$  I tried the ulem package:   \usepackage[normalem]{ulem}  \sout{Hello World}   and the soul package   \usepackage{soul} \st{Hello World}   But neither of worked.   My Question  How do I strike out indices?


Why is reparameterization trick necessary for variational autoencoders?

I know it is said that we do the reparameterization trick so we can do back-propagation and back-propagation cant be applied on random sampling! However, I don't precisely understand the last part. Why cant we do that?  We have a mu and a std and our z is directly sampled from them. What is the naive method that we don't do ?   I mean what were we supposed to do that didn't work and instead made us do reparameterization?  we had to sample from the distribution using mean and std, any way, and we are doing it now, whats changed?  I dont get why z in is considered a random node previously, and not now!? I'm trying to see how the first way is different than what we are doing in the reparameterization and I cant seem to find anything!


Get Textbox Text, that javascript has changed

I have a textbox that I change values in depending on what's selected in my DropDownList. So far so good.  But when I want to get that text to code behind it retrieves nothing. This is because the server textboxcontrol have not changed its state or information within it.(I know the problem, not the solution)  The question is, how can i get the text that updates with javascript in codebehind? (I will submit a code example below) (NOTE: this is not my code, its just a simplified example)  <asp:Panel ID="AnswerPanel" runat="server" >    <asp:TextBox ID="tbxExample" runat="server" ></asp:TextBox>                 </asp:Panel> <asp:Button ID="btnSend" onClientClick="Example" runat="server" Text="Send" />   Jquery:  function Example{     $('#tbxExample').val("Test"); }   CodeBehind  string ex = tbxExample.Text; // I want it to say "Test", but it comes out as ""


I am trying to create a white box centered, both horizontally and vertically, within a div with a background image.  I have managed to center it horizontally as seen below in the "center"-class, but not vertically. I have tried to set "bottom" for the "filter-box"-class to the desired value and tried to use line-height and vertical align - all without the box even moving.    .image-container {   background: url('stubbe.jpg') no-repeat fixed;   height: 40em;   -webkit-background-size: cover;   -moz-background-size: cover;   -o-background-size: cover;   background-size: cover;   line-height: 20em; }  .filter-box {   background-color: white;   width: 500px;   height: 100px;   vertical-align: middle; }  .center {   margin: auto;   width: 50%; } html


Correcting forestry acreages due to slope to get actual acreages treated

I came up with a process to get actual acreages vs map acres of steep slopes, but I am wondering what others do to correct for steep slopes and get actual acreage treated? For mine, In ArcGIS Desktop, I use a DEM to create a percent slope raster. After classifying the slope data, I use our treatment polygons to cut out the slope data so I know how many acres I have at a particular slope. Then I use a table found in a range management book that tells you what percentage to increase the acreage by per slope percent. It works well, I'm just wondering if there is a better more efficient process or tool I could be using?


SQL decimals inaccurate for floating point value

Currently I have the following code:     Declare @FloatVal float set @FloatVal = 777777111111.555343 print @FloatVal print @FloatVal - FLOOR(@FloatVal) select @FloatVal select @FloatVal - FLOOR(@FloatVal)   And it outputs 7.77777e+011 for the first print, 0.555298 for the second print, 777777111111.556 for the first select and it outputs 0.5552978515625 for the second select.  Why is this the case?  Ultimately we want to receive the decimal places accurately, however, it seems to never give us this.  Unfortunately we cannot change the datatype from float to anything else because the system is setup in a way where this is not possible.  Thank you


Determinant of $4 \times 4$ matrix using the properties of the determinant

I'm having some trouble with the following exercice:  Using only the properties of the determinant, prove that: $$\det \left( \begin{matrix}  1 & 1 & 1 & 1 \\ a & b & c & d \\ a^2 & b^2 & c^2 & d^2 \\ a^3 & b^3 & c^3 & d^3 \end{matrix} \right) = (d − a)(d − c)(d − b)(c − b)(c − a)(b − a)$$  I know how to solve this using Laplace formula but I don't see how I can use the properties of the determinant to do this. I tried to put the matrix in it's reduced form but I'm having some trouble doing it. How can I solve this problem?  Edit: this is the list of properties that I'm allowed to use:  If a matrix $A$ has two identical lines then $\det (A) = 0$ $\det(I_n) = 1$ Let:  $$A =\left(  \begin{matrix} a_{11} & a_{12} & ... & a_{1n} \\ \vdots & \vdots & & \vdots \\ \alpha a'_{i1} + \beta a''_{i1} & \alpha a'_{i2} + \beta a''_{i2} & ... &\alpha a'_{in} + \beta a''_{in} \\ \vdots & \vdots & & \vdots \\ a_{n1} & a_{n2} & ... & a_{nn} \end{matrix} \right)$$ If $$A' = \left(  \begin{matrix} a_{11} & a_{12} & ... & a_{1n} \\ \vdots & \vdots & & \vdots \\ a'_{i1}& a'_{i2}& ... & a'_{in}  \\ \vdots & \vdots & & \vdots \\ a_{n1} & a_{n2} & ... & a_{nn} \end{matrix} \right)$$ and $$A'' = \left(  \begin{matrix} a_{11} & a_{12} & ... & a_{1n} \\ \vdots & \vdots & & \vdots \\ a''_{i1}& a''_{i2}& ... & a''_{in}  \\ \vdots & \vdots & & \vdots \\ a_{n1} & a_{n2} & ... & a_{nn} \end{matrix} \right)$$ Then $\det(A) = \alpha \det(A') + \beta \det(A'')$ These are the properties that I'm allowed to use.


$\mathbb Z_n$ is semisimple iff $n$ is square free

$\mathbb Z_n$ is J-semisimple iff $n$ is square free.     A ring  $R$ is said to be $J$ semisimple if intersection of all maximal ideals of $R$ is $\{0\}$.   If $n$ is square free then $n=p_1p_2...p_k$ then $\mathbb Z_n\cong \mathbb Z_{p_1}\times\mathbb Z_{p_2}\times...\mathbb Z_{p_k}$ Since $\mathbb Z_{n}$  is a PID every prime ideal ideal is a maximal ideal and hence the maximal ideals will be $\mathbb Z_{p_i}$ for each $i$; but intersection of all $\mathbb Z_{p_i}$' s is $\{0\}$ since $p_i$ 's are distinct.  How to do the converse?


Rollback Committed transaction in SQL Server

Is it possible to rollback a committed transaction?  I have deleted all the data in a table. The delete statement is inside Begin Transaction and I have committed the transaction with a commit transaction command. Now is it possible to rollback and get the data back?


How do I trim a text taken from a file by \input?

Here is my document: \documentclass{article} \begin{document} Hello, \input{name.txt}! \end{document}  My file name.txt has a single line Jeff\n (with EOL at the end). It's rendered to: Hello, Jeff !. How do I remove the space after Jeff?


As per the website, any questions which has pending edits are not allowed to be edited, but edit button remains always active in app. It is critical and must be fixed.  Here is a screenshot: (Question which is still pending for an edit review, I clicked on edit, and got the edit window)         App Version: 1.0.85 Device Manufacturer: motorola Device Model: Moto G (4)   OS Version: 6.0.1 (1)


I know that:  1) Change in $x$ ie., $Δx$, when $\lim Δx→0$, then $Δx$ is replaced by $dx$.   2) I also know that $∂x$ is used in partial derivative.  Then what is $δx$? Is $dx$ and $δx$ is just the same or something different. I want some mathematical explanation.


How to install Epson L210 scanner in Ububtu 16.04?

Epson L210 printer and scanner was working in Ubuntu 14.04 but upgrading to 16.04 only printer is working. I have the scanner driver deb amd 64 package but I don't know how to install.


Make clear which profile data is visible to whom

Looking at my own profile and the edit profile form, it isn't really clear to me which data will be publicly displayed/visible to registered users/visible to mods and which won't.  When I look at users who have recently been awarded the  badge, I can only see name, member for, seen, website, location and age.  Here's a few points that could help in this matter:   On "my own profile", display a little lock symbol (e.g. ) next to entries that are only visible to me (or mods). On the edit profile page,   make note of the use of the data put in next to the field, e.g. tell the user that the birthday will not be displayed, but used to calculate the age, the e-mail-address won't be shown and only used for certain purposes (which should be named?) sort the fields in "public" and "private".  In the Autobiographer badge description, clarify if a field like "real name" needs to be filled in in order to get the badge.


How to get the destination nid from an URL object

In a preprocess function I want to access the destination node id via the  I cannot find any method that will return the node id for me but I can clearly see that it holds the node id. (see attached)  Any idea how I can get the node id without going the long way of generating it from the URL path?


Let's say I'm working in the Python shell and I'm given a function f. How can I access the string containing its source code? (From the shell, not by manually opening the code file.)  I want this to work even for lambda functions defined inside other functions.


Unable to 'apt-get dist-upgrade' due to appstreamcli database error

I have created a USB stick with a persistent Ubuntu 16.04 (release version). I tried a couple of ways, using Startup Disk Creator and MultiSystem, but I get the same end result.  When I boot into the USB and do 'apt-get update', all is well.  When I try 'apt-get dist-upgrade' I get:     ** (appstreamcli:2761): CRITICAL **: Error while moving old database out of the way. AppStream cache update failed.   The only reference to this error message I can find is  but would appear to be fixed, at least fixed by the time the release version of Ubuntu 16.04.  Aside: I want to test Unity8, which includes installing software.  I don't have a spare computer, so I thought a persistent USB would do the trick.  Any takers?


Avoiding page numbers in allowframebreaks option - beamer

In my presentation, I am citing many papers and thus want to have a bibliography in the end so that people can refer to full citations as well. But I don't want to include them in page numbers in presentation(not to scare the audience). Any clean solution for this?   \begin{frame}[allowframebreaks] \frametitle{References} \scriptsize{\bibliographystyle{acm}} \bibliography{references} \end{frame}


JQuery: How to force a select option to be "selected", using FancySelect plugin?

I have a direct question: How to make "selected" an option of a select using FancySelect plugin?  This is the situation: I have a select with two options and two links. The links should be synchronized with the select. That means that when clicking on a link, it must make "selected" an option of the select.   It is important notice anyway that it is not a normal select, but i am using a JQuery plugin called FancySelect:  And this can be the main reason why normal solutions found elsewhere in StackOverflow did not apply to my specific case. So the point is not how to make "selected" an option of a select, but how to make it "selected" while using the FancySelect plugin.  Here you can understand better:    This is the code i am trying to use, but is not working yet:  $( "#a1" ).click(function() {       $("#selector option:first").attr('selected','selected');  });   Can you tell me please how can i force an option of a select to be "selected"? Thank you very much!


Why are the directions of eigenvectors in SVD and Eigen-Decomposition for PCA opposite?

As you may know, scikit-learn library utilizes singular value decomposition (SVD) of data matrix X to produce eigenvectors for PCA. I decided to code PCA by using eigenvalue-decomposition of covariance matrix A. Then, I compared the eigenvectors that both ones come up with. All numerical values are correct, but some of the values in eigenvectors are positive in sklearn library, but negative in my PCA or vice versa. To highlight the phrase opposite directions, I give an example of eigenvectors computed by SVD and Eigen-decomposition: Eigen-decomposition: [-8.11734515e-06  3.29264421e-03  1.57754708e-04  2.77006684e-05                        -9.99994324e-01 -6.40764448e-04  2.05179008e-04 -1.76522227e-04] SVD:                 [ 8.11734515e-06 -3.29264421e-03 -1.57754708e-04 -2.77006684e-05                         9.99994324e-01  6.40764448e-04 -2.05179008e-04  1.76522227e-04]  I could not figure out the reason for this. Is there anyone who knows what it is happening?


How can I assign different random values to each row in a SELECT statement?

Please look at this code:  create table #t1(   id int identity (1,1),   val varchar(10) );   insert into #t1 values ('a'); insert into #t1 values ('b'); insert into #t1 values ('c'); insert into #t1 values ('d');   Now, whenever you execute this  select *,      ( select top 1 val from #t1 order by NEWID()) rnd  from #t1 order by 1;   you will get a result with where all rows have the same random value. e.g.  id          val        rnd ----------- ---------- ---------- 1           a          b 2           b          b 3           c          b 4           d          b   I know a way using a cursor to loop throw the rows and get different random values, but that is not performant.   A clever solution to this is   select t1.id, t1.val, t2.val from #t1 t1     join (select *, ROW_NUMBER() over( order by NEWID()) lfd from #t1) as t2 on  t1.id = t2.lfd    But I simplified the query. The real query looks more like  select *,      ( select top 1 val from t2 where t2.x <> t1.y order by NEWID()) rnd  from t1 order by 1;   and the simple solution doesn't fit. I'm looking for a way to force repeated evaluation of  ( select top 1 val from #t1 order by NEWID()) rnd    without the use of cursors.  Edit: Wanted output:  perhaps 1 call  id          val        rnd ----------- ---------- ---------- 1           a          c 2           b          c 3           c          b 4           d          a   and a second call  id          val        rnd ----------- ---------- ---------- 1           a          a 2           b          d 3           c          d 4           d          b   The value for each row just should be a random value independent from the other rows  Here is the cursor version of the code:  CREATE TABLE #res ( id INT, val VARCHAR(10), rnd VARCHAR(10));  DECLARE @id INT DECLARE @val VARCHAR(10) DECLARE c CURSOR FOR SELECT id, val FROM #t1 OPEN c FETCH NEXT FROM c INTO @id, @val WHILE @@FETCH_STATUS = 0 BEGIN     INSERT INTO #res     SELECT @id, @val, ( SELECT TOP 1 val FROM #t1 ORDER BY NEWID()) rnd      FETCH NEXT FROM c INTO @id, @val END CLOSE c DEALLOCATE c  SELECT * FROM #res


Show that $\mathbb{Z}/n^2\mathbb{Z}$ is not isomorphic to other group

I'm currently working on a proof, but didn't get the right idea, a hint would be appreciated:  Show that $\mathbb{Z}/n^2\mathbb{Z}$ is not isomorphic to $\mathbb{Z}/n \times \mathbb{Z}/n$  So, lets assume there is an isomorphism between these groups, my first idea to was to construct a contradiction with the homomorphism property. But I don't know how, there should be an element in  $\mathbb{Z}/n \times \mathbb{Z}/n$ which is not in $\mathbb{Z}/n^2$ to reach this kind of contradiction. Of course there is $n \in \mathbb{Z}/n^2$ which is not in the other group but I don't know if this helps.  Thanks


Why is there a distinction between "its" and "it's"?

While I know technically the English language has a distinction because when there's a conflict between the possessive form and a contraction, the contraction wins. That is:   Its is the possessive form of it—and this will presumably be followed by some form of noun spec or something. It's is short for "it is" or "it has" (as in "it's been years since...").   The rule of thumb I use to remember this is that it follows the same pattern as whose and who's, for which the correct use is much more obvious.  While technically I see why there's (ha ha) a distinction, I can't think of any case why it really needs to be there, because for every use of either construct, the meaning intended is usually (if not always) obvious from context. Case in point: many questions and answers written on the Stack Exchange network are written incorrectly, yet nobody notices or cares. (Usually in my case, I default to "it's" then realize I screwed up)  As a single word, I could see why it'd be ambiguous, but I don't see why in typical prose it would matter.  Is there a specific reason for this in earlier dialects of English, or specific cases where choosing the incorrect form leads to lack of understanding of a particular sentence?


Upper bound for norm of Hilbert space operator

It is a standard result that for a bounded self-adjoint operator $T$ on a complex Hilbert space $H$, we have $\|T\|=\sup_{\|x\|=1}|\langle Tx,x\rangle|:=M(T)$, where $M(T)$ is called the  of $T$. It seems that for any bounded operator on $H$, we have $||T||\leq 2M$. Why is that so?


C++ / Win32. As shown in the popup menu pic, there's a large space at the right side of the menu. This is common to all popup menu's I've seen, probably there as a placeholder for a shortcut key combination. I was asked to clip the width to the menu text, but couldn't find any way to do it using the standard menu API or window repositioning API.  Is there any simple method to do it without going into owner-drawn?


In the Silmarillion The Sun and Moon are actually Maia bearing lamps, Arien and Tilion. Is there any writing on the sources of Mars, Jupiter and the other planets?


Prove that $\rho(A+B)\le\rho(A)+\rho(B)$ if $A$ and $B$ commute, where $\rho$ is the spectral radius

Let $X$ be a complex Banach space. $A$ and $B$ are linear bounded operators on $X$, $\rho$ is the spectral radius. If $AB = BA$, show that $\rho(A+B) \leq \rho(A)+\rho(B)$. Firstly I tried to use the formula $\rho(T) = \lim\limits_{n \to \infty} \|T^n\|^{\frac{1}{n}}$ if $T$ is a linear bounded operator. And if $AB = BA$,we have $(A+B)^n = \sum_{k=0}^n C_n^k A^k B^{n-k}$. So $$\|(A+B)^n\|^{\frac{1}{n}} \leq \sum_{k=0}^n C_n^k \|A^k\| \|B^{n-k}\|$$ Then I tried to prove $\lim\limits_{n \to \infty} (\sum_{k=0}^n C_n^k \|A^k\| \|B^{n-k}\|)^{\frac{1}{n}} \leq \rho(A) + \rho(B)$, but failed. Any kind of help is appreciated and thank you very much in advance!


Maximum modulus principle for an unbounded function in the half right plane

Let $f$ be a holomorphic function in $H={\{z\in\mathbb{C}}:\Re(z)>0\}$ such that it is continuous in $cl(H)$, $|f(z)|\leq1$ $\forall z\in \delta H$ and $\lim_{|z|\to\infty}f(z)=0 $. Prove that $|f(z)|\leq1$ $\forall z\in H$. I thought about taking the bounded set $H\cap D(0,R), R>0$. This way we could use the maximum modulus principle to prove it but I do not really know how to relate it with the limit since I would need $|f(z)|\leq1$ $\forall z\in H\cap D(0,R)$, and I do not have it on $D(0,R)$.


Show the following random variables in $\mathbb{R}^2$ have the same distritbution

$X_1, X_2, \cdots, X_n$ are independent Gaussian $N(0,1)$ random variables. I need to show that the following random variables in $\mathbb{R}^2$ have the same distribution: $\displaystyle U=\left(\bar{X}, \sum_{k=1}^n(X_k-\bar{X})^2\right)$ and $\displaystyle V=\left(n^{-\frac{1}{2}}X_n, \sum_{k=1}^{n-1}X_k^2 \right)$. Here $\bar{X} $ denotes the average of $X_1, \cdots, X_n$.  So far I can see that the components of $V$ are independent so $P(V_1\le x, V_2\le y)=P(V_1\le x)P(V_2\le y)$. I can also see that $U_1$ and $V_1$ have the same distribution (which they must). I don't directly see how $U_2$ and $V_2$ have the same distribution, although they must if $U$ and $V$ do.  Assuming the conclusion, the components of $U$ and $V$ must be identically distributed, respectively. Then the independence of $V_1$ and $V_2$ implies the independence of $U_1$ and $U_2$. Therefore the work reduces to showing that $u_1$ and $U_2$ are independent and $U_2$ and $V_2$ have the same distribution.


What determines which character can be borrowed from an ally?

For a given ally, I don't always get the same character to borrow, but it's usually one of the same two or three, and often it's the same one. It seems like it could be a random selection from among their most powerful characters. I've also read that it might be the character the ally most recently used as their leader.   I've noticed that my most recent team affects what's available. For example, if I had Chewie on my last team (for that squad) then no Chewies are available to borrow. That makes sense, in that I can't have two Chewies on my team, but they could just remove him on the squad selection and force me to replace him with someone else. Anyway, that's at least one thing that affects who can be borrowed, but is there anything else we know for sure?


Why do I keep getting logged-in despite logout and revoke?

I logged out from programmers.SE and have no intention to log back in, yet PSE is very insistent on logging me in whenever I accidentally visit the web site.  I'm using Chrome Sync but I don't think that synchronizes cookies. I'm logging in to other SE sites obviously and I just don't want to login to PSE.   The interesting thing is that I actually revoked access of PSE in my Google Accounts page. It's not listed there yet I keep getting logged in to the web site. This makes me think that there is something wrong with how OAuth is implemented somewhere.  I'm only using Google OAuth to login to SE sites.


I am new to Python, but I have experience in other OOP languages. My course does not explain the main method in python.   Please tell me how main method works in python ? I am confused because I am trying to compare it to Java.   def main(): # display some lines  if __name__ == "__main__": main()   How is main executed and why do I need this strange if to execute main. My code is terminated without output when I remove the if.  The minimal code -   class AnimalActions:     def quack(self): return self.strings['quack']     def bark(self): return self.strings['bark']  class Duck(AnimalActions):     strings = dict(         quack = "Quaaaaak!",         bark = "The duck cannot bark.",     )   class Dog(AnimalActions):     strings = dict(         quack = "The dog cannot quack.",         bark = "Arf!",     )  def in_the_doghouse(dog):     print(dog.bark())  def in_the_forest(duck):     print(duck.quack())  def main():     donald = Duck()     fido = Dog()      print("- In the forest:")     for o in ( donald, fido ):         in_the_forest(o)      print("- In the doghouse:")     for o in ( donald, fido ):         in_the_doghouse(o)  if __name__ == "__main__": main()


When is it ok to create a contraction of words followed by “s”?

When is it correct to create a contraction of words followed by is? For instance is who’s a correct short form of who is?


Is it possible to port ps4 or xb1 minecraft saves to pc minecraft?

I'm mostly wondering if there any way to port or convert minecraft ps4 saves into a format that is compatible with pc minecraft. I only own a ps4 and a pc, but I'm still curious if it's possible to do the same for xbox. Also, are there any legal reasons not to convert files from one platform to another?


Android - java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText...' on a null object reference

I know this has been asked many times before, but even by looking at similar posts, I haven't been able to figure this out.  Here is my MainActivity class:  package binchtitsinc.adventuregameamlior;  import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.TextView;  public class MainActivity extends AppCompatActivity {      private int compteur;     private TextView display;      @Override     protected void onCreate(Bundle savedInstanceState) {          super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);         compteur = 0;         display = (TextView) findViewById(R.id.Afficheur);         display.setText("Count is: " + compteur);           Game theGame;          theGame = new Game();          theGame.play();      }       public void plusOne(View button){         compteur=compteur+1;         display.setText("Count is: "+compteur);      }      public void toUser(String texte){         display.setText("Message:"+texte);     } }   I already checked, the ID is correct (R.id.Afficheur).  What's really weird is that when I call toUser in that class, it works flawlessly. However, when I call that method from another class (here, "Game"), I get the error that I pasted in the title.  Here is the beginning of my class Game:  package binchtitsinc.adventuregameamlior;  /**  * Created by Leo on 11/04/16.  */ public class Game {      //Attributes      private Parser parser;     private Energy energy;     private Room currentRoom;     private Room goalRoom;     private MainActivity main;     private DirectionLexicon dirVocabulary;     private CommandLexicon commandVocabulary;     private boolean wantsToQuit;     private boolean hasTheItem;      //Methods      //Public methods      /**      * This is a constructor.      * It creates the game and initialise its internal map.      */     public Game() {         dirVocabulary = new DirectionLexicon();         commandVocabulary = new CommandLexicon();         createRooms();           energy = new Energy();         main = new MainActivity();          parser = new Parser(2);  //the parameter 2 here in the call to the constructor of Parser means that in this game         // sentences typed in by the player will contain at most 2 words.     }       /**      * Main play routine.  Loops until end of play.      */     public void play() {         printWelcome();          // Enter the main command loop.  Here we repeatedly read commands and         // execute them until the game is over.          wantsToQuit = false;         hasTheItem = false;         while (!wantsToQuit) {             if (!currentRoom.isSameRoomAs(goalRoom) || !hasTheItem) {                 // && is the logical operator AND                 // ! is the logical operator NOT                 // currentRoom.isSameRoomAs(goalRoom) checks whether we have reached the goal.                 parser.getAndAnalyzeSentence();                 if (parser.lastSentenceLength() > 0) {// Here we know the player has typed in at list 1 word                     if (commandVocabulary.isLexiconWord(parser.word(1))) { // here we know the firs word typed in corresponds to a known command                         if (energy.getEnergy() <= energy.move) { // If the remaining energy is less than the amount required to move, it's over                             main.toUser("You don't have any more energy. You're dead.");   printwelcome() calls that main.toUser() method, and it's also at the end of the pasted code: main.toUser("You don't have any more energy. You're dead").  Any ideas?


I am remotely connected to a system using ssh and want to run nmap on a system from there. But every 5 minutes, my SSH connection breaks and so the process running on my shell stops.  How can I run nmap in the background so that any SSH session can interact with the process?


Difference between astronomy and astrophysics

In my university, the department for  and  are distinct. I want to know what's basically the difference between the two fields?


I would like to install  on my computer, which I like because of its beautiful design. I currently have Ubuntu installed, downloaded the Nitrux ISO and would now like to create a bootable USB. So far all attempts that I tried did not seem to work (Rufus, start up disk creator, dd,...)'  Is there something special with this OS? According to the website it has to be "deployed not installed" even though I think this would be after initially booting it from a usb. Do I maybe have to change some config in Ubuntu so that  the bootable device will be recognised?


Why does document.write("...") break my code?

I'm trying to get the following Javascript work (it should be an embedded survey from formstack.com that shows up on specific days).  However, when I try to view it all I get displayed is the string (without the quotes) "'); }"  What is wrong?  <head> <script type="text/javascript">  var theDate = new Date(); var dayOfWeek = theDate.getUTCDay();  // Returns true if the restaurant is open function isOpen() {     //I'll fill this in later, for now, return true     return true; } </script>  </head><body> <script type = "text/javascript"> if(isOpen()) { document.write('<script type="text/javascript" src="http://www.formstack.com/forms/js.php?1134414-uqmj2UXxEw-v2"></script>'); } </script> </body>


What is the SE version of Seven Dirty Words?

Caution: R-rated language  Some words, when present in a comment, make it eligible for instant, automatic one-flag deletion. Out of the , only      shit and fuck    appear to work this way. But then there are other, Stack Exchange-specific dirty phrases:    accept rate or accept-rate acceptance rate  what have you tried   whore    Are there other such words or phrases? Is there a complete list of them?     Some suspect words and phrases that do not suffice for automatic deletion:       accept an/the answer, thank you, voting to close, piss, bitch, idiot, cunt (often found on Stack Overflow as a misspelling of "count").


How can I manage computers using my Firefox Sync account?

I`m using Firefox Sync on a bunch of computers.   I would like to manage my account, by removing some computers. I can't find the place to do this, it should be on the Firefox Sync page, but the official page only has the privacy and download information.


Could Dark Energy just be particles with negative mass?

Title speaks for itself.  Dark matter: We see extra attractive force, and we posit that there are particles which create such a force, and use the measure of that force to guess their locations.  Dark Energy: We see extra repulsive force.   Only thing is, dark energy is uniform. So I suppose the stuff would have to be (at least somewhat) uniformly distributed throughout the universe. How uniform do we know it to be? Could the "stuff" be somehow a part of empty space itself?


Where did the age go on the network profile?

Ever since the profile redo, the age was shown in the network profile, but not in the per-site profiles. So if someone wanted to see the age, they had to go to the network profile. However.. It's vanished! The field is still there in the profile editing, however. It doesn't appear as if this was implemented:   So... Where is it?


So I got an att galaxy s5 that is being used on tmobile service.  Am I out of luck as to getting either the att 4.4.4 update or the tmobile lollipop update?  Checked through settings and version is 4.4.2 and shows as no new update is available for att and I do not see an option for tmobile.


How to install a Brother dcp-135c printer?

Recently moved over onto Ubuntu. First time for anything like this for me as I'm coming from Windows but I'm here and ready to learn. The only problems Ive experienced so are saving in Libre office doc as a word doc file and then losing the formatting upon receival via email. However the more pressing issue is getting my old Brother DCP 135 c to work. Ive scanned a few help blogs and have found them frankly quite frightening.  Would it be possible for someone to write u a step by step guide (including explanations of terminology)  For those of us new to this magic world?


Distance between two DNA molecules $x, y$

A DNA molecule can be represented as a string of symbols $A, C, G$ and $T$, such as $GGATAATTCTAG\ldots GACCGTACCC$.   For the purposes of this question, we will assume that all DNA molecules contain the same (large!) number $N$ of symbols. Thus, a DNA molecule is an $N$-tuple $x = (x_1,\ldots , x_N)$ where $x_i\in\{A,C,G,T\}$ for each $i$.  Define the distance between two DNA molecules $x, y$ as the number of elements $i$ in ${1, \ldots ,N}$ such that $x_i\neq y_i$.   Prove that this defines a metric on the set of DNA molecules.  Tutor defined a set $S(x,y)=\{1,3,6\}$. Why is this? The rest of the working after that is fine.


Preordering the table by a specified column

I have a table and I am always getting the data by ordering a column. In my case, I  order by datenum. However, the selection is so slow because of the ordering.  Is it possible to order the table after datenum. This column is defined as unique. If  defined as an index, would the selection will be faster?


subject verb agreement: "the downside are the messages"

Which is the correct one:     the big downside is the imperfect messages the user gets.        the big downside are the imperfect messages the user gets.   I am almost sure the second one is correct with "the messages" being the subject and "are the downside" the predicative nominal.


I have a problem with dpkg when I try to install any package.  Here is log output:  ➜  LC_MESSAGES=C sudo apt install tree Reading package lists... Done Building dependency tree        Reading state information... Done The following NEW packages will be installed:   tree 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded. Need to get 0 B/40,6 kB of archives. After this operation, 138 kB of additional disk space will be used. Selecting previously unselected package tree. dpkg: unrecoverable fatal error, aborting:  files list file for package 'libvo-aacenc0:amd64' is missing final newline E: Sub-process /usr/bin/dpkg returned an error code (2) ➜


extract some arabic/persian (unicode) words with regex using python

I need to extract some specific names in Arabic/Persian (something like proper nouns in English), using python re library. example (the word "شرکت" means "company" and we want to extract what the company name is): input: شرکت تست گستران خلیج فارس output: تست گستران خلیج فارس  I've seen  and it would be fine to replace "university" with "شرکت" in that example but I don't understand how to find the keywords by regex with Arabic Unicode when it's not possible to use that in this way: re.match("شرکت", "\u0634\u0631\u06A9\u062A") # returns None


Who were the Blue Wizards mentioned in the first Hobbit film?

Gandalf names the wizards but can't remember their names. Who were they?


Mass converted to energy in a common fire?

In a common wood fire such as a campfire, is matter converted to energy or is it simply an exothermic chemical reaction and all the mass can be accounted for in the ash and soot?


I want to show that $X=S^1=\{x^2+y^2=1|x,y\in \mathbb{R}\}$ and $Y=\mathbb{R}^2-\{0\}$ are homotopy equivalent. For this I have to find a function $f:X\rightarrow Y$ and a function $g:Y\rightarrow X$ such that $f\circ g$ is homotopic to the $id_Y$ and  $g\circ f$ is homotopic to the $id_X$.  The construction of $g$ is easy: $g(x,y)=\frac{1}{\sqrt{x^2+y^2}}\begin{pmatrix}x\\y\end{pmatrix}$.  But how do I construct $f$? There is a certain ambiguity 'how much I stretch the unit circle'?  Many thanks in advance


Let $$l^2=\left\{(x_n):\sum_{n=1}^{\infty}x_n^2<\infty\right\}$$      equipped with the norm   $$\|(x_n)\|=\left(\sum_{n=1}^{\infty}x_n^2\right)^{1/2}.$$      Prove that $l^2$ is complete with respect to the norm $\|\cdot\|$.   Can somebody please check my working?  Here is my working and some of my doubts:  We need to show that every Cauchy sequence in $l^2$ has a limit in $l^2$.   I first define the metric as (am I correct to define it in this way?): $$d((x_n),(x_m))=\|(x_n)-(x_m)\|=\left(\sum_{k=1}^{\infty}((x_n)_k-(x_m)_k)^2\right)^{1/2}$$  Pick any Cauchy sequence and we write it as $d((x_n),(x_m))\to0$.  So $d((x_n),(x_m))=\sqrt{\sum_{k=1}^{\infty}((x_n)_k-(x_m)_k)^2}$ $=\sqrt{\sum_{k=1}^{\infty}(x_n)_k^2-2\sum_{k=1}^{\infty}(x_n)_k(x_m)_k+\sum_{k=1}^{\infty}(x_m)_k^2}$   Since $\sum_{k=1}^{\infty}(x_n)_k^2$ and $\sum_{k=1}^{\infty}(x_m)_k^2$ are both finite, so the sum is finite.  But here are the parts that got me stuck:  Is $\sum_{k=1}^{\infty}(x_n)_k(x_m)_k$ finite? If it is finite we are done isn't it? We have shown that there is a limit.  And my last doubt is how can we show that the limit lies in $l^2$? Do we have to show that it can be written as $\sum_{j=1}^{\infty}x_j^2$ for some $(x_j)$?  EDITTED: I think it is not a duplicated question, I asked some different points.   I really need some help. Many thanks!


How to install Ubuntu 18.04 alonside Ubuntu 20.04 and Windows 10?

I have a laptop with windows 10 and I want to install both Ubuntu 18.04 and 20.04 alonside with windows. How do I do that? Does the installing order of 18.04 and 20.04 matters?


is framerate the same for video as for photo?

If a DSLR can record 1080p video at 60fps, why is it only capable of continunous shooting at, maybe 5fps? If frames per second are frames per second why can't you take 60 photographs per second? Is there something fundamentally different about a frame of video, compared to an individual photograph?


Is it a bad idea to plug the other end of ESD strap to wall ground?

I have gone through  on Superuser, while it provides good information, I still have a specific question from electrical/electronics engineering point of view.  Is it wrong and unsafe to connect the other end of the ESD wrist strap to the ground point on the wall socket?  What harm can it do and if it’s wrong, why?  I was watching a Youtube video about assembling computers by a user who seems to be a professional and he says he has been in the business for over 2 decades.   The video discourages connecting ESD strap to wall socket ground, it also says that when you connect ESD strap to metallic part of cabinet, remove the power plug from the PSU. However except a reasoning that you could get electrocuted with such a setup, no further technical explanation is given.  I have worked in an IT company that was TL9000 quality certified. This standard demands ESD protection deployment wherever necessary. All relevant test benches there had ESD mats connected to common ground. All terminals had a point to plug the ESD strap’s other end and all those were connected to ground and eventually going to the earth pit. So discouraging  ESD strap connection to wall socket ground (that ultimately goes into the Earth pit) is a totally new concept to me.


I wrote a simple backup script which back ups my stuff on a remote server, everything is working great but I'd like to have some sort of report like "backup successful or not".  this is my script   # backup CHECK date1=`date +"%d.%m.%y - %H.%M"` host=`hostname` twdate=`date +"%d.%m"` performtw=`ls -la|grep "tw"|grep "$twdate" > tmp1.txt` echo $performtw if cat tmp1.txt|grep "tw" then echo backup successfull printf "tw backup success!" | mail -s "tw backup check $date1 repor$ rm tmp1.txt else echo backup failure printf "sitename backup failure!" | mail -s "site backup check $date1 repor$ rm tmp1.txt fi exit   But this isn't working really well and I ask you if there's some simpler and more powerful way to do it? Basically it just needs to check if file exists with the name starting xyz and was created at date xyz.


Edit- the answer is mach's principle and mach's principle is sketchy so there is no good answer.  So I understand that centrifugal force is really just inertia and stuff but I still have a question. In a sci-fi movie, a spaceship is shown rotating to generate artificial gravity as it flies through space. If you rotate the camera with the spaceship, it doesn't appear to be rotating and there wouldn't appear to be a centrifugal force. So what is the frame of reference for if a spaceship is rotating? I picture a spaceship launched from earth. It doesn't rotate so the astronauts float around and stuff. The spaceship then flies through the cosmos, without rotating, and parks itself above a rapidly spinning planet. The astronauts still think the planets rotating, not them, but any aliens looking up would be puzzled by the fact that despite the rapid rotation, no centrifugal force happens. There may not be a universal reference for movement, but is there one for rotation? If astronauts have mass and are spinning in circles with the spaceship, wouldn't their inertia fling them outwards?


Proving $\frac{\sin x}{x} =\left(1-\frac{x^2}{\pi^2}\right)\left(1-\frac{x^2}{2^2\pi^2}\right) \left(1-\frac{x^2}{3^2\pi^2}\right)\cdots$

How to prove the following product? $$\frac{\sin(x)}{x}= \left(1+\frac{x}{\pi}\right) \left(1-\frac{x}{\pi}\right) \left(1+\frac{x}{2\pi}\right) \left(1-\frac{x}{2\pi}\right) \left(1+\frac{x}{3\pi}\right) \left(1-\frac{x}{3\pi}\right)\cdots$$


Proving the existence of an integer $n$ such that $2^n=123456789...$

How to prove that it exists an integer $n$ such that the decimal expansion of $2^n$ starts with $123456789$?


What could these IP addresses with MAC: 00:00:00:00:00:00 be?

I have a pretty much out of the box setup of openwrt, though I followed the 'securing your router guide', so password set, ssh on different port (so security through obscurity). However, I see some odd IP address connected to the WAN interface:  root@OpenWrt:~# cat /proc/net/arp IP address       HW type     Flags       HW address            Mask     Device 192.168.1.67     0x1         0x0         00:00:00:00:00:00     *        eth0.2 192.168.1.115    0x1         0x0         00:00:00:00:00:00     *        eth0.2 192.168.1.4      0x1         0x0         00:00:00:00:00:00     *        eth0.2 192.168.1.1      0x1         0x2         00:1f:90:XX:XX:XX     *        eth0.2 ...   I know 192.168.1.1 is my ISPs router which I connect my OpenWRT router to, but I'm unsure what the others are. Also they have a weird MAC address. Does anyone know what that might be? My set top box has a 192.168.1 address but it is not one of these currently one of these. Could it be that it has been assigned different IP addresses at different times and ended up in my ARP table?  I'm using BARRIER BREAKER (14.07-rc3, r42056)


Proof by Induction problem. Unsure of sigma notation.

I want to use proof by induction to verify  $$\sum_{j=n}^{2n-1} (2j+1) = 3n^2.$$  First I assume that the expression is valid for some number k,  $S(k) = 2k + 1 $  Then k + 1 so that,  $S(k+1) = s(k) + a(k+1) = 3k^2 + (2(k+1)+1) = 3k^2 + 2k +3 $  However, if I try to insert j = k + 1 into the sum-formula $ 3n^2 $ it equals $3(k+1)^2= 3k^2 + 6k +3 $. Which is not the same. What am I doing wrong?