Google Sheets QUERY won't display cell text if other cells have numbers

I'm not sure what is happening in my Google Sheet query and could really use some help. I have  that demonstrates and explains the issue.   Basically, I'm using a query to pull data from a Google Spreadsheet that is populated by a Google Form. If the form submits only numbers (100), there is no problem. However, if someone submits a string ($100 or 100 dollars), the query will not display the string. It will only display form submissions that are 100% numbers.   Also, if the 1st submission is a string (not 100% numbers) the query will work.   Here is my query  =query(data!B2:CL,"select B, C, D, E, F, G, H, I, J, CI, BZ, CA, BA  where J = 'Industry Certification'",false)   Any ideas on why this is happening?  Also, I'm aware that I can limit the form to numbers only. I'm trying to avoid that and learn 'why' this is happening.


Mismatch Reputation in the thumbnail and the actual Reputation

Actually this was quite surprising. A casual troll in the Users Page revealed few users with negative vote. One example is here    Then trying to see what could have causes such a low reputation, I peeked inside the Profile Page of this particular User and was surprised to see a decent positive score.    Can someone explain to me how this can be possible?


If else statement only displaying the last else statement

I'm working on a little text adventure, and when I try to have the player input a number to advance to a different part of the game, it only displays the last else statement. I'm having the number they input stored as a string so that the code works even if the player inputs letters. Here's the code I have for it //first question given to player, acts as tutorial     System.out.println("Type 1: Start Game");     System.out.println("Type 2: End Game");     String game = input.nextLine();      if(game == "1")     {         floorOne.enterMansion();     }     else if(game == "2")     {         System.exit(0);     }     else     {         variables.invalidAnswer();         menu();     }  Any help would be great, thanks!


Can dll-files be used as plug and play modules

My background is Java mainly, but this project has to be done in c#. So forgive me if I don't sound like I know exactly what I want, I may just use the wrong c# terms.   The core question: Can I use .dll-files like I can use .jar-libraries in Java? I am fully planning on doing my own research on how to actually do it, all I need is a helping hand on where to start / if I am on the correct track.   I am building a tool that is basically performing some mining on databases. The goal is to import a database like SQL, save it internally, do some processes on it and return the results.  These mining processes should be interchangeable. So if I pick to only use two of them, I won't have to load all 20 for example.  Is this possible with dll-files in c# / with visual studio?  My idea was to have the mining in these dll-files, then basically use them over an API. So if I pass a String to the DLL file, I would get a result back.  In Java I would do this with a .jar-library and if I want to add a new mining algorithm later, I could just put a new .jar-file in the program folder and the tool would find it and use it.  Am I on the right track to do this in c# / WPF? Would I be missing some important functionality? If I am on the wrong track, what would be the correct approach to tackle this?


Is there any references to C.J. in GTA V?

I don't know if there is, but I know that there is a reference to his mother in the secret mission in GTA V, but I was wondering if C.J. is referenced at all in the game?


I'm trying to insert a citation after a definition/theorem in the beamer class to resemble the following:  Definition [1]  Here is my definition.  I can partially accomplish the above using   \begin{definition}[\cite{ref_01}]   but this yields Definition ([1]) with an additional set of brackets. Is there anyway of selectively removing the additional round brackets?


How to Prove that a 3-regular bridgeless graph has perfect matching?

Proove that a 3-regular bridgeless graph has perfect matching?


I've got custom content-type with several groups and fields. I wanted to change default display of that content-type. I created the node--my_content_type.tpl.php file, and copied the node.tpl.php file into it. Mostly, I want to change display of fields of that content-type, but in that file I've got only a line.   print render($content);   So, I don't have the opportunity to chance display of fields. I want to have field1 on the left and field2 on the right, not one after another as its default.  Could someone help me, please?


is there a pecil and paper type rpg that you can play by yourself?

I am looking for an old style rpg that I can play by myself. is there such a thing? I was kinda thinking the munchkin series was like that


The Fourier transform of a "comb function" is a comb function?

Let $f(x) = \sum_{n=-\infty}^{\infty} \delta(x - n)$, where $\delta$ is the Dirac delta function. This function $f$ (a "comb function") is important in signal processing because evenly sampling a function $g$ can be viewed as multiplying $g$ pointwise with $f$. This idea is the first step towards understanding how to approximate the Fourier transform of $g$, given evenly spaced samples of $g$. The next step is to note that $\hat{gf} = \hat{g}*\hat{f}$, where $\hat{f}$ is the Fourier transform of $f$ and $*$ denotes convolution.  Is it true that $\hat f$ is also a comb function? If that statement isn't quite right, what is the correct statement?  I would like to see: 1) an informal, intuitive, nonrigorous but easy derivation of the Fourier transform of $f$ . 2) A rigorous version of the same calculation.  (How would you even define $f$ rigorously, is it a distribution?)  (I'd also be interested in recommendations of math textbooks that cover this topic, including the Nyquist sampling theorem, even if it's only an exercise or series of exercises in an analysis textbook.)


In Fraleigh's A First Course in Abstract Algebra he solves the problem    $z^4=-16$    by rewriting in polar form that gives   $z^4=|z|^4(\cos(4\theta)+i\sin(4\theta))$ $|z|^4(\cos(4\theta)+i\sin(4\theta))=-16+0i = 16(-1+0i)$    He then says that we can immediately conclude that $|z|^4=16$. He does not go through the process of taking the absolute value of $z$. Assuming that it is $16$ just because it is in the right form seems strange to me. If you can conclude this based on form then why couldn't you factor out some other number like $-16$?


Closed form for $\int_0^1\log\log\left(\frac{1}{x}+\sqrt{\frac{1}{x^2}-1}\right)\mathrm dx$

Please help me to find a closed form for the following integral: $$\int_0^1\log\left(\log\left(\frac{1}{x}+\sqrt{\frac{1}{x^2}-1}\right)\right)\,{\mathrm d}x.$$  I was told it could be calculated in a closed form.


I always confusing when download Ubuntu flavour. My system is 64bit Intel processor(4GB RAM).   when I download 64bit it's downloadind amd64.iso. Upto my knowledge ADM and Intel processors are different. Let me clear this.  How amd64 drivers are compatible with x86_64 architecture?


How to do drag and drop in lightning components?

I am trying to drag and drop images from one block into another and if in the block an image is already present then those images must get swaped


How to track a question on Stack Overflow?

I am new to this site.  While browsing questions, I've found some to be very interesting.  Can anyone tell me how to track those questions?


Suppose $f \geq 0$, if continuous on [a,b] and $\int_{a}^{b} f(x)dx=0$. Prove that $f(x)=0$ for all $x\in [a,b]$.

My attempt: Let P the partition of $[a,b]$. Let $x_{i}^{*} \in [x_{i-1},x_{i}]$ and f is non negative in $[x_{i-1},x_{i}]$.   Since f is continuous on $[a,b]$, then $f$ is R-integrable with $\int_{a}^{b} f(x)dx=0$.  $$\displaystyle \lim_{n\rightarrow \infty} \sum_{i=1}^{n}f(x_{i}^{*}) \delta x_{i}=0$$  This implies $f(x_{i})=0$ for all i. i.e $f(x)=0$.  Is this proof is correct?


When is an email rejected by the receiving server?

Currently, I am working on a web application and wanted to create a web form to let users write emails through it. So, they would have to set their email address and the message and after clicking "Submit" my web application would send the email to recipients using their email address in the FROM header. The sending process is, of course, done using my own SMTP service because I do not have access to the email servers from my website visitors.  Now, I heard that this is probably a bad idea because those emails will most likely be rejected by the servers of the recipients. However, I do not yet fully understand why that is and how this process works. I've learned that the two most used anti-spam and -spoofing technologies used today for email is  and .  So, I'd like to understand why exactly the emails will be rejected and how DKIM/SPF will help here.  So, let's start with SPF:  As far as I understand, the server of the recipient will check the IP addresses that are allowed to send mails using the domain in the MAIL_FROM header and the DNS system. Now, with my example above, when I send emails in the web application with the FROM header set to e.g. bob@example.com (that's the address my website visitor set) this should (?) not affect the MAIL_FROM header. Because the email will be sent through my email service, the MAIL_FROM header will contain my domain and as far as I understand, it should be possible to send the mail and passing SPF.  The other anti-spam technology is DKIM:  It will sign the email and the recipient server will look in the DNS to find the right public key to verify the signature. Here, I am not sure how that's done exactly. I know that the FROM header will be part of the signature, but how does the recipient server check DKIM? Is it looking again at the DNS from the MAIL_FROM header? If yes, I could also pass DKIM with my example above, is that right? Or do have the domain in MAIL_FROM and FROM be identical? I'm kind of lost.  So after all I understand now, both DKIM and SPF should not be a problem for my web application. Why, though, is it sill said to be a bad idea and emails will most likely be rejected? Or did not I understand DKIM properly?  My overall question: How exactly will the recipient server determine if the email is rejected?


Let $\{a_n\}$ be defined as follows: $a_1 = 2$, $a_{n+1}=\frac{1}{3-a_n}$, if $n \geq 1$. Does $\{a_n\}$ converge?

Let $\{a_n\}$ be defined as follows: $$a_1 = 2, a_{n+1}=\dfrac{1}{3-a_n}$$ $n \geq 1$.   Does $\{a_n\}$  converge?    Using the monotone convergence thereom, if the sequence is both bounded below and decreasing, $\forall n\in\mathbb{N}, n\geq 1$, then we can say the sequence converges.  I'm having trouble proving that the sequence is bounded below by induction.    Claim: The sequence is bounded below by $0$.  Base Case:  $n=1$  $a_1 = 2 \geq 0$, so this holds.  Induction Step  Suppose that $a_k \geq 0$, for some $k \in\mathbb{N}$. (IH)  Prove $a_k \geq 0\to a_{k+1} \geq 0$  I have some difficulty here.  $a_{k}=\dfrac{1}{3-a_{k-1}} \geq 0$  $a_{k+1}=\dfrac{1}{3-a_{k}}$, but we know $a_k \geq 0$, but we don't know how much bigger. It could be that $a_k = 4$, and then I have $a_{k+1}=\dfrac{1}{3-4}$, which is negative, and does not confirm with my claim of being bounded below by $0$. Have I gone somewhere wrong in my induction?


Add notification when your question is closed as a duplicate by a mod

There are already some feature-requests asking for a notification when your question gets closed, with which I wholly agree:         Unfortunately, on the last one is a response by Jeff against this. OK, I disagree, but so be it. But one specific use-case is probably the worst, so I'd like to open a feature-request only about it: when your question gets closed as a duplicate by a mod.  Why is it a problem? Because usually, when a question receives a close vote, it automatically gets a comment about it - and that comment appears in the asker's inbox. Great! But when a mod 1-votes to close it, that comment does not appear. That means I ask a question, it gets closed as a duplicate, and there is no message whatsoever about it. Like many SE "power users", I rely on my inbox to track my questions, and that means I'll spot this only when periodically checking my old questions.  This means it might take me days to notice something happened, when all the while there are already answers for my question!  Part of the appeal of the SE network is how quickly one can get an answer to a question. This silent-closure-as-dup breaks this - the question is okay, the answers are there, but I get no message about it.


What is the difference between Pearson's correlation coefficients and the correlations in linear regression analysis?

I have just run both Pearson's correlation analysis and linear regression analysis, and both sets of correlations differ. Is this supposed to be the case and if so, could somebody please tell me why?   Thank you.


Why does this loop always return false, when you enter the correct value?

import java.util.Scanner; public class Password {     public static void main(String[] args) {          Scanner reader = new Scanner(System.in);          System.out.println("Please create a password");         String pw = reader.nextLine();          while (true) {             System.out.println("Enter the password");             String pwt = reader.nextLine();             if (pwt == pw) {             System.out.println("The password is correct!");                 break;             } else {                 System.out.println("The password is incorrect, please try again");              }         }     } }   I'm new to this, so the answer is probably obvious, but I just don't understand why it reads false when I type the right password


Let $A\in M_3(\mathbb R)$ which is not a diagonal matrix.Let $p$  be a polynomial in one variable with real coefficients & of degree 3 such that $p(A)=0$.  Can we conclude that $p=cp_A $ where $c\in \mathbb R $ and $p_A$ is acharacteristic polynomial of $A$?If not  what kind of roots(real/complex) p should have  in order to make such a conclusion.


50 hertz sine wave in oscilloscope when I touch it

I bought a new PicoScope USB oscilloscope and noticed that when I touch the tip of the probe with my hand I see a 50 Hz signal of 2 volts on the screen. What is causing this? (Or rather, how is the mains 50 Hz sine wave getting through me to the scope?)


16.04 Software and Updates: Update cache: Failed to download repository information

Software updater isn't working, saying it can't download repository information.  I've switched the download site to Main Server from a Canadian academic site.  Please explain like I'm five.  Boxes tell me this:     The information about available software is out-of-date      To install software and updates from newly added or changed sources, you have to reload the information about available software.      Updating cache: Failed to download repository information:      Details:  W:The repository 'http://deb.bitmask.net/debian xenial Release' does not have a Release file. W:Data from such a repository can't be authenticated and is therefore potentially dangerous to use. W:See apt-secure(8) manpage for repository creation and user configuration details. E:Failed to fetch http://deb.bitmask.net/debian/dists/xenial/main/binary-amd64/Packages  404  Not Found E:Some index files failed to download. They have been ignored, or old ones used instead.    In terminal, apt-secure & apt-secure manpage give command not found.  I haven't been able to do Software Update for two days.  Yikes, I need patches re: Spectre and co.!


Shielding magnetic field without mu-metal

I need to shield my device from magnetic interference, including earth magnetic field (if you move device around, it might be enough to cause slight currents i guess) and magnetic field caused by power nets, wires with large currents e.t.c .  I know this could be achieved by making case out of , but it seems that I can't find it anywhere (especially in small quantities).  So, are the other, easier ways to shield magnetic field?  Will multiple sheets of steel work for example?


How do I convince someone that $1+1=2$ may not necessarily be true?

Me and my friend were arguing over this "fact" that we all know and hold dear. However, I do know that $1+1=2$ is an axiom. That is why I beg to differ. Neither of us have the required mathematical knowledge to convince each other. And that is why, we decided to turn to Math Stackexchange for help. What would be stack's opinion?


Different display types for different posts on category page

I was wondering what would be the best way to 'set' different display styles for different posts in the loop on a category page?  That's what I would like to end up with:

First post

Second post

Third post

post 4...

post 5...

post 6...

   How can I achieve this?  Thanks :)


I wrote the following sentence and was criticized for using a comma before the quotation marks.      Steve states: The topic for discussion will be Friedrich Nietzsche's controversial philosophical concept of the, "Superman or Overman."    The "Ubermensch" was Nietzsche's concept but the English translations of it, that Steve insisted I use because other people use them, were not his and more importantly they are both incorrect. The correct translation would be, "Superhuman," as the concept was not meant to be gender specific.  Is using a comma before quotation marks in the above sentence, for the reasons that I have stated, acceptable or not?


$${\dfrac{1}{\pi^2}}\int_{0}^{\infty}\dfrac{{(\ln{x}})^2}{\sqrt{x}{(1-x)^2}} \mathrm d x$$   I tried substituting $1/x$ for $x$ but the the only change in the integral is that the $\sqrt{x}$ moves in the numerator from the denominator. I don't understand what to substitute. $\tan{x}$ doesn't seem to work.


I have a large list of Lambert coordinates. All those points connected create different area from a country.  I would like to have this map as a SVG path (each region would have its path).  I cannot find any way to do this. I only land on websites that offer the possibility to translate my Lambert coords in GPS coordinates.  Is there any tools that can translate coordinates to SVG ?  See below the final map (without the markers)


I have a server application written in ASP.NET on Windows that provides a web service.  How can I call the web service in Linux with cURL?


I can't compare correctly a word I read from a file with bufferedreader

I have a program which can recognize specific words from a file .txt  The problem is when find a word I send it to a method like "value" and I question:   if (value == "specificword") {...}   this question is always false. I have made many debugs and I'm sure both are the same word (without a space or tab or enter) so: Is it possible this be a problem with the text format?


how do i write this letter on latex (showed in picture)

I am trying to write an equation in my thesis, but i have been looking for around 2 hours the way to write this symbol, hope somebody can help me.


Ubuntu won't boot after deleting Windows-Partition

Edit: This is not a duplicate of the marked issue above. The marked issue is about Win7 being installed and the PC directly booting to Windows... This is about nothing booting (i.e. Ubuntu) at all after deleting the Windows partition...  So I had Windows 10 and Ubuntu 18 parallely installed. Yesterday my Ubuntu ran out of memory on my hard drive - as I have stopped using Windows in the past couple of months I decided to simply delete it and make more space for Ubuntu. I followed a well-rated Tutorial on Youtube () where I just had to delete the Windows Bootloader and Windows partition in GParted. After that I'd just stretch out my Ubuntu Partition over the now free space. My problem now: Ubuntu won't boot after I restarted my PC! It goes to black screen and then straight to BIOS. I opened Ubuntu live-version from an USB   As you can see for my Ubuntu partition, Boot sector type and Boot sector info are empty, so I must have messed something up... Did I delete the Ubuntu GRUB by accident? Can I fix this problem without losing my Ubuntu data? I am fairly inexperienced with Ubuntu, so please excuse any inaccuracies on my side.


How many emails or SingleEmailMessages can be sent as part of a single sendEmail method invocation?

I see the governor limits for maximum no. of sendEmail invocations per transaction as 10 in this article  But it does not say how many emails I can send per sendEmail invocation.


Convergence of an infinite product $\prod_{k=1}^{\infty }(1-\frac1{2^k})$?

Problem:  I want to prove that the infinite product $\prod_{k=1}^{\infty }(1-\frac{1}{2^{k}})$ does not converge to zero. It doesn't matter to find the value to which this product converges, but I am still curious to know if anybody is able (if possible of course) to find the value to which this infinite product converges.  I appreciate any help. I tried the following trick: $\prod_{k=1}^{n}(1+a_{k})\geq 1+\sum_{k=1}^{n}a_{k}$ which can be easily proven by inudction, where $a_{k}>-1$ and they are all positive or negative. In this case, $a_{k}=-\frac{1}{2^{k}}$, but I get : the infinite product is greater than or equal to zero.


dpkg: error processing package liblmdb0:amd64 (--configure):  package is in a very bad inconsistent state; you should  reinstall it before attempting configuration Setting up libevdocument3-4:amd64 (3.18.2-1ubuntu4.1) ... Setting up libevview3-3:amd64 (3.18.2-1ubuntu4.1) ... Setting up evince-common (3.18.2-1ubuntu4.1) ... Setting up evince (3.18.2-1ubuntu4.1) ... Setting up libepoxy0:amd64 (1.3.1-1ubuntu0.16.04.2) ... Processing triggers for libc-bin (2.23-0ubuntu9) ... Errors were encountered while processing:  liblmdb0:amd64 E: Sub-process /usr/bin/dpkg returned an error code (1)   I am getting this error every time I execute these commands on the terminal:  sudo apt-get update && sudo apt-get upgrade sudo apt-get autoremove   I'm running Ubuntu 16.04 I can't uninstall programs in my system and I'm also getting a System Error popup everytime my computer starts.


I was wondering while studying for my complex analysis finals, on chapter on orientation, is it possible to find some holomorphic function on the unit closed disk which sends the unit circle with the counterclockwise orientation into the unit circle with clockwise orientation?  It seems like an interesting question to ponder about, but I cannot think of any as of now, I was wondering if anyone could give me an example of a function which could do this?


I am reading The C Programming Language (K&R). I am trying to understand how EOF works and I believe that upon encountering Ctrl + D at the beginning of a line, EOF is triggered. However at the end of a line, it requires the user to enter Ctrl + D twice. First to flush the input and the second to trigger EOF.  The following program reads input lines from the console and prints the longest. I don't understand why I have to enter Ctrl + D thrice to trigger EOF.  #include <stdio.h>  #define MAXLINE 1000  int getline(char[]); void copy(char[], char[]);  int main() {     int len, max;      char line[MAXLINE];     char longest[MAXLINE];      max = 0;      while( (len = getline(line)) > 0)         if(len > max)         {             max = len;             copy(longest, line);         }      if(max > 0)         printf("%s", longest);     return 0;  }  int getline(char line[]) {     int c, i;     i = 0;      for(i = 0; i < MAXLINE - 1 && (c = getchar())!=EOF && c!='\n'; ++i )         line[i] = c;     if(c == '\n')     {         line[i] = c;         ++i;     }     line[i] = '\0';     return i; }  void copy(char to[], char from[]) {     int i = 0;      while( (to[i] = from[i]) != '\0')         ++i; }


What is the command to give a player a diamond helmet if they have a specific scoreboard score?

I am making a map and I want to be able to give points to players, which I have down (using the scoreboard command). But I want to be able to see if a player has a specific score and reward them with a diamond helmet.     Also, I want to replace the item on their head with the diamond cap, not just use /give to give it to them. If you can give me the command or set of commands that would be great! I'm using 1.9.2.


Drag and drop to desktop, including images from browser

I'm trying to figure out how to drag and drop to the Ubuntu desktop. I installed this extension:  I can drag and drop files to the desktop but not images from the browser, for example i click and drag an image from a webpage to the desktop. But this works when I drag and drop to the nautilus. And also these extensions will not allow to disable trashcan and home folder. Do you have any idea on why they disabled this to the desktop?


We're looking to get pregnant - what can we do to optimize our chances?

We've heard of some couples taking a long time to get pregnant, from the time when they decide to start. We're wondering what we can do to make the process faster.


How to choose $\alpha$ in cost-complexity pruning?

In the following lectures , they describe a tree algorithm for cost complexity pruning on page 21. It says we apply cost complexity pruning to the large tree in order to obtain a sequence of best subtrees, as a function of $\alpha$. My initial thought was that we have a set of $\alpha$ (i.e. $\alpha \in [0.1, 0.2, 0.3])$. And then we compute the K-fold cross-validation for each set $\alpha$ and choose the $\alpha$ corresponding to the lowest K-fold cross validation.  For reference, the K-fold cross-validation that I am referring to is described on slide 15 in the following .  However, after some thinking and reading; I found there is a theorem that the sequence of subtrees went through by weakest link pruning will contain the subtree $T_\alpha$. Where $T_\alpha$ is the subtree that minimizes the cost complexity criterion  $$ C_\alpha (T) = \sum_{m=1}^{|T|} \sum_{i: x_i \in R_m} (y_i - \hat y_{R_m})^2 + \alpha|T| $$ described on slide 19 in the  slides.  Since this theorem exists I thought it might be plausible that you can deduce a neat mapping of each $\alpha \in \mathbb{R}$ to the optimal subtree $T_\alpha$. Or at least we can see that for a certain interval of $\alpha$s it will correspond to a specific subtree. I found this theorem on page 308 of the  of print 4. It would be great if someone could clarify the algorithm and it would help to know if such a mapping exists.


Java FileInputStream giving random output every time it runs

I need to generate an IV for an AES encrypted file, and I'm doing it like so:  private void generateIv() {     SecureRandom rnd = new SecureRandom();      byte tempiv[] = new byte[16];     rnd.nextBytes(tempiv);       System.out.println("IV Generated: " + tempiv.toString() + ", Length: " + tempiv.length);      try{         File outfile = new File("initvector.iv");         FileOutputStream ivfile = new FileOutputStream(outfile);           DataOutputStream dos = new DataOutputStream(ivfile);         dos.write(tempiv);         ivfile.close();         dos.close();     } catch(Exception e){         e.printStackTrace();     } }   Then, I display it to the console like this:  private void displayiv() {     FileInputStream ivout = null;      try {         ivout = new FileInputStream("initvector.iv");     } catch (FileNotFoundException e) {         e.printStackTrace();     }     // DataInputStream dis = new DataInputStream(ivout);       byte[] fileiv = new byte[16];       try {         ivout.read(fileiv);         //dis.close();         ivout.close();     } catch (IOException e) {         e.printStackTrace();     }       System.out.println(fileiv); }   But the problem is that the output is different every time I call the displayiv() method... This is a sample output from the console.   IV Generated: [B@6276ae34, Length: 16 [B@42dafa95 [B@6500df86 [B@402a079c [B@59ec2012   As you you can see the iv is generated fine, but trying to read it from the file gives a different result every time. In the displayiv() method I also tried to wrap the fileinputstream in a DataInputStream but the problem still persists. Why is this?


What exactly is the difference between 2-Level, 3-Level and 4-Level systems? Why can we not achieve stimulated emission in a two-level system using optical pumping?


Do Login Alternatives to OpenID Create A New Account?

I've always used OpenID to log into StackOverflow.    I see that it's going to be turned off in Feb 2014.  When I try to use an alternate means of login (e.g. Google) it appears to be trying to create a new account.  I don't want that - I want to retain the one I've had for almost five years.  How do I switch my existing accounts to use Google to log in without creating a new account?


Is it possible to find the reason for which a specific user has been suspended?  Is there a reason for not displaying the cause of suspension? (as in Status-by-design).  Edit:  The reason I asked this was to find out why a very good user (atleast in my opinion) was suddenly suspended. I did not think that it would be a source of embarrasment for the user concerned.


Finding the limit of $(1-\cos(x))/x$ as $x\to 0$ with squeeze theorem

How do I find:  $$ \lim_{x\to0}\frac{1-\cos(x)}{x} $$  Using the squeeze theorem.  Particularly, how would I arrive at its bounding functions?   If possible, please try not to use derivatives.


Single Variable Calculus Reference Recommendations

This question is a  of the common question asking for calculus references. It is here to  away the repetition, and give a canonical resource for calculus references.      I'm looking for a resources to learn single-variable calculus.


Reading/Writing the same csv with two different version of a program

I'm generating csv files based on the results of people answering a survey  on 2 different machines. The files will be on a shared folder.  Right now, it will assign each new file with a subject number by looking up the demographic file and see how many people completed the survey. Unfortunately, if we have two people start the program at the same time, they'll end up having the same subject id number. How can I fix this issue?


How can I find tournaments which are not full?

I have visited the tournament view for several times now, but everytime the complete list of tournaments was full with occupied tournaments.  Do I have to be very quick or do I do something wrong? Is there maybe a way to refresh the list with a new list?


How do I choose between Stack Overflow, Programmers and Code Review?

How does one decide which forum to post in?  I tried to see if the different sites had a "home" page with an intro of sorts that explains what NOT to post etc. but I haven't really gotten a clear idea.   So far, from what I understand, Code Review would be for questions around how to improve a piece of code. But I'm not sure what the difference is between Stack Overflow and Programmers.  I just want to double check so that I don't loose points for posting on the wrong site!


My husband was laid off from his job and he had an FSA healthcare account.  The account shows there is over $600 available.  What happens to that money now that he's laid off and no longer worker for the employer?


Given 3 | $(a^2+b^2)$. Show that 9 | $(a^2+b^2)$  I was given only examples, but not a rigorous proof. No clue how to do it, even using contradiction method. Thanks in advice


How can teams collaborate on Unity 3D projects?

With a friend of mine, we are planning to develop a small game to get the hang of game development and teamwork. But since Unity 3D barely supports version control (or at least the free version lacks of it) we have no idea how to efficiently manage teamwork. Sharing tasks in a small project is also seems like a challange for us.  I would also appreciate any advice that could be useful for beginner indie developers related to teamwork. :)


I think this particular phrase creates a lot of concern in English learners. From general conversation to posts here, we see native speaker a common usage when talking about a person who speaks English by birth. So according to this definition, inhabitants of all the countries considered as  should be considered as native speakers. But herein lies my confusion. Would we conclude a random inhabitant of these countries to be a native speaker (as there is a chance of them to be a English speaking person)?    Also, I think Native speaker can also be one whose mother tongue is not English but uses English a lot in day-to-day life. For example, I don't speak English by birth, but as , I have to use English daily for at least 5 hours a day in my normal life. So can I consider myself as native because I use it frequently?  UPDATE 1 - From Googling, I could not find any dictionary sites explaining this phrase. The results only include different forum answers. So I thought of asking the question here and perhaps wise users here can help me out with the actual meaning.  UPDATE 2 - Later I thought it is worth adding that Anglo Indian families (and some purely Indian families too) who are born and raised here in India, speak English from birth and their first language is English and English is their primary means of communication although I cannot admit they fully abide by or understand all English cultural values like a British or an American. So what can I call them? Are they native?


How to remove Firefox's dotted outline on BUTTONS as well as links?

I can make Firefox not display the ugly dotted focus outlines on links with this:  a:focus {      outline: none;  }   But how can I do this for <button> tags as well? When I do this:  button:focus {      outline: none;  }   the buttons still have the dotted focus outline when I click on them.  (and yes, I know this is a usability issue, but I would like to provide my own focus hints which are appropriate to the design instead of ugly grey dots)


Proof that total orbital angular momentum square can only take integer values of $\hbar^2$

I am comfortable with the argument that in order for the wavefunction to be single valued/2$\pi$ invariant this means that $L_z$ must be an integer value of $\hbar$. $$U(2\pi e_z)=e^{-(2\pi i/\hbar)\hat L_z}=1$$ However I don't know how it follows from this that $|L|^2 = \beta \hbar^2$ where $\beta$ in an integer. $L_x$ and $L_y$ are indetermined so it seems fishy to say 'if' they were measured they would have integer $\hbar$ values and so $L_x^2 + L_y^2 + L_z^2$ would be an integer $\hbar^"$ value, since we can never actually measure all of these at once.


Subset of $\mathbb{R}^n$ homeomorphic to $\mathbb{R}^n$

Let $X$ be a subset of $\mathbb{R^n}$. The topology on $X$ is induced by the topology of $\mathbb{R^n}$. If there is an homeomorphism from $X$ onto $\mathbb{R}^n$, is it true that $X$ is open in $\mathbb{R}^n$ ? I think yes, but how can it be shown? (of course, $X$ is open in $X$).  If $x \in X$, $H_{n-1}(\mathbb{R}^n-\{f(x)\})= \mathbb{Z}$ so $H_{n-1}(X-\{x\})= \mathbb{Z}$, but I don't know how to continue.  Thanks in advance.


Need to extract part of string using shell

I have a script like,  #/bin/bash -x LASTBUILD=' 174254491  2018-08-08T11:04:40Z  gs://abc/kishor/5.4.0.61/xyz-5.4.0-61.tgz  TOTAL: 46 objects, 7325896651 bytes (6.82 GiB)'  echo "this is the LASTBUILD ============== $LASTBUILD"  LATESTBUILD=echo $LASTBUILD | cut -d ' ' -f 3  echo "this is the LATESTBUILD ############### $LATESTBUILD"   After execution shows result as below,  [root@root ~]# echo $LATESTBUILD  [root@root ~]#   My expected result is as below,  [root@root ~]# echo $LATESTBUILD gs://abc/kishor/5.4.0.61/xyz-5.4.0-61.tgz [root@root ~]#   The above code is not working.  PS: Also tried using awk but not worked,  LATESTBUILD=$LASTBUILD | awk -F '/' '{print $5}'


Centripetal force: if radius decreases, does ANGULAR or TANGENTIAL velocity change?

Having conceptual trouble with this aspect of centripetal force. Say we have a puck on a frictionless table attached to a string that I am holding through a small hole, so that the puck moves in a circular path. So $F=m\;\dfrac{v^{2}}{r}=m\;\omega^{2}\; r$. If I pull on the string to change the radius of the puck's path, does angular velocity change, or linear? The math makes it look like it could be either, or both, which seems like it can't be right.


I have unlabeled dataset and I'm using the hierarchical clustering to generate a groups from this data.  I had a look to the lit and I found that there are two approaches to evaluate the clustering results. (1). Internal Validation, (2) External Validation.  How can I verify that my data clustered well?  Is using one of the Internal Validation such as "Sum of Squared Error" enough to say my clustering system perform well? or do I need to apply different criterias?


Render TeX in comments by default (on the iOS app)

Thanks for .  My one gripe I do have is that rendering is disabled in comments unless you use this interface.    Can we please have rendering by default. Pretty please.


I want to re-install 16.04 on dual boot laptop

The system goes slow or seems to stop, screen then goes to black and white and laptop is unusable, but usually recovers after a few minutes.   During this outage disk read/write light is on constantly. HTOP shows no excess CPU usage but has 46 instances of usr/lib/firefox/firefox some with -contentproc.......  previous updates to software have had errors.   I would like to simply re-install 16.04 to see if this solves the problem but can't find simple instructions on how to do this.


Prove or disprove that $f(x) = \sin x/x$ is uniformly continuous over the interval $(0,1)$?

I am thinking of $\lim_{x \to 0} \ {f(x)} = 1$ but I am confused as $x=0$ is not in the domain and also I want to write an $\epsilon$-$\delta$ proof. So any help is much appreciated!  Thanks!


I'm not asking how to bevel a shape's edge, I'm asking how to create something like this:  For this, I created a cylinder of default size and scooted it 1m on the Y axis so that it appears as if the cube as a rounded face. However, this leads to Z-fighting between the two separate objects. I would like to know how to alter the cube's face so that it is a single shape with a rounded face. Sorry I don't have the vocabulary to be more clear.


Securing a bike on a car rack against theft

I sometimes find the need to leave my bike on my bike rack while I'm away from my car.  It's a simple strapped-on rack, so locking the bike to the rack doesn't help.  (My car doesn't have a towing hitch.)  What can I do to secure the bike to the car in a way that will deter theft?


"ubuntu-desktop" and "ubuntu-gnome-desktop" packages got purged, but everything seems ok

I wanted to purge/reinstall the gnome-shell-extension-appindicator package, but when I did that, two other packages ubuntu-desktop and ubuntu-gnome-desktop got purged with it.   So I restarted, thinking that I probably need to reinstall those, but everything seems ok! I always thought those two are some critical packages.   Should I reinstall them?  I have 18.04 installed.


how to change the boot logo(with commands) for 18.04 LTS


upgrade error : illegal package name `doc-base/noawait'

I cannot download anything or upgrade my system. I get the following error message:  dpkg: file triggers record mentions illegal package name `doc-base/noawait' (for interest in file `/usr/share/doc-base'): character `/' not allowed (only letters, digits and characters `-+._') E: Sub-process /usr/bin/dpkg returned an error code (2)   I also cannot use USB creator to do fresh install as my system fails to load bootloaders.  Please help


There are several commands I often use, some of them are longer and it's a bit of a hassle to type them out (or look for them via arrow-up or CTRL-R) each time.  Are there ways (built-in or apps) to link them to a certain key combo, or some kind of favorites manager that allows easy access?


New Google SEO benefit with SSL - with only a few sections in SSL, or always on?

Google just announced that SSL will affect site ranking positively:   I have an Easter Island tourist agency called Easter Island Traveling for which I had planned doing a subdomain (secure.*) for doing sales, logins etc.  Now, does Google want my SSL to be on for all of my site to have this SEO benefit? This would be quite radical by Google, since it would affect my site speed negatively. Or is it enough that I have SSL on a part of the site only? Thoughts?


Is reputation-per-day being miscalculated?

At first, I thought that the timezone the servers were located in may be UTC, but from other MetaSO questions I see that .   that the clock on the servers is set to UTC.  Is this the reason why reputation seems to have a display error?  See the image below.  "Today" I received some +2 reps, for mods done "13 hours ago"...... but 13hr ago was 9/10/2013 for me, not 9/11/2013.    note; all these little reps are tag-cleanup that I'm doing.


My VPS is running Ubuntu, and I'd like to be able to receive email to my domain.  How do I easily set up a mail server to do this?


Can't boot after upgrading from 14.10 to 15.04

I just upgraded an installation of 14.10 x64 that was installed from scratch not long ago. I upgraded from the update manager because it suggested to do so.  It finished successfully and I rebooted.  After reboot I get stuck with a blank screen and I can't type anything. Also, I hear the tamtam sound looping every 5 seconds.  I saw other similar questions with answers but it does not work for me.  I can't ctrl-alt f1. It is not doing anything.  I burned a Ubuntu DVD x64 15.04 and can boot with it but I have no idea what to do next.  Please, if you want to help, I am not familiar with terminal commands.  Thank you.


I have built a Windows Service which on start builds a list of file paths from a specified directory. I then do some processing on those files and delete them. My question is how often will the service build this list? Can we specify a time interval when this service would look into the directory and build the list?  OR   Is it better that I create a console application and assign it to a scheduler?


I am prompted for a sudo password.   Since I am a user at a very basic level of knowledge, I am very shaky in getting to the terminal and/or using the commands. When I am told to take the step "enter sudo command", before which I am prompted for the "sudo password", what do I do?   I've never set a sudo password. I see from other questions that there is a facility called passwd; surely that has to be entered at the terminal... I'll try it.


Can I be admitted to a master's in the USA after a 3-year European bachelor's program?

I am an Indian citizen and I'm planning to go for my bachelors to Germany. Since schooling in Germany is 13 years in length, I'll study 1 year in India before going there. I wanted to ask that after completing my Bachelor's in Germany, will I be eligible to apply for Masters in USA straightaway right after my BS (I plan to pursue a BS in Computer Science). I had this doubt in my mind as BS in Germany would be 3 years compared to that in USA which is 4 years.


I have a query which is meant to show me any rows in table A which have not been updated recently enough. (Each row should be updated within 2 months after "month_no".):  SELECT A.identifier      , A.name      , TO_NUMBER(DECODE( A.month_no              , 1, 200803               , 2, 200804               , 3, 200805               , 4, 200806               , 5, 200807               , 6, 200808               , 7, 200809               , 8, 200810               , 9, 200811               , 10, 200812               , 11, 200701               , 12, 200702              , NULL)) as MONTH_NO      , TO_NUMBER(TO_CHAR(B.last_update_date, 'YYYYMM')) as UPD_DATE   FROM table_a A      , table_b B  WHERE A.identifier = B.identifier    AND MONTH_NO > UPD_DATE   The last line in the WHERE clause causes an "ORA-00904 Invalid Identifier" error. Needless to say, I don't want to repeat the entire DECODE function in my WHERE clause. Any thoughts? (Both fixes and workarounds accepted...)


Parindent not working for subsection paragraph

This is the code:  \section{Introduction}  \subsection{Background of the Project} \setlength{\parindent}{10ex} An Information System (IS) is a collection of integrated modules that collect, manipulate, and...   This is the output:    The \parindent doesn't seem to be working. I need the paragraph to be indented.   I'd prefer a global solution, where all paragraphs are indented unless otherwise instructed.


Im trying to follow the steps described in the solution to this question:   And one of the steps is to edit the debian/rules file but it doesnt explain how to do that. Im kind of new with ubuntu and this is the first time I hear about such file.   What is the command to edit the debian/rules file?


What is the probability of 12 girls being born in a row in a hospital with 27,123 births annually?

There is some  now about a Polish village where the last 12 children born were all girls.  The probability that the last 12 newborns in a village are all girls is around 0.03%, so around 3000 villages give us a solid 50% chance of this happening, so I would say this is no big deal.  However I was thinking how often this happens in large hospitals and goes unnoticed.   According to some  the Northside Hospital in Atlanta has seen 27,123 births in 2016.  So what is the probability that at least 12 girls in a row were born there in 2016?


How do I ping a website or IP address with Python?


Possible Duplicate:        I am writing a large application in C and have heard that prior to the advent of C++ programmers used to implement the "Object Oriented" pattern in C. My question is what is the usual form this pattern takes? and how would I go about implementing such an OOP pattern in a modern C application?


If the number of roots of a polynomial are more than degree of polynomial, then it becomes an identity. Why?

This is more like only well-known fact to me, but no one really coherently explained it to me. I’ve only done questions for proving that a polynomial is an identity: for example, in the case of a quadratic, all the three standard coefficients should be zero for it to be an identity. I wanted more intuition for this. Can someone explain the whole topic and relevant surrounding stuff to me?


There have been conducted many experiments in which light impulses traveled faster than light like the one in Princeton in 2000. This phenomenon has something to do with quantum entanglement. Does anyone know how it's possible and can give an explanation?


Conmutator of $[x, f(p)]$ on quantum mechanics

I'm struggling trying to prove $[\overrightarrow{x}, f(\overrightarrow{p})]= i\hbar\frac{\partial f(\overrightarrow{p})}{\partial \overrightarrow{p}}$. I already proved that $[x_i,p_i^n]=i\hbar \frac{\partial p_i^n}{\partial p_i}$ and I need to express $f$ in a power series but I don't know how to do that and derive the result. Can someone help me?


Is the use of "this" correct in "There is this blog, but I don't remember its name"?

What I write should mean the following: "There is this blog, but I don't remember its name."   So I thought I have to write it this way to achieve the meaning in a short way: "This blog."   But is this correct? Does is mean what I want to say? Because I've learned at school that "this" points to something specific. But I that's not what I want to achieve.   Sorry if the question is unclear. But I have no idea how to explain it differently.


Does in review mean an external reviewer is assigned ?

Three weeks ago, I have submitted a paper to a journal that has a reputation for fast publication process. On their website, they mention that decision on acceptance or otherwise are taken quickly normally within a month of receipt of the paper. One week after submission the status of the paper changed from waiting assignment to in review .  The journal use OJS for submissions. in review page something like this appear:  Peer Review Round 1  Review Version    Final version.pdf  2018-11-24  Initiated    —  Last modified    —  Uploaded file    None  Does that mean still no external reviewer is assigned to the paper? Giving the circumstances is it too early to ask if any reviewer is assigned?


Rodin: So... how do we find this Reacher?   Emerson: Obviously, you don't find this guy unless he wants to be found.   Secretary: Excuse me, sir. There's a Jack Reacher here to see you.      Can we use indefinite articles (a) with people names? Is it mistake? or informal?


Meaning of $GL(n)$ in this expression $f: GL(n) \subset Mat_n (R) \rightarrow R^n, A \mapsto f(A) = A^{-1}b$

I was reading about condition number of a matrix (from Numerical Analysis in Modern Scientific Computing: An Introduction, 2nd edition, by Andreas Hohmann and Peter Deuflhard), and it's stated:  Next we take perturbations in $A$ into account, too. For the purpose of consider matrix $A$ as input quantity $$f: GL(n) \subset Mat_n (R) \rightarrow R^n, A \mapsto f(A) = A^{-1}b$$  What does $GL(n)$ actually mean? What does $G$ and $L$ (or $GL$) stand for?


System.currentTimeMillis()'s accuracy on windows, would it be better to use a linux VM when measuring performance?

From my research, System.currentTimeMillis() is not always accurate, especially on windows. I'm currently carrying out microbenchmarking on a Windows 10 machine. Would switching over to say, a linux VM give me more accurate results when using the method? Thanks.


Is there a file that contains the option of the GRUB2 menu that was chosen for the current boot? This question is different from obtaining the Kernel boot sequence, for example, to differentiate two boot options with the same boot sequence.


How can I make a custom environment that wraps listings?

Thanks to , I know it is possible to float and wrap text around a listing. I would like to setup an environment for mini-code snippets that always floats and wraps the same way. I can achieve the effect manually, but every attempt I have made at combining the environments falls flat.  Here is a MWE that shows what I'm after and what doesn't work:  \documentclass{scrartcl}  \usepackage{listings} \usepackage{blindtext} \usepackage{wrapfig}  \lstnewenvironment{mysnippets}[1][]{%     \lstset{aboveskip=-12pt,belowskip=-12pt,caption=#1,captionpos=b}     \ttfamily }{% } \lstnewenvironment{yoursnippets}[1][]{%     \lstset{aboveskip=-12pt,belowskip=-12pt,caption=#1,captionpos=b}     \wrapfigure{R}{.5\textwidth}     \ttfamily }{%     \endwrapfigure }  %% This sort of arrangement doesn't work %\newenvironment{oursnippets}{% %    \wrapfigure{R}{.5\textwidth} %    \mysnippets[test] %}{% %    \endmysnippets %    \endwrapfigure %}  \begin{document}  \subsection*{This works if you do it by hand}  \begin{wrapfigure}{R}{.5\textwidth} \begin{mysnippets}[ac karni cozumu] if (aciktim) {     manti yeyeyim } \end{mysnippets} \end{wrapfigure}  \blindtext  \subsection*{This arrangement floats but not to anywhere useful}  \begin{yoursnippets}[ac karni cozumu] if (aciktin) {     manti yeyin } \end{yoursnippets} \blindtext  %\subsection*{This and all my other attempts don't even compile} % %\begin{oursnippets}[ac karni cozumu] %if (aciktik) { %    manti yeyelim %} %\end{oursnippets} %\blindtext  \end{document}   Which currently only produces something like:    I am not attached to wrapfig, but would really prefer to stick with listings as possible since I use it extensively for larger blocks of code samples already. Is there a way to combine these environments so I have a snippets environment that always floats here and wraps, but is typeset by listings?


Force on a crash test dummy during a crumple zone experiment

So in high school physics class, we had to do an experiment where you had a cart with a dummy that went down a ramp (constant height) into a block, where it would stop and you'd measure the distance that the dummy was flung from the point of impact. The experiment was the repeated, but there was a crumple zone on the front of the car (the mass change was negligible so for all the trials, there was constant mass).  So the question is, what is the force upon the dummy as the cart impacts with the block (not the total force of the cart-block impact, just upon the dummy)?  Would force just be F = ma, and the only changing variable is a, since the crumple zone is reducing the acceleration? That's what I was thinking it would be, but it feels like it would be something different.  Thanks  (Also, if this is classed as one of those questions where theres 'not enough effort done' and therefore it gets closed, sorry about that. I've tried loads of stuff but I want to try and keep this concise)


Given a set $S$, a filter $\mathcal{F} \subset \mathcal{P}(S)$ is a non-empty subset of the power set of $S$ that satisfies the follow conditions:   $\emptyset \not\in \mathcal{F}$ Given $A$, $B \in \mathcal{F}$, then $A \cap B \in \mathcal{F}$ Given $A \in \mathcal{F}$ and $B$ such that $A \subset B$, then $B \in \mathcal{F}$   My question is: what is the intuition besides the name "filter"? Does $\mathcal{F}$ actually filters something? Why is it called like that?


Can you find the smallest positive number such that if you shuffle the digits of the number in a particular order, the shuffled number becomes twice the original number.  Source:   I understand the answer is $125874 => 251748$  $251748$ is twice the $125874$ and have same digits $1,2,4,5,7$ & $8$  but how to solve this non programmatic ?


Photos messed up after copying from a usb drive

It looks all messed up. I can see the preview of the photo but when I open it, it is just bars of colors. When I tried to upload it here to show you guys, it said framing is not allowed and wouldn't let me upload it. Anyone how to fix it? I will appreciate it very much as they are all wedding photos.  Well, the duplicate question does not answer my question nor does it give me a solution. If you open your eyes and look, the images are totally different. Mine is completely messed up and that other photo isn't that bad. So, if you want to mark it as duplicate, at least make it so the other question has a SOLUTION TO MY PROBLEM.  On another note, I am able to preview the images fine with a medium thumbnail setting. When I change it to large, I see the messed up image. By preview, I mean see the thumbnails in the folder.


Show that $\sum_{n=1}^{\infty} \frac{1}{n^4} = \frac{\pi^4}{90}$   I have to show this using results I have found earlier. I started with $$0 = \frac{512}{10}+\sum_{n=1}^{\infty} 2048(\pi^2n^2-6)\frac{(-1)^n}{π^4n^4}$$ which was obtained from a fourier series.  And have got to $$\sum_{n=1}^{\infty} \frac{(-1)^n}{n^4 }=\frac{ -7\pi^4}{720} $$  But I have no idea how to proceed with getting rid of the $(-1)^n.$  Any help/tips would be greatly appreciated. Thanks in advance.


Remote desktop connection error after updating Windows 2018/05/08 - CredSSP updates for CVE-2018-0886

After Windows Update, I get this error when trying to connect to a server using Remote Desktop Connection. When read  provided by error message, it seems because of an update at 2018/05/08:  May 8, 2018 An update to change the default setting from Vulnerable to Mitigated. Related Microsoft Knowledge Base numbers are listed in CVE-2018-0886.  Is there a solution for this?


Where can I get a device with 'Ubuntu for phones' pre-installed?

Canonical has recently announced , which is Ubuntu with a specific interface for mobile devices.  Where can I get phones with this version of Ubuntu pre-installed? If no devices are available yet, where can I pre-order one?


Is it possible to pass Array by Value in Java (instead of reference)?

Is it possible to pass Array by Value in a function in Java. When we pass array in a function in default it is pass by reference and original version of data in array gets modified.  Hence would like to know if there is pass by value option in Java?


Show that $|x|^2 = |y|^2$ with $A$ orthogonal and $Ax = \cos (θ)x − \sin (θ)y$, $Ay = \sin (θ)x + \cos (θ) y$

Let $A$ be an orthogonal $n × n$ matrix and suppose that $x, y \in \mathbb R^n$   and $\theta \in (0 , \pi)$ satisfy    $$Ax = \cos (θ)x − \sin (θ)y,\\ Ay = \sin (θ)x + \cos (θ) y.$$      Prove that $x$ and $y$ must be perpendicular vectors of equal length, i.e. show that $|x|^2 = |y|^2$   and $x · y = 0$.   We know that because $A$ is orthogonal then$$\langle x,x \rangle =\langle Ax,Ax \rangle, \quad \langle x,y \rangle=\langle Ax,Ay \rangle, \quad \langle y,y \rangle=\langle Ay,Ay \rangle.$$ I was already struggling with showing that $|x|^2 = |y|^2$. So far I just wrote out that   $$|x|^2= \sum_{i=1}^n (Ax_i)^2= \sum_{i=1}^n \cos^2(\theta)x_i^2-2\cos(\theta)\sin(\theta)x_iy_i+\sin^2(\theta)y_i^2,\\ |y|^2= \sum_{i=1}^n (Ay_i)^2= \sum_{i=1}^n \cos^2(\theta)y_i^2+2\cos(\theta)\sin(\theta)x_iy_i+\sin^2(\theta)x_i^2.$$  I don't really see how I could conclude from this that they are equal.


Dual cone of $K = \{(x,t) \mid \| \boldsymbol{x} \|_1 \le t \}$

This  shows the dual cone of $K = \{(x,t) \mid \| \boldsymbol{x} \|_1 \le t \}$ is $K^{*} = \{(x,t) \mid  \| \boldsymbol{x} \|_{\infty} \le t\}$. Is it right? How is it proved?


Bring back review numbers to the top bar

Though I never quite understood what those numbers were and they were quite ugly, they were the only reason I ever visited the reviews page.   Can we have similar functionality back on the top bar please?


How to get the JSON response using Einstein in Web Recommendations?

According to , web recommendations can be delivered via JSON response or HTML/JS. It mentions that the JSON response is the best method. However, there is no documentation for getting it. The only documentation they have covers the .  Now I am able to see the JSON object when I view the URL in the browser (details removed for security purposes): https://{MID}.recs.igodigital.com/a/v2/{MID}>/category/recommend.json?category={CATEGORY}&item={CONTENT_ID}  but using it in JavaScript like this yields this CORS policy error, preventing me from getting anything:  JavaScript snippet  <script>     $.getJSON("https://{MID}.recs.igodigital.com/a/v2/{MID}>/category/recommend.json?category={CATEGORY}&item={CONTENT_ID}",         function(response, status, xhr) {             //Do something with response         }).error(function(xhr, status, errorThrown) {             //Do something with error, I always end up here with the CORS error         }); </script>   Error     Access to XMLHttpRequest at   'https://{MID}.recs.igodigital.com/a/v2/{MID}>/category/recommend.json?category={CATEGORY}&item={CONTENT_ID}'   from origin {SITE_URL} has been blocked by CORS policy: No   'Access-Control-Allow-Origin' header is present on the requested   resource.   Obviously I cannot adjust the server settings for igodigital to modify the JSON file's headers to allow my site access since that's managed by Salesforce.  I attempted to whitelist my site's domain using , but I can't get past step 1 because it's only available in Salesforce Classic and Lightning Experience, not Marketing Cloud.  I did find a "whitelist" section in my settings where I added my domain and checked the box to activate them, but it didn't do anything.  If this isn't the way to get the JSON response, what is??


How do I set up Outlook 2010 to send auto reply based on the time and day of the week?

I need to set up an Auto reply to send messages from 6:30 pm - 6:30 am Mon-Fri and 24 hours a day Saturday and Sunday during non-supported hours.  Can Outlook 2010 be setup to send auto replies during time frames such as this?  How can it be done?


Number of solutions of $P(x)=e^{ax}$ if $P$ is a polynomial

In   the equation $x^2-1=2^x$ is considered, this is a generalization:  Let $P_n(x)$ a polynomial of degree $n > 0$. It is well know that the equation $P_n(x)=0\;$ has at most $n$ real solutions. But consider the inhomogeneous equations $P_n(x)=2^x$ or even $$P_n(x)=e^{ax},\quad a\ne 0$$  Is it correct to say that the number of solutions is $\le n+1?$   Proof could be via induction on $n$ with $P_{n+1}'(x)/a=e^{ax},\;$ but at the moment I see no obvious way to get back to $P_{n+1}(x)=e^{ax}.$


I submitted a paper in april 2017 to the POP Journal, it took 18 days to secure a reviewer. After about 24 days the status said that review has been received and thereafter it said awaiting editor response.  Soon the status went again to securing reviewers. this time the reviewer was secured in about 23 days. It has been almost a month and it still shows review under process, generally the POP journal is fast. I don't know what I should do?


proof involving a triangle with a point inside it.

Suppose we have a triangle, call it triangle $XYZ$, and a point $W$ inside triangle $XYZ$. How would I prove that $XY + YZ > XW + WZ$? So the way I labeled everything, point $X$ is the bottom left corner, point $Y$ is the top point, and point $Z$ is the bottom right corner where the triangle is sitting flat.   I tried numerous variations of triangle inequality but could not get the result. I am wandering if I need to use something else to prove it.


And I’m back with more fontspec trouble. Recently, I asked a question about how to access a particular character variant using fontspec (). ’s solution — to put a newer version of the font in my local texmf tree then call mktexlsr and luaotfload-tool -u -f — worked wonderfully for a time, and then broke later the same day.  Now I am unable to load any OpenType features, not even small caps. Here’s a minimal example:    \documentclass{article} \usepackage{fontspec} \setmainfont{Junicode}   \addfontfeatures{      Script={Latin},     Numbers={OldStyleOff, Proportional}, }  \begin{document}     1. a/b \addfontfeatures{StylisticSet={10},Numbers={Lowercase,Proportional}}     2. a/b      3. \textsc{a/b} \end{document}   When I ask for the same features with another software (I think MS Word generates its own small caps, so I’m using Publisher), everything is fine:     Similar problems persist even with system fonts e.g. Cambria or Candara.  I don’t know whether it’s useful information or not, but just in case, the log file flags up the following warnings,  luaotfload | cache : Lookup cache loaded from C:/Users/MyName/AppData/Local/ MiKTeX/2.9/luatex-cache/generic/names/luaotfload-lookup-cache.luc. luaotfload | aux : no font with id -1 luaotfload | aux : no font with id -1 luaotfload | aux : no font with id -1 luaotfload | aux : no font with id -1  Package fontspec Info: Font family 'Junicode(0)' created for font 'Junicode' (fontspec)             with options [Ligatures=TeX]. (fontspec)               (fontspec)              This font family consists of the following NFSS (fontspec)             series/shapes: (fontspec)               (fontspec)             - 'normal' (m/n) with NFSS spec.: (fontspec)             <->"Junicode:mode=node;script=latn;language=DFLT;+tlig;" (fontspec)             - 'small caps'  (m/sc) with NFSS spec.:  (fontspec)             - 'bold' (bx/n) with NFSS spec.: (fontspec)             <->"Junicode/B:mode=node;script=latn;language=DFLT;+tlig; " (fontspec)             - 'bold small caps'  (bx/sc) with NFSS spec.:  (fontspec)             - 'italic' (m/it) with NFSS spec.: (fontspec)             <->"Junicode/I:mode=node;script=latn;language=DFLT;+tlig; " (fontspec)             - 'italic small caps'  (m/itsc) with NFSS spec.:  (fontspec)             - 'bold italic' (bx/it) with NFSS spec.: (fontspec)             <->"Junicode/BI:mode=node;script=latn;language=DFLT;+tlig ;" (fontspec)             - 'bold italic small caps'  (bx/itsc) with NFSS spec.:   LaTeX Info: Redefining \rmfamily on input line 37. luaotfload | aux : no font with id -1  Package fontspec Warning: Font "Junicode" does not contain requested Script (fontspec)                "Latin".   Package fontspec Warning: OpenType feature 'Numbers=LowercaseOff' (onum) not (fontspec)                available for font 'Junicode' with script '' and (fontspec)                language 'Default'   as well as a further number of the type below.  Package fontspec Warning: OpenType feature 'Variant=10' (ss10) not available (fontspec)                for font 'Junicode' with script 'CustomDefault' and (fontspec)                language 'Default'.   I’m really baffled here, especially since the problem appears to be restricted to my machine. Does anyone know what could be going on?  Edit: This is a known issue with luatex 1.10.1 in MiKTeX. See  and .


How exactly does the variational approach make it clear that the Euler-Lagrange equations of motion will have exactly the same form no matter what coordinate system we use as long as it is done with respect to an inertial frame?


Copyright laws on famous buildings and monuments in games?

I am working on a commercial card game based on the middle east. We would like to have famous buildings and monuments in the game, such as the Burj Al-Arab in Dubai.  Are there laws that would prevent us from using pictures or drawings of famous buildings in commercial games?


Why is there an inconsistency between the gauge transformation of the classical canonical momentum and the momentum operator in quantum mechanics?

I feel that there is a little inconsistency between the canonical momentum of a  classical charged particle in an electromagnetic field and the momentum operator associated to the equivalent quantum system.  Explicitly, let $\vec{A}$, $\varphi$ be potentials for electric and magnetic fields $\vec{E}$, $\vec{B}$. The Lagrangian that describes the motion of a charged particle (of charge $e$) under these fields is  \begin{equation} L(x,\dot{x},t) = \frac{1}{2}m\dot{x}^2 -e\varphi + \frac{e}{c}\dot{x}\cdot\vec{A}. \end{equation}  The canonical momenta associated to $x$ are given by \begin{equation} p_i = \frac{\partial L}{\partial{\dot{x}^i}} = m\dot{x}^i +  \frac{e}{c}\vec{A}. \end{equation}  If we perform a gauge transformation \begin{align*} \vec{A}' &= \vec{A} + \nabla\Lambda\\ \varphi' &= \varphi -\frac{1}{c}\frac{\partial\Lambda}{\partial t},  \end{align*} then the canonical momentum transforms as   \begin{equation} p \mapsto p'= p +\frac{e}{c}\nabla\Lambda. \end{equation}  However, in the quantum case, the gauge transformation transforms operators by conjugation with the unitary operator $U(\Lambda) = \exp(\frac{ie}{\hslash c} \Lambda)$. Namely, for the momentum operator, we have \begin{equation} p \mapsto UpU^{-1} = p + [U,p]U^{-1} = p - \frac{e}{c}\nabla\Lambda. \end{equation} Here I used the fact that $[f(x),p]=i\hslash\nabla f$.  Where does this inconsistency come from? I suspect that it has to do with something fundamental about the momentum operator, and how it differs from the classical momentum. Indeed, the canonical momentum depends explicitly on the Lagrangian, so it depends on the dynamics of the problem, but in the quantum case, the momentum operator is just an operator defined on a Hilbert space.  What is the meaning of $p$ and $p'$ in the classical case, and how does it differ from the quantum case?


What version of Ubuntu can I run on an old desktop? Also, can I revert to old style navigation in 11.10?  I have a P4 3ghz 1 gb ram  160 gb HDD graphics: VESA: 6330  I installed 11.10, but it is slow.


How do I check my flagging record on Area 51?

As of late, I have been flagging proposals on Area 51, primarily to alert moderators to proposals that have failed to meet minimum activity requirements but have not yet been closed or removed as current policy dictates. I decided that, before I continued the practice, I would check my flagging record to make sure that the flags I was raising were helpful. I don't want to get myself banned or otherwise restricted for doing things that are deemed counterproductive!  How can I check my flagging record for Area 51? Most Stack Exchange sites have a link from my profile to my flagging history, but I don't see one on my Area 51 profile. I tried to manually build a URL based on the link to my Meta Stack Exchange flagging history combined with the Area 51 website name and my Area 51 userid (), but accessing it yields a Page Not Found error.  How do I view my Area 51 flagging record?


When I put two plural nouns in a row, should I use plural form for both? Often, when I do so, it seems wrong.  Examples can be:  "components reliabilities" - referring to reliabilities of many different components "components failures" - failures of components "systems designers" - designers who creates systems   Another example popped up, as I am writing this question:  "words combinations" - combinations of words   I face this problem, since I am trying to write to cover general cases, without being specific. Also, I know that I could change the word order with 'of' in many cases (e.g. failures of components). But, sometimes, such modification doesn't fit well in a sentence. So, I decided to ask.  Any help would be appreciated.


I want to create a folder following the below procedure:  set folder 2017/October/10 mkdir $folder   But this isn't possible and I get the message:  mkdir: cannot create directory '2017/October/10': No such file or directory   I want to include that in script function! I could really use some help!  EDIT: This just can't happen!


Geometric Mean of real, convergent sequence preserves it's limit

For a given sequence $\left\{x_n\right\}$ we define its sequence of geometric means to be $\left\{G_n\right\}$, where $G_n=\sqrt[n]{x_1x_2 \cdots x_n}$. We have to show that if $x_n \rightarrow L$ then $G_n \rightarrow L$.  One method that I have implemented to prove this theorem is that I have used the property of continuous function (i.e if $f : A \rightarrow \mathbb{R}$ is a continuous function, then a convergent sequence $\left\{x_n\right\}$ in $A$ implies $\left\{f(x_n)\right\}$ is convergent, and $f(x_n) \rightarrow f(x)$ if $x_n \rightarrow x$ ) and the fact that the sequence of arithmetic mean of a convergent sequence preserves its limit (same statement as in the paragraph above but it's replaced with arithmetic mean in place of geometric mean, which I've proven).   But suppose you don't know anything about continuous function. Can anyone give me a hint as to how could I solve my original problem, without using any properties of continuous function ?


Can I remap the Power key to the End key on Windows 10?

I have this new Zenbook with the following keyboard config:    If you look carefully in the top right corner, you can see the keys  Home PgUp PgDn and POWER keys  This is driving me crazy, I frequently use the End key but on this keyboard, it is the Power button instead!  From the control panel, I already changed the Power button to do nothing so I don't shutdown my computer inadvertently. But I want my End key back! Is there any way I can get the Power button to act as the End key?  I tried SharpKeys without success as it does not detect that key code...


Continuous function positive at a point is positive in a neighborhood of that point

Pretty much the problem asks if a function is continuous at the point $c$ and $f(c) > 0$ then there exists a $d > 0$ such that $\forall x$, $f(x) > 0$ with $|x-c| < d$.   I can understand what the problem means. That if a function is positive at a point then there is another point that's really close that'll also be positive. I can not prove this in a formal way though. I've tried using the intermediate value theorem and I do not know hot to implement it. Any ideas?


Given the rectangle $Q$, find a subset $S$ of $Q$ whose closure equals $Q$, such that $S$ contains at most one point on each vertical line and at most one point on each horizontal line.  I really don't figure out why there must exists such a set; can you give me an example?


Why are formulas of rotational dynamics always having cross product?

I have always seen the formulas of rotation having cross product of $\vec{r}$ and some linear quantity. For e.g. $\vec{\tau} = \vec{r}$ x $\vec{F}$, $\vec{L} = \vec{r}$ x $\vec{p}$ etc. But we have never been told the source of these formulas. I never understood where they came from and what is their derivation. Is the direction of rotational quantities just a reference and accordingly, in consideration with magnitudes we have derived a cross product?  I have been pondering upon this question for half a year but I had no success.


The difference between "qualified to" and "qualified for"

If someone won a regional competition, shall we say "he/she qualified [to or for] the world finals"?


How do companies profit after initial shares have been sold?

I have experience in investing and invest in several mutual funds each month, I understand the concepts of how the investor makes money from shares (either by dividend pay-outs or increases in share price). I also understand how a company initially makes money from selling shares, they... well, sell shares! What I don't understand is how they continue to make money (from the market) once the initial shares have been sold. Here is an example:  Company A goes public and creates 100 shares, the Owner keeps 50 shares and lists the other 50 on the stock market for $5 each 50 shares are sold at $5 each, the company now has $250 to use for buying equipment 1 year later, the share price has doubled, so the initial investors have made money and the 50 shares traded publicly are now worth $500 combined Now the owner wants to raise more money through the market... how? Can they 'split' one of their shares into more shares and sell them at the new value? Isn't that just creating artificial money out of nothing?


Why does Latex/Bibtex need three passes to clear up all warnings?

As explained , if you need to compile a new document with bibtex citations, then you need to run latex three times, and bibtex once:  latex document bibtex document latex document latex document   Why can't latex figure this out itself, and just do what it needs to do? What is it doing in the later runs that it can't do in the earlier runs?


Test the convergence of the series $\sum \sin [\pi(\sqrt5+2)^n]$

I have just approached the following series  $$\sum_{n=1}^\infty \sin [\pi(\sqrt5+2)^n]$$ And I already have a question. The $\lim_{n \to \infty}\pi(\sqrt5+2)^n=+\infty$. And the $\lim_{n\to \infty} \sin[\pi(\sqrt5+2)^n]$ does not exist.  Can $\sum a_n$ converge if $\lim_{n\to \infty}a_n$ does not exist? I guess the answer is yes because I know that $\sum a_n$ cannot converge if $\lim_{n\to \infty}a_n\neq 0$. Am I right?    The second part of my question concerns the strategy to use to test convergence of such a series. I can test convergence of series with standard tests. But it seems I need to develop a more sophisticated approach in order to successfully deal with series like this. For example, here, should I use some sort of expansion? If yes, what kind of expansion?  Thank you for your help.


How many functions can be used to describe to a finite series?

I was learning more about series today and would like to know if there are existing proofs I could look at about this problem. Basically, if you are given an infinite series representing a function f : $\Bbb N \Rightarrow \Bbb R$ but only shown the first n numbers, how many functions f, written in terms of n, could you write to represent that series. I'm not including piecewise functions, because I assume that would always be infinite. Take the series $(2, 4, ...)$ with 2 numbers given. $f(n)=2n$ , $f(n)=n^2-n+2$ , and $f(n)=2^n$ would all be functions that could fit this series, although they differ after the first two numbers. I believe there are more polynomials that fit this description but I'm not sure how many. My question is, essentially, are there an infinite number of functions for which $f(1) = 2$ and $f(2) = 4$, and if this is the case, does this also apply to any finite number of outputs? (e.g. the first n digits of pi written as $(3, 1, 4, 1, 5, 9...)$) If not, could you find out how many possible functions there are?


Eclipse (for Java): Importing classes defined in other packages within the same project

My query is similar to , which was closed as “unclear”, without any proper solutions being suggested.  Let me try to see if I can describe my setup more clearly than the original poster.  I have a project named MyProject.  Under the MyProject project there are three packages, the default package, Pkg1 and Pkg2.  The default package contains ClassA, Pkg1 contains ClassB and Pkg2 contains ClassC.  ClassC (in Pkg2) needs to reference ClassA (in default package) and ClassB (in Pkg1).  The import statement "import Pkg1.ClassB;" works like a charm but I am unable to figure out how to import ClassA.    Regards, Sandeep


Soft Question- Proving a number $p$ is prime

I am a high school student currently self-studying number theory using the book Elementary Number Theory by David Burton. Currently, I'm doing Chapter 3: Primes and their Distribution. I've noticed that often time the questions which come up are in this form-  If [condition], then prove that $p$ is prime.  This is a very general question, but in essence what I'm asking is what condition do you prove a certain number to fulfil so you can say that it's  prime? For example, in the case of divisibility, we often use the argument that $a | 1$ to prove that $a=1$ and other general tricks like that.  For instance, in this question-     If $p$ and $p^2+8$ are both prime, then prove that $p^3+4$ is also prime.   Here I'm unable to even begin proving the question not because I don't know what to do, but because I'm unaware what kind of argument I need to use to prove a number is prime.  Is there some general argument that we often apply if we want to prove that a number is prime?


When Installing Ubuntu through virtual box I get an error  This kernel requres an X86-64 CPU, but only detected an I686 CPU. Unable to boot - please use a kernel appropriate for your CPU  How do I fix this?


I want to know how to prove the following formula 1)$\gcd(k^{2^i}+1,k^{2^j}+1)=1$ when $i \ne j$ and $k$ is even. 2)$\gcd(k^{2^i}+1,k^{2^j}+1)=2$ when $i \ne j$ and k is odd. Thanks!


Delete files if number exceeds 30 in number for different files in same directory

The folder gets populated some jobs that run daily, weekly or monthly.  For eg. daily job outputs be like:  daily-2017-16-08.txt daily-2017-15-08.txt   Weekly be like:   weekly-2017-01-08.txt weekly-2017-08-08.txt   and monthly is like:   monthly-2017-01-08.txt monthly-2017-01-07.txt


Let $g: [0,1] \rightarrow \mathbb R$ and $g(x)=\frac{1}{q} $ if $x=\frac{p}{q}$, otherwise $0$.Prove that g is Riemann integrable.

Let $g: [0,1] \rightarrow \mathbb R$ and $g(x)=\frac{1}{q}$ if $x=\frac{p}{q}  $  otherwise $0$.Prove that g is Riemann integrable.  Hint: Analyze the discontinuities of $g$. Prove that if $x$ is irrational and if $\frac{p_n}{q_n}$ is a sequence of rationals converging to $x$, then $q_n \rightarrow \infty$.  My idea: I observe that this function has countably many discontinuities. If I prove that If a function has countably many discontinuity then it is Riemann integrable. Is this direction is right?  Anyone suggest some idea from the hint?


App stops when giving validation to Edit Text using Awesome Validation liabrary inside fragment

I want to give validation to EditText using AwesomeValidation inside Fragment. On button click the validation should be check but app stops on button click and giving error like this: java.lang.NullPointerException: Attempt to invoke virtual method 'android.text.Editable android.widget.EditText.getText()' on a null object reference  Here is my Code:  AwesomeValidation awesomeValidation; edtxtfullname = (EditText) view.findViewById(R.id.edtxtfullname); btnNext = (Button) view.findViewById(R.id.btnNext); awesomeValidation = new AwesomeValidation(ValidationStyle.BASIC); awesomeValidation.addValidation(getActivity(),R.id.edtxtfullname, "^[A-Za-z\\s]{1,}[\\.]{0,1}[A-Za-z\\s]{0,}$", R.string.nameerror); btnNext.setOnClickListener(new View.OnClickListener() {     @Override     public void onClick(View view) {         if (awesomeValidation.validate())         {             Toast.makeText(getActivity(), "Validation Successfull", Toast.LENGTH_LONG).show();         }     } }); return view;


LastModifiedBy User Name not populating inside Trigger

I am having this code inside my after insert trigger code block.    if(Trigger.isInsert && Trigger.isAfter) {     List <History__c> historyRecords = new List<History__c>();     History__c newhistory = new History__c();     for(Case cs: trigger.new)     {       newhistory.Name='New Case Opened';       newhistory.Modified_by_User__c=cs.LastModifiedBy.Name;       newhistory.Time_and_Date__c=cs.CreatedDate;       newhistory.Case_Number__c=cs.CaseNumber;       historyRecords.add(newhistory);     }      insert historyRecords;     }  The problem is when new record gets created, the LastModifiedBy.Name is coming as null. Same logic when I tried from Anonymous Code block, was working fine. Why is it happening so?


An example of a Lebesgue measurable set which is not a Borel set and why?

Could anyone please give me an example of a Lebesgue measurable set which is not a Borel set and explain to me why?  I guess it is the Cantor-Lebesgue set, but I am unable to say why. Could anyone help me please?


biblatex: stop supressing double punctuation after title which ends with a dot

I have a problem with the automatic punctuation while using \footcite:   I use references whith titles ending with a dot (e.g. 'Die Reichstuerkenhilfe in der Zeit Karls V.'). The dot is part of the title and has to be part of the citation. When I cite several titles, the titles are separated by semicolons (;), and when I add some information after a cited title, this is separated from the title by a comma (,). My problem is: When I cite a title with a dot in the end, the semicolon or comma is automaticly supressed.    How can I make biblatex showing both, the dot, which ist part of the cited title, and the semicolon or comma, which indicate the end of the title? There has to be a mechanism which prohibits several punctuation signs without space in between.  This is the biblatex part of my document's head:  \usepackage[backend=biber,                     style=authortitle-dw,                     namefont=smallcaps,                     idembib=false,                     idemtracker=false,                     ibidtracker=false,                     edbyidem=false,                     edsuper=true,                     sortlocale=de_DE,                     url=false,                      doi=true,                     eprint=false]                     {biblatex}   \renewcommand*{\labelnamepunct}{\addcomma\space }  \renewcommand*{\nametitledelim}{\addcomma\space }  \renewcommand*{\newunitpunct}{\addcomma\space }


No confirmation prompts when deleting a file or a directory

When deleting a file or a folder, I don't get a prompt requesting confirmation of the deletion (the way I'm used to with Windows).


Chinese remainder theorem where some modulo are not coprime

Suppose i have system of equtions $x=a_imodm_i$ for  $1≤i≤n$ and it might be possible that for distinct $i,j$ such that  $1≤i≤n$ and $1≤j≤n$ and $gcd(m_i,m_j)≠1$ . I have read various answers on web and this website related to this , but most of the time they don't prove it completely . I wanted to know about the cases when it can be solved and when not and how to solve it if it can be , all of the these things with proof.


Place Logo Properly in BeamerPlace Logo Properly in Beamer with pgf

I try to custom my beamer presentation and I want place my logo in left in the frametitle.  The best solution i found is . Others solution are very complicate for a simple task (more and more code line for just deplace the logo  ).  The command \pgfbox delete my content:    So i use this command: \logo{\pgfputat{\pgfxy(9.45,1.5)}{\includegraphics[width=1.7cm]{logo.png}}} and the problem is the "zindex" logo is lower than the frametitle so I've this rendering:


Swapping the limits of integral should change the sign?

I have an elementary question. In this video(), Sal explains why swapping the limits of integration changes the sign of the result; In his video, he reasons that "dx"s in the reverse direction must have opposite sign too (because (a-b)/n must become (b-a)/n), however, that's something I don't remember I saw anywhere when I learned Riemann integral, to indicate that there's a relation between "dx"s and the order(higher/lower) of integral limits.  I have no problem with the result of definite integrals becoming negative since, well..., that's what happens when your ceiling is at the bottom of your basement! :D HOWEVER, I think it makes sense only when f changes to -f... but about the order of limits, I think it mustn't be so. Series are just algebraic sums, so I can still divide from b to a to divisions of (a-b)/n and then instead, sum all of them FROM RIGHT TO LEFT... So for example, d1.f + d2.f + d3.f + d4.f + d5.f becomes d5.f + d4.f + d3.f + d2.f + d1.f which has a similar sign and also because it's an algebraic sum, they must have the same values as well(To not confuse anyone, by "di" I mean division number i, and let's say "di" with less "i", refers to a "dx" at a position more towards the left). So I know integrals are very old and I'm definitely wrong :D But where am I making a mistake? Thanks.


Why does this month comparison code not work properly?

I've been given homework and am almost done but this strip of code in a C program is preventing me from completion: if ((month==1,3,5,7,8,10,12 && day>31)){         printf("error only 31 days in that month");         return 0;     }    else if (month==4,6,9,11 && day>30){         printf("error only 30 days in that month");         return 0;       }     else if (month==2 && leapyear && day>29){         printf("error only 29 days in that month");         return 0;         }         else if (month==2 && day>28){             printf("error only 28 days in that month");             return 0;         }  I wanted to say that if the month was 1 and the input was greater than 31 then it would do an error and stop and that is the problem. If I input 4 in months and the day is 34, it will print the first statement. Is there anything I can do? Also, bear with me; I'm still kinda new to programming.


What is this insect? Seems to be in Indonesia


Is my Stack Overflow account protected vs identify theft?

Under "SITE SETTINGS > MY LOGINS" one may remove all related email addresses and add other emails.  Now I wonder, if someone hacks my SO account, removes my logins and creates a new login with a new mail - is there any chance that I get back my old account or is it simply lost?


Moving contents of current directory up one level and overwriting if exists recursively

I've unpackaged a zip into the current location which we'll call /httpdocs, everything inside the zip resides in a directory which we'll call myfiles.  In /httpdocs are thousands of directories and files that also exist at exactly the same paths as in the myfiles directory.  I need to move the contents of the myfiles directory into /httpdocs whilst replacing any directories/files that already exist... recursively.  If I try from the myfiles directory:  mv * ../   I am asked if I want to overwrite if exists... y/n for every single file!  If I try from /httpdocs:  mv myfiles/* .   I am asked if I want to overwrite if exists... y/n for every single file!  If I try to apply the -f force operator, it returns that it cannot move because the Directory not empty.    Now from what I have read, it doesn't seem like what I am trying to do is achievable with the mv command which is probably why I am seem to be getting absolutely nowhere with this.  I am aware of cp and rsync and many others but I am not sure which command is the best to use to actually just move the contents of the directory to another location and overwrite if exists recursively.    I know I could do this easily by just uploading to /httpdocs via FTP in any local client and just 'Yes to all' on the overwrite dialogue but it would just take ages so not always practical - I'm just after a like-for-like over the command line really.


Below is my console out put I have no idea how to proceed with this, Can anyone provide some direction?  apt-get install mysql-server     Reading package lists... Done     Building dependency tree            Reading state information... Done     The following extra packages will be installed:       libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libnet-daemon-perl libplrpc-perl mysql-client-5.5 mysql-server-5.5 mysql-server-core-5.5     Suggested packages:       libipc-sharedcache-perl libterm-readkey-perl tinyca     The following NEW packages will be installed:       libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libnet-daemon-perl libplrpc-perl mysql-client-5.5 mysql-server mysql-server-5.5 mysql-server-core-5.5     0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.     E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)     E: Unable to lock directory /var/cache/apt/archives/


Are "close" and "x" on a popup redundant?

I am working with a basic  which is a popular modal used on many sites. I noticed that the default template comes with both a close button on the bottom, as well as an x on the top, these two buttons essentially having the same purpose. Are the two redundant and the close button completely unnecessary and just taking up extra space? Or, is having multiple usage options more user friendly?   To make this even more fun, suppose I throw in a Save button:   Is it now clearer that if you don't press save and just press the x, your changes will be canceled, or is there now more of a need for a cancel button for users who are scared that a mistake will become permanent? Update: To clarify for those who feel this question is similar to  - That question is asking if a clickable background is sufficient to close a popup. I'm using buttons and it is just a matter of how many buttons to use. (I do also have a clickable overlay and ESC key enabled, but that is irrelevant to my question)


Get lists of dependent picklist options in Apex

I have a pair of dependent picklists.  In Apex code, how can I determine what options are valid in the dependent field for each option in the controlling field?  I've tried using getPicklistValues(), but there doesn't seem to be any way of getting dependency information.  Example  Controlling_Field__c  Fruit, Vegetable, Dairy  Dependent_Field__c  (Fruit): Apple, Banana, Pear  (Vegetable): Tomato, Egglant, Lettuce  (Dairy): Milk, Cheese, Yogurt  What I'm Looking For  (In pseudocode, something like:)  controllingOptions = dependentfield.getPicklistValues(); for (option : controllingOptions) {     dependentOptions = dependentfield.getPicklistValuesFor(option);     do_something_with_it(); }


Storing bicycle in a shed for the winter

I am living in Canada and it is the sad time of the year where I have to stop riding and store my bicycle for the winter. This summer I acquired a full carbon bike and I want to make sure it stays intact until the next summer.   Considering that the temperatures can drop to -30°C, is it bad if my bike is stored in a shed?


How can I login to the this page  by using HttpWebRequest? Login button is "Pošalji" (upper left corner). HTML source of login page:

         <form action="http://sso.bhmobile.ba/sso/login" method="post" onSubmit="return checkUserid();">              <input type="hidden" name="realm" value="sso">             <input type="hidden" name="application" value="portal">             <input type="hidden" name="url" value="http://www.bhmobile.ba/portal/redirect?type=ssologin&amp;url=/portal/show?idc=1111">

                     Korisnik:	                     <input type="text" size="20" id="userid" name="userid"/>

                     Lozinka:	                     <input type="password" size="20" name="password" />

                                               <input class="dugmic" type="image" id="prijava1" alt="Prijava" src="/web/2007/dugmici/posalji_1.jpg" onmouseover="ChangeImage('prijava1','/web/2007/dugmici/posalji_2.jpg')" onmouseout="ChangeImage('prijava1','/web/2007/dugmici/posalji_1.jpg')">

                 Da li ste novi BH Mobile korisnik?
                 Da li ste zaboravili lozinku(šifru)?

         </form>

  Form action is . How can I use this with HttpWebRequest to get a cookie and use some date from this page?


Showing only some layers in QGIS legend?

My QGIS 2.8.2 standalone app provides several decorating layers (e.g. cartographic grid, background layers, reference points) which should be not changed by the user (neither editing nor hiding), as well as layers, the user can modify and query.  The app has a legend widget which shows all layers, since all layers are registered with map registry. The widget is populated with the layer tree as described in .  Instead of exposing all layers in the tree view, I want to restrict the tree view to the layer group, whose children represent the user mutable layers. Thus the user can change visibility and ordering of only these layers, and must keep the decoration as it is.  What I tried so far is to initiate QgsLayerTreeMapCanvasBridge with this group node (instead of layerTreeRoot), pass the group node to QgsLayerTreeModel(), or  changed the root group of the model with QgsLayerTreeModel.setRootGroup(). In each case Python crashes, with an error message like this:  QObject::connect: Cannot connect (null)::willAddChildren( QgsLayerTreeNode*, int, int ) to QgsLayerTreeModel::nodeWillAddChildren( QgsLayerTreeNode*, int, int )   Is it possible to expose only some group oder layer nodes in the treeview, and how can I implement this?


What's the difference between fine (well) and good

how is it correct: I'm fine (well), or I'm good


Update help center page "help/dont-ask" to include links to both Closed and Deleted questions

As I went through the help section to assist a new user who didn't understand the off-topic reasons as they were stated at the time, I also found it asymmetric that we link to info about deleting questions without similarly linking to info about closing questions.   I therefore suggest to have the link in  changed from "flagged " to " and possibly ", so that:   "flagged" links to "closed questions" and  "removed" links to "removed questions".


I'm from India. I applied for a business visa to Spain for 90 days. I got the Visa approved with Multiple visits. But it's been approved only for 30 days. I need to be there for another 1 month for my Business trip. Why did this happen and could I extend my Visa after reaching Barcelona?


Phrase to describe a fix that doesn't address the underlying issue?

I'm looking for a phrase to describe fixing the relatively minor problems of something with addressing a larger underlying problem. One example would be if a house had a bug infestation and someone simply covered any holes the bugs were coming through instead of dealing with the infestation itself. Or similarly, patching up a hole each time it appeared in worn-out clothing.   I thought the term was spot-fixing, but looking online, this seems to be associated with illegal sport fixing.   edit: To clarify, I'm looking for a phrase to describe each of the individual fixes made. in other words, something that would fit in the blank here: "He made another __ by duct-taping the crack in the wall". Or similarly "patching the hole was another ___ but the shirt needed to be replaced".


If I pause after a list, I get an extra unnecessary slide. Consider the following code \begin{frame} \begin{itemize}[<+->]   \item Item 1   \item Item 2 \end{itemize} \pause \[   f(x) = x \] \end{frame}  If I compile this, I will get 4 slides. The first one shows item 1, the second one shows item 2, then the third slide shows the same as slide 2, then the equation appears on slide 4. Why does this happen? I know I could use uncover but I don't want to specify the slide number each time I do this.


Stop an application in bash after a certain amount of time

I am interested in running a bash script which starts an application (in this case VLC), run it for a certain amount of time and then stop it. I can get this application to start just fine, but it will not stop, using this script:  #!/usr/bin/bash vlc -vvv http://10.0.0.113:8000/stream.mjpg --sout="#std{access=file,mux=ogg,dst=/home/whsrobotics/vlc_project/first_try.mp4}" sleep 10 killall vlc   Not only does it not stop the stream recording, but the app seems to freeze sometimes after I hit Ctrl+Z.  Any suggestions are appreciated.


I'm trying to create a bedroom and I thought I'd light the room up. I've added a HDRI but the room looks really artificial. Anyone know where I'm going wrong? Do I need to add light or remove light?


Running parallel search cursors in Python?

I have a multipoint feature class and a polyline feature class (transects) filled with the same number of objects. Basically, each set of points corresponds to a single transect.   I want to run the intersect analysis tool for each individual set of rows, so each transect and set of points should have an output. The output would be a set points that is "snapped" to the transect polyline. Then at the end of the code, I have as many intersect outputs as I do transects.   How can I get two search cursors to run simultaneously? I need a search cursor that can take one row from each file, run the intersect tool, and then move to the next set of rows.  A nested loop does not work (unsurprisingly). Is there a workaround for this?  EDIT: I don't want to compare two datasets, I actually want to analyze corresponding features of both. The formatting here didn't copy well... apologies.  # Import system modules   import arcpy   import numpy as np   import sys, os, string, arcgisscripting   arcpy.env.overwriteOutput=True    #Define local variables   workspace=   transect=   point_file=   output_file="clusters.shp"    sr=arcpy.Describe(point_file).spatialReference   arcpy.env.overwriteOutput=True    gp=arcgisscripting.create()   output_fc=gp.CreateFeatureClass_management(workspace,output_file,     "MULTIPOINT", "#", "DISABLED", "ENABLED",sr)   #Perform fits and intersections  with arcpy.da.SearchCursor(transect,["SHAPE@"]) as cursor1:      for row in cursor1:          profile=row[0]  with arcpy.da.SearchCursor(point_file,["SHAPE@"]) as cursor2:      for row in cursor2:          point=row[0]          #Create Swath Profile         clusterTolerance=0.5           swath_points=arcpy.Intersect_analysis([point,profile],output_fc,"",clusterTolerance,"point")


"'key' is not valid for passed 'access_token', token not found" when trying to login using Google on Android SE app

I am unable to log on to . I receive the following error as soon as I try "Log in using Google". (This is the same Gmail account I use for Stack Exchange.)     'key' is not valid for passed 'access_token', token not found.     On my Android Device (Galaxy S4 4.4.2), I have two Google accounts – will this have an effect, or am I missing a step in order to log on with a Google account using the Stack Exchange Android app?