Issue with "CDbl" function while subtract values of two textboxes

I am trying to subtract the value from two textboxes in Visual Studio 2012.  Example input and results:   textbox1 -  textbox2   = label1    25.9   -    25.4     =  0.50   (it's ok)   173.07  -   173       =  0.06   (should be 0.07)   144.98  -   142.12    =  2.85   (should be 2.86)    My code (I tried all three lines separately):  label1.text = (Convert.ToDouble(textbox1.text) - Convert.ToDouble(textbox2.text)).ToString  label1.text = (CDbl(textbox1.text) - CDbl(textbox2.text)).ToString  label1.text = (Val(textbox1.text) - Val(textbox2.text)).ToString    This error (may be not an error) occurs some times, not every time. What am I missing here? And what should I use instead of "CDbl" ?


Java split string with regex, anything inside Double Quotes

I am trying to split a string such as String s = "do not split this \"split this\"";  String[] split = s.split("(?<=\\s)| (?=\") | ((?=[^A-Za-z0-9])|(?<=[^A-Za-z0-9]));   will give me ["do", " ", "not", " ", "split", "this", " ", "split this"];  I would like to keep all words, white spaces as well, but ignore anything inside double quotes~


Is using multiple passes for wiping a disk really necessary?

To stupid people, like me, you would have thought overwriting each bit on a disk would render the data completely unrecoverable.  Why do disk wiping tools have the option for multiple passes, i.e. 3 or 5, even 7 and different methods?  Surely the first pass does the job?  My question - Is it just down to pure paranoia or should I be using multiple passes when wiping disks... and why?


Android Parcelable write / read String List null object reference

I'm trying to read a List of Strings and I keep having the following error:    with the following Parcelable class:  import java.util.List;  import android.os.Parcel; import android.os.Parcelable;  public class ActivePolicies implements Parcelable {      private List<String> activePolicies;      public ActivePolicies(List<String> activePolicies) {         this.activePolicies = activePolicies;     }      public List<String> getActivePolicies(){         return activePolicies;     }      @Override     public int describeContents() {         return 0;     }      @Override     public void writeToParcel(Parcel dest, int flags) {         dest.writeStringList(activePolicies);     }      public static final Parcelable.Creator<ActivePolicies> CREATOR = new Parcelable.Creator<ActivePolicies>() {         @Override         public ActivePolicies createFromParcel(Parcel in) {              try {                 return new ActivePolicies(in.createStringArrayList());             } catch (Exception e) {                 e.printStackTrace();                 return null;             }         }         @Override         public ActivePolicies[] newArray(int size) {             return new ActivePolicies[size];         }     };  }   It keeps giving me the exception on createFromParcel(), but I can't figure out why. It seems a simple parcelable, but when I'm debugging at readStringList() from the Parcel class, the list is null. But when I evaluate the value in createStringArrayList() before it's returning, the list is there with the expected values.


I have the following when running my code:  Process started  ERROR: Windows API error 87:   ERROR: Line: 83 Sorry, but bibtex did not succeed. You may want to visit the MiKTeX project page, if you need help.  Process exited with error(s)   This is what I am using. It had work before but now I am having problems...   \documentclass[12pt,openany, letterpaper, pagesize]{scrbook} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \usepackage{amsmath} %uso de equaciones \usepackage{amssymb} \usepackage{eso-pic,graphicx} %para introducir imagenes \usepackage{enumerate} %para enumerar  \usepackage{makeidx} %para hacer el index  \usepackage{amsfonts} \usepackage{paralist} \usepackage{rotating} %para rotar la hoja y tabla  \usepackage{booktabs} %hacer tablas  \usepackage{adjustbox} %ajustar tabla a hoja \usepackage{breqn}  %ajustar ecuacion cuando se sale del margen \usepackage{slashbox,multirow} %para varios textos en la linea de cabeza de  las tablas \usepackage{chngcntr} %para contar pie de pagina seguidas \usepackage[flushleft]{threeparttable} \usepackage[english]{babel} \usepackage{natbib} \usepackage{siunitx,booktabs} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   \usepackage{inputenc} \usepackage{fancyhdr}%para las paginas fancy \usepackage{tabularx} \usepackage{longtable} \pagestyle{fancyplain}%\addtolength{\headwidth}{\marginparwidth} \textheight22.5cm \topmargin0cm \textwidth16.5cm \oddsidemargin0.5cm \evensidemargin-0.5cm% \renewcommand{\chaptermark}[1]{\markboth{\thechapter\; #1}{}} \renewcommand{\sectionmark}[1]{\markright{\thesection\; #1}} \lhead[\fancyplain{}{\thepage}]{\fancyplain{}{\rightmark}} \rhead[\fancyplain{}{\leftmark}]{\fancyplain{}{\thepage}} \fancyfoot{} \thispagestyle{fancy}%  \unitlength1mm %Define la unidad LE para Figuras \mathindent0cm %Define la distancia de las formulas al texto,  fleqn las  descentra \marginparwidth0cm \parindent0cm %Define la distancia de la primera linea de un parrafo a la   margen \newcommand{\PreserveBackslash}[1]{\let\temp=\\#1\let\\=\temp} \let\PBS=\PreserveBackslash  \renewcommand{\baselinestretch}{1.1}  \newcommand{\arr}[1]{\raisebox{1.5ex}[0cm][0cm]{#1}}  \usepackage{Befehle}   \hyphenation {Reaktor-ab-me-ssun-gen Gas-zu-sa-mmen-set-zung Raum-gesch-win-dig-keit Durch-fluss Stick-stoff-gemisch Ad-sorp-tions-tem-pe-ra-tur Klein-schmidt Kohlen-stoff-Mole-kular-siebe Py-rolysat-aus-beu-te Trans-port-vor-gan-ge}   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   \usepackage[colorlinks = true, linkcolor = blue, urlcolor  = blue,    citecolor = blue, anchorcolor = blue]{hyperref}        \usepackage[table]{xcolor}   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  \begin{document}  \pagenumbering{roman} \include{HojaTitulo/HojaTitulo} \newcommand{\clearemptydoublepage}  {\newpage{\pagestyle{empty}\cleardoublepage}}\include{Abstract} \tableofcontents  \label{listoffigures} \listoffigures \addcontentsline{toc}{chapter}{\listfigurename}  \label{listoftables} \listoftables \addcontentsline{toc}{chapter}{\listtablename} \include{TabSimbolos}   \pagenumbering{arabic}   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   \include{Introduccion}   \include{Econometric}   \include{Copulas}  \include{graficos}  \addcontentsline{toc}{chapter}{Bibliography}   \bibliographystyle{apalike}  \bibliography{Bibli}  \end{document}


How does lvh.me (localtest.me, vcap.me) works?

There are several hosts such as lvh.me, localtest.me, vcap.me those always resolves to 127.0.0.1.  BUT, I used lvh.me to test OAuth2 workflow - I set the callback url on remote server to  and configured local webserver to listen 127.0.0.1:433 (with self-signed certificate) on host lvh.me and proxy the request to my local backend. It worked.  Could someone, please, explai me how does it work and why request from remote server with host name lvh.me resolves to my local machine?


If a spell tells me to draw then discard a card, can I cast it before discarding it?

Suppose I have only  in hand, then cast it. It says "you may draw a card then discard a card". Am I able to cast the drawn card which leaves me with no cards in hand to discard, or am I not allowed to cast it? What happens?


In Rogue One, we get our first glimpse of Darth Vader's primary residence - a castle on Mustafar.  Given the freedom to choose any planet in the galaxy as their new home, I don't think many people would pick the place where they had three limbs chopped off, fell into a lava flow, and were burned alive, but this appears to be what Vader did.   Why does Vader live on Mustafar of all places?


The theorem of Schwarz states, that for a function with continuous second order derivatives, we find that the partial derivatives commute. I am quite convinced that the converse shouldn't hold, i.e. that the second order derivatives need not be continuous, even if they commute, but I can't seem to find a counterexample, since there is only one example going around of a function with non commuting second partial derivatives: $$f(x,y)=xy\frac{x^2-y^2}{x^2+y^2}, \quad f(0,0)=0.$$ My idea would be to find a different function where the derivatives are also $-1$ and $1$, then subtract the two functions and find that now the second partial derivatives are both $0$, hence commute, but are still not continuous (which still needs to be proven). Is this approach valid? Am I even correct in assuming that I have to disprove the statement? Thanks for any input!


I am not sure how to show the second part. Isn’t it obvious from the fact that    G and H are infinite?


Android OS can be used on desktop computers or laptops?

Android OS can be used on desktop computers or laptops ? I mean like a windows or IOS or linux something.


Excluding empty(Null) fields when using EntityFieldQuery query condition

Is it possible to select all of the entities who's xyz field is empty?  I tried soemthing like this:  ->fieldCondition('field_name', 'value', NULL, 'IS NOT NULL');   However, this doesn't seem to work.  Any ideas?


Integral of periodic function over the length of the period is the same everywhere

I am stuck on a question that involves the intergral of a periodic function. The question is phrased as follows:  Definition. A function is periodic with period $a$ if $f(x)=f(x+a)$ for all $x$. Question. If $f$ is continuous and periodic with period $a$, then show that $$\int_{0}^{a}f(t)dt=\int_{b}^{b+a}f(t)dt$$ for all $b\in \mathbb{R}$.  I understand the equality, but I am having trouble showing that it is true for all $b$. I've tried writing it in different forms such as $F(a)=F(b+a)-F(b)$. This led me to the following, though I am not sure how this shows the equality is true for all $b$, $$\int_{0}^{a}f(t)dt-\int_{b}^{b+a}f(t)dt=0$$ $$=F(a)-F(0)-F(b+a)-F(b)$$ $$=(F(b+a)-F(a))-F(b)$$ $$=\int_{a}^{b+a}f(t)dt-\int_{0}^{b+a}f(t)dt=0$$ So, this leaves me with $$\int_{a}^{b+a}f(t)dt-\int_{0}^{b+a}f(t)dt=\int_{0}^{a}f(t)dt-\int_{b}^{b+a}f(t)dt$$ I feel I am close, and I've made myself a diagram of a sine function to visualize what each of the above integrals might describe, but the power to explain the above equality evades me.


Problem with wine application and unity launcher + dash. Ubuntu 16.04

I have three problems with wine application with unity launcher + dash.   Some wine app donot lock to launcher. Even if some lock, when I click on them they won't launch. The apps which are locked, the icon is never shown properly. Even Dash fails to show all the installed wine application. In my case everything a search engine.


I ran the command sudo killall pulseaudio  because I read it here:  Now my sound doesn't work at all, when it was working before I ran this command.  How do I fix it?


Find the number b such that the line $y=b$ divides the region bounded by the curves $y = x^2$ and $y = 4$ into two regions with equal area.


How can a tree fill a coconut with water?

Water goes up in plants by cappilary action. So that should also explain water inside coconuts.  My doubt relates to the easy experiment of transfering water from a filled glass to an empty one using some chord or even a toilet paper pressed as a chord.   Even if the paper is initially dry, water is gradually transferred until levels are equal at both glasses.  But it is not possible (at least I couldn't make happen) to transfer any drop of water to an empty glass whose bottom is above the water level of the filled glass.  So how is it possible for a coconut? Maybe its internal pressure is below atmospheric?  I know there are other similar questions, but the answers tends to follow the capillarity action (what is obvious to me, but seems incomplete), or postulates great negative pressures. (But if it is 1 atm outside, at most it should be zero inside, and a perfect vaccum inside plants is too strange).  But there is maybe some combined effect of capillarity and negative pressure that is not well discussed so far.


How to decrease spacing before chapter title?

I want to decrease the vertical space between the top of the page and the chapter heading. I have tried to follow the instructions for titlesec but I am not successful. I have tried the following two setups without any changes occuring.  First:  \documentclass[12pt]{report}   \usepackage[compact]{titlesec}   \begin{document}   \chapter{Characters}  The origin of the group determinant begins with Richard Dedekind in the late 1800's. He began to explore the idea after studying the discriminant in a normal field [A]. He made several observations about the group determinant, but was only able to prove some of them.   \end{document}   Second:  \documentclass[12pt]{report}   \usepackage{titlesec}   \titleformat{\chapter}[display]   {\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}   \titlespacing{\chapter}{0pt}{0pt}{0pt}   \begin{document}   \chapter{Characters}    The origin of the group determinant begins with Richard Dedekind in the late 1800's. He began to explore the idea after studying the discriminant in a normal field [A]. He made several observations about the group determinant, but was only able to prove some of them.   \end{document}


my tv goes black for a second when my fridge goes off

I know this may sound strange but it does happen not every time the fridge turns off only some times the tv and fridge are on different circuits should I get a filter of some kind or trash the tv or fridge any suggestion would be a help


Has this "generalized semidirect product" been studied?

If $G$ is a finite group with subgroups $H$ and $K$ such that $HK = G$ and $H\cap K = \{1\}$ we get that every element of $G$ can be written uniquely as $hk$ with $h\in H$ and $k\in K$. This then gives a map from $H\times K$ to itself sending $(h,k)$ to the unique $(h',k')$ such that $kh = h'k'$.  Conversely, given a map $\varphi$ from $H\times K$ to itself with suitable properties, one can define a group structure $G$ on $H\times K$ such that $H$ and $K$ are subgroups with $HK = G$ and $H\cap K = \{1\}$ and such that the multiplication is given via the map as $(h,k)(h',k') = (h\varphi_1(h',k),\varphi_2(h',k)k')$ where $\varphi_1$ and $\varphi_2$ are the projections on the first and second coordinate.  Has this construction been studied before? It seems like it would be a natural generalization of a semidirect product, but I have never seen it mentioned anywhere.


Python conditional using regex with multiline string

I need help with very simples question, a conditional using regex with multiline string. No make sense to me why this not work:  if(re.match(r"\w", " \n\n\n  aaaaaaaaaaaa\n\n", re.MULTILINE)):     print('ok') else:     print('fail')  fail   I expected that result be ok, but no match any data. I trying using , but there works and in my code not works.


Asp.net Application Pool Size Calculation

I want to know how does Asp.net application calculate its pool size. I have created a console application in which i have set the Max Pool Size as 20. In that it runs till 32 to 34 times with open connections. After that it says me that Max pool size has reached. I need to know how does asp.net calculate its pool size.


Can't figure out the Java equivalent of "passing by reference" in C++ to solve this, and the best method to solve by

I took my CS-1 course in C++ and I'm now at a new university and they use Java here. I've been learning the new syntax and doing my old C++ labs and I've hit a wall with a pass-by-reference one.  My understanding so far is Java is pass-by-value but how can I achieve the goal of this problem?     Write a program that tells what coins to give out for any amount of change from 1 cent to 497 cents. Since we wouldn’t use pennies, we need to round any cents to near 5 or 10’s. For example, if the amount is 368 cents, the rounded number is 370 cents and if the amount is 367 cents, the rounded number is 365 cents. The change would be 1 toonie (two dollar coin), 1 loonie,  2 quarters, 2 dimes for 370 cents. Use coin denominations of 2 dollars (toonie), 1 dollar (loonie), 25 cents (quarters), 10 cents (dimes), and 5 cents (nickels). Your program will use the following function:  Void computeCoin(int coinValue, int &number, int &amountLeft);       Note that this function needs to return two values so you must use reference variables.      For example, suppose the value of the variable amountLeft is 370 cents. Then, after the following call, the value of number will be 1 and the value of amountLeft will be 170 (because if you take 1 toonie from 370 cents, that leaves 170 cents):  computeCoin(200, number, amountLeft);       Print the value of number with the coin name before you make the following call:  computeCoin(100, number, amountLeft);       and so on. Include a loop that lets the user repeat this computation for new input values until the user enter the sentinel value to stop the program.    In C++ I could just use reference variables and the value of the coin could be changed. So far what I've learned is that objects is a way to use references, I don't know how to really go about this or if there is a better way. I've included the C++ code here:  #include <iostream> using namespace std;   void computeCoin(int coinValue, int & number, int & amountLeft);  int main() {     int number, change, amountLeft, remainder;     do    {        cout << "Enter the change (-1 to end): ";        cin >> change;    while (change>497)   {       cout << "The change should be less than 497. Try again.\n\n";       cout << "Enter the change (-1 to end): ";       cin >> change;   }    if (change != -1)   {      // round to near 5 or 10's      remainder = change % 5;      if (remainder <= 2)         amountLeft = change - remainder;       else         amountLeft = change + 5 - remainder;       if (amountLeft == 0)         cout << "No change.";      else      {          cout << amountLeft << " cents can be given as\n";           // compute the number of toonies          computeCoin(200, number, amountLeft);          if (number>0)             cout << number << " toonie(s)  ";           // compute the number of loonies          computeCoin(100, number, amountLeft);          if (number>0)             cout << number << " loonie(s)  ";           // compute the number of quarters          computeCoin(25, number, amountLeft);          if (number>0)             cout << number << " quarter(s)  ";           // compute the number of dimes          computeCoin(10, number, amountLeft);          if (number>0)             cout << number << " dime(s)  ";           // compute the number of nickels          computeCoin(5, number, amountLeft);          if (number>0)             cout << number << " nickel(s)  ";       }          cout << endl << endl;       }    } while (change != -1);     cout << "\nGoodbye\n";    return 0;  }  void computeCoin(int coinValue, int &number, int &amountLeft) {    number = amountLeft / coinValue;    amountLeft %= coinValue; }


Live backup solutions for Ubuntu? Preferably to Google Drive?

In my company, we use Windows. All work (all!) is done in Google Drive, since Google made a synchronization tool for Windows called Google Drive Backup and Sync. Everything is saved there, all the files you work on, everything you download from the net, and everything is sync'ed to Google Drive on the fly. It's fast and transparent.  Now, since I've switched to Ubuntu, I'm having a lot of trouble sharing documents and collaborating with colleagues on documents. I've been given the advice to run google-drive-ocamlfuse - it does the job, but it's extremely slow. Descending into a subfolder, it can easily take 2-5 minutes to get the directory listing.  This is a very serious problem for me.  The obvious solution is to go back to using windows. I'd hate that.  I know Dropbox is another option, but I would have to synchronize Dropbox with my Google Drive then. Also, it's not free if you want more than a few GB.  I could work on a local drive in my house, but that wouldn't work when I'm at work. And vice versa.  I'm running out of ideas, and my colleagues and my sysadm are running out of patience with me. Any help would be greatly appreciated.


sp_Blitz says "Page Verification Not Optimal" on MDS database

I've run sp_blitz (version 45) on our test database server. It complains about     Database [MDS] has TORN_PAGE_DETECTION for page verification.  SQL Server may have a harder time recognizing and recovering from storage corruption.  Consider using CHECKSUM instead.   But this is a database from Microsoft.  Is it wise to change the Page Verification to CheckSum?  Or should we wait for Microsoft to release a new version of MDS?


Don't check suggested edit improvements as being more or less "substantiative"

If a suggested edit is overall good but introduces some questionable formatting, I improve it to remove the bad changes. If it's approved before then, the edit is less substantiative, because it changes less things.  This is annoying; can it be changed to always consider edits more substantial than the edits they're improving? (Not when there's been an edit in between, just when it's been approved first.)    This is doubly annoying when the edit is stopped because the title was already edited. I know I'm improving the title, because I clicked the "Edit" button in the suggested edit review panel.


How to call a method stored in a HashMap? (Java)

I have a list of commands (i, h, t, etc) that the user will be entering on a command line/terminal Java program. I would like to store a hash of command/method pairs:  'h', showHelp() 't', teleport()   So that I can have code something like:  HashMap cmdList = new HashMap();  cmdList.put('h', showHelp()); if(!cmdList.containsKey('h'))     System.out.print("No such command.") else    cmdList.getValue('h')   // This should run showHelp().   Is this possible? If not, what is an easy way to this?


Let $f(x,y,z) = g(\sqrt{x^2 + y^2 +z^2})$, where $g(r)$ is twice differentiable. Calculate $f_{xx}$ + $f_{yy}$ + $f_{zz}$ in terms of the derivatives of $g$.   Prove that if $f_{xx}$ + $f_{yy}$ + $f_{zz}$ $= 0$, then $g(r) = a/r + b$, where $a$ and $b$ are constants.  I've been able to do the first part of the question and I got that $f_{xx}$ + $f_{yy}$ + $f_{zz}$ $=$ $\frac{g''(r)(x + y + z) + 3g'(r) - 1}{\sqrt{x^2 + y^2 + z^2}}$  But I cannot figure out how to prove that $g(r) = a/r + b$. I've tried everything and can't seem to be able to show it.  Can some one please give me a hand? Any assistance would be really appreciated as I have been working on this question for a few days.


Only mods can see deleted comments        Why can only mods see deleted comments, but any user with sufficiently high rep can see deleted questions and answers?  I am not saying this is a bad idea. (Though if you think it is, I'd love to know why.) I am curious what the significant difference between questions/answers and comments is in this respect.  My current thoughts:  Advantage: Most deleted comments are garbage.  Disadvantage: There isn't any real way to "audit" or discuss moderator behavior, as with deleted posts. This cascades into other areas, such as the decision to lock a post because of (deleted) off-topic comments (see ).  In my limited experience most deleted posts are garbage too. What is the significant difference?


Matrices which commute with all the matrices commuting with a given matrix

Let $A$ be an $n \times n$ matrix with entries from an arbitrary field $F$ and let $C(A)$ denote the set of all matrices which commute with $A$.     Is it true that $C(C(A))= \{ \alpha_1 + \alpha_2 A + \cdots + \alpha_{n-1}A^{n-1}\mid\alpha_i \in F  \}$ ?   This problem is a generalized version of Problems 6.3.13, 6.3.14 of Herstein's Topics in Algebra which I am unable to do. Herstein asks to prove that this holds for the cases $n=2,3$.  Of course, one way to go about it is by brute force calculation (which I have not tried), but I guess there is a more conceptual way to do this which I am unable to find.  Clearly all the matrices of the type in R.H.S. are in $C(C(A))$ so the part I am unable to do is that these are the only matrices.  I can see that $C(A)$ and $C(C(A))$ are themselves vector spaces but what to do further ?


Analytic expression for $\sum_{k=0}^\infty \frac{\log(k+1)}{k!}$

I want to find an simple analytic expression for $$\sum_{k=0}^\infty \frac{\log(k+1)}{k!}.$$ Wolfram alpha just tells me this is approximately 1.55 (for natural log).   Equivalently, this is equal to $$e \cdot \underset{K \leftarrow \mathsf{Poisson}(1)}{\mathbb{E}} \left[K \log K\right]$$ (taking the convention that $0 \log 0 = 0$ for continuity). Surely this sort of expectation has been evaluated?  This has come up in trying to analyze the entropy of a random distribution. Any help would be much appreciated.   suggests using the fact that $\mathbb{E}[K \log K] = \frac{\mathrm{d}}{\mathrm{d}x} \mathbb{E}[K^x]$ evaluated at $x=1$. However, I don't know if this brings us closer to a simple expression -- I don't have a good formula for $\mathbb{E}[K^x]$ unless $x$ is an integer.


As I understand it, Dark Energy is believed to reside in empty space.  As the Universe exapnds, more empty space exists inside the Universe and so the small energy per unit of empty space adds up to a greater total, thus causing an accelerated expansion.  But if this were true, what about all of the empty space outside the edge of the universe?  This theory appears to take into account the "interior space" of the universe, but not the presumably infinite amount of exterior space outside the farthest reaches of the universe.   Indeed, if empty space has energy, would not the infinite amount of empty space past the edge of the expanding universe thus exert infinite inward force, crushing the universe?    Said differently, isn't it the case that the amount of empty space is actually not finite - it is infinite, and most of it is outside the edge of the universe, and if dark energy were real, this wouldn't this result in an infinite inward force?


Why did Fury and Hill dissapear so quickly?

I am sure that there is a duplicate of this that I have just not been able to find, but this relates to the post - credit tag of Avengers: Infinity War.  It appears that Fury and Hill have only just received confirmation of the alien attack over Wakanda when everything starts going west and people start disappearing, beginning with the car and chopper crash and quickly escalating to Fury's final moment as he just about manages to get a message to Danvers.   As Thanos arrived in Wakanda via the (former) Tesseract / Space Stone / Gauntlet, I assume the report referred to the huge Q - Ship and the Outrider Dropships that were released but literally seconds later we start to see the results of the snap.  Now I know that any references to the cod - mechanics of how the MCU handles space time are unlikely to have little real basis in actual cosmology or physics, but how is it that people seem to start disappearing before enough time has elapsed for the Wakandan battle to have taken place and Thanos' final arrival on the field? Does the effect of the snap ripple out in every direction of space-time due to the combination of the stones or have I just got my timelines confused?


How can I do an image backup in Windows 8

I need to ship my Surface Pro back to Microsoft (because the pen is way off in the upper left quadrant).  I was hoping to do a complete volume backup, so that my installed programs won't disappear.  I now find out that that's a Windows 7 feature, but not in 8.  Is there a way I can save my image and recover it on Windows 8?


Java, Changing ContentView based on Extra String

Im passing the selection of a list view through the intent using Extra but it is not picking it up.  The Log at the bottom of the below code shows that it is pulling the right name through to this class file, either cous cous, pasta, cake etc - but it will not show the logs in the if statements nor load the content views.  Any ideas?  public class RecipePage extends Activity {     @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         String recipeName = (String) getIntent().getStringExtra("RecipeName");         if(recipeName == "Cous Cous"){             setContentView(R.layout.activity_couscous);             Log.d("Joe", "1");         }         if(recipeName == "Rice"){             setContentView(R.layout.activity_rice);             Log.d("Joe", "2");         }         if(recipeName == "Burgers"){             setContentView(R.layout.activity_burgers);             Log.d("Joe", "3");         }         if(recipeName == "Pasta"){             setContentView(R.layout.activity_pasta);             Log.d("Joe", "4");         }         if(recipeName == "Chicken"){             setContentView(R.layout.activity_chicken);             Log.d("Joe", "5");         }         if(recipeName == "Cake"){             setContentView(R.layout.activity_cake);             Log.d("Joe", "6");         }         if(recipeName == "Roast"){             setContentView(R.layout.activity_roast);             Log.d("Joe", "7");         }         if(recipeName == "Lasagne"){             setContentView(R.layout.activity_lasagne);             Log.d("Joe", "8");         }          Log.d("Joe", "Recipe =" + recipeName);      } }


Imbalanced data classification with GLM giving very poor results

I have a loan defaulters dataset and it is highly imbalanced as shown below:     0     1   33108   673    I have tried SMOTE to balance the dataset, as shown below:  smoted_data <- SMOTE(state~., deliq, perc.over=200, perc.under = 800)   after applying SMOTE, when i trained by glm(), as given below:  model1 <- glm(state~. -LanID -Month -LastMonthBnc -DELINQ.NON.DELINQ, data = smoted_data, family = "binomial", maxit = 500)   it was able to capture class "1" to good degree(though with high error 23% accuracy in class 1 prediction):         0     1     0 31334  1774     1   140   533   However when i tested it on test data, it was extremely poor(class 1 prediction 4% accuracy):   pred_class_30     0     1 0 10154   149 1   210     7   This indicates that my model is over-fitted and i must go for generalization.  My question is 23% accuracy in training data is still not so good, so any other method that can help me to improve the accuracy of such imbalanced data set?   I have checked all the existing similar posts but could not find anything talking about how to improve the accuracy of minority class specially when model is overfitted....


Can't connect to Google Starbucks wifi on Ubuntu 17.10

Summary  For some reason Ubuntu loses track of the IP address associated with the router URL that processes the login to the router.  I posted an answer that addresses this.  Look for the IP address of the router on your phone and put that in /etc/hosts under the name that is attempting to process your router login.  That solved it for me.  There are other answers as well in case the SB setup is different where you are at.  Details  One post I found on my phone said to add the host IP of the connection service to /etc/hosts.  The url displayed in the browser address bar is:  https://sbux-portal.globalreachtech.com/check?cmd=login&mac=a0:88:39:65:f0:cc&essid=Google%20Starbucks&ip=172.31.98.108&apname=24%3Ade%3Ac6%3Ace%3A49%3Af6&apmac=24%3Ade%3Ac6%3Ace%3A49%3Af6&vcname=S17730-VC&switchip=aruba.odyssys.net&url=http%3A%2F%2Fdetectportal.firefox.com%2Fsuccess.txt   So I did that, but the result is the same.  Any ideas?  Starbucks is the only WIFI I cannot connect to.  Please update us if you know when Google WIFI / Starbucks has fixed this issue.  I tried using a different mac address using macchanger:  Permanent MAC: a0:88:69:15:f0:cc (Intel Corporate) New MAC:       00:11:22:33:44:55 (CIMSYS Inc)   However that did not work.  Today April 18 I tried a completely different laptop and I'm still getting the same hangup.  The message says:   Error resolving "aruba.odyssys.net": Name or service not known.   So so far nothing is working for me.  Been on contact with both Starbucks WIFI support and their general customer support and so far no one can provide an estimate on when or if ever this will be fixed.  Starbucks support gave me this reference number:   180413-010073    They said to call Wifi support and give the the number and they will fix this.  When I did Wifi Support said they don't need the number and there's nothing they can do.  For a company that goes out of it's way to provide great customer experiences this is pretty sad.  It's been over a month since they rolled this out and still no fix.    When attempting to connect in a browser this is the url it redirects to and hangs https://aruba.odyssys.net/cgi-bin/login.  Update  Also tried using my phone MAC address today.  It did not work.  The Starbucks Wifi thought I was a new laptop, and so it opened the initial splash page signup again, but after completing the entries it still hangs on https://aruba.odyssys.net/cgi-bin/login.


Continuity and Joint Continuity (further thought)

A follow up question of the cited question bellow.  Consider a function $f(x, y):\mathbb{R}\times\mathbb{R}\rightarrow\mathbb{R}$ is continuous in each argument. If we have continuous function $y(x):\mathbb{R}\rightarrow\mathbb{R}$, is $g(x)\equiv f(x,y(x))$ continuous?  In the former question, the joint continuity fails with a counter example. In the example the basic idea is to construct a path along which the function is not continuous, yet if we set $y(x)$ fixed, there is only one path to be verified. So is there maybe some conditions under which $f(x,y(x)$ is continuous?  @MISC {98831,     TITLE = {Continuity and Joint Continuity},     AUTHOR = {user12586 ()},     HOWPUBLISHED = {Mathematics Stack Exchange},     NOTE = {URL: (version: 2012-01-13)},     EPRINT = {},     URL = {} }


What is the property of being right versus left called?

One could use "direction" to describe this property, but it is too wide, and I would like to find a term that narrows it down further, to describe the property (of a direction) of being either to the left or to the right. So, you could say for example that the xx of the object yy is left, where xx is the name of the property. Or you could say, "the xx of parts of the brain determines whether they're dealing more with logical thinking, or more with artistic creativity".


Infinite perfect field of characteristic p

Given a perfect field of prime characteristic $p$, is it necessarily finite? I believe there must be some counterexample. However, the only infinite field of characteristic $p$ that I know of is $\mathbb{Z}_p(t),$ which is not perfect. Any hints?


Is the word "carry" in "had been carrying a precious cargo" a state verb or action verb?

This is the first paragraph of an article:     The salvage operation had been a complete failure. The small ship, Elkor, which had been searching the Barents Sea for weeks, was on tis way home. A radio message from the mainland had been received by the ship's captain instructing him to give up the search. The captain knew that another attempt would be made later, for the sunken ship he was trying to find had been carrying a precious cargo of gold bullion.   Is the word "carry" here a state verb or action verb? Can we change "had been carrying" to "was carrying" or "carried"?  At the end of the article, it contains the following sentence:     The Karen ( the name of the sunken ship) had been sailing in a convoy to Russia when she was torpedoed by an enemy submarine.   Can we change "had been sailing" to "was sailing"?


iCloud has sucked up all my files - can you transfer files directly from iCloud to Google Drive?

I'm trying to disconnect my macbook from iCloud, as it's been creating major problems for me. I was told by an Apple Support employee that doing so is only recommended once you've backed up everything from your Mac somewhere, to ensure you don't lose any files - so my goal is to upload everything to Google Drive before turning iCloud off. The problem is, almost none of my projects are truly on my laptop - instead I mostly just have folders full of file names, which are placeholders for the real files that have been sucked into iCloud. This means I have to re-download everything to my computer before uploading it all to Google Drive. Another crucial piece of information is that I only have 1 GB of storage left on my macbook, which means I can't re-download any complete projects/folders at a time. So unfortunately my current method is downloading 1-5 files at a time, uploading these few things to Google Drive, deleting the copies from my laptop and trash... repeat (thousands of times). So, I was wondering if anyone could offer any alternative solutions - for example, is there a way to transfer files directly from iCloud to Google Drive without having to download them to my laptop first? I should probably mention that I've scoured my laptop for duplicated files and applications I no longer use, make sure to empty my trash regularly, etc (I also asked Apple Support to help me make sure I wasn't missing out on any other ways to maximize storage space). The most obvious culprit for my lack of space is the massive 150 GB iCloud folder on my laptop, which appears to contain duplicates of everything on my computer. I can't seem to do anything about it until I've disconnected from iCloud itself. (The reason for its existence in the first place is beyond me but that's beside the point I guess, lol)


Algebra/polynomials contest-math problem about sum of squares of coefficients

The problem states: If roots of $x^4 + ax^3 + bx^2 + ax + 1 = 0$ are real, find the minimum value of   $$a^2 + b^2$$  Im really not very good at these types of questions as they seemingly provide very little information.  So, I am basically stumped by this. I first thought that, since the roots are real, $x^4$ and $x^2$ should be positive, which would imply the others are negative. But wont know anything about $a$ or $b$, so really Ive no idea. Id like a hint and not the full solution, so that I can get better at solving such problems. Thanks.


Relationship between electromagnetic wave and photon

What is the physical meaning of a single photon's frequency?     When the fields cross zero, is there less probability of finding an photon there? What does the amplitude of the waves represent, if anything?   And if the frequency has to do with probability, how to interpret circularly polarized light where there's no point that the magnetic and electric fields are both zero?


Yesterday I started the upgrade from 12.10 to 13.04, but I interrupted it because it was taking too long. Now if I restart it, it doesn't proceed.  Is there any possibility to clean the mess it left when I interrupted it and make a clean restart of this update?


Is it appropriate to write the summary of an online course on my website?

I am doing a few courses on Coursera and youtube, while watching the lectures I usually take some notes, adding extra explanations and examples on things that I found difficult to understand. Now, I am thinking that I can clean them up a little and post them on my website, but I don't know if that would be considered plagiarism or otherwise inappropriate. If I do post anything I will properly cite the course I am referring to and not post any quiz/assignment questions or answers, but also I won't really be adding any original work of my own, just a condensed summary and maybe some additional examples that I found useful from other sources. Would something like that be a good idea?


Does $\varphi_{X+Y}(t)=\varphi_X(t)\varphi_Y(t)$ imply independence of $X$ and $Y$?

It shouldn't, but I am blanking on a counterexample.  ETA: Note that the $t$ is shared on both sides - which differentiates this from . Similarly $F_{X,Y}(x,y)=F_X(x)F_Y(y)$ implies independence, but $F_{X,Y}(t,t)=F_X(t)F_Y(t)$ doesn't.


Expected number of rolls to get all colors on a fair die with 3 colors

there are 3 colors in a fair die with 2 faces each. which means that the probability of getting each color is 1/3. Let N be the number to get all the colors. What is the expected value oh N: E(N)? (i.e there are only 2 colors on N-1 throw)


I'm reading a book of php and found this code:  class Employee {         static public $NextID = 1;         public $ID;          public function _ _construct( ) {                 $this->ID = self::$NextID++;         }          public function NextID( ) {                 return self::$NextID;         } }   why here is used self::$NextID++; can I use like this:   $this-ID = $this->$NextID++;


How to compile quickly without continously having to type the whole story of -wall -werror and all those other flags. I know how to use them, but it is a little bit of annoying if I have to type it again and again. Maybe this is asked before, but I couldn't find it.


"Sun rises in the east" or "The sun rises in the east"

I am really confused about the usage of articles with proper nouns like sun. Which of the following is correct?   Sun rises in the east. The sun rises in the east.


How to reinstall SVN using the existing repo files from previous install?

Preface: After upgrading from Windows 7 to 10, things didn't go well. It seemed to go fine, but I was occasionally getting a black screen on boot. I turned off the PC and my registry got irreversibly corrupted. I have now reinstalled Windows 10 cleanly. All is working well after a month, but now I need to get SVN back up.  The 'proper' backup I have of my repos is too old. I need to ensure backups are done more frequently moving forwards. What I do have is the entire disk partition I had SVN data stored on.  The file structure on the SVN partition is intact, e.g. X:/MyRepo/db/revs and all the data on X:. I also have the latest copy of C:/MyRepo where my working copy was stored.  How can I reinstall TortoiseSVN using my existing files (not a backup), and retain commit history including log messages?


How does the second law of thermodynamics disprove all  machines?


I have been developing with Cassandra locally for a while and response times on queries are in the region of 50ms.  I have set up a 5 node EC2 cluster from the cassandra community ami, everything went fine, opscenter is up and running and there are no issues.  When I perform any query from a machine outside of the aws network, whether it be to create a keyspace, or do a select * on an empty table, the response time is over 20 seconds.  When I query from a machine in the same region, the response time is between 1 and 2 seconds, still very slow.  The EC2 Machines are all m1.large eu-west-1a  Do you have any idea why this would be happening or where I should look to find the issue?


open a terminal at the same window the GUI is at?

Is there a way to do this. I often find myself browsing files in the GUI because it is convenient and then I need a terminal so I have to open one up and cd /dsf/sd/f/sd/f/sd/fsdf with autocomplete it is quicker than typing, but it would be nice to have a shortcut to just open a terminal with one click


Active Directory group permissions not being applied to user

I have an odd situation. An Active Directory group was recently created for the sole purpose of being a securable in SQL Server. I created a login based on the AD group, a user based on the login, and granted permissions to the user. All pretty standard stuff. When I impersonate one of the group members (using execute as login='domain\username'), I'm able to perform the granted action. However, when the user himself tries it, he gets "permission denied". I'm at a loss to explain the behavior and subsequently fix it.


Where is Control-V defined? How? Can it be changed?

If I look under Settings >> Keyboard >> Shortcuts, I don't see anything related to Control-C, -X or -V.  Where are they defined?  And how?  Suppose I want to change their actions to some other shortcut key, how would I do it?    With help in the comments, I am able to define a hotkey to do the paste action using xdotool: xdotool key --clearmodifiers ctrl+shift+v.    In addition, I would like to add a script: xdotool key --clearmodifiers ctrl+shift+v && some_script.  That fails, but with further help from the comments, I'm finding that /bin/bash -c "xdotool key --clearmodifiers ctrl+shift+v && some_script" does work!


How can I delete a folder with "illegal" characters?

I plugged my USB flash memory stick into a Mac and it gained some unwanted hidden folders. (See the question  for prevention.)  I'd now like to remove these from my drive but I ran into an issue. Inside the fseventsd folder is a subfolder that is not shown unless I disable "Hide protected operating system files" in folder options. I am then shown a folder icon with no name, and attempting to delete it results in no action and no error. Attempting to open it results in the error:     E:\fseventsd\ is not accessible      The filename, directory name, or volume label syntax is incorrect.   So I took a look using command prompt:    I must admit, had I not known the parent folder was from Mac OSX I would have strongly suspected a virus, because the folder name renders as a smiley face in ASCII.  Apparently this is ASCII character "01":    Any commands I issued in Command Prompt resulted in various syntax errors as well. I decided to try Powershell.  Unfortunately 1) I'm not very experienced with Powershell, and 2) it appears to have similar difficulty with the weird folder name. I got the following error in Powershell just trying to list the parent directory contents:     Get-ChildItem : Illegal characters in path.     How can I delete this folder?


Can you cast a spell learned through the Magic Initiate feat with your regular spell slots?

The Player's Handbook states that:     Once you cast it this way [with the feat], you must finish a long rest before you can cast it in this way again.   With the new  for the PHB, it says:     Using this feat, you can cast the spell once at its lowest level, and you must finish a long rest before you can cast it in this way again.   Essentially the same statement, just grammatically correct. However, the special attention to "in this way" makes me wonder if this means you may cast the spell for free once per long rest (at first level), but you may also cast the spell using your native spell slots at any level for which you are capable. Is this incorrect?


Geometry/trig help - having trouble finding an angle

I've been trying stuff with angle sums, Sine law and Thales theorem, but either I'm making very bad mistakes or I'm just tired - either way I would love some outside input. Thank you.


Decode escaped Url without using HttpUtility.UrlDecode

Is there any function that converts an escaped Url string to its unescaped form? System.Web.HttpUtility.UrlDecode() can do that job but I don't want to add a reference to System.Web.dll. Since my app is not a web application, I don't want to add a dependency for only using a function in an assembly.  UPDATE: Check  about the same issue.


I try this:  int yourProcess = Process.GetProcessesByName( "notepad.exe" )[0].Id;   all i get is this error:      System.IndexOutOfRangeException: 'Index was outside the bounds of the array.'   can anyone help?


The NVIDIA graphics driver on this PC is several versions out of date, so I went to upgrade it due to an unrelated issue. I went to the NVIDIA website, downloaded the 64-bit Windows 10 driver for the GT 720 GPU. I ran the installation as you normally would only to be met with the error "NVIDIA Installer Failed", and it told me the "Graphics Driver" failed to install.   Now I only have one usable monitor, the other is not detected, yet it turns on briefly as Windows initially loads the desktop.  What I Have Tried  Clean Installation  This is the first thing I tried, I restarted the computer, waited a while, and then I ran the NVIDIA driver installer, I selected "Custom Install", and then I ticked the "Clean Install" checkbox. This failed in the same way as before. Note, I also tried "Run[ning the updater] As Administrator".  Windows Update  I opened Windows Update to check for updates, since this can often fix failed driver installs. It said there was a NVIDIA driver update available, so began the update process. This failed with the error "0x80070003". I tried again, it failed again.  Manual Driver Install  From device manager, I right clicked on the GPU, and clicked "Update Driver Software", I opted to browse for driver files, with "Check subfolders" checked, and navigated to C:\NVIDIA\DisplayDriver\368.39\ and clicked "OK". This failed with "Code 28".  Manual Driver Install (Automatic)  Same as before, except I let Windows find the driver online automatically, I presume it found the same files I had already downloaded, and downloaded them again. This failed.  I am still stuck with one working monitor, reduced graphical performance, and am unable to install the NVIDIA driver.  This is my work PC, so I don't have a huge amount of time to reinstall Windows, so I'd rather not do that, as I have various customisations in place, and lots of programs installed. It'd take a long time for me to do all of that again.    EDIT: More Info  There are no NVIDIA listings under "Uninstall a Program" in the Control Panel. Yet the "NVIDIA Control Panel" app is still in the start menu, but does not start. I believe that is because there are just three DLL files in C:\Program Files (x86)\NVIDIA Corporation\coprocmanager, and no other files/directories in coprocmanager's parent directory.  When the driver is installing, my second monitor starts working, and then stops when the installation fails.  When the driver is installing, it briefly appears as "NVIDIA GeForce GT 720" in Device manager, after it fails, it goes back to being labeled, quite simply, "Display".  Tried running...  PsExec.exe -i -s "C:\NVIDIA\DisplayDriver\368.39\Win10_64\International\setup.exe"   ..to no avail.  PC Specs (from Speccy):   Custom build NVIDIA GeForce GT720 (not from Speccy, since it just lists the monitor under Graphics). Intel Core i5 4460 @ 3.20GHz 16.0GB Dual-Channel DDR3 @ 799MHz (11-11-11-28) ASUSTeK COMPUTER INC. H81M-PLUS (SOCKET 1150)


"10 points to whomever knows the answer" or whoever?

Should it be "10 points to whomever knows the answer" or "10 points to whoever knows the answer"?


How to validate US zip code using jQuery and show error message in red color above the text field in Bootstrap template?

I'm using a Bootstrap template for my web app. Now in one form I'm accepting a US Zip code value from the user, submitting the form to the desired page and showing the result.  Now I have to put validations for it as follows:   The value entered by user in input field "zip_code" should only be Valid US zip code. If he/she enters invalid value then the error message in red color should appear above the text field intended for entering zip code. The form should not get submit. This validation should be done by using jQuery and on clicking of a map-marker icon which I made to behave like a submit button.   Following is the necessary HTML code snippet :

 LOGIN

 REGISTER

 STATUS

 CONTACT

 MY ACCOUNT

 SHOP DESTINATOR

       <form action="abc.php" class="navbar-form pull-right" id="formzip" method="post">         <input style="width: 115px;" type="text" placeholder="Enter the zip code" name="zip_code" id="zip_code" value="">        </form>

   As I'm a relatively new to the Bootstrap framework can someone please help me in this regard?  Thanks for spending some of your valuable time in understanding my issue. If you need any other information regarding my issue please do let me know. Any kind of help would be greatly appreciated.  Waiting for your precious replies.


I need to reinstall Windows 8 on my machine where I've installed ubuntu 15.04. I have no DVD drive and need to run it from a USB stick. Windows supports this but I cannot run the .exe windows file that creates the usb stick for rebooting from the USB. Hope someone have an idea on how to solve this.


Let a function defined on the real line be differentiable at the real number $1$. As the integer tends to infinity, what does the expression $f (1+1/n^2)+f(1+2/n^2)+⋅⋅⋅f(1+n/n^2)- nf(1)$ tend to? My answer is $0$, since each term gets multiplied by $0$. I got this by distributing the $nf(1)$ between the other $n$ terms. And, since the the function is differentiable at $1$, it is a bounded quantity which multiplied by $0$ each time. Is my answer correct?


"Money for rope" ... meaning and derivation?

I was listening to John Lennon's song "Gimme Some Truth" just now, and in it there's a recurring line:     ". . . money for rope."    I never thought about it much before, but it strikes me this has to be some kind of aphorism or at least a familiar idiom somewhere. Does anyone know what it means and where it comes from? I've found some things on the Web that say it refers to the rope trade, and driving a bad bargain, etc., but none of these seem entirely convincing. Or at least they left me feeling unsatisfied.  Does anyone have a clear line on this one?


Will stationary charge radiate E.M waves if observer is accelerating?

For ex. if my frame of reference is oscillating then will i see E.M waves produced from a charge which is not oscillating with any other or ground frame of reference?  Can i get a really clear answer ...like yes or no and why ?


Calculating capacitance for three conductor transmission line

The black part is the insulation, brown part is copper. How can I calculate the capacitance between the two small copper cables? There are 3 conductors, 2 of them inside the big conductor


Following a recent 9gag post:    Did Jaqen H'ghar end up in that cage because he knew that he would meet and "recruit" Arya, or was it some strange coincidence? Is it described somewhere in the books, or left unexplained?


prevent X-Forwarded-For spoofing in haproxy

Yesterday we got hit by a DDoS attack reaching our webserver backends (apache2). The frontend consists of haproxy loadbalancing connections to the webservers. On access.log of apache we saw thousands of requests from two ips and after a couple of hours we realized that those were fake/spoofed and were not the actual ips.  For clarification reasons, we did a "curl GET /" with an ip of "137.137.136.136" and indeed that's the ip (fake one) we saw in our weblogs  Now, in another cluster where we use nginx as reverse proxy, changing/crafting the X-Forwarded-For Header doesn't work. Meaning , even if you enter a random ip in the specific header nginx will still pass the correct ip to the backend webserver?  Does this has to do with haproxy? Anyone can confirm that crafted X-Forwarded-For headers can pass through haproxy? Why is this not happening in nginx ? How do you prevent this?


Linking external data back to the blender file after moving

I want a friend to render my 6400 frame short film I made on blender... And it has a lot of image textures for materials... I have all the images, music, and pretty much everything that is in the animation in one folder, including the actual blender file... But it seems the destination of the files will change because the folder would be installed on his computer and he would have to go and change all the matierial image texture file destinations to the same folder on his disk... Is there a way where he can just link up to all of the files without the hassle? Thanks


I see that we usually use the theorem to solve the Laplace transform, however i want to proof the theorem, who could give me some details!!!  $L{\rm{[}}\frac{{x(t)}}{t}{\rm{] = }}\int_s^\infty  {X(u)du} $  where:  $L{\rm{[x(t)] = X(s)}}$


If I connected to Facebook will my villages be saved?

In my phone,Google+ app or google play store is an unsupported app. My phone is a Nokia XL. But if I connect to Facebook, will my village be saved?


I have the option of trading in some Spirit Bloom (or any of the other materials—Spinmetal, Helium Filaments, Relic Iron) with the Crucible Quartermaster (I believe some other vendor does it too), but it gives me no indication what I'd get in exchange. I imagine it's some amount of rep and perhaps marks, but what is it? And if it's variable, what are its deciding factors? Do all kinds of elements have the same conversion rate?  Note: As of the  material exchanges now work in the opposite direction, where marks are used to purchase materials.   What is the exchange rate for marks to materials?


Basically, I've read a few threads when I had trouble getting German special characters like ü,ö,ä,ß to show up when a user uses them in a submission title.   To say the least, they look like this: Ã¼Ã¶Ã¤Ã�  Turns out the database collation was wrong for these types of characters (or so I've read) the collation was latin1_swedish_ci, and I've read to change it to u8_general_ci or utf8_unicode_ci. Well I've tried both but on submission to the database by a user, the title with special characters still shows up the same, all messed up like above.  I guess my question is, what am I doing wrong? Is there an extra step I've missed to get these characters to show correctly? I've never worked with German translation before this particular project, and this is my first time with this. So any help would be fantastic.


This is what I'd like to achive in Xcode/swift:  I want to create a blank "canvas" at a fixed size, ex. 300x300px. I want to add a picture to the canvas and the picture should be zoomable (pinch to zoom) within the boundaries of the canvas.   Finally when the preferred zoom/crop is set, I want to save the crop in the 300x300px size canvas.   Anyone who has a solution to this and is this in any way possible? Greatly appreciated.


How do I derive the formula for the sum of squares?

I was going over the problem of finding the number of squares in a chessboard, and got the idea that it might be the sum of squares from $1$ to $n$. Then I searched on the internet on how to calculate the sum of squares easily and found the below equation:$$\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}.$$  And then I searched for an idea on how to come up with this equation and found , but what I would like to know is that if (hypothetically)I have to be the first person in the world to come up with this equation, then can someone please tell some ideas on how to approach a problem like this.


Python: What does this expression mean '^ '[True] or '^ '[False]

I was watching Brandon Rhodes talk on Dictionary where I found him using a generator expression  diff = ('^ '[a==b] for a,b in zip(k1, k2))   where k1 and k2 are binary representations of some numbers. For every bit in k1 and k2 which are not identical this generator expression puts a '^ ' to mark the position. I haven't been able to understand this expression. What it means?


Seeking options for Spatial ETL (Extract, Transform, Load)?

I am interested in the pros and cons of various spatial ETL (extract, transform, load) tools.  If you have used the items listed here (or add your own), I seek your opinions and experiences.  In particular I would like to see usability comparisons of:    (proprietary)  (proprietary, subset of FME features)  (open source)  (open source)  (I don't know that it is truly ETL, but more of a file translation toolset) Any additional lot listed   There is no need to give a review of ALL software mentioned.  If you are experienced with even one then that will be very beneficial in making a decision about which direction to go.  Example: I am looking to create a schema conversion function that will allow me to select the input layer, create a translation, and output to a new, pre-defined schema.  Optimally, after creating the translation script, I would like to have an interactive form where I can "map" fields in my input layer to the output layer (ie- The output layer will have a field called "Address", what is it called in the input layer?)  Some were mentioned in the Q&A at   And here are a couple of related articles that I found.


Changing global variable in function in Python

I'm having a problem changing a variable in a function that was initially defined outside a function.     # Define inital bool     x = False          def test():         # Print inital bool         print(x)         if not x:             # Change bool state             x = True          test()  I want to print x at the start of the function but then change the value of x if it is False but when I run this, I get the error local variable 'x' referenced before assignment.. Defining x as a global variable doesn't change anything either:     # Change bool state     global x     x = True  When I run this code (with global x), I get the error: name 'x' is used prior to global declaration Defining global x outside the function doesn't make a difference either. Any way I can fix this or get around it? Thanks.


What kind of vector spaces have exactly one basis?

Here is the question as an exercise in the book Linear Algebra Done Right, Chapter 2     Find all vector spaces that have exactly one basis.


What do you call a person who does/thinks the opposite of the crowd for just that reason?

Such a person does not hold in high regard the decisions taken by a group (not a team) of people. She believes that groups tend to be anarchic and don't serve their purpose.  An example would be - for outings with friends, this person will not like planning it with the group since they will mess it up.  Therefore, this person has convinced herself that when more people are involved with something, it will be worse. She distrusts crowds instinctively basically.


Why do we need extra force to pull an upside down mug out of a bucket?

If I try to pull an upside down mug (full of water) out of a bucket of water, extra force is required  to break free from the water surface. In the case of an inverted  mug (rotated by $180^0$ from the previous case), pulling out of water is straight forward i.e. you apply the force equal to the weight of the mug + water.


There is a mysterious unidentified folder C:/users/public/L001 where this L001 is the folder bothering me.  It has a size of 41 GB . It's size is constantly increasing , about 0.1 GB every 3-4 days.   It contains about 1,90,591 Files currently. Even the number of files is increasing.  All the files are extension-less. All of them have the name of format date_time. For example : 2012-09-02_08-45-50.   Then there are similarly names files of name : fcdate_time  And then there are files with name : sddate_time  It also contains following files (extensionless) :    W0000 of size 151 MB. W0002 W0003 subcfg   (Last three have size of few KBs)  I cannot understand what is causing this. I am not sure whether or not to delete the folder because i want to free up some space.


Why won't the last output line in this program display on NetBeans?

I'm trying to make a simple "store" program with a prompt to exit the program at the end. If the user types yes, it will exit. But if they say no, it's supposed to just print a message to let them know they can keep shopping. For some reason that message doesn't appear though. Here is the object.  public class HelloShopper1 {    public static void main(String[] args) {               Scanner scanner = new Scanner(System.in);               System.out.print("Hello Shopper, what is your name?\n");               String input = scanner.nextLine();               if(!input.matches("[a-zA-Z_]+")) {               System.out.println("Nice try " + input + " . Get out of my store!");               } else {              System.out.println("Thank you, " + input + ". It is my pleasure to help you today.");              System.out.println("Do you want to close this program?");              String input1 = scanner.nextLine();              System.out.println(input1);              if(input1 == "yes") {              System.exit(0);              if(input1 == "no") {              System.out.println("Thank god. Please continue shopping.");            }         }     } }


I'm trying to make a circuit (with no programmable circuits, only logic gates, flip flops and latches) that outputs a short impulsion each time it's input toggles from 0 to 1. Do you have any idea of how to do so?


How can I turn my house into a Pokestop?

I just want to know if its possible. I have only two in my general area and I would like too add some if possible. This is probably a really stupid question but i'm just curious.


Best Way to Write Bytes in the Middle of a File in Java

What is the best way to write bytes in the middle of a file using Java?


Does the legend rule affect 2 creatures with the same general name?

Suppose I have  on the battlefield. Does the legend rule apply if I then play ?


Is there a way to track when tag edits were made?

I want to be able to identify when certain answers were posted relative to when certain tags were included with the question.  My curiosity is: I want to know if an answer uses a domain outside the scope of what the OP intended and the author of that answer edited the tags to include the domain they utilized in their answer.  I suspect there is a way to track the time stamps of when tag edits were made.  I just can't figure it out.


I'm a little bit confused which version is correct:   New version available New version is available


Photoshop CC 2019: Pixelated Brush Stroke

For some reasons my brush stroke suddenly looks like this:     As the picture showed, the edges are jagged and pixelated. It doesn't happen before and it's just one of the built-in inking brush.  I know there are a lot of similar questions here but please don't mark this as duplicate. I double checked all the thing the other answers suggested: It's brush tool, not pencil, and my mode of brush and layer is Normal, not Dissolve. It's pixelated even if I draw with mouse so it's not tablet driver issue. I disabled GPU render but nothing changed. How do I fix this?


Restrict the scope of a command to the execution of another command

In one section of a document I used   \let\thefootnote\relax\footnote{}   to have a footnote without number.   The problem is that it propagates through the whole document then and all footnotes appear to have no index.   How can I restrict the influence of this command to one particular footnote?  Update: I use unnumbered footnotes at the beginning of the chapter to specify, for instance, the version of software used throughout the chapter. It is common to do it like that in the community I am working.


Exploding kittens. How many turns can an attack card "really" skip?

Scenario: P1 plays attack  P2 plays attack.  P3 has 4 turns on her. P3 plays a turn and draws a card. P3 has 3 turns left.  P3 plays her attack.   What happens?


How to COPY or CREATE a DISSASSEMBLY of an executable file or a C source code?

I got an assignment from my college to create this  Now I know there might be some way, that I can copy the disassembly of my C code I created from a debugger, I guess...  If there is a way please let me know... Or atleast...  Help me with the disassembly of this code I created...  #include <stdio.h> #include <string.h> #include <stdlib.h>  //Logic loop int to_base3(int decimal_number)  {     //To return the function at the end of recursion      if (decimal_number == 0)           return 0;     //The Recursion       else         return (decimal_number % 3 + 10 *  to_base3(decimal_number / 3));  }   //Main function   int main()  {      int decimal_number;     char check[20];     //Inputting the values and checking for characters     do{                                      int flag=1;         printf("Enter the number: ");         fgets(check, 19, stdin);         //Loop to check for number or character         for(int i=0; i<sizeof(check);i++){             if(isdigit(check[i])){                 flag =0;                 break;             }             else{                 continue;             }         }         //The place where to_base3() gets called         if(flag==0)         {             decimal_number = atoi(check);             printf("Base 3 number: %d\n", to_base3(decimal_number));         }         //If flag == 1 i.e. if it's a char, then exit the loop         else             break;     }while(1);     //The final statement     printf("Thank you for using my program. Bye!");     return 0; }    Also, if you think that you can come up a shorter assembly code for this problem... Let me know...


How many algebraic operations can be defined on a set S with n elements and how many of them are comutative.  Ok so I know that a algebraic operation is a law (let's say *) such that $*:S\times S \rightarrow S$. So for each pair of the cartesian product associate a element from S. I was thinking like this: Let $A = \{i \in \mathbb{N}|1\leq i \leq |S \times S|\}$, and let $A' = \{\overline{a_1a_2...a_n}\|n = A \ and\ a_i \in A, \forall i = \overline{1,n}\}$. So the cardinal of A' is the answare.


Tikz, rotate, how to specify a point as rotating center?

When I use rotate on a node, it seems to be rotated against its west(As in figure (up) and (middle)), however, what I meant is to rotate it against its center, like (bottom) of figure shows. I didn't find such a parameter in manual....      \begin{tikzpicture} [sampleA/.style={text width=1cm, text height=2cm}, sampleB/.style={text width=1.5cm, text height=.5cm}, every node/.style={draw, rectangle, align=center}] %% up  \node (A) at (0,0) [sampleA] {A}; \node[sampleB] (B)  [right=.1cm of A] {B}; %% middle \node (A) at (0,-3) [sampleA] {A}; \node (B) [sampleB, right=.1cm of A, rotate=-90] {B}; %% bottom \node (A) at (0,-7) [sampleA] {A}; \node (B) [sampleB, right=.1cm of A, rotate=-90, xshift=-.8cm, yshift=.5cm] {B}; \end{tikzpicture}     UPDATE  I tried to use round around, but it fails:  \node (A) at (0,-7) [sampleA] {A}; \node (B3) [sampleB, right=.1cm of A, rotate around={-90:(B3.center)}, xshift=-.8cm, yshift=.5cm] {B};   Error says:     Package pgf Error No shape named B3 is known.


Name for words like whatchamacallit, doohickey, thingamabob

Is there a name for words like whatchamacallit, doohickey, thingamabob, doodad, thingamajig, whatsit, etc.?  Somehow it seems like there should be a word to describe the general term for .  (Computing names like foo, bar, baz are examples of  but those are a slightly different category.)


Evaluate these infinite products $\prod_{n\geq 2}(1-\frac{1}{n^3})$ and $\prod_{n\geq 1}(1+\frac{1}{n^3})$

What is   $\prod\limits_{n\geq 2}(1-\frac{1}{n^3})=?$ $\prod\limits_{n\geq 1}(1+\frac{1}{n^3})=?$   I am sure about their convergence. But don't know about exact values. Know some bounds as well. For example first one is in interval (2/3,1) and second one is in (2,3).


I can't install my own bl-link WiFi adapter " LB-Link- WN151P " I wonder if there's a way to do that?

I am new in using ubuntu so I hope to show me the steps specifically shujaa-addin@Shujaa:~$ lsusb Bus 002 Device 022: ID 0bda:f179 Realtek Semiconductor Corp.  Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 008 Device 004: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 006 Device 010: ID 413c:2003 Dell Computer Corp. Keyboard Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub


Ubuntu 13.04 installed but always start only Windows 7

I'm tring to install Ubuntu 13.04 on my PC desktop but when i restart my PC, it always starts Windows 7, without asking me which OS would i like to run. I've got 3 HDD on my PC:     1: 200 GB with Win7   2: 500 GB partitioned with 4 GB of Swap, 150 GB of /home and the others GB of root (/)   3: 2 TB of various data.   I think the bootloader is on sda1, and during the installation of Ubuntu 13.04 I can't install a bootloader on that partition (fatal error). What should i do?  Here my log of fdisk:  ubuntu@ubuntu:~$ sudo fdisk -l  Disk /dev/sda: 203.9 GB, 203928109056 bytes 255 heads, 63 sectors/track, 24792 cylinders, total 398297088 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xdf56df56     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *          63   398296937   199148437+   7  HPFS/NTFS/exFAT  WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't     support GPT. Use GNU Parted.   Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00000000     Device Boot      Start         End      Blocks   Id  System /dev/sdc1               1  3907029167  1953514583+  ee  GPT Partition 1 does not start on physical sector boundary.  Disk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x272196e3     Device Boot      Start         End      Blocks   Id  System /dev/sdb1            2046     7815167     3906561    5  Extended /dev/sdb2         7815168   300785663   146485248   83  Linux /dev/sdb3       300785664   976771071   337992704   83  Linux /dev/sdb5            2048     7815167     3906560   82  Linux swap / Solaris


I was in creative mode on Minecraft PE, and decided to build a really awesome house to live in.   After I was done with my house, I decided I would just explore for a bit. I didn't realize that I had walked too far from my house that I had completely lost it! It wasn't on a map, and I didn't keep track of which side of a compass it was on!   Is there any way to find my house again? I really need help trying to find my house again! Please help me find it!


Jquery load function loading data only when ran for the first time, but not on subsequent calls

I am using .load function of jquery to display partial view as a modal when a button is clicked on the html page. It is very weird that when I change something in the partial view and click the button for the first time, the partial view data is retrieved and it is correctly shown on the UI too. But when I later click the button, a request is made to fetch the partial view, data is also returned but the modal never appears till I again change something in the partial view. Why could this be happening. I tried disabling cache for ajax as suggested , but still it didn't work. Following is my code. <button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">Launch demo modal</button>

   My Partial View Markup:

             <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
modal title

Second from partial with clear cache

             <button type="button" class="btn btn-default" data-dismiss="modal">close</button>

  EDIT: The question for which this has been marked as duplicate refers to events for dynamically loaded elements whereas my question is on the static elements, the event on which will bring in new (dynamic) elements


Select list of node titles for a view exposed filter

I want to create an exposed filter based on the title of a node. How do I do this? I would prefer this filter be a select list - that is, all of the node names are listed based on the criteria I list.  So let's say you have three titles for events:  A Trip to the Woods  Go to the Beach  Off to the Farm   I would like the exposed filter to be a select list of these three nodes.


Javascript and memory, how is it handled?

I thought that variables were destroyed as soon as their context did not exist anymore:  function foo () {     let bar = "something"     return bar }   Like in this example, I thought that bar was destroyed as soon as the function got executed.   But now, I discovered that you can write this in Javascript:  function foo () {   let bar = "something"   return {     print () {         console.log(bar)     }   } }  let f = foo()  f.print();   This code prints "something". So I wonder now how javascript handles its memory. Why bar does not get destroyed at the end of the function?   Now, if I write something like:  function foo () {   let bar = "something"   let hugeVar = _.range(1,1000*1000*1000*1000) // A huge array   return {     print () {         console.log(bar)     }   } }   Is hugeVar still in the memory? How Javascript decides what to keep and what not to keep?


How can I set up an external HDD that functions just like a shareable flash drive?

I have partitioned an external HDD on linux (gpt, ext4) and mounted it under /mnt and would like to use it as a storage device for the whole team, meaning everyone would have all permissions to all files even on other Linux machine (unless one changes the ownership and mode manually). If someone creates a new file on their PC, someone else on another PC would also be able to read and write those files. Running sudo chmod -R 774 /mnt/NewDrive/ does the job but not for new files created after running the command. Am I jeopardizing the security of the machine this external HDD is connected to? What is the safest practice?  Finally, how can I set up such an external HDD that functions just like a shareable flash drive?


The space at right side is blank. In text mode editing with MS docx for example, we can fill up space with text.  When a small image is attached for questions or answers some white space at the sides is wasted. If a tight wrap edit can place image alongside text it becomes more readable. Is it possible to include this feature?


Is it appropriate to advertise for Area 51 in a username?

I know it's definitely not okay to try to place unsolicited advertisements for Area 51 proposals (or anything else for that matter) in questions, answers, and comments. But what about a username, say "Area51BasketWeaving"? I'd really rather not see advertisements while trying to read real posts, but at the same time I don't want to stop people from picking their usernames.


Dimensions not shown under Transform panel

I am unable to find where you can type in the dimensions of an object. Scale, transform etc are all there but not dimensions. I am trying to edit the active object under the Properties/Data menu. I can successfully scale the object but I need to be able to type in values. I found this question but the answer did not help, i.e. that you had to be in Object mode.  It does not matter if I am in Object or Edit mode. I am using 2.91. I guess I'm doing something daft or missing something so please take pity :-)


Auto Reg Ex Phone Number format (xxx) xxx-xxxx

I found a pretty old example but it's almost doing exactly what i need to do:   However instead of the current format xxx-xxx-xxxx i'd like to do (xxx) xxx-xxxx  Can someone give me a hand with the script below with this??  $('.telnumber').keyup(function() {     this.value = this.value         .match(/\d*/g).join('')         .match(/(\d{0,3})(\d{0,3})(\d{0,4})/).slice(1).join('-')         .replace(/-*$/g, '');      console.log("this value", this.value); });


I am looking for a pipe symbol that can be made to vary in height automatically.  One of the common ways of writing "such that" in mathematics is with the pipe symbol (|). The pipe can be represented in LaTeX directly as the character | or as \vert, but neither of these expands vertically in math presentation mode. I can adjust it manually this way:  \[\mathcal{H}=\left\lbrace h(x)=\sum_{i=0}^{k-1}a_{i}x_{i}\mod m\ \Bigg\vert      \ a_{i}\in\mathbb{Z}_{m^{k}}\right\rbrace\]     but I am looking for a true variable-sized option, parallel to \lbrace etc.  The amsmath package provides \lvert and \rvert, but I do not find them expanding as expected, and the amsmath documentation specifies that they should be used as binary delimiters (one on each side of something else), rather than alone.


I want to create oval buffers 450 by 350 m tilted by 45° using the v.buffer-tool from the GUI. When I enter everything necessary and click run, in return I get the following error message (same pops up for other Grass-algorithms):  2019-01-29T11:56:21     CRITICAL    Traceback (most recent call last): File "C:/PROGRA~1/QGIS3~1.4/apps/qgis/./python/plugins\processing\algs\grass7\Grass7Algorithm.py", line 415, in processAlgorithm Grass7Utils.executeGrass(self.commands, feedback, self.outputCommands) File "C:/PROGRA~1/QGIS3~1.4/apps/qgis/./python/plugins\processing\algs\grass7\Grass7Utils.py", line 372, in executeGrass for line in iter(proc.stdout.readline, ''): File "C:\PROGRA~1\QGIS3~1.4\apps\Python37\lib\codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf6 in position 81: invalid start byte  A possible reason could be the following warning I get upon startup of QGis (it doesn't pop up, but it is written in the protocol):  2019-01-29T11:43:18     WARNING    Konnte C:/PROGRA~1/QGIS3~1.4/apps/qgis/plugins/grassplugin7.dll nicht laden (Grund: Die Bibliothek C:\PROGRA~1\QGIS3~1.4\apps\qgis\plugins\grassplugin7.dll kann nicht geladen werden: Das angegebene Modul wurde nicht gefunden.) 2019-01-29T11:43:18     WARNING    Konnte C:/PROGRA~1/QGIS3~1.4/apps/qgis/plugins/grassprovider7.dll nicht laden (Grund: Die Bibliothek C:\PROGRA~1\QGIS3~1.4\apps\qgis\plugins\grassprovider7.dll kann nicht geladen werden: Das angegebene Modul wurde nicht gefunden.) 2019-01-29T11:43:18     WARNING    Konnte C:/PROGRA~1/QGIS3~1.4/apps/qgis/plugins/grassrasterprovider7.dll nicht laden (Grund: Die Bibliothek C:\PROGRA~1\QGIS3~1.4\apps\qgis\plugins\grassrasterprovider7.dll kann nicht geladen werden: Das angegebene Modul wurde nicht gefunden.)  Basically it says "GRASS wasn't installed". So, how do I solve this? Just reinstall QGis?


I just noticed that clicking a JS-like link on MSO (like to show more hot network questions) just bumps me to the top of the page and doesn't do anything else.   Also, adding a comment or any other JS-related feature (i.e. inline editing, 10k inline comment editing) is borked.


How to change the language for man command?

I wanted to ask if it was possible to translate the man and man explanations from the terminal (in Italian language). If, for example, use:  man cd   Instead of running in English I would that will print in Italian.


Scripting:How to correctly add a boolean modifer to an object?

I am trying to cut a hole through a mesh-cube with a mesh-cylinder by adding a boolean modifier with a 'DIFFERENCE' value. what I have is =>  objkts = bpy.data.objects cube = objkts['cube'] cylinder = objkts['cylinder'] bool = cube.modifiers.new(type='BOOLEAN',name='booly') bool.object = cylinder bool.operation = 'DIFFERENCE' bpy.ops.object.modifier_apply(apply_as='DATA',modifier='booly') sc = bpy.context.scene sc.objects.unlink(cylinder)   but it does nothing when I run the script, I mean the objects are still visible until I manually click apply @ the cube's modifier pane from the blender GUI


Maximal ideal not containing the set of powers of an element is prime

In the midst of attempting to prove that for a commutative ring $A$ with identity, and an ideal $I$ of $A$, $I = \operatorname{rad}(I)$, where $\operatorname{rad}(I) = \{x: x^m \in I, m >0\}$, implies that $I$ is an intersection of prime ideals, I've run into a little bit of confusion.   An answer to another question on this site, , indicates a strategy that I am attempting to use. I know that if $x$ is an element of $A\setminus I$, then so too is $x^m$ for any positive integer $m$. I use this fact to consider a subset $X = \{x^m : m > 0\}$, which is closed under multiplication, and use Zorn's lemma to find an ideal of $A$ containing $I$ maximal with respect to the constraint that said ideal, $J$, is disjoint from X.  I want to prove $J$ is prime by contradiction. I suppose that $J$ were not prime; this also means that $J$ is not maximal in $A$. Then there would exist two elements, $f$ and $g$, of $A$ so that $fg$ is in $J$, but neither $f$ nor $g$ is in $J$. Following the prompting of the aforementioned answer, I know that $J + \langle a\rangle$ and $J + \langle b\rangle$ would be ideals strictly containing $J$, and since J is the maximal ideal disjoint from $X$, both $J +  \langle a\rangle$ and $J + \langle b\rangle$ contain at least some elements of $X$ (I am tempted to say all of them, but I'm not entirely sure that's true, in case for example $\langle a\rangle$ started containing powers of $x$ at $x^2$, in which case it isn't necessarily true that $\langle a\rangle$ contains $x$ itself), and so both $\langle a\rangle$ and $\langle b\rangle$ must themselves contain elements of $X$.  And this is where I am stuck. I feel like there is something I should know about multiplicative subsets of rings that would help me arrive at the desired contradiction, but I can't remember what it might be.


Is there a good way to inspect objects whose type is derived from the EntityDrupalWrapper class?

I'm sure this question applies to other complex object types, but EntityDrupalWrapper is the one I'm currently working with. This is the type of object returned by  (and probably others).  When using code like the following:  $order_wrapper = entity_metadata_wrapper('commerce_order', $order_object); dpm($order_wrapper);   the output from Devel is none too helpful:    It doesn't show what you'd expect to see for a call to dpm() with, for example, a stdClass object.  A similar call to dvm() does print the object, but in a manner I'm not familiar with, and it's not very readable.  I've tried debug() and it produces a PHP user notice that looks something like this:    Incidentally the HTML output contained in that warning is the same output that dvm() prints to the screen.  How can I inspect these types of objects (preferably with Krumo), so I can see what properties are available? Or am I stuck using dvm()?


Any metric space can be isometrically embed in some Banach space?

I have just read the question of the title in an article from Kirchheim. I didn't know this result, does any one know where I can find a proof of it?


I am planning to go up to Vermont this spring to visit Jasper Hill Farms and Shelburne Farms to buy a wheel of cheese each from their cheddar houses. Once I cut into the wheel, how long before it goes bad?


Will/Does SO/SE support any way to migrate accounts from myOpenID

myOpenID have announced they are closing from February 2014.  All my SE accounts are linked using a single myOpenID id and I'm sure many thousands of others have the same situation. How are we advised to proceed to avoid losing information and maintain linked accounts on SE?  oops, dupe:


Is there a way to prevent apt from looking for i386 packages in multi-arch mode (Ubuntu 14.04)?

I was wondering if there is a way to prevent apt looking for an i386 version of a package for a particular repo/package?  For example, I recently got this error when doing apt-get update:  W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release  Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)   I know Google has stopped support for the 32-bit version of Chrome, so it is pointless apt looking for any i386 versions of this packages.


How to explain lack of 3 year Income Tax Return acknowledgement or Form 16A that is required?

I will be applying for a Schengen Visa in VFS Italy, and according to their , we need to show Income Tax Return (ITR) acknowledgements or  of last 3 assessment years.   However, I only have Form 16A and ITR acknowledgement of 1 assessment year, as I was under the tax paying bracket before that, which means, I did not have to pay taxes, and therefore, didn't get a Form 16 from my employers and didn't file an ITR.  So, where and how can I explain this to the consulate? Will this be a problem?


Would it be correct to say that somewhere within Tex, there is a layout algorithm? If there is, is a description of the algorithm and abstractions it consumes and produces available?  A question and answer here address , but don't cover the layout process I am hypothesising.  Another question here asks if , and  on that links to Knuth's paper , which seems like a relevant place to start reading.    Sorry if I've chosen a poor tag. I need to add at least one, and none I've found matching "algorithm" or "layout" seem appropriate.


Why using itemize cannot bold in third line with \(H_{1,1}\)

I am trying to bold the word in my third line. as shown in figure below:    My full MWE is as below:      \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amssymb}  \begin{document}  \renewcommand{\labelitemi}{$\blacksquare$} \renewcommand{\labelitemii}{$\square$} \renewcommand{\labelitemiii}{\textendash} \begin{itemize}    \item  \textbf{First Line}    \begin{itemize}      \item  \textbf{Second Line}         \begin{itemize}              \item \textbf{\(H_{1,1}\):} No bold starting here Third Line                 %  \item {\textbf{\(H_{1,2}\):}} There   \end{itemize} \end{itemize} \end{itemize}  \end{document}   I had tried:   \item \textbf{\(H_{1,1}\):} No bold starting here Third Line   and   \item {\textbf{\(H_{1,2}\):}} There


I have Windows xp sp3 and Kingston 2gb ram module. I don't know much difference between 32 bit os of ubuntu and the 64bit one. Which one should i download?


How to define a skewed normal distribution using mode and two points?

I want to define a Gaussian distribution function and plot it in python using the mode and inflection points parameter values instead of using the mean and standard deviation. For example, I have mode=110 and two points : (40, 160) for asymmetrical points. Or mode=100 and two points = (50,150) for symmetrical points. I tried with this code below, but I don't how I can add the second point to the formula which is returned by the function? Since I have two points, and I don't know how to define a function that depends on two points and mode. Thanks in advance for your help! import numpy as np matplotlib.pyplot as plt    def gaussian(x, mode, inf_point):     return 1/(np.sqrt(2*np.pi)*inf_point)*np.exp(-np.power((x - mode)/inf_point, 2)/2) x = np.linspace(0,256) plt.plot(x, gaussian(x, mode, inf_point))


How do I disable loading of unnecessary kernel modules. Kernel 3.2.4


3 wire service to panel... neutral and ground wires on the same bar?

I'm getting two conflicting reports and was wondering if anyone can help me. I was told that on the distribution panel, grounded conductors (neutral) and ground wires need to be separated in the distribution panel. The point of disconnect is at the meter and the neutral and ground wires, apparently, have to be separated downstream of the point of disconnect for proper grounding system. Is this true? I got a second opinion and was told that on a 3 wire service to panel, neutral and ground wires are allowed to be terminated on the same bar. Any help would be really appreciated. Thank you all!!


I'm sorry Dave, I'm afraid I cant let you watch hulu. -- hal I I tried to watch a video on hulu.com. Just as I thought it might play, I got a message saying I need to install hal, and do some other non-sense. So I went to  and tried what it suggested. sudo apt-get install hal  which then stated, that is not a package. so I looked for libhal, and hal, and did not find it.   I installed Adobe Flash from source, so I have the panel, where I was able to complete the other required steps.. but Im stuck on the package requirement for hal.   What do other Ubuntu Users do to play hulu? Is there an HTML5 player I should know about? Is the package hal worth tacking down and installing?


Unmet dependencies when trying to install GIMP

I got this error message when trying to install GIMP.  The following packages have unmet dependencies:  gimp : Depends: python-gtk2 (>= 2.8.0) but it is not going to be installed         Depends: python:any (>= 2.6.6-7~) E: Unable to correct problems, you have held broken packages.


Disk slowly filling up but no visible file size changes

df     Filesystem     1K-blocks     Used Available Use% Mounted on /dev/vda1       30830588 22454332   6787120  77% / none                   4        0         4   0% /sys/fs/cgroup udev             1014124        4   1014120   1% /dev tmpfs             204996      336    204660   1% /run none                5120        0      5120   0% /run/lock none             1024976        0   1024976   0% /run/shm none              102400        0    102400   0% /run/user   That 77% was just 60% yesterday and it will fill up to 100% in a few days.   I've been monitoring filessizes for a while now:   sudo du -sch /*   9.6M    /bin 65M     /boot 224K    /build 4.0K    /dev 6.5M    /etc 111M    /home 0       /initrd.img 0       /initrd.img.old 483M    /lib 4.0K    /lib64 16K     /lost+found 8.0K    /media 4.0K    /mnt 4.0K    /opt du: cannot access ‘/proc/21705/task/21705/fd/4’: No such file or directory du: cannot access ‘/proc/21705/task/21705/fdinfo/4’: No such file or directory du: cannot access ‘/proc/21705/fd/4’: No such file or directory du: cannot access ‘/proc/21705/fdinfo/4’: No such file or directory 0       /proc 21M     /root 336K    /run 12M     /sbin 8.0K    /srv 4.1G    /swapfile 0       /sys 4.0K    /tmp 1.1G    /usr 7.4G    /var 0       /vmlinuz 0       /vmlinuz.old 14G     total   It's been giving me (more or less) the same numbers every day. That 14G total is less than half the disk size. Where is the rest going?  My Linux knowledge does not go a lot deeper.   Is it possible for files to no show up here? Is it possible to have space allocated in any other way?


How to avoid seeing GRUB menu for 30 seconds

When I start my system I get the GRUB menu.  By default, UBUNTU is selected. But the menu disappears only after 30 seconds or when I press enter.  Can I have Ubuntu boot by default and prevent this window from appearing?


Can I enter the USA, visit Canada return to the US when the whole trip is more than 90 days?

I'm a Finnish citizen and, first, I will spend 10 days in the US, visiting my sister. I'll fly to Canada for my exchange studies and be there for 3.5 months (I have an ETa).   I have a flight back to the US to spend Christmas and New Year with my sister and her family.  My flight home to Finland in on 3rd January and my trip began on 18 August.   Am I able to reenter the US after exchange studies in Canada, or do I have to book new flights directly from there to Finland?


Will you please loosen the delete account restrictions?

Currently you can only delete your account if you .  I'd prefer to not have a bunch of accounts listed on my user page that I don't and haven't used.  It would be great if you allowed people to delete their accounts if they don't have any posts (questions/answers), ignoring the no-vote requirement (or allowing you to delete if less than say 10 or 20 votes).


Looping through 2D array using sizeof() in C++

I am trying to write a small C++ library to do simple matrix calculations. It consists of a Matrix class with static member functions altering given matrices.  I have one function which adds a scalar to each element, however the loop isn't working:  // Member function to add a scalar to the matrix void Matrix::add_scal(double** arr, double s) {     for (size_t x = 0; x < sizeof(arr) / sizeof(*arr); ++x) {         Serial.println("test");         for (size_t y = 0; y < sizeof(*arr) / sizeof(**arr); ++y) {             arr[x][y] += s;         }    } }   "Test" is only printed once and the inner loop isn't run at all. Here is the function I use to create a matrix:  double** Matrix::init(int rows, int cols) {     double** temp = new double*[rows];     for (int i = 0; i < rows; i++) {         temp[i] = new double[cols];         for (int j = 0; j < cols; j++) {             temp[i][j] = 0.0;         }     }     return temp; }   The following two lines create a matrix and are supposed to add a scalar to it:  double** test = Matrix::init(3, 3); Matrix::add_scal(test, 2.5);


Is forward selection using AIC as selection critiria valid?

I'm using a sequential approach to decide the best fitting model for my data. (I'm still new to R, so I decided to go for a manual approach rather than an automated one offered by R packages). I'm literally adding one variable at the time, trying different combination, as well as interactions. From what I understood from previous posts on this matter, using p-values as a selective method is a sort of p-hacking and it is not suitable for inferential conclusions. but what about AIC? I'm using AIC as selective criteria for some Negative Binomial models I'm running, choosing the models with low AIC. Can it be considered a valid modelling approach? or should I just include all the variables in the model and accept the statistical result? Sorry if this is unclear, I can give more information if needed.


How do you find the following multivariable limit?

How do you find the following limit: $$\lim_{x,y\to 0} \frac{|x||y|^4}{|x|^4+|y|^5}$$ I've tried to apply the squeeze theorem, but unlike a lot of other questions I encounter, the degree of $x$ in the numerator is too small for me to write the function as a constant times a function that goes to zero as $x,y \rightarrow 0$.


How can I Use Google Search mobile version in desktop browsers?

As you're all know there are different version of Google Search is available respective to your client device (Mobile/Desktop). Since, Mobile version uses less bandwidth I was trying to access the Mobile version in Desktop browser. But whenever I access the  in desktop browser, It's just getting redirected to desktop version itself.   If I use facebook mobile site URL,  I'm still able to access the same in desktop browsers as well. It's getting loaded very fast & uses less bandwidth.  So is there any way I can force to use mobile version of Google search in desktop browsers? This will save alot bandwidth and load faster as well. Thanks in advance.


In which episode of "Rick & Morty" does Jerry go into labour?

Jerry is shown going into labour in the opening credits but I have not seen it in any episode. Am I missing any?


How to turn on Touchpad in setting on ubuntu 17.10?

I was making some tweaks in my touchpad settings. Then by mistake I turned the touchpad OFF. Now I don't have a spare mouse and My touchpad isn't working. How can I turn that back ON?