"this code works for string id less than 20 but grater than 1000 it returns -1. " "---MySpinner.setSelection(adapter.getPosition(new CustomSpinnerList(String.valueOf(id), name)));// Sample    id="1254",name="Aaaaa aaa" ---------------------------------------------------------  private void setADivisions(int divisional_id) {     DatabaseHelper myDb= new DatabaseHelper(this);     ArrayList<CustomSpinnerList> MyArrList = new ArrayList<>();     Spinner MySpinner = (Spinner)findViewById (R.id.spinnerDivision);     List<SysDivisionTable>   MyList=myDb.get_all(Integer.valueOf(divisional_id));         int id=0;         String name="";         myDb.closeDB();         for(SysDivisionTable MyTable:MyList) {             if(MyTable.Get_col_A_division_id()==current_Adiv_id) {                  id=MyTable.Get_col_A_division_id();//="1245"                 name=MyTable.Get_col_A_division_name();="Aaaaa aaa"             }             MyArrList.add(new CustomSpinnerList(String.valueOf(MyTable.Get_col_A_division_id()), MyTable.Get_col_A_division_name()));         }      ArrayAdapter<CustomSpinnerList> adapter = new ArrayAdapter<CustomSpinnerList>(this, android.R.layout.simple_spinner_dropdown_item, MyArrList);     Log.d("D01", "adapter.String.valueOf(id) "+ String.valueOf(id)+ " *** "+name);     Log.d("D02", "adapter.getPosition"+ adapter.getPosition(new CustomSpinnerList(String.valueOf(id), name)));      MySpinner.setAdapter(adapter);     MySpinner.setSelection(adapter.getPosition(new CustomSpinnerList(String.valueOf(id), name)));// Sample    id="1254",name="Aaaaa aaa" }        public class CustomSpinnerList {         private String id;          private String name;          public CustomSpinnerList(String id, String name) {             this.id = id;             this.name = name;         }         public String getId() {             return id;         }         public void setId(String id) {             this.id = id;         }         public String getName() {             return name;         }         public void setName(String name) {             this.name = name;         }         @Override         public String toString() {             return name;         }         @Override         public boolean equals(Object obj) {             if(obj instanceof CustomSpinnerList){                 CustomSpinnerList c = (CustomSpinnerList)obj;                 if(c.getName().equals(name) && c.getId()==id ) return true;             }             return false;         }     }


If a body with an accurate clock is moving away from A which is stationary, then the time in B would be slower than that in A. Since relative to B A would have an equal velocity time in A would be slower than that in B. This results in a contradiction. This is the argument given in this . Can someone say how this argument is wrong from a deeper study of SR.?


Why are there no line numbers in the code listings?

Would it make discussing code easier if you could simply refer to a particular line or range, or am I wrong?


How to convert from one grading scheme to another?

I'm trying to figure out the equivalence between grade schemes in different countries.  According to some Google results:   If you are a U.S. citizen, you need a GPA of 3.2+ (it varies, some say 3.2 and some others say 3.6, etc) to apply for a position in the UK (job or university) where the prerequisite is to have a minimum grade of 2:1. In UK 2:1 is earned if you have a 60-69% of the points. I've read that 2:1 is the same as 67%. In Spain we use a grading scheme of 10 points. So according to (2), for have a UK 2:1 you need to have 6-6.9 points. If you are Spanish and have 6.7, when converting it to GPA the result is 1.5.   However, if you take the above points and treat them as a math equation, the final result will be GPA 1.5 = GPA 3.2, which doesn't make any sense.  GPA 3.2 = UK 2:1 UK 2:1 = Spain 6.7 Spain 6.7 = GPA 1.5   Replacing now...  UK 2:1 = GPA 1.5     GPA 3.2 = GPA 1.5   My question is if someone has a better explanation on converting grades obtained in different countries.


Javascript addition results unwanted zeros

This looks like simple but really weird why this happens. Consider below example  var a = ['1.53','3.00','5.00']; var total = 0; a.forEach(function(t){ total += Number(t) }); console.log(total)//9.530000000000001   This prints 9.530000000000001 instead of 9.53. This could be fixed by total.toFixed(2). But please advise why the 0000000000001 added in the result.


word(s) to describe someone judge others by one tiny detail

I wonder if there is a word or a few words or phases that describe a person very often:    judge a person based on one or two tiny details or critise harshly over small mistakes that one made (probably by accident) ignore the reason behind the details or the mistakes often use exaggeration and have twisted logic   For example, one employee has always been punctual but 5 minutes late for one meeting because he was in a car accident. The boss forgot about all the times that the employee was on time and criticized him as 'worthless', 'looser' (exagerated criticising) and refused to listen to any explanation.   Being late was the fact, but the boss is ____ to judge the employee as a person based on this one incidence.   Thanks for the replies, I think these two are the closest:  'judgmental' (too quick to criticise people); 'nitpicking' (find faults in small details)  EDIT: ---- I found that this question is marked as 'duplicate' as 'A single word for someone who is not pleased no matter how hard you try'. The answer to that question is 'implacable', I realize that it does fit well in the 'boss' example, maybe because bosses are often described as pure evil, it is easy to link, but what I was searching for wasn't completely about the evil doing, more about deriving the (often wrong) judgement on your entire personality from one small incidence.  Example:   You were having dinner with some friends. There was tea, you took one sip without noticing the steam, found out that it was too hot, by instinct, you swallowed it with your mouth slightly open, which made a noise that sounded like you slurped (detail/mistake). When you went back, your friends made jokes of you and told everyone that you slurp when you drink. They pointed out that it was because you were born in a small village, so you are 'barbarian', you must slurp a lot before you came to the city (judgement). The fact is that you were born in a village but slurping has nothing to do with it (friends have no logic). The incidence at the dinner was because the tea was hot. Your friends know the tea was hot but still make fun of you (ignore the reason) about your (background, status, family etc.).  These friends may talk to you, help you, but they still think you as 'barbarian' because of one incidence. They also laugh with you at others (in the same way) when they find a new target, so you want to say to your friends:  "Hey, you are ____ / it is ____ to treat people in this way, please stop doing that."


How do I pass dynamic number of lists to a varargs method?

I'm trying to write a reusable method for unit tests to be able to mock the behaviour for a certain class which returns a List<String>, so that I can call this mockInstansiate method to set up the mock. How do I pass in multiple lists for the thenReturn() method? I know I could do .thenReturn().thenReturn().thenReturn etc, but I was hoping to be able to make this dynamic as I won't know how many lists I will have.  The error I am getting is:  Cannot create a generic array of ArrayList<String>   Code:  private void mockInstansiate (List<String> wheels) {     Machine machine = mock(Machine.class);     List<List<String>> results = new ArrayList<List<String>>();      for(String wheel : wheels) {         List<String> result = new ArrayList<String>();         result.add(wheel);          results.add(result);     }      List<String> wheel1 = results.remove(0);      /* Issue here, I'm trying to create an array of List<String> to pass      * into the second part of thenReturn() */     List<String>[] otherLists = new ArrayList<String>[9];     when(machine.getLists()).thenReturn(wheel1, results.toArray(otherLists)); }  class Machine {     public List<String> getLists() {         // Doesn't matter what's here, it's being mocked out     } }


Equality of two analytic functions based on a condition

Suppose that $f$ and $g$ are two analytic functions on the set $\phi$ of all complex numbers with $f(\frac{1}{n})=g(\frac{1}{n})$ for $n=1,2,3,\ldots$ Then show that $f(z)=g(z)$ for each $z$ in $\phi$.   I am not able to even start proving it. Can some one please help me?


Can I call ID Element HTML from variabel in jquery

I have some values from a JSON ARRAY. The values are Value1,Value2,Value3 and I have a checkbox in HTML with an ID the same as the Value.    I want to auto-check the checkbox which has the value from the JSON Array.  I tried to do this with below code:  var OtherPay = response.OtherPay; var benefit = OtherPay.split(","); var sum = benefit.length;  for (var i = 0; i < sum; i++) {           $('#'+benefit[i]).attr('checked',true); }


How to open desktop shortcuts in non-default browser - without address bar & menubar visible

I have a shortcut on my Desktop which points to an internet address.Usually it opens in my default browser which is chrome.  But I want to open it on Firefox without the address bar and menu bar visible.  And if possible, I'd like to define a custom window size for Firefox too.  How can I do this?


How can the regression error term ever be correlated with the explanatory variables?

The first sentence of this  page claims that  "In econometrics, an endogeneity problem occurs when an explanatory variable is correlated with the error term. "  My question is that how can this ever happen? Isn't regression beta chosen such that the error term is orthogonal to the column space of the design matrix?


Does one need to standardize data before PCA even if all the variables are measured in the same units?

I have been learning about PCA and SVD. And I know that to standardize the features before PCA is necessary. But I came across the book rating matrix, which makes me confused about what standardization do to the features.  So in a book rating matrix, a row is the rating a user gives to different books, and it can be ranging say from 0 to 5. So in this matrix, we know that all columns have the same unit measurement (1). However, for each column, the variance is not necessarily 1 (think about a book with ratings [1,4,5,1,1,1]). But it seems that because all columns/features have the same measurement, we do not need to standardize this matrix before PCA.  This makes me wonder that when we perform standardization on a dataset with features on different measurement(age and income for example), we are bringing the variance to 1 for ALL the features, my question is that will this make the features lose information?  Or more generally, should unit measurement, or unit variance, be the goal of data preprocessing?


How can I save a Pokemon I want to keep so I can restart the game (without using the Pokebank)?

I found out that male customization sucks in X/Y, so I'd like to start over as a female character.   However, I got Absol from Wondertrade and I'd like to keep it on the new save. I know that you can use Pokemon bank, but my family doesn't allow me to "buy" it. So my question is how can I do so without Pokemon Bank?


I have ext3 filesystem mounted with default options. On it I have some ~ 100GB files.  Removal of any of such files takes long time (8 minutes) and causes a lot of io traffic, which increases load on server.  Is there any way to make the rm not as disruptive?


How to derive the Dilogarithm reflection $\operatorname{Li}_2(x)+\operatorname{Li}_2(1-x)=\frac{\pi^2}{6}-\ln(x)\ln(1-x)$?

While exploring some interesting sums involving the harmonic numbers, I stumbled onto a useful identity for the Dilogarithm. $$\operatorname{Li}_2(x)+\operatorname{Li}_2(1-x)=\frac{\pi^2}{6}-\ln(x)\ln(1-x)$$  I tried using the sum formula for the Dilogarithm and combining $\operatorname{Li}_2(x)$ and $\operatorname{Li}_2(1-x)$ but had no success. I would be very grateful if anybody could show me how this reflection formula is derived.


public interface myInterface<T> {      public List<T> doWork();  }  public abstract class baseClass<T> implements myInterface<T>{      protected T obj;     protected List<T> list;      public baseClass<T>(){          //how do I initiate obj?          //how do I initiate list?     }    }  public class myClassA extends baseClass<T> {   public List<T> doWork() }   I have this code and I was wondering how I could initiate obj and list of type T dynamically.


What other hidden or inobvious RSS feeds are available on Stack Exchange and its sites?

I know about finding the RSS feed icon at the bottom of any "Top Questions" page, giving access to , , ,  &  questions feeds. I also know that you can get RSS feeds from tags such as  and even construct searches with . Also, I have  that you can get  and by inference a full , and even , but I don't know what other user related feeds are available. As far as I can tell, Stack Exchange only supports the  and the  just returns the same as the hot questions feed. Also, Stack Exchange doesn't appear to support user feeds, which is a shame as that . So, to summarise what feeds I can identify so far:  http://stack exchange site/feeds ( ) http://stack exchange site/feeds/featured ( ) http://stack exchange site/feeds/hot ( ) http://stack exchange site/feeds/week ( ) http://stack exchange site/feeds/month ( ) http://stack exchange site/feeds/tag/tag ( ) http://stack exchange site/feeds/tag/tag1+tag2 ( ) http://stack exchange site/feeds/tag/tag1+or+tag2 ( ) http://stack exchange site/feeds/tag/tag1+-tag2 ( ) http://stack exchange site/feeds/tag?tagnames=tag&sort=newest ( ) http://stack exchange site/feeds/tag?tagnames=tag&sort=featured ( ) http://stack exchange site/feeds/tag?tagnames=tag&sort=hot ( ) http://stack exchange site/feeds/tag?tagnames=tag&sort=votes ( ) http://stack exchange site/feeds/tag?tagnames=tag1+tag2 (+an optional &sort= term) ( ) http://stack exchange site/feeds/tag?tagnames=tag1+or+tag2 (+an optional &sort= term) ( ) http://stack exchange site/feeds/tag?tagnames=tag1+-tag2 (+an optional &sort= term) ( ) http://stack exchange site/feeds/user/user id ( ) http://stack exchange site/feeds/user/user id/responses ( ) http://stack exchange site/feeds/question/question id ( ) https://stackexchange.com/feeds/questions ( ) https://stackexchange.com/feeds ( )  While the following inferred possible RSS feeds don't work:  http://stack exchange site/feeds/votes ( ) https://stackexchange.com/feeds/user/user id ( )  So, what other RSS feeds are available? So far I have been unable to find any canonical list of what is available, just the occasional meta post containing partial information. So far there have been no responses to  while the  references a question which is no longer appears relevant (as far as I can see).


I know that $2^\mathbb{N}$ is not countable but what is wrong with the following "proof"?  Consider the following map $f: \mathbb{N} \to 2^\mathbb{N}$, which maps a natural number $n$ to a set of integers which correspond to the index of non-zero bits in $n$'s binary representation:  $$f(n)=\{i ~|~ n = \sum_{j=0}^\infty k_j2^j \text{ and } k_i=1\}$$  $f(n)$ is clearly "onto" since for any $S\in 2^\mathbb{N}$, there exists a natural number $n = \sum_{i\in S} 2^i$ s.t. $f(n)=S$.  However, if $f(n)$ is onto, then this is effectively proving that $2^\mathbb{N}$ is countable, which is, of course, false. Where was the mistake?


What can I do when I've introduced an overpowered plot element?

In my homebrew setting, one god gave his cultists the recipe for a special alloy, and a rival god gave to a kingdom that opposes the cultists the same recipe.  The PCs acquired a warhammer made of this alloy—called dense iron—, and it alone is sufficient to render insignificant a large number of encounters the PCs face.  The problem is that I've already equipped the cultists and the kingdom's army with dense iron armor, weapons, and shields, so the PCs will need their own dense iron weapons to defeat those foes, but I've made it so dense iron is so powerful that it makes many normal adventures now impossible.  This 's answers are on a much smaller scale. I've not introduced a lone overpowered item; I've introduced an overpowered campaign-spanning plot device.  What's the best way to reduce this alloy's power without leaving my plot in shambles and the PCs wondering Why's my dense iron hammer not working as well as before?


Ubuntu making an interface as default network interface

I am running an Ubuntu laptop which is connected to WiFi and is capable of accessing internet. There is my old desktop machine which do not have the WiFi card. So I connected my laptop to WiFi and configured a proxy server on this machine and connected the desktop and laptop via LAN wire.  Now desktop is set to use the proxy server on the laptop machine. Problem is that laptop considers the eth0 interface as default interface and wlan interface as secondary interface. So when I connect the LAN to laptop, it cannot access internet using the wlan interface but it tries to connect over the eth0 interface( I think). how to assign the wlan2 as my primary interface. I am not asking how to share connection but how to change default connection


I know that only square matrices can have inverses. Nevertheless, assume that we have an $n \times k$ matrix $A $ with $n\neq k$. Then it may still be possible to construct a matrix $B$ such that  $$BA=I$$  For example, assume that $B=(A^TA)^{-1}A^T$, then $BA=(A^TA)^{-1}(A^TA)=I$  I know that $B$ cannot be called an inverse, due to the definition of inverse requiring $A$ to be a square matrix. Nevertheless, it is sort of like an inverse, so do we have a name/theory about these kinds of "inverses"?


Why do we say "In which" in many formal essays and documents? I never understood this. The definition for which on Merriam Webster is "being what one or ones out of a group". Why is it that we have adapted to using the word 'which' outside of interrogative sentences?


How do I know if it's safe to travel to a country at a specific time?

Are there travel websites constantly updated with safety tips and political situation of countries?


Does quantum spin suggest particles have extent?

I have taken a few quantum mechanics courses recently, which has involved quite a bit of work with quantum spin. The professors keep saying that spin is analogous to a classical body spinning on its axis. However they always make sure we clearly understand this isn't exactly what is happening, because quantum mechanics deals with point particles. Because they don't have extent, there is nothing 'poking out' from the centre of the particle that can spin around the axis.  However it seems to me that if particles in quantum mechanics have this property, it would suggest that they might not be point particles after all, and have some 'size'. No doubt this has been investigated quite thoroughly.  I was wondering then why intrinsic spin isn't considered evidence that particles aren't just points, and have 'size' or 'shape'?


How do I test if a file does not exist using ZSH?

This question is about ZSH, not bash.  I have the following lines in my .zshrc file.  Whenever I open a terminal I get a no matches found error referencing the line with the if statement.  if [[!( -a ~/.zkbd/$TERM-${${DISPLAY:t}:-$VENDOR-$OSTYPE} )]]; then     zkbd fi   I read through the ZSH documentation and my if statement appears to be correct.  I don't understand why I'm getting the error.  What I'd like to happen is for the zkbd utility to run if the file in the .zkbd folder does not exist.


Find the values of $n$ that make the fraction $\frac{2n^{7}+1}{3n^{3}+2}$ reducible.

Question :   Find the values of $n\in \mathbb{N}$  that make the fraction $\frac{2n^{7}+1}{3n^{3}+2}$ reducible ?   I don't know any ideas or hints  how I solve this question ?   I think we must be writte $2n^{7}+1=k(3n^{3}+2)$ with $k≠1$   If any one have any idea or hint please give me to see   Thanks!


The policy on changing one's display name :  only one display name change is allowed every 30 days  However, there is no warning whatsoever when actually changing one's display name.  Thus, it came as quite a bit of a shock to me when I found out today that I might be stuck as "Unicorns are Yummy" on Stack Overflow for the next freakin' month. I would like to recommend that a warning be added to the "Edit Profile" page to warn people. Or, at least make the policy concerning display name changes more obvious. Workaround I was able to change my display name back (phew!) by copying my profile from Meta Stack Overflow. I still think a warning should be implemented, though.


EEVEE render image not using HDRI lighting... Blender 2.83

I have checked the 'film transparency' option but I still want the lighting from the HDRI. From the viewport I have checked the 'Scene Lighting' and left the 'World Lighting' unchecked... From what I've been learning I needed to add the same HDRI scene into the 'world' setting. I have turned off all my scene lights and nothing really changes on my final render but as soon as I check on 'World Lighting' I get the result of my final render which is darker and not what I want. How can I get my render to look like my viewport... I'm learning Blender after a long time of not using it. I'd love some help please. Final rendered image, which I don't like. 'World Scene' unchecked:  Viewport rendered preview image, which I like 'World Scene' unchecked:  Viewport rendered preview image again, with the 'World Scene' checked:  I don't know what I'm doing wrong. If you can spot something please let me know. Thank you


I know that if a subgroup A is normal subgroup of the subgroup B,then B is contained in the normalizer of A . But I don not know what is the meaning of A normalizes B ?


How do I get rid of extra keyboard layouts in Windows 10?

As shown here, I only have 2 languages selected, with one keyboard each:      But in my keyboard menu, I have 4:    How can I get rid of English (US) and French (Legacy) Canadian?


Similar to , I would like to insert an external icon inside figure captions, something like:  \begin{figure} \caption{text with \includegraphics{icon} somewhere inside} \includegraphics{image} \end{figure}   How might this be done?


Shared email on 2 Facebook accounts is stopping access to both accounts

My husband wanted me to set up a Facebook account for him and I accidentally used our shared email address, which is set against my own account.  Since then, neither of us has been able to log in, so I can't alter any settings.  Can anyone advise how to resolve this please?


How to config Tomcat to serve images from an external folder outside webapps?

How can i use Tomcat to serve image files from a public folder outside webapps? I dont want to use a 2nd Apache fileserver on a different port since the image files are part of the same app. And i dont want to create a symlink to the public folder inside webapps since my app is deployed as a war file....Is there a simpler solution similar to using default servlet for static content inside webapps, for static content outside outside webapps


Making a Deleted folder Impossible to Recover

Suppose you visit a bad location on earth with your laptop. Thieves are about to break in and steal your laptop.  So you run :  rm -rf /folder   but what if thieves have very advanced tools to recover deleted files ? perhaps as advanced as FBI / CIA tools.   Perhaps they will be able to recover that deleted folder w/ files ?  What would be the a way to ensure they can not ?


Let $D$ be a $\sigma$-algebra of subsets of a set $X$, and let $Y$ be an arbitrary subset of $X$. Let $B= \{ A\cap Y | A \in D \}$. Show that $B$ is a $\sigma$-algebra of subsets of $Y$.  If we let $A=X$, then clearly $Y \in B$.  Suppose $G \in B$. Show $G^c \in B$.  So $G = A\cap Y$ for some $A \in D$.  So $G^c = A^c \cup Y^c$  I'm stuck here! Not sure how to show $G^c \in B$  Let $G1,G2,G3,.... \in B$. Not sure how to show that the infinite union of the $G_i$'s is an element of $B$.


Joint density function of $X+Y$ and $X/{X+Y}$ for $X$, $Y$ exponential random variables with parameter 1.

Given 2 independent $exp(1)$ random variables $X$ and $Y$, how would one calculate the joint density function $f$$A,B$$(a,b)$ of the 2 random variables $A$ and $B$, where $$A = X+Y$$ $$B = \frac{X}{X+Y}$$ I attempted to first find the c.d.f $F$$A,B$$(a,b) = P(A<a, B<b)$ but I am stuck trying to convert that into an integral. Thanks in advance.


Let $A=\{a+b\sqrt{2}\mid a,b\in\mathbb Z\}$ and let $Y\subset A$ with $x\in Y$ iff $x\in [0,1]$.  I'm trying to prove that $A$ is dense in $\mathbb R$ and already noticed that it is enough to show that $Y$ is dense in $[0,1]$. Could any one point me in a direction?   I have already looked at a proof of the density of $\mathbb Q$ in $\mathbb R$, where the core of the proof consisted of showing that between any two reals there is a rational. This was done by multiplying the reals with a natural number until the difference between them became bigger than one and noticing that you can find a rational between the two multiplied reals and divide that by the amount the reals got multiplied with and you get a rational between the two reals.  This method does not work identically in this case, because dividing an element in $A$ by a natural number won't always yield another element in $A$.  I will use this, when I have a proof, to prove that the quotient $\mathbb R/{\sim}$ with $r\sim s$ if $r-s=a+b\sqrt{2},\;\exists a,b \in \mathbb Z$ is not hausdorff. The density of every eq. clas in this quotient implies that the quotient topology must be the trivial one, hence the quotient cannot be hausdorff.


Independent Edit/Object mode in splitscreen

When I split screen in two and switch Edit/Object mode, they both change. How to change just one? The intention here is:  use one to modelling with numkey view with transparent wireframe and the other to see the progress in perspective, with solid mesh


Calculate posterior from normal prior and some observations

I know Bayes Theorem in a basic way. If I was given prior and likelihood in the form of probabilities I can fill in the formula. When watching  the following graph was discussed (2:50):    The light gray curve is the prior, probably something like $\mathcal{N}(55,10)$. How can I calculate the posterior distribution (dark gray) shown in the figure? It would need to be something along  $p(f|y)=\dfrac{p(f)\cdot p(y|f)}{p(y)}=\dfrac{\mathcal{N}(55,10) \cdot p(y|f)}{p(y)}$.  How do I find the likelihood $p(y|f)$ for "a few given observations" like those 4 points (58, 61, 64, 69) bps and what is the probability $p(y)$ of these observations?


Automating Find & Replace to change font colour

I write about the card game bridge, so I need to automate this formatting all the time:  Find all "♣" and color the text green (#00b700). Find all "♦" and color the text orange (#ff8100). Find all "♥" and color the text red (#ff0000). Find all "♠" and color the text blue (#0000ff).    .  @Mark built me a script to do this, but I'm getting this error:     "TypeError: Cannot find function setFontColor in object Text."


I am trying to reverse a string with a function and some pointers, but I can't get the function to update the original string.  #include <stdio.h> #include <string.h>   void rev(char* string) {     char str2[strlen(string)];     char *p1;     char *p2;      p1 = string + strlen(string)-1;     p2 = str2;      while(p1 >= string)         *p2++ = *p1--;      *p2 = '\0';     p2 = p2 - strlen(string);      string = p2; // This codesn't seem to update s1 or s2  }  int main(void) {     char s1[100] = "What does the fox say?";     char s2[100] = "Titanic sinks";      rev(s1);     rev(s2);      printf("\n\n%s\n", s1);      printf("%s\n", s2);      return 0; }   The functionality works but I can't get the strings in main to get updated with the reversed string. Imo string = p2 should update the string to the reversed value of it. It does, but only within the function, not in the main function...


Does anyone know what apps the notifications at the top left of the screen are for? I was sent a screenshot and I'm curious.


Animated movie that had black robots that turned people into stone late 1960s to 1970s

It was a weird sci-fi animated movie I saw only a little bit of it. This is what I recall:   It was old but had color, so I assume it was late 1960s to early 1970s. The animation and style reminded me of  but it wasn't as psychedelic. The setting was an alien planet with all sorts of bizarre creatures. The tech was advanced but not a dominant aspect of the planet's culture. The people lived simple and peaceful. The protagonist is a man with bluish skin like the others. The antagonists were humanoid shaped black robots that shot a beam that would turn people into stone.


is possible to burn Blu ray data disks encrypting data on them?

I am looking for a way to lock BD disks, so I can do a backup and not be worried that someone may access the data on them.  I thought to make a zip and protect it with password, then burn it, but this is dangerous, since if the disk gets damaged, and the archive can't be read, then all the data on it will be impossible to retrieve.  So I was wondering if there was a way to "format" a disk to be password protected and encrypted; so you can burn it and then access to it anywhere, using the password. If the disk is damaged, you can still recover other files, beside the ones on the damaged blocks.  I did a search but all that I get is how to protect a disk with a movie on it; which is not what I am trying to achieve.  I use Windows 7, the best would be something that can be read by OSX and Linux too, but would be great just to have something for either OSX or Windows 7


Error code 0x8007045d when trying to install Windows 8

My son's laptop was failing for the second time, so he decided to erase the hard drive and try to install Windows 8.1 back onto it, but it doesn't install. My error message (as shown in the photo) is:   We couldn't install Windows in the location you chose.   Please check your media drive. Here's more info about what happened: 0x8007045d.


I added a plane to a scene, subdivided it, and deformed it with proportional editing:    I'd like to UV unwrap this plane, making the mapping what the would have been without the edit mode deformations. In other words, I'd like my UV map to look like a square grid.  Is it possible to UV map this deformed plane to a square grid? Or do I need to start from scratch, and make sure I unwrap it before I do the edits?


I want to change my Linux Mint 17 Cinnamon boot image manually.  So, I replaced the image located at:  /lib/plymouth/themes/mint-logo/logo.png   with mine.  The logo changes at shutdown but not at boot.


An element of a group $G$ is not conjugate to its inverse if $\lvert G\rvert$ is odd

Prove that if $G$ is a finite group of odd order, then no $x\in$$G$ , other than $x=1$, is conjugate to its inverse.   This question is from Advanced Modern Algebra (exer 2.79) by Joseph J. Rotman.  The hint states that if $x$ and $x^{-1}$ are conjugate, how many elements are in $x^{G}$?  What I know so far:   $\left\lvert x^{G}\right\rvert$ is odd (greater than 1, otherwise it's in the center) and is a divisor of |$G$| |Z($G$)| has a common factor (other than 1) with size of the orbit $\left\lvert x^{G}\right\rvert$ so that the center is not just the identity. This is from the class equation. The centralizer of $x$ has odd size and $\lvert C_{G}(x) \rvert \cdot \lvert x^{G}\rvert=\lvert G\rvert$   I don't see the implication of $x$ and its inverse being conjugate has other than their orbits having the same size and laying in the same conjugacy class.  Is the info I have useful? Any help would be appreciated.


Could people ease up please while approving edits another user makes to his own question/answer?

While answering  within a few minutes of it being posted, I had to fight to be allowed to fine-tune my answer: review queue history (reviewer names edited out as this is not personal):  XXX.XXX reviewed this 10 mins ago: Reject This edit is incorrect or an attempt to reply to or comment on the existing post. XXX.XXX reviewed this 11 mins ago: Reject This edit is too minor; suggested edits should be substantive improvements addressing multiple issues in the post. XXX.XXX reviewed this 11 mins ago: Reject This edit is incorrect or an attempt to reply to or comment on the existing post.    The edit history, over a period of maybe 5 minutes, went about as follows: notice indentation missing - add it; notice user might not understand why a positive number can turn into a negative one - add a reference to why this could happen; notice it would be nice to add sample output - add it.  The entire reference to the IEEE representation of integers, which is potentially very relevant for a beginner who has never seen it, was reverted by a reviewer. I cannot see how improving on your layout isn't beneficial to SO, or adding additional info for clarification. Certainly none of my changes was 'incorrect'.   I am familiar with the rule in place to prevent insubstantial edits. To the best of my knowledge it is supposed to prevent people from going on editing sprees to boost their reputation from useless edits; in the worst case of gravedigger-old questions that get prompted back to the front page. This hardly applies to improving a question with a few minutes of being posted - all the more with editor == original author. I also wasn't front-running to competitively get an answer on the page first: mine was second, just - in my eyes - substantially improved upon the first answer.  I don't have any suggestion to prevent it from happening, but I would humbly ask people to please ease up in their review process and let others actually post a respectful answer as they see fit.


by default is a class:   private ? internal ?  sealed ?


How do I control the exact dimension of a picture in LaTeX?

This question is pretty simple: I'd like to have the possibility to get the exact size of a picture in LaTeX with, for example, the macro \the.  In fact, I've founded the way \settoheight{} and so on, but it didn't work at all. What I've got doesn't match with what I can see in the image properties (I suppose that's the name in English). The result: 8pt versus 1300 pixels. It's may be a mis-use...  Edit: In the end, my aim was to find a way to fit the picture in LaTeX. If width and height were both less than the dimensions of the body, then it should just be centred. It look like this :     Require:   \usepackage{graphicx} \usepackage{xifthen} \usepackage{calc}   Code (pretty ugly, I agree):   % Centrering+fitting for image, with captation and label (not auto) \newlength\imageheight \newlength\imagewidth \newcommand{\pic}[3]{% \settoheight\imageheight{\includegraphics{pictures/#1.png}}% \settowidth\imagewidth{\includegraphics{pictures/#1.png}}% \ifthenelse{\lengthtest{\imagewidth > \textwidth}}{\ifthenelse{\lengthtest{\imageheight > \imagewidth}}{\par\vspace{0.95em}% \begin{figure}     \centering\includegraphics[height=0.85\textheight]{pictures/#1.png}     \caption{#2}     \label{#3} \end{figure}% \par\vspace{0.95em}}{\par\vspace{0.95em}% \begin{figure}     \centering\includegraphics[width=0.95\textwidth]{pictures/#1.png}     \caption{#2}     \label{#3} \end{figure}% \par\vspace{0.95em}}}{\ifthenelse{\lengthtest{\imageheight > \textheight}}{\par\vspace{0.95em}% \begin{figure}     \centering\includegraphics[height=0.85\textheight]{pictures/#1.png}     \caption{#2}     \label{#3} \end{figure}% \par\vspace{0.95em}}{\par\vspace{0.95em}% \begin{figure}     \centering\includegraphics{pictures/#1.png}     \caption{#2}     \label{#3} \end{figure}% \par\vspace{0.95em}}}} %   To use it : put your png files in a "pictures" directory, then, just simply call the picture like this : \pic{name_whitout_extension}{Captation_if_needed}{Label_if_needed}.    Edit 2 :   Thanks to Martin Scharrer's easyfig package, I've got a more or less 1,6 times faster solution to put my pictures, centred, with the perfect size.  CTAN:   VC:   Version v1.2 – 2012/05/15    This could be useful for some others, I hope.


I had been login to my laptop and there was an update which came in with a prompt to restart. After the restart I can login through the GUI again. I had done all I could find by on google but I am still having the same issue.  I notice the following:   I can't cd /home/user - permission denied  ls -l /home: drw------50 user user 4096 Feb 4 9:34 user (NOT drwx)  ls -la ~/: I can't find the .Xauthority file along the list


Power set equivalency of Axiom of Choice

I'm trying to prove that the Axiom of Choice is equivalent to the following statement:     Given a non-empty set $X, \ \exists \ f:\mathcal{P}(X) \setminus\{\emptyset\} \rightarrow X$ so that $f(B) \in B \ \ \forall \ B \in \mathcal{P}(X) \setminus \{\emptyset\}$   Proving $\implies$ is easy enough (I think):    Suppose we have a set $X \neq \emptyset$. Let $\{X\}_{\lambda \in \Lambda}$ denote the collection of sets given by $\mathcal{P}(X) \setminus \{\emptyset\}$. Then by the Axiom of Choice, there exists a choice function  $$ \{f: \mathcal{P}(X) \setminus \{\emptyset\} \rightarrow \cup_{\lambda \in \Lambda} X_{\lambda} : f(\lambda) \in X_{\lambda} \ \ \forall \ \ \lambda \in \Lambda\} $$ and then we notice that the union of the $X_{\lambda}$'s is simply $X$.     But I'm having a hard time proving $\impliedby$. I've tried taking the Axiom of Choice assumptions and allowing $X = \cup_{\lambda \in \Lambda} X_{\lambda}$ so that I can apply the statement above with $X$, but this power set is obviously larger than the union of my $X_{\lambda}$'s, so I'm not sure where to go from there with that approach.   My question is, how can I prove that the statement above implies the Axiom of Choice? A clarification on whether my idea would work or a hint for another approach would be appreciated.


Escaping automatic formula with initial + or = in Google Sheets

In Google Sheets I want to write a text that starts with a plus sign, but it always interprets it as a formula, and the '+' disappears. I tried specifying 'plain text' format for the cell, but it does not have any effect.


How do I reduce the following and remove the $11$ from LHS, $$ 11x \equiv 4 \ \ \text{mod }50 $$


I am doing the following programming exercise: . The statement is:     In this kata you need to build a function to return either true/True   or false/False if a string can be seen as the repetition of a   simpler/shorter subpattern or not.      For example:  hasSubpattern("a") === false; //no repeated pattern hasSubpattern("aaaa") === true; //created repeating "a" hasSubpattern("abcd") === false; //no repeated pattern hasSubpattern("abababab") === true; //created repeating "ab" hasSubpattern("ababababa") === false; //cannot be entirely reproduced repeating a pattern       Strings will never be empty and can be composed of any character (just   consider upper- and lowercase letters as different entities) and can   be pretty long (keep an eye on performances!).   I have written the following answer:  public class Kata {   public static boolean hasSubpattern(String str) {     if(str.length() <= 1) return false;     String pattern = "";     for(int i = 0; i <= str.length()/2; i++){       String letter = String.valueOf(str.charAt(i));       pattern += letter;       String repeated = pattern.repeat(str.length()/pattern.length());       if(repeated.equals(str)){         return true;       }     }     return false;   } }   Being 4 traces the followings:  str: a  str: aaaa letter: a pattern: a repeated: aaaa  str: abcd letter: a pattern: a repeated: aaaa letter: b pattern: ab repeated: abab letter: c pattern: abc repeated: abc  str: abababab letter: a pattern: a repeated: aaaaaaaa letter: b pattern: ab repeated: abababab   So then, the code passes the normal tests (with small length strings). However it does not pass with bigger strings, because it times out (the execution time is more than 1600ms).  I tried other approach, instead of repeating each pattern, we are now replacing it all from the original string.  public class Kata {   public static boolean hasSubpattern(String str) {     if(str.length() <= 1) return false;     String pattern = "";     for(int i = 0; i <= str.length()/2; i++){       String letter = String.valueOf(str.charAt(i));       pattern += letter;       String repeated = str.replaceAll(pattern,"");       if(repeated.equals("")){         return true;       }     }     return false;   } }   However it stills timing out with bigger strings.  After that I tried again using this code:  public class Kata {   public static boolean hasSubpattern(String str) {     if(str.length() <= 1) return false;     String pattern = "";     for(int i = 0; i <= str.length()/2; i++){       String letter = String.valueOf(str.charAt(i));       pattern += letter;          String regex = "("+pattern+"){"+str.length()/pattern.length()+"}";       if(str.matches(regex)){         return true;       }     }     return false;   } }   However it keeps timing out. I suppose we need to remove the foor loop.  Besides I have read:        In addition while reading similar topics on Stack Overflow, I found one which describes this kata's Python solution. Here is the link:      So then we could just use the following code:  public class Kata {   public static boolean hasSubpattern(String str) {     return str.matches("^(\\w+)\\1+$");   } }   Which made me learnt that we can mention to a previous matched group inside the regex itselft, by writting an escaped number related to what group we are looking for. In this case \1 refers to (\w+)  However I would like to discuss how could we achieve one iterative solution which works for bigger inputs.  How could we detect strings which are made of subpattern‽


Yesterday, I was having .  Taking the advice, I messed with the barrel adjusters.  Now, every gear is working great except the highest gear and lowest gear.  I put my bike in the highest gear and I can still click the shifter once more, but nothing happens.  When it comes time to shift down gears, I have to click the shifter once before shifting has any effect.  In the lowest gear, the chain jumps.  I have to hold down the shifter to stay in gear there.


Running a file with command as service in the background

Basically what I have to do is run the following command,  ./home/pooldaemon/monero-stratum/build/bin/monero-stratum /home/pooldaemon/monero-stratum/config.json   the only disadvantage that this brings with it is that I can't do anything else. So I would like to make it run in the background so that I can do other things on my linux server in the mean time.  For the record I am running Linux Ubuntu 16.04 LTS Server.  I have ran true different solutions but quiet honestly most off them are to far out of my knowledge and understanding off linux.


Python - Making the age function return to the input

My codes asks for the age but how do I make it so that the age will always be a valid number and not words.      while True:          test = int(input("What is your age? "))         if test > 0:            print("has to be a number")


Problem after Install Elementary OS desktop in Ubuntu 14.04

I installed Elementary-Desktop from   After install I log out and in the session does not show Pantheon for login in LightDM. Why?


Shell variable $_ not behaving as expected

What the reason the number of lines differs?  $ head -n 100000 ./access.log > ./data/log.sample $ cat $_ | wc -l 1933424


LockerService seems to be blocking adding new properties to JS objects in LWC

I am facing issue with LWC, probably connected to the LockerService's Proxy objects.  My code  I am getting the list of custom objects defined in one of my Apex classes by calling Apex method from LWC JS file:  getSettingsForConfigType({configType: this.codeConfigType})             .then(settings => {                 //this.fieldList = settings;                 this.prepopulateConfig(settings);             })             .catch(error => {                 this.toastError(error.body.message);             })   The problem  The problem is I need to populate the settings object returned from Apex with additional field. This field is not defined in Apex (and I don't want it to be defined, it will be used only on LWC side). Whenever I try to add new field called fieldValue either with obj.fieldValue = ... or obj['fieldValue'] = ... syntax I get forrowing error:  TypeError: 'set' on proxy: trap returned falsish for property 'fieldValue'  Question  Is there any way to overcome this limitation or maybe I am missing something here?  P.S. Dirty workaround  settings = JSON.parse(JSON.stringify(settings));  However, it seems to be a bit ugly trick. That's why I posted the question :-)


show that a function $A$ such that $ \rho (Ax,Ay)< \rho (x,y) $ $ \forall x\neq y $ not necessary has a fix point $ (Ax\neq x \space \forall x )$

I don´t know an  example wich   $ \rho (Ax,Ay)< \rho (x,y) $    $  \forall x\neq y $   is not sufficient for the existence of a fixed point . can anybody help me? please


I am currently working on a project that uses a 9.8V 1000mAh battery to power a solenoid, and as I understand it (please correct me if I got this wrong.) a battery capable of delivering 1000mAh is also capable of delivering 1Ah, or 2A for 1/2 hour, 4A for 1/4 hour, etc.  So, assuming I got the above correct, I need to know how to limit the battery output current to 1.0A (My circuit would get really hot otherwise.)


Java - NullPointerException scanning into LinkedList from Text File

I have the following class BallotPaper, which records a set of votes in a LinkedList:  import java.util.LinkedList;  public class BallotPaper {      private LinkedList<String> votes;      public BallotPaper() {      }      public void addVote(String candidateName) {         votes.add(candidateName);     }      public LinkedList<String> getVotes() {         return votes;     }  }   I have a text file which contains a list of votes, which looks like the following:  John Jack James Fred John Jack James Fred Fred Jack John James Fred Jack John James Jack John James Fred   In my main class, I have an ArrayList of BallotPaper objects. Each line in the text file compromises of four names, which each need to be added to a single BallotPaper object, then stored in the ArrayList. Here is my code to read the text file:  private ArrayList<BallotPaper> votes = new ArrayList<>();  public void readTextFile(String fileLocation) throws FileNotFoundException {     FileInputStream fileIn = new FileInputStream(fileLocation);     Scanner scanner = new Scanner(fileIn);      while(scanner.hasNextLine()) {         votes.add(new BallotPaper());         for(int i=0; i<4; i++) {             String name = scanner.next().trim();             if(!name.equals("")) {                 votes.get(votes.size() - 1).addVote(name);             }         }     } }   So my goal is for the ArrayList to contain 5 elements, each of which are BallotPaper objects with 4 entries in their respective LinkedList. I am currently getting the following error:  Exception in thread "main" java.lang.NullPointerException     at BallotPaper.addVote(BallotPaper.java:12)     at Model.readTextFile(AVSModel.java:50)


Still not recieving Windows 10 Anniversary Edition update (build 14393)

I use Windows 10 Enterprise and the Windows 10 Anniversary Edition update still doesn't appear in Windows Update  Is anyone else having this problem?  How can I get the Anniversary Edition update for Windows 10 Enterprise Edition?


Get how much space is used by some packages

I would like to know how much space is used my LaTeX install. I tried to do with apt but I am not sure it's possible. What I would like to do is to have a command like   apt-cache list --show-install-size texlive*   outputing  128 MB   and of course the show-install-size doesn't exist.


I downloaded Fallout 3 iso file and mounted and there isn't any files or folders. Size of iso file is 5.9 GB


What can I do to dry out my marshmallows?

The recipe that I used did not call for cornstarch or corn syrup. The result is that they are slightly wet. Can I do anything to dry them up, such as dusting them with corn flour?  I did dredge them in a mixture of confectioners sugar and corn flour; it helped a little, but I think I will find a recipe that has corn starch in it for next time!


I have a Macbook Pro Retina with the following hardware:  Model Name: MacBook Pro Model Identifier:   MacBookPro11,1 Processor Name: Intel Core i5 Processor Speed:    2.4 GHz Number of Processors:   1 Total Number of Cores:  2 L2 Cache (per Core):    256 KB L3 Cache:   3 MB Memory: 8 GB Boot ROM Version:   MBP111.0138.B15   I recently updated to OS X El Capitan; I have had the same problem occur to me twice now and it's getting me mildly concerned.  I randomly have CPU usage spikes from kernel_task, the highest of which I have seen was 660% CPU. This is frankly an unacceptable and unnatural setting for my CPU (I typically have a total usage of about 2-3%). The highest I've screenshot is this:    The first time, I did not record what I had open. The next time, however, I was ready, and this is the exact list of what I had open:   Two YouTube video pages (using the processes Safari Networking with a max of about 44% CPU, typically stabilized at 8-10% and https://www.youtube.com, which got to around 51% CPU max, typically around 10-12%) Messenger. Doubtful that this had an effect, but, hey, you never know. Skype. This dude was running at a consistent 50% CPU usage.   It is worth noting that I had to close both YouTube windows to actually gain enough control of my computer to open Activity Monitor. None of the aforementioned processes were spiking, just kernel_task.  Also worth noting is my fans - the fans were on maximum, blowing cold air. Even though kernel_task was spinning at 660% CPU, there was no actual heat being produced, as far as I could see.  It's at this point where I force shut down the computer - I had about .5 frames per second (1 frame every 2 seconds, was looking at the clock) and was getting nowhere when it came to even attempting to fix it.  If there is a bug related to this that I have missed, or some wacky thing with OS X in general that I'm missing, please let me know, as this is extremely frustrating and more than a little disturbing.


Only charge capacitor when button pushed then turn on LED momentarily with capacitor when button released

I am trying to make circuit to turn on an LED momentarily. I would like to charge the capacitor when the button is pushed, then when released turn on the LED momentarily with the capacitor.


When/How did Snape become a double agent?

Judging from the below quote was Snape already a double agent when he found out about the meaning of the prophecy?     'Well, Severus? What message does Lord Voldemort have for me?       'No - No message - I'm here on my own account! ... 'I - I come with a   warning - no, a request - please -' ... 'What request could a Death   Eater make of me?' 'The - the prophecy... the prediction...   Trelawney...'       'Ah, yes,' said Dumbledore. 'How much did you relay to Lord   Voldemort?'       'Everything - everything I heard!' said Snape. 'That is why - it is   for that reason - he thinks it means Lily Evans!'       'The prophecy does not refer to a woman,' said Dumbledore. 'It spoke   of a boy born at the end of July -'       'You know what I mean! He thinks it means her son, he is going to hunt   her down - kill them all -'       'If she means so much to you,' said Dumbledore, 'surely Lord Voldemort   will spare her? Could you not ask for mercy for the mother, in   exchange for the son?'       'I have - I have asked him -'       'You disgust me,' said Dumbledore, and Harry had never heard so much   contempt in his voice..   This quote seems to imply that Dumbledore was:   Not suprised to see Snape Had given Snape information to relay to Voldemort   However, the general consensus (from what I remember) is that Snape became loyal to Dumbledore only after Lily's death. Given that both sides usually know they are dealing with a double-agent. How did Snape become one?  Option 1: Voldemort sent Snape to find information on Dumbledore.  Option 2: Snape went to Dumbledore to help save Lily.  Option 2 does not seem to fit based on what I take the quote to imply. So, if Option 1 is the case, do we know when it happened?  This question is not a duplicate of  because that question is about when Snape became a Death Eater not a double-agent.


Is there a forum for general discussion?

Is there a general discussion section? I'd like to post a few off-topic things as just a general chat with a whole community and wondered if there's a place to do so?


AT TIME ZONE direction changes based on column having a timezone

Why does Postgres do the opposite thing for TS with and without Timezones?  In one case it adds hours, in the other case it subtracts.  Just to confuse things more, when specifying GMT+x, the hours are added in the case of TZ-naive and subtracted when the column is TZ-aware, but the opposite is done when using a time zone specified as 'Region/City'  Africa/Johannesburg is ahead of UTC by 2 hours, but when I select the column with AT TIME ZONE 'Africa/Johannesburg' it returns the time as the stored value MINUS 2 hours.  SELECT    admission_at AT TIME ZONE 'gmt+2' AS gmt_plus_2,     admission_at AT TIME ZONE 'Africa/Johannesburg' AS africa_jnb,     admission_at AS naieve   FROM admissions WHERE admission_at::date = '2018-06-11'  ORDER BY admission_at LIMIT 3;        gmt_plus_2       |       africa_jnb       |        naieve         ------------------------+------------------------+---------------------  2018-06-11 08:00:00+00 | 2018-06-11 04:00:00+00 | 2018-06-11 06:00:00  2018-06-11 08:00:00+00 | 2018-06-11 04:00:00+00 | 2018-06-11 06:00:00  2018-06-11 08:00:00+00 | 2018-06-11 04:00:00+00 | 2018-06-11 06:00:00 (3 rows)   As a test I created a table with two columns, one for time with and one without timezone information.  SELECT  time1,  time1 AT TIME ZONE 'Africa/Johannesburg' AS naieve,  time1 AT TIME ZONE 'gmt+2' AS t1_gmt2,  time2, time2 AT TIME ZONE 'Africa/Johannesburg' with_tz,  time2 AT TIME ZONE 'gmt+2' AS t2_gmt2  FROM times;                                time1            |            naieve             |            t1_gmt2            |             time2             |          with_tz           |          t2_gmt2            ----------------------------+-------------------------------+-------------------------------+-------------------------------+----------------------------+----------------------------  2018-06-14 08:47:35.382964 | 2018-06-14 06:47:35.382964+00 | 2018-06-14 10:47:35.382964+00 | 2018-06-14 08:47:35.382964+00 | 2018-06-14 10:47:35.382964 | 2018-06-14 06:47:35.382964  2018-06-14 08:47:36.468022 | 2018-06-14 06:47:36.468022+00 | 2018-06-14 10:47:36.468022+00 | 2018-06-14 08:47:36.468022+00 | 2018-06-14 10:47:36.468022 | 2018-06-14 06:47:36.468022  2018-06-14 08:47:37.342908 | 2018-06-14 06:47:37.342908+00 | 2018-06-14 10:47:37.342908+00 | 2018-06-14 08:47:37.342908+00 | 2018-06-14 10:47:37.342908 | 2018-06-14 06:47:37.342908 (3 rows)   The result is exactly the opposite of what I expect.  Why would a timestamp stored as naive convert correctly to 'GMT+2' by adding 2, but a TS with timezone do the opposite?  And why would it be the other way around when converting to 'Africa/Johannesburg', where the TZ-naive sees the value returned having 2 hours deducted while the TZ-aware value gets 2 hours added for the same value?  Note:  This is NOT a duplicate of  which relates to Time Zone abbreviations, which behaves differently from Time Zone Names.  In this instant regardless whether the name or the GMT+offset format is used, the result is reversed (time added vs time subtracted) depending on whether the column type is a TZ naive or TZ aware timestamp.


jQuery - Get id dynamically from generated element

What I am trying to do is get the id name of newly added item in the list on click. Here's my code.    $(document).ready(function() {    $('ul>li').on('click', function() {     var idName = $(this).attr('id');     alert(idName);   });    $('#add').click(function() {     var n = Math.floor((Math.random() * 100) + 1);     $('ul').prepend('
New Item
');   });  });

Old Item

Old Item

Old Item

 <button id="add">Add Item</button>


Evaluating $\int _0 ^1 x^k(\ln x)^m dx$ for integer $k$ and $m$

Find a formula for $\displaystyle \int _0 ^1 x^k(\ln x)^m dx$ that works for all positive integers $k$ and $m$. Use integration by parts $m$ times with $k$ fixed.


Separate white image from dark background

I'm creating a t-shirt design and need to know how to combine all the white shapes that make this image and separate it from any dark green. The white image will eventually be printed on a dark green t-shirt as shown in the template. If you open the file you can see that the image was created with a combination of white and dark green shapes. I would like the white part that's visible to be the only image in this file.  Here's the link to the illustrator file:


Guaranteed child element at unknown depth with XML Schema

I have an XML schema in which I know that an element has to have a particular child, but I do not know the depth at which that child will exist at. Take the following example XML:  <node id="top">    <node id="inner">      <event/>    </node> </node>  <node id="top">    <event/> </node>   The only requirements I have is that an <event> element must be a descendant of the <node id="top"> element, but I do not know at what depth it will occur. In other words, there could be any number of <node id="inner"> elements in between the top <node id="top"> and an <event> element. In the example above, each of those are valid within the schema. My attempted solution was:  <xs:element name="node">     <xs:complexType>         <xs:sequence>             <xs:element name="node" minOccurs="0">                 <xs:complexType>                      <xs:sequence>                         <xs:element name="event"/>                      </xs:sequence>                    <xs:attribute name="id" fixed="inner"/>                 </xs:complexType>             </xs:element>         </xs:sequence>       </xs:complexType>       <xs:attribute name="id" fixed="top"/> </xs:element>   But, as expected, this does not take into account many "depths" of <node> elements that can occur after the <node id="top"> element.


Would I say:  What follows is the Xs... What follows are the Xs...  or something else? In my case X is a table.


Is there any way to resize the search box in unity, I'm not sure exactly what it is called but I have provided a picture to show my meaning. QUICK EDIT: I don't mean maximize it fullscreen, but resize it like you do with a normal window by dragging the corner or something like that.


How to find the driver (module) associated with a device on Linux?

On Linux, given:    a device, for example /dev/sda,  and its major and minor numbers, for example 8, 0,    how can I know which module / driver is "driving" it?  Can I dig into /sys or /proc to discover that?


Is it enough to use mysqli in PHP to prevent SQL injections?

For example I use  $building_name = $_POST['BuildingName']; $metering_type = $_POST['MeteringType']; $query = "INSERT INTO buildings (BuildingName, MeteringType)                        VALUES ('$building_name', '$metering_type')"; if(mysqli_query($link, $query)) {     echo json_encode(Array("success"=>true)); }   And I believe that this prevents me from SQL injections. Am I safe?


Why is my iPhone screen stuck on the 'connect to iTunes' screen?

I need help with my iPhone. It's stuck on the 'connect to iTunes' screen.   iTunes does recognize the iPhone, but when I select 'restore', it goes through a few progress bars, then errors again. I've already tried to hard reset the phone, but that doesn't work either.


Countable set of truth assignments satisfying set of well formed formulas

I am trying to answer the following question posed in my logic class: (throughout we work in propositional logic) is there a set $S$ of well-formed-formulas (wffs) satisfied by countable set $V$ of truth assignments such that any truth assignment satisfying $S$ lies in $V$?    My guess is no.  My first reaction to this was to do a diagonalization.  Present $V$ as an array with $v_{i, j}$ the truth value that assignment $v_i$ gives to the $j$-th propositional letter.  Obviously the hard case is when $S$ is infinite; if $S$ is finite, then only finitely many propositional letters occur in the $S$-formulae.  Then there is some maximal $k$ for which all $A_n$ with $n \geq k$ do not occur in V.  Then the diagonalization is trivial: just diagonalize from the $k$-th letter onward, since changing $A_k$ in this range doesn't affect anything in $S$.  But I have little clue about how to approach the main case when $S$ is infinite. I thought maybe I should try using the fact that $S$ is consistent (since it's satisfiable).  If it's maximally consistent, then I think this is simple too, since for every propositional letter $A_n$, either $A_n$ is in $S$ or $(\neg A_n)$ is in $S$, implying that there is only one truth assignment satisfying $S$--since every truth assignment must agree on each propositional letter.    But if $S$ is not maximally consistent, this isn't available to me.  Somehow I would like to show that infinitely many propositional letters do not occur in $S$.  Then I can apply the trick above and just diagonalize through the superfluous letters.    So, yes, just looking for some hints or corrections if you have any please, though maybe if I don't get anywhere on my own I'll give up and ask for more.  Thanks.  (By the way, by referring to letters that "occur in $S$" I mean letters that occur in some formula in $S$).


Population in upstream area (looping over FeatureCollection)

I want to calculate the sum of the population living in the upstream area of stations using the hydro package by gena. I think I will have to loop over the stations (using the identifier "GEMS_Stati"). This is my (not very elegant) code to get the population for a single station:   var stations = ee.FeatureCollection('users/basins/stations');  //select only one station var filter = ee.Filter.inList('GEMS_Stati', ['EGY00002']); var FilteredStation = stations.filter(filter);  var PopCount2000= ee.Image('CIESIN/GPWv411/GPW_UNWPP-Adjusted_Population_Count/gpw_v4_population_count_adjusted_to_2015_unwpp_country_totals_rev11_2000_30_sec');  var hydro = require('users/gena/packages:hydro');  var catchments = hydro.getCatchments({level: 6}); var catchmentsSelected = hydro.getCatchments({outlet: FilteredStation, level: 6}) ;  var catchment_Pop2000 = PopCount2000.reduceRegions({   collection: catchmentsSelected,   reducer: ee.Reducer.sum(), });  var sum_pop_upstream = catchment_Pop2000.reduceColumns({   reducer: ee.Reducer.sum(),   selectors: ['sum'] });   How can get a table that contains the station ID, "GEMS_Stati", and the respective value of "sum_pop_upstream" for each station?


I know how to build a rotation matrix around the x, y or z axis, but i'm not sure how to do it around an arbitrary vector.  For example, in R3, how should i build a rotation matrix with axis (111)? I read i should pick an orthonormal basis but i dont get why it cant be any R3 basis.  Also, i dont understand if a rotation matrix should always be an orthogonal (or hermitian) matrix. I mean, what if i define a linear transformation R as a rotation around the z axis, and apply a change of basis:  [R]b = Ceb.[R]e.Cbe  with R being the rotation matrix and Cbe the change of basis matrix from basis e to b. The resultant matrix wont be orthogonal but still is a matrix defining a rotation, isn't it?  Thanks!


Can you maintain concentration through a short rest?

Due to the long duration on Hex, it is clearly intended to function across multiple encounters as described in this .  Due to the extended duration, it seems feasible that a warlock could take a short rest to recover their spell slot and thus go into a future combat with a Hex at the ready and a full assortment of spell slots. Is this correct? RAW do not appear to prohibit this.


Proving an identity using a combinatorial proof?

Let $n\ge k\ge m\ge 0$ be integers. Consider the following formula: $$\binom{n}k\binom{k}m=\binom{n}m\binom{n-m}{k-m}$$ Give two different proofs. On proof should use the factorial formula for $\binom{n}k$.  The other proof should be combinatorial. Try to develop a question that both sides of the equation answer.  So this question asked us to prove the formula below in two ways, and while I got it for the 1st way [using the factorial formula for $\binom{n}k$], I still don't understand how I can prove this using a combinatorial proof. I'm having trouble constructing a counting argument. Can anyone help me out?


Truncate or delete all records in a custom object

Using SOQL, how do I truncate an object or delete all rows. For example  DELETE (Select id FROM MyObject__c)   and  delete [select Id FROM MyObject__c]   and   TRUNCATE TABLE MyObject__c   All 3 example commands in the Developer console returns:  The query has to start with 'FIND' or 'SELECT'


What method can be used to peel an Avocado without damaging it?

This is a problem I really have each time I want to peel them. Over the years I used forks, spoons and knifes but always the Avocado gets damaged as it is mushy, pulpy when I peel it and gets a mess. Is there any method than can I use to properly peel it or perhaps a tool developed for this purpose?. If there is a video or picture that can accompany the answer that would help me a lot.


Java arithmetic with long and float data types

So today I noticed something unexpected in java:      long a = 1234567890000l;     float b = 1.2f;     long result_a = (long)(a - b * 1000);     long result_b = a - ((long) (b * 1000));     System.out.println("result_a: " + result_a);     System.out.println("result_b: " + result_b);   You would expect result_a and result_b to be similar (not exactly the same since b is float and not precise by definition), right? right?? Well, no...  result_a: 1234567954432 result_b: 1234567888800   No idea why the huge difference. Any ideas guys?


Holding a bow in one hand and casting magic

So this is my problem, spell caster with a bow.  Round 1   Equip bow as free object interaction (PHB.190) draw and load ammunition as part of ammunition property (PHB.146) attack end of round 1   Round 2   Release one hand from the bow ( ) Draw spell focus as a free object interaction cast a spell preforming its eventual somatic component with the same hand as the focus (Source: 5e System Reference document p.102) end of round 2   Round 3 (here the problem starts)   Sheathe spell focus as a free object interaction (could probably drop it but would rather not) RAW I would need to use a free object interaction to equip the bow two-handed again. but again according to  the intent is manipulating objects or picking objects up. All my character does is move his hand draw and load ammunition as part of ammunition property (this is also a part that requires the character let go of one hand of the bow to get the ammunition) attack end of round 3   What are your thoughts on this does the rule RAW or RAI (from credited sources) support this?


Google Chrome - New tab - bookmarks - How to restore deleted ones?

I have accidentally deleted some of the book marks that show up on my 'new tab' page (recently visited / popular I guess).    How can I restore deleted links to this page? Or, how can I add new ones?  Windows 7, Google Chrome 29.0.1547.76 m


In the ML lecture notes of cs229, I am not able to derive the equation 3 in matrix derivatives. I applied the equation 1 to derive it, considering the product after A as another matrix, I am not getting the sum and am getting only the second term in the sum given as the derivative. How can I use equation 1 to derive this? Thanks in advance.


Are elementary particles ultimate fate of black holes?

From the "no hair theorem" we know that black holes have only 3 characteristic external observables, mass, electric charge and angular momentum (except the possible exceptions in the higher dimensional theories). These make them very similar to elementary particles. One question naively comes to mind. Is it possible that elementary particles are ultimate nuggets of the final stages of black holes after emitting all the Hawking radiation it could?


Question mark or period to end a rhetorical sentence

Which makes more sense as end punctuation for the following rhetorical sentence—a period or a question mark?     Maybe you could be a security guard there and enforce whatever the WalMart policy is at that location


How do chemical propulsion systems not break the law of conservation of energy?

Lets say that hypothetically we have a rocket with constant mass, and an engine providing a constant force. I understand that it is unrealistic to have a rocket of constant mass with a rocket engine that ejects mass to accelerate, however this simplifies the problem. As the rocket accelerates the force from the engine will be travelling at a larger speed, therefore increasing the power of the rocket engine, since $W=Fm$, and this makes sense due to the constant acceleration that would occur with a constant force, since $E=\frac{1}{2}mv^2$. The rate of fuel flow into the engine will remain constant, so the chemical energy that is going into the engine will remain constant. This seems to contradict the increasing power from the force of the engine.


How to compare two strings in Java with error margin

I am working on a game where the user has to fill in a name of a celebrity. If the name is not 100% correct but nearly correct, the compare should succeed. Is there a ready to use function in java or something someone ever has written so I can use it ?


how to check if file exist based on file partial name

the way to check file as all know is like this  [[ -f  /var/scripts_home/orig_create_DB_files_1.46.38 ]] && echo file exist   but how to check if file exist in case file contain name as - "create_DB_files"  I try this ( but not works )   [[ -f  /var/scripts_home/*create_DB_files* ]] && echo file exist   or     partial_file_name=create_DB_files     [[ -f  /var/scripts_home/*$partial_file_name* ]] && echo file exist


how to solve libdbus-1-3 (= 1.12.2-1ubuntu1.1) but 1.10.6-1ubuntu3.4 is installed

I'm trying to install ST-Link v2, but i ran into a error.    this error seams to affect more issues, like the Ubuntu Software center. nor can i install:   sudo apt-get install libusb-1.0-0-dev sudo apt install git   i tried the usual stuff:  sudo apt-get -y update && sudo apt-get -y upgrade && sudo apt-get -y autoremove   aswel the recommended:  apt-get -f install   but nothing seams to work out.      The following packages have unmet dependencies:  libdbus-1-dev: Depends: libdbus-1-3 (= 1.12.2-1ubuntu1.1) but 1.10.6-1ubuntu3.4 is installed libgdk-pixbuf2.0-dev: Depends: libgdk-pixbuf2.0-0 (= 2.36.11-2) but 2.36.11-2 is installed                       Depends: libglib2.0-0 (>= 2.48.0) but 2.48.2-0ubuntu4.4 is installed                       Depends: gir1.2-gdkpixbuf-2.0 (= 2.36.11-2) but 2.32.2-1ubuntu1.6 is installed                       Depends: libglib2.0-dev (>= 2.37.6) but 2.56.4-0ubuntu0.18.04.4 is installed                       Depends: libpng-dev (>= 1.6) but it is not installed                       Depends: libpng-dev (< 1.7) but it is not installed libglib2.0-bin: Depends: libglib2.0-0 (= 2.56.4-0ubuntu0.18.04.4) but 2.48.2-0ubuntu4.4 is installed libglib2.0-dev: Depends: libglib2.0-0 (= 2.56.4-0ubuntu0.18.04.4) but 2.48.2-0ubuntu4.4 is installed                 Depends: libglib2.0-bin (= 2.56.4-0ubuntu0.18.04.4) but 2.56.4-0ubuntu0.18.04.4 is installed                 Depends: libglib2.0-dev-bin (= 2.56.4-0ubuntu0.18.04.4) but 2.56.4-0ubuntu0.18.04.4 is installed                 Depends: libpcre3-dev (>= 1:8.31) but 2:8.39-9 is installed libproxy1-plugin-gsettings: Depends: libc6 (>= 2.15) but 2.27-3ubuntu1 is installed                             Depends: libgcc1 (>= 1:3.0) but 1:8.3.0-6ubuntu1~18.04.1 is installed                             Depends: libglib2.0-0 (>= 2.45.3) but 2.48.2-0ubuntu4.4 is installed                             Depends: libproxy1v5 (= 0.4.15-1) but 0.4.11-5ubuntu1 is installed                             Depends: libstdc++6 (>= 5.2) but 8.3.0-6ubuntu1~18.04.1 is installed python3-distutils: python3-lib2to3: systemd: Depends: libaudit1 (>= 1:2.2.1) but 1:2.8.2-1ubuntu1 is installed          Depends: libcap2 (>= 1:2.10) but 1:2.24-12 is installed          Depends: libcryptsetup4 (>= 2:1.4.3) but 2:1.6.6-5ubuntu2.1 is installed          Depends: libsystemd0 (= 229-4ubuntu21.22) but 237-3ubuntu10.29 is installed udev: Depends: libudev1 (= 229-4ubuntu21.22) but 237-3ubuntu10.29 is installed   thnx in advance


Difference between decimal, float and double in .NET?

What is the difference between decimal, float and double in .NET?  When would someone use one of these?


Strange add-on Saleplus - what is it and how to remove?

I use Avira, but it see no trouble. The problem is that I get strange redirects in my Chrome browser. Also I got many ads while browsing after installed this add-on.


Calculating the weight of an object irrespective of the triangle or vertices count in Unity

I have a meat piece which I want to weigh. Now there can be anything like fish, cheese, or other items that we can cut and measure. I want the weight to be determined by myself instead of determining from getting the surface of the item as it varies with different tris count. Currently, I am calculating the weight from the following code. public static float CalculateSurfaceArea(Mesh mesh) {     var triangles = mesh.triangles;     var vertices = mesh.vertices;      double sum = 0.0;      for (int i = 0; i < triangles.Length; i += 3)     {         Vector3 corner = vertices[triangles[i]];         Vector3 a = vertices[triangles[i + 1]] - corner;         Vector3 b = vertices[triangles[i + 2]] - corner;          sum += Vector3.Cross(a, b).magnitude;     }     // weightMultiplier is a constant value for getting a reasonable weight value.     return (float)(sum / 2.0) * weightMultiplier; }  So if there's a meat piece like bellow and I want it to be a weight of let's say 3kg(6.6lb)  then when I cut it into half it should give me values respectively (1.5kg).  So I want the weighing factor to be in my control so that if in the future we have really detailed high poly items the weight shouldn't get affected by that.


screen not working properly on my tablet

I have a brand new 10.1 inch tablet, made in china. The screen doesn't respond to touch as much as it should, a few other little things and I can't work out some of the onscreen operating icon/button things. The resellers suggested I start with Android Central Forums, as this is the only Android devise they sell so they don't know the answers. I joined up with A.C.Forums, but can't work out how to post. Help and/or advice would be very much appreciated. Thanks


Why was 1 considered as prime years ago?

I've seen on Maths Is Fun that years ago, 1 was considered as prime, but now, it is not.  How did this happen?  I know that a prime number has only two factors, 1 and itself, and we have 1, which is also itself.  Is this why?  Tell me what you think.  I also know that this would make the prime factorization too continuous: 1 x 1 x 1 x 1 x 1... x 3 x 3=9 and that would not be good.


What is the Belter language/accent based on?

In the show The Expanse (and I presume in the books, but I haven't read them), the inhabitants of the Asteroid Belt, aka Belters, all speak a separate language with a distinct accent. The subtitles refer to the language simply as Belter Creole.  Is there any information about what the language is based on and how it has evolved?


Is there an easy way to see the review menu on the mobile? or is it planned to add it.  In the past on my mobile I cheated by selecting the notification when you win the badge to review close vote, it bring to a non-mobile website layout.  Now I found the menu by following the 'full site' link at the bottom, after I can go review.   Let me know if there is an easy way ! (or if planned to add) Thanks


An elegant solution for "answer-stealing" edits?

I have noticed several times that when answering a question, someone who wrote an earlier answer will edit their answer by adding the content of my answer to theirs (as an alternate solution, or to make their answer more complete).  This is often a good thing for the community, because we want accepted answers to be as good as possible, but it seems unfair to the people who made the effort to provide the original content.  This is inherently a problem with the fact that answers are not collaborative (i.e. the site is not a wiki) but is it possible to solve this problem in some clever way? Or is it something we just need to deal with?


Traffic isn't updated correctly on Area51

shows statistics for all the beta sites. It shows questions per day, percentage of answers etc.,  The statistics for visitors per day is not updated correctly on Area 51.     Above are the stats for  If we see the stats on , the stats for visitors per day are different. These stats are also shown on their home page also shows difference.     This difference is seen in almost all the beta sites.   It might be related to  a few days ago about inconsistency of Google Analytics.  Update on 16/04/2018:  also shows wrong stats now.


In JSF, I would like to have a date helper attached to an h:inputText tag. The input text could either be a string or a date. I would just like something that would help the user input a correct date if thats what they are choosing.


Do ND filters increase the dynamic range that a camera can 'see'?

I am attempting to work out, conceptually, how the use of a neutral density filter effects the resulting captured image.  Do ND filters allow a camera to capture higher contrast scenes (without clipping the highlights) than would otherwise be possible? Or do they just decrease the amount of light uniformly so that highlight detail is gained at the expense of shadow detail being lost?  Put more technically, is the effect of a ND filter more like a linear mapping or a clipping of the low light levels? See the figure below for examples of each.


How to omit address field while using biblatex

Its possible to omit url by  url=false   How to omit address?  I tried address=false but its not that.  Just found:   \DeclareSourcemap{   \maps[datatype=bibtex, overwrite]{     \map{       \step[fieldset=address, null]       \step[fieldset=editor, null]     }   } }


Why does 0.3 - 0.2 - 0.1 not equals to 0 in javascript?

I get the result -2.7755575615628914e-17 when my code 0.3 - 0.2 - 0.1 runs in Google Chrome browser. Why? and what does the wrong result stand for?


Severity    Code    Description Project File    Line    Suppression State Error   LNK2019 unresolved external symbol "class AMD<int,class std::basic_string<char,struct std::char_traits,class std::allocator > > * __cdecl Search_Author(int)" (?Search_Author@@YAPAV?$AMD@HV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@@H@Z) referenced in function "class AD<int,class std::basic_string<char,struct std::char_traits,class std::allocator >,float> * __cdecl Create_AD<int,class std::basic_string<char,struct std::char_traits,class std::allocator >,float>(class std::basic_string<char,struct std::char_traits,class std::allocator >)" (??$Create_AD@HV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@M@@YAPAV?$AD@HV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@M@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)  test    C:\Users\Admin\Desktop\with templates\test\test\test.obj    1 I am implementing a soundcloud music database system using linked list C++.The google test cases of the code pass perfectly without templates. But I need to do it with templates and this is the error I am receiving while doing it with templates. Any suggestions?


Need advice using awk to create a single line from a file with multiple lines of info

Using only awk, how would you convert the following text from this: $ cat latest.csv psga,alp1acscf0001vm001oam001p1n004v001,192.7.129.7,UVP apsga,alp1acscf0001vm001oam001p1n004v002,192.7.129.8,UVP apsga,alp1acscf0001vm002oam001p1n004v001,192.7.129.9,UVP apsga,alp1acscf0001vm003oam001p1n004v001,192.7.129.10,UVP apsga,alp1acscf0001vm004cif001p1n004v001,192.7.129.11,UVP apsga,alp1acscf0001vm004cif001p1n004v002,192.7.129.12,UVP apsga,alp1acscf0001vm005cif001p1n004v001,192.7.129.13,UVP  I managed to get the following output: $ awk -F','  '{ print substr($2, 1, 14),  (substr($2, 1, 18)),$3 }' latest.csv alp1acscf0001v alp1acscf0001vm001 192.7.129.7 alp1acscf0001v alp1acscf0001vm001 192.7.129.8 alp1acscf0001v alp1acscf0001vm002 192.7.129.9 alp1acscf0001v alp1acscf0001vm003 192.7.129.10 alp1acscf0001v alp1acscf0001vm004 192.7.129.11 alp1acscf0001v alp1acscf0001vm004 192.7.129.12 alp1acscf0001v alp1acscf0001vm005 192.7.129.13  However, I would like the first substr($2, 1, 14) only once at the beginning of the line and the remainder in a single line as below: alp1acscf0001v alp1acscf0001vm001 192.7.129.7 alp1acscf0001vm001 192.7.129.8 alp1acscf0001vm002 192.7.129.9 alp1acscf0001vm003 192.7.129.10 alp1acscf0001vm004 192.7.129.11 alp1acscf0001vm004 192.7.129.12 alp1acscf0001vm005 192.7.129.13


Let $F_n$ be the Fibonacci sequence with $F_0=0,F_1=1,F_n=F_{n-1}+F_{n-2}, n\geq2\\ Use\;the\;mathematical\; Induction\; show\;that\;\sum_{i=0}^{n}(-1)^iF_i= (-1)^n F_{n-1}-1, For\;every\;positive\;integers$


Find a example in $L^2$, nonempty closed but contains no element of smallest norm.

As we know in Hilbert Space, a nonempty closed convex set always contains a element of smallest norm. I wanna find a example to show the convexity in some way is necessary. No loss of generosity, for simplification, let the domain be $[0,1]\subset R$.  Thanks.


I tried to run:  tar -zxvf name.tar.xz   but all I got was:  tar: Child returned status 2 tar: Error is not recoverable: exiting now


What is going on with this Data Explorer graph?

I just found a link to .  Running the query (which takes some time) and viewing the graph produces some...odd...results    So what is it the query does, and is the results it produces "expected?"


Editor Window Missing - Only seeing timeline

Sigh, every time I try to figure out Blender, I lose an hour because of something nutty. I'm a Lightwave user, but giving Blender a go. I tried to set up 4 views for Top/Front/Side/Perspective viewing, like in Lightwave Modeler, but after watching tutorials, I decided to reduce the windows down to one view again.  Well, I only made about 5 more tiny views, and eventually learned how to join views. Now that I've done that, I wound up with one large view with ONLY the timeline.    No matter what I try, I can only expand the console at the top, or move the boundaries between what you see. How do I get the default view back?


Formula for the $1\cdot 2 + 2\cdot 3 + 3\cdot 4+\ldots + n\cdot (n+1)$ sum

Is there a formula for the following sum?  $S_n = 1\cdot2 + 2\cdot 3 + 3\cdot 4 + 4\cdot 5 +\ldots  + n\cdot (n+1)$


Are there any disadvantages to using your companions for transporting Power Armor

After I read that companions don't drain the fusion core of a Power Armor when wearing it, I decided to try giving my armor to Nick so I'll always have it close by if I need it.  But I was wondering if there are any other drawbacks to that. For example, does the Armor get damaged or destroyed when the companion is under fire?


How exactly a 'shutdown -h' “HALT” differ from “normal shutdown” in linux

Suppose I have 20 process/deqamons running in my linux system,  How different the HALT will have an effect on my process/deamons,  when compared to a normal shutdown..,  *Note:  I need to understand..one of my device proc fails to react for ioctl calls midst while using the shutdown -h command, But works properly in case of shutdown -r reboot option..,


How do I hide an emitter plane while keeping it's emitted light visible in a cycles render?

This is how you used to be able to do it in blender 2.79   I can't find this option in 2.8


Finding cities close to one another using longitude and latitude

Each user in my db is associated to a city (with it's longitude and latitude)  How would I go about finding out which cities are close to one another?  i.e. in England, Cambridge is fairly close to London.  So If I have a user who lives in Cambridge. Users close to them would be users living in close surrounding cities, such as London, Hertford etc.  Any ideas how I could go about this? And also, how would I define what is close? i.e. in the UK close would be much closer than if it were in the US as the US is far more spread out.   Ideas and suggestions. Also, do you know any services that provide this sort of functionality?  Thanks


I read that you could put 50k urls in a sitemap. Problem : in an image sitemap, you got the page url, and a url for each image provided. Does the limit apply to the number of pages, of images, or the total ?  Thanks


I am having difficuties in showing a torus is compact. Initially I wanted to use Heine-Borel theorem, but after that I realise we are not working in $\mathbb{R}^n$ space. So a simple way to show torus is compact is by definition. But after defining an open cover for torus, I don't know how to proceed. Can anyone guide me?


Image render comes out white no matter what I do (blender 2.83)

I am trying to render a scene in blender, but whenever I click, "render image" the final render is just white.  I made sure everything was within the view layer.  I'm not sure what else could be causing this.  If you have any ideas, please share them!


How to toggle between the windows of native desktop and windows within vnc viewer?

I am using Windows 10 Operating System, and i have installed VNC Viewer 6.7 on top of it.  And using VNC Viewer, i will be connecting to a remote server running some *nix flavor of OS. So again there will be multiple windows opened on the remote server. Hence i could see multiple windows inside VNC Viewer itself. Let us call these windows as v1, v2, v3, v4.  And in my host OS (win 10), there will be multiple applications running. Hence there will be multiple windows within Windows 10 itself. Let us call these windows as W1, W2, W3, W4(VNC Viewer); where W4, is the VNC Viewer's window  If i want to navigate between W1 and W2 or W2 and W3, so issues i could use the keyboard shortcut ALT+TAB (the default key combination).  However, if i enter/select into W4, (VNC Viewer window), then ALT+TAB would start navigate between v1 and v2 or v2 and v3 or v3 and v4.  So, we are able to navigate between W* to v* windows (ie from host OS windows to remote OS windows through VNC Viewer).  However, we are not able to navigate the other way round, ie from v* to W* (from windows from remote OS to host OS) - without intervention of mouse  So could anyone help me out to get rid of this problem? I want to navigate between windows v* to W* using keyboard shortcut. Say, CTRL+ALT or some hot-key combination should bring the control out of VNC Viewer back to the host OS.


For spells that require non-consumed gold, do you need the actual gold?

If a spell says it has a gold requirement but doesn't say it consumes the gold, do you still need the gold? I have been told that regardless if the spell has a gold requirement, that your focus can't replace the gold as a component. Is this true?


Batch-Resizing images in OS X to a certain height

How can I resize a batch of images using Automator, so that all images will have a fixed height, e.g. I want to resize all images to be 60px high while width can be anything.


I would like to place a plus sign above my voltage source in circuitikz but I just can't figure out how to do it. Any ideas?   \documentclass{article} \usepackage[free-standing-units]{siunitx} \usepackage{circuitikz}  \begin{document}  \begin{circuitikz} draw (0,0)  to [vsourcesin]  (0,2) ;  \end{circuitikz}  \end{document}   This is the solution:  \documentclass{article} \usepackage{circuitikz}  \begin{document} \begin{circuitikz} \draw (0,0) to[vsourcesin,i=$i$] (0,4); \draw (-0.3,2.6) node{$+$};  \end{circuitikz} \end{document}


Prove the equality: $\det\left[\begin{smallmatrix} -2a &a+b &a+c \\ b+a&-2b &b+c \\ c+a&c+b &-2c \end{smallmatrix}\right] = 4(a+b)(b+c)(c+a)$

i have to prove:   $$\begin{vmatrix} -2a &a+b  &a+c \\   b+a&-2b  &b+c \\   c+a&c+b  &-2c  \end{vmatrix} = 4(a+b)(b+c)(c+a)$$   I have tried many calculations between the rows and columns of the determinant to get to the answer i want to solve the exercise however none of them gave me something right. Can someone help?


Entering the Schengen area 12 days before my visa expires

I have a Vietnamese passport. I'm planning to visit Vietnam on July 7th and be back in the Czech Republic (in Schengen area) on August 29th. My visa is a multiple-entry, long-term, D type visa (for study purposes) and the expiration date is September 10th. I am afraid that the boarding officer will not allow me to enter EU since the arrival is so close to the expiration date.   Is it OK for me to enter Schengen on August 29th when I have only 12 days left until visa expiration?


Interesting Integration with respect to $[x]$ where $[\cdot]$ is greatest integer function

$$\int_{0}^{3} {(x^2+1)}d[x]$$ is equal to ___________ .  Attempt  $[x]$ is constant for every interval. So for that intervals $d[x]=0$ so intergral given is zero. Am I right?  Though the answer given is $\dfrac{17}{2}$.


How to find eigenvectors/eigenvalues of a matrix where each diagonal entry is scalar $d$ and all other entries are $1$

How would you find eigenvalues/eigenvectors of a $n\times n$ matrix where each diagonal entry is scalar $d$ and all other entries are $1$ ? I am looking for a decomposition but cannot find anything for this. For example:  $\begin{pmatrix}2&1&1&1\\1&2&1&1\\1&1&2&1\\1&1&1&2\end{pmatrix}$


NullPointerException when using DbUnitAssert with XlsDataSet

I have been trying to use DbUnit to compare two Excel files. And I have found an "interesting" problem. I use a code similar to the following :  XlsDataSet expectedDataSet = new XlsDataSet(firstFile); XlsDataSet actualDataSet = new XlsDataSet(secondFile); Assertion.assertEquals(expectedDataSet, actualDataSet);   But I get an NPE. When tracing through the code, I ended up at the following code in the getValue(int row, String column) method (Line 142 in the class in dbunit-2.5.3):  Cell cell = _sheet.getRow(row + 1).getCell(columnIndex);    One of the rows in the spreadsheet is empty, and when I checked the sheet above, I see that the row is missing from the map of rows. And since the for-loop in the compareData method in DbUnitAssert assumes that all rows are present in the rows map, the code snippet above will of course fail with an NPE when it "hits" the missing row.  I have been searching to see if anybody else has had this problem, and found a workaround or some way of fixing this that doesn't involve rewriting a load of code. But so far, I have been out of luck. So I wanted to try here to see if anyone here knows any solution to this. Or if this should be addressed as a bug with the DbUnit team?  Using : POI version 3.14, DbUnit v 2.5.3.   Thanks in advance!


How likely is a 5m passive USB 3 extension to work?

I want to move my computer into another room for the summer, the destination is 10m away in terms of cable length. I had no problem finding a 10m HDMI 2.0 cable but USB 3.0 seems to be a different story.  Trying to do this as cheaply as possible, the current plan is to get a 5m active cable and attach another 5m passive cable to it to reach the hub on my desk. The reasoning being that the active cable is only active at one point - the female end of the cable which theoretically would be the same as a passive cable + hub at the end, right?  If the manufacturers of the active cable feel comfortable stretching the 3m specification to 5m then it.. might work?


Is there a word for the totality of existence?

"Universe" doesn't mean everything in existence, because there might be multiple. "Multiverse" doesn't either, because different dimensions could have different multiverses. Is there a word that describes the totality of literally everything that exists?


I'm travelling from Heathrow to Toledo in the USA with 2 connections, will I need to see to my luggage before I get to Toledo?

I'm worried as it's my first trip on my own. All my flights are American Airlines and I have connections at Raleigh/Durham and at Chicago O'Hare, however there are no terminal changes, just connection times of under 2 hours, so will my luggage be automatically transferred plane to plane? or will I need to re-check them?


I have the following fields:   Inventory control (16 byte record)   Product ID code (int – 4 bytes) Quantity in stock (int – 4 bytes) Price (double – 8 bytes)    How do I create a fixed length random access file using the above lengths? I tried some examples online, but I either get an EOF exception or random address values when I try to access them.  I tried some more examples and couldn't understand the concept very well. I'm trying a project with it and will try to explore more on it.  Here is some example data. There might be holes in the data where No. in stock could be 23 == 023.            Quantity ID. No.   In Stock   Price  -------   --------   ------  1001       476      $28.35  1002       240      $32.56  1003       517      $51.27  1004       284      $23.75  1005       165      $32.25   Thanks for the help.


Mathematical Grammar, Converges to or Converges at, or both?

I lost a point on my test because I put after all my math work, "converges at $0$" not "converges to $0$". Should I argue with my teacher about this or is there a reason why I am wrong?


How can you derive a formula without premises?

What is the difference between $\vdash A $ and $\models A$? I'm not asking about the general difference between syntactic entailment and semantic entailment. I specifically don't understand the difference in the case where the antecedents are empty. According to Wikipedia, $\vdash A $ , whereas $\models A$ . I think I understand the double turnstile being a tautology, but with the single turnstile is $A$ an axiom (which is )? I'm confused on how a formula could be derivable without premises.


Let $(S,*)$ be a finite semigroup with identity. Prove that $S$ is a group iff $S$ has only one element $x$ such that $x^2=x$. Attempt: Does this approach true? $(\Rightarrow)$ Let $S$ be a group. Denote $e_S$ be an identity element in $S$. Clearly, $e_S$ is idempotent since $e_S^2 = e_S$. Suppose that there is another idempotent in $S$, say $x$. Then, $x^2 = x$. So, \begin{equation*} x^2=x \Leftrightarrow x^{-1}x^2 = x^{-1}x \Leftrightarrow x = e_S. \end{equation*} Hence, $x=e_S$. Thus, the only idempotent in $S$ is $e_S$. $(\Leftarrow)$ First, to show for any $x \in S$, there exist $n \in \Bbb N$ such that $x^n$ is idempotent. I found this proof in the ProofWiki. Next, since the only idempotent in $S$ is $e_S$, then $x^n$ must equal to $e_S$. I have proved this already. But, I am still confused. If $n=2$, then $a^2 = e_S$ i.e. the inverse of $a$ is itself. But, what about $n=3$? $a^3=e_S$, does it implies that the inverse of $a$ is $a^2$?


How to make those cool CTRL and ALT etc signs in SO?

I've been going thru the formatting help, but I cannot find how to make those cool CTRL and ALT and SHIFT signs, the ones like


How to execute a bash script, with it's arguments, on multiple directories?

I have a shell script app1.sh and a tree of folders, but I don't know how to execute this shell inside each folder. Here is   This script recieves an string, an integer and a file as arguments to work. The idea is to execute it in 4 folders inside a directory.  Thanks all for your help :)


Suppose $f$ is a differentiable function over $\mathbb{R}$ satisfying $f(0) = 0$. Show that if $f'$ is strictly increasing, then $\frac{f(x)}{x}$ is increasing over $(0,\infty)$.   Attempt:  Since $f'$ is increasing we know that $f'' > 0$ for all $x$. Now let $g(x) = \frac{f(x)}{x}$ and thus $f(x) = xg(x)$. Then we wish to show that $g'(x) > 0$ on $(0,\infty)$ and so since $f'(x) = xg'(x)+g(x)$ and $f''(x) = xg''(x)+2g'(x) > 0$, we have $g''(x) > \frac{-2g'(x)}{x}$. I am not sure how to use this though to prove the statement.


WsAppService.exe or Wondershare, is consuming all my RAM

Recently my PC started to freeze. The RAM was being clobbered.  I do what I always to CNTRL + ALT + DEL to open taskmgr.  Well non of the processes were there.  So I decided to check Resource Monitor and there it was.   WsAppService.exe, using 9.2GB of my 10GB RAM.  Loc: C:\Program Files (x86)\Wondershare\WAF\2.3.2.219\WsAppService.exe  So, what is WsAppService doing and why is it consuming all of my RAM? Even when I unplug my internet connection it's running out of control.   I'm not sure how this got installed. But there is a log in this folder that shows a date of installation. The fact that there is a log makes me believe that this is not a malicious program. But why is there no thread in the taskmgr if that's true? Memory leak? Bad program stuck in an infinite loop? As a programmer I have created memory leaks and infinite loops in my own work, so I'm familiar with this topic.  And to be extra clear: This isn't a question of how to uninstall it, or how to get rid of it.  I opened "Programs and Features" to find this program to uninstall it. It's not there.   Although, there is another executable file in the root folder: C:\Program Files (x86)\Wondershare\WAF -- uninstall executable. But what makes it curious is that it isn't in the "Programs and Features".  Microsoft Essentials and MalwareBytes hasn't any problems with this program. Which it wouldn't if it's a memory leak of some sort.  Any help would be greatly appreciated, especially if you've heard about this program.   --------- checked links in this forum --------------------------------------------  I did check out this thread:    -- However this link leads to a download, which I downloaded. I tried filtering it to just this file-path; nothing.  I also looked at:   -- My problem is NOT a triggering of "Windows feature" dialogue..  I also looked at:   -- It's not AllMyTube, but makes me think of NHC which is a company that installs many different programs in the same NHC directory on my computer which I use.