The minimal polynomial of a primitive $p^{m}$-th root of unity over $\mathbb{Q}_p$

Proposition 7.13 of Neukirch's ANT states that for a primitive $p^{m}$-th root of unity $\zeta$ ($p$ prime) the extension $\mathbb{Q}_{p}(\zeta)/\mathbb{Q}_{p}$ is totally ramified of degree $(p-1)p^{m-1}$. In the proof he shows that the polynomial $\phi(X)=X^{(p-1)p^{m-1}}+X^{(p-2)p^{m-1}}+\cdots+1$ is the minimal polynomial of $\zeta$ over $\mathbb{Q}_p$ .  I can't see how to obtain the congruence $\phi(X)=(X^{p^m}-1)/(X^{p^{m-1}}-1)\equiv(X-1)^{p^{m-1}(p-1)}$ mod $p$ as claimed in the book.  Here, I take it that mod $p$ means mod $p\mathbb{Z}$ and not mod $p\mathbb{Z}_{p}$ ?  Also, does Eisenstein's irreducibility criterion extend to polynomials in $\mathbb{Q}_{p}[X]$ ?   Any help would be very much appreciated.


I want to display three levels in my game...but I don't know what the text should say.  easy -> Beginner  medium -> ?  hard -> Expert   Basically, I want the form that describes the person playing the game, instead of the game itself. What adjective is best?  I have considered adept.  I doubt my users will know what adept means. Also, I need something in between expert and beginner. Adept falls into the expert category. Is there anything more common that I can use, that has the same impact as the other two words I mentioned?  Proficient would work, theoretically, but in day-to-day term, the levels "beginner - proficient - expert" won't sound great.


I need a hint about this question, I know all the different ways of defining a projective module, but, I don’t know where to start: R is an left Artinian ring, M is a left R-module. I need to prove M/J(R)M is a projective R/J(R) module. Could anyone please help me to prove it?


What do I need to know before upgrading the CPU of a laptop?

I have an AMD laptop, which has AMD APU (e1-2500). I don't really like the speed of it and would love to upgrade to faster APU. There are some AMD APUs available in ebay. So the question is:   What do I need to check to be sure that a new APU will work without problems?


I want to prove the following theorem:     If $u$ & $v$ are harmonic functions in unit disc $D$ and $uv$ is identically equal to $0$ in $D$, prove that either $u$ is identically zero or $v$ is identically zero in $D$.   I know a real valued function $H$ of two real variables $x$ and $y$ is said to be harmonic in a given domain of $xy$-plane if throughout that domain, it has continuous partial derivatives of the first and second order and satisfies the partial differential equation $H_{xx}(x,y)+H_{yy}(x,y)=0$.  The question is related to complex functions $u$ and $v$ which are harmonic and the definition above is for real valued function $H$. How should I prove this?  The region where functions are harmonic is a unit disc. So this question is different and not duplicate.


Saving permanently user input for later use and expanding your program

EDITED QUESTION  I made a small sequential program in Java which can calculate my daily bonus for my job. It's not the most beautiful or optimized bit of code but hey it works!  Now it would be cool to have this actually save my input for that day somehow and even when I terminate the program the next time I open it should still have stored that end value somewhere. Maybe even go back to that specific day and check my PPH (productive hours) and maybe even calculate the whole month (which is actually the end goal and track my performance).  Any suggestions?


How can I tabulate my output so that the calculations line up with Celsius and Fahrenheit?   Also, how do I display a number like 183.20000000000002 more naturally?  public static void main(String[] args) {     double cel = 0;     double fahrenheit =cel * 1.8+ 32;      int i;     System.out.println();// blank line     System.out.print("Hello ");// output line     System.out.println();     System.out.println("This Program will show temperature conversions from 0-100\nThen in reverse \nCelsius              Fahrenheit");      for (i = 0; i <25; i++){             cel =cel+ 4;         fahrenheit =cel * 1.8+ 32;         System.out.println(+ cel + "                  " + fahrenheit);     } }


Exam class: same space solution vs. no solution

In exam class, by inserting a fixed minipage same size of your answerslines for students you create the same space when answers are printed or when answers are not printed. How come the depth is still different? Don't tell me to use \vspace.  \documentclass[11pt,a4paper,addpoints]{exam} \unframedsolutions  \usepackage{tikz} \usepackage{graphicx} \usepackage{geometry} \usepackage{calc} \usepackage[skins]{tcolorbox} \usepackage{calc} \newgeometry{left=2cm,top=2cm,right=2cm,bottom=2cm}  \newtcolorbox{greenbox}[1][]{%   size=fbox,   arc=5mm,   boxsep=0.7cm,   colframe=green,   colback=green!8,   beforeafter skip=5mm,% <--- Space setting before and after   #1% }  %\printanswers \begin{document}  \begin{questions}   \begin{greenbox}   \question[2] What is the first question?   \begin{solutionorlines}[4cm]               %heidht no answers=4cm   \begin{minipage}[t][4cm]{\textwidth-1.4cm} %height answers =4cm    The depth of this box is larger when answers are printed compared to answers not printed. How do I make "answers" and "no answers" the same dimension?    \end{minipage}   \end{solutionorlines} \end{greenbox}%   \end{questions}  \end{document}


How to prevent tmux from reading .profile/.zprofile/.bash_profile

The original question  Is it possible to override tmux's default behaviour of executing .[z|bash_]profile files on every new session, window and pane?   In other words, I'd like it to only execute only the relevant .[zsh|bash]rc script, i.e. for the new session/window/pane to behave like an xterm or urxvt, not like a tty.  More specifically (edit)  I'd like to avoid changing anything to my .*profile and .*rc scripts. I'm looking for a way to ask tmux to open non-login shells in its new sessions, windows and panes by properly configuring it in .tmux.conf, in order to keep the prior philosophy of putting only actual 'login' instructions on .*profile scripts, as recommended for instance here:   I am aware on how to circumvent the issue by hacking e.g. .zprofile as was answered to  , but the question is of how to do it from .tmux.conf  Secondary question   Why does tmux load the .*profile scripts by default, on every session, window and pane, whereas subshells on any context and all (or at least most) variants of X terminals don't?  Some background information (not necessarily relevant)  I barely started using tmux (only occasionally, for now), but I do have an ever-evolving setup, using zsh as my shell of choice, in which .zprofile expects to be called from a tty and do relevant stuff (like deciding to run startx or not based on whether it's on a laptop and the tty number), the .zshrc script expects to be called from any interactive environment and the .zshenv script expects to be loaded whether on an interactive environment or not.  EDIT: Solution (based on comments below)  Adding the following line to .tmux.conf overrides tmux's behaviour and defaults to starting non-login interactive shells (zsh in this case) on new  sessions, windows and panes:  set-option -g default-command zsh


Create bootable USB drive from Linux ISO

I'd like to take a Linux ISO (e.g., CentOS, Ubuntu), and create a bootable USB drive. (It will be used for booting on a stock PC, not on the Mac). How do I go about creating such a drive using a Mac?


How to calculate correlation coefficient for the 3 scenarios?

Scenario 1: x=c(1,2,3,4) y=c(2,2,2,2)   Scenario 2: x=c(3,3,3,3) y=c(2,2,2,2)   Scenario 3: x=c(3,3,3,3) y=c(3,3,3,3)   In R, when I used "cor(method="kendall")": [1] NA Warning message: In cor(x, y, method = "kendall") : the standard deviation is zero  Note: all values are ordinal. From my point of view, at least for Scenario 3, the "corr coef" should be 1 as the two sets of values perfectly match.


How get float number with no rounded number in java

I have this float 98.01645 and I'm getting 98.02 with this function:     String lastCredit = String.format("%.2f", AppSingleton.getInstance().credit);  That I want is get 98.01 (only two decimals or not rounded number). I'm trying but I can't get the way to do it work.


Fundamental group of infinite row of tori

Consider a family $ \lbrace T_i \rbrace_{i\in\mathbb{Z}} $ of tori indexed on the integers such that every torus is attached to the preceding one and to the subsequent by a single point. How can we compute the fundamental group of this infinite row of tori?   I want to stress the fact that «every torus is attached to the preceding one and to the subsequent by a single point» therefore, this is not a duplicate of the question


I know that there are really a mass of XML XSLT php merging threads at SO. But php specific i could not found what might my problem: $xml = new DOMDocument; $xml->load("f.xml");  $xsl = new DOMDocument; $xsl->load('test.xsl');  // init and configure processor $proc = new XSLTProcessor; $proc->importStyleSheet($xsl); // import xsl document $xml2=$proc->transformToXML($xml); echo $xml2;   <xsl:stylesheet version="1.0" xmlns:xsl="; <xsl:param name="owner" select="'Robert KÃ¼hn'"/> <xsl:output method="xml" version="1.0" omit-xml-declaration="yes" indent="no"/>  <xsl:strip-space elements="*"/> </xsl:stylesheet>  and one xml file as example: <?xml version="1.0" encoding="UTF-8"?> <xPac> <xyz id="15603"><varrDaten id="15604" zeit="1271099572" rechte="1">Daten<vbuch><vsyautor>Alertz, Ulrich</vsyautor><vsytitel>Vom Schiffbauhandwerk zur</vsytitel><vsybarcode>20560194</vsybarcode><vsystatus>S</vsystatus></vbuch><vbuch><vsyautor>Ridolfi, Carlo�[Hrsg.]�</vsyautor><vsytitel>Vite dei Tintoretto da le</vsytitel><vsybarcode>20014784</vsybarcode><vsystatus>S</vsystatus></vbuch><vbuch><vsyautor>Ridolfi, Carlo�[Hrsg.]�</vsyautor><vsytitel> life of Tintoretto and o</vsytitel><vsybarcode>20074791</vsybarcode><vsystatus>S</vsystatus></vbuch></varrDaten></xyz></xPac> My xslt file looks a bit empty.. However i tried ´output method="xml"´. but it doesnot help.. the xml file is huge and i guess not so important  Question: PHP returns always the data as text or html but not in XML.. what i am doing wrong? I only want to edit the XML with xslt and save back to XML (file).  THanks for your help!


For any primitive pythagorean triple $(a,b,c)$ either $a$ or $b$ must be a multiple of $3$

I'm reading "Friendly Introduction to Number Theory". Now I'm working on Primitive Pythagorean Triples Exercises 2.1 (a) on P18.      We showed that in any primitive Pythagorean triple $(a, b, c)$, either $a$ or $b$ is even. Use the same sort of argument to show that either $a$ or $b$ must be a multiple of 3.   (1) $a^2 + b^2 = c^2$ with a odd, b even, a,b,c having no common factors  (2) $a^2 = c^2 - b^2 = (c-b)(c+b)$  (3) $c + b = s^2$ and $c - b = t^2$  (4) $c = \frac{(s^2 + t^2)}{2}$ and $b = \frac{(s^2 - t^2)}{2}$  (5) $a = \sqrt{(c-b)(c+b)} = st$  (6) $a = st$, $b = \frac{(s^2 - t^2)}{2}$, $c = \frac{(s^2 + t^2)}{2}$    I have no idea how I start doing this. Can you give me a hint? I think I need to show that both the following (1) and (2) are satisfied.  $X \neq 0$  (1) $a\equiv 0\pmod 3$ and $b\equiv X\pmod 3$  (2) $b\equiv 0\pmod 3$ and $a\equiv X\pmod 3$


Setting a log file name to include current date in Log4j

I would like to set the log file name for a log4j and log4net appender to have the current date.  We are doing Daily rollovers but the current log file does not have a date.  The log file name format would be   logname.2008-10-10.log   Anyone know the best way for me to do this?  edit:  I forgot to mention that we would want to do this in log4net as well.  Plus any solution would need to be usable in JBoss.


How to properly render a curve/thin object in Cycles?

I was rendering a bezier curve made on Blender Cycles in 4K resolution but it looks pretty awful, it looks too pixelated and the image doesnt even looks like the curve on preview, how can i configure this?


When I try to install anything, it fails with error message:   installArchives() failed: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings:     LANGUAGE = (unset),     LC_ALL = (unset),     LANG = "en_IN.ISO8859-1"     are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory Preconfiguring packages ... perl: warning: Setting locale failed. perl: warning: Please check that your locale settings:     LANGUAGE = (unset),     LC_ALL = (unset),     LANG = "en_IN.ISO8859-1"     are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory Preconfiguring packages ... Selecting previously unselected package ladspa-sdk. (Reading database ...  (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% dpkg: unrecoverable fatal error, aborting:  reading files list for package 'texlive-base': Input/output error   This is not a duplicate question:  Below is the message that appears at the end and if I install anything, below error appears:    dpkg: unrecoverable fatal error, aborting:  reading files list for package 'texlive-base': Input/output error   Disk or partition is not full.


I was wondering how you would calculate the S-box in AES. I found that you have to calculate the inverse of the polynomials in $GF(2^8)$. I found out that to calculate the inverse, you have to use the Extended Euclidean Algorithm. What I can't figure out is how do you apply this to a polynomial?


How do I create template file for view field, My view machine name is page_search and field name is room type.


For an arbitrary number of dimensions, I know that the mean minimizes the distance using the $L_2$ norm and that the geometric median minimizes the distance function using the $L_1$ norm (though I have yet to find a good proof of this). So what minimizes the $L_{\infty}$ (or Chebyshev) norm? []


Why is no argument passed in main function?

Whenever we define main() function in any code, why don't we pass any argument in it?


Derivative of inverse function at a point.

Let $f\left(x\right)=x^{13}+3x^{9}+2x^{5}+x^{2}+x+2$ find $\left(f^{-1}\right)'\left(1\right)$. Can somebody show me the method? I am a little confused.


Changes made to copy of an object reflect in the original object

In the below snippet, I made changes to the 'current' object, which is a copy of 'head' object. However, changes get reflected to the global head object.  class Node     {         public Node next; //pointer         public Object data; //data          public Node(Object d)         {             data = d;         }     }      public class CustomLinkedList         {             private Node head = new Node(null); //head of linked list              public void Add(Object data)             {                 Node newNode = new Node(data);                  Node current = head;                  while (current.next != null)                 {                     current = current.next;                 }                  current.next = newNode;             }     }


Output URL of open firefox tabs in terminal

I would like to find out the URLs of the currently opened firefox tabs with a terminal command. Is there any possibility?  This way I would be able to write them into a text file and look at them lateron; and safe resources (I often have many open tabs).  I know that there is an add-on for firefox, but I would be more confortable writing my own script.


Prove that exists a sequence such that $\lim_{n \rightarrow \infty}c_n= \infty$ and $ \sum_{n=1}^{\infty}c_n a_n < \infty $

Let $\{a_n\}n \in \mathbb{N}$ a sequence of non-negative numbers such that  $ \sum_{n=1}^{\infty} a_n <\infty$. Prove that exists a sequence $ \{c_n\}n \in \mathbb{N} $  of non-negative numbers such that $\lim_{n \rightarrow \infty}c_n= \infty$ and  $ \sum_{n=1}^{\infty}c_n a_n < \infty $


How is it possible for two curves to intersect negatively?

If I have two curves inside a projective surface, their intersection number should be the degree of their intersection product, i.e., I "move them" a bit so that they intersect properly and then consider the divisor consisting of their intersection points counted with the right multiplicity, and then add up those multiplicities. So far, is that right? I know this is a bit informal and I do not want formal answers based on formulas and computations, I just want an intuitive explanation: how is it possible that I ever get a negative number? Even more specifically, how can the multiplicity for the intersection of two curves at a point be negative? If they intersect properly, should the intersection number not just be 1 at every point, so that the total intersection number of the two curves is just the number of intersection points (which is clearly non-negative)?


When indicating participants (as in a picture), which is correct; "This is Fred and me." or "This is Fred and I." ? (And, I know my punctuation is incorrect here.)


How to rank a new site at top in Google search?

Is it possible to rank a new site to rank at top in Google search using white hat SEO techniques only.


i made a form with a few inputs. One input named voornaam (forname) and one called achternaam (surname). <input type="text" name="voornaam">   Sorry for the dutch. Now other forms (other websites ) also uses these names in there forms. And the browser remembers what the input was in these forms. How can i get a clean start with my form. So it does not use the others forms input. Please do not tell me my users need to clean up there cash. :-) regard Jan


Lens upgrade paths (sub $1000) for the EF-S 18-55mm IS kit lens for Canon APS-C cameras

This is somewhat a follow-up to my . I have browsed through quite a lot of sites including this one for user opinions & reviews of different Canon lenses, but haven't found a comprehensive answer to the possible upgrade paths from the kit lens, particularly since I don't have a specific usage scenario in mind. Here are a few that I have found that answer the question partially:   (Quite old)   (for Pentax though)     (more about the cameras)        For this reason, I thought it would be useful to have a list of sub-$1000 upgrade lenses for the kit lens for APS-C format DSLRs (like the 550D, 60D, 7D etc), as a lot of people are upgrading to DSLRs nowadays. The key points that I seek are:   Pros\cons compared to the kit lens Price Scenarios the lens is suitable for   Keep in mind that it is primarily for APS-C cameras, so, EF lenses meant primarily for the full frame cameras would end up with the magnification factor of 1.6x. Also, this is focused towards hobbyists & amateurs for which reason I've added the sub-$1000 bit.  P.S. This question might be more suited for a wiki like article (albeit with user opinions included)


Complex Analysis analytic function problem

Suppose that $f$ ang $g$ are two analytic functions on the set $\Bbb C$ of all complex numbers with $f(1/n) = g(1/n)$ for $n= 1,2,3,\ldots$, then show that $f(z) = g(z)$ for all $z\in\Bbb C$.


I want to write a big matrix and I want to write it in two lines like the picture but I cannot find the way!


I have created a project in netbeans and I clean and built the jar file. But I double clicked on jar file doesn't run the jar file.  Why is this jar file is not running ?


How does one reference theorem names in a section title in the amsbook class?

I would like to reference the name of a theorem in a section title.  Everything about this works fine, but on the page headers, one sees (??) instead of the Theorem number in the displayed section title.   I realize that this question has been asked before, but the answers did not enable me to solve my particular problem.  The consensus on the other questions seems to be that one should "use protect" to fix this, but that is not working.  (1) Most likely, this is because I misunderstood the other answers -- this seems to be a rather complicated issue with TeX, and, even after reading other posts, I still really don't understand the underlying difficulty, or, for that matter, why there should even be an problem. It doesn't seem like this should be hard for TeX to implement: scan for uses of \label to generate a list of labels. Then, any time \ref is used, substitute the appropriate label -- I don't see why it should matter that \ref is being called in some subroutine, e.g. the one that generates page headers.  (2) Possibly because one needs to modify things somewhat in the amsbook document class, which is the class in which I am working.  Here is a MWE which illustrates the problem:  \documentclass{amsbook}  \usepackage{amsthm}  \newtheorem{theorem}{Theorem}  \begin{document}  \section{Section One}  \begin{theorem}\label{t:foo} Cookies are tasty. \end{theorem}  \section{Proof of Theorem \protect\ref{t:foo}}  \end{document}   EDIT: One should insert some text into the above example in order to see the failed page headers in the compiled document.  Thank you!


A product inequality with binomial coefficients

For $n \geq 2$, we want to prove that       $$ \prod_{k=0}^n {n \choose k} \leq \left( \dfrac{ 2^n - 2 }{n-1}  \right)^{n-1} $$   My first approach was to try and use induction on $n$. The base case is trivial $2 \leq 2$ and all boils down to prove that   $$ \left( \dfrac{ 2^n - 2 }{n-1}  \right)^{n-1} { n+1 \choose n} \leq \left( \dfrac{ 2^{n+1} - 2 }{n}  \right)^{n} $$  Which seems a bit cumbersome. Then I realize we can do the following. We have $n-1$ products of non 1's in both sides of the equation and thus if we can prove that   $$  {n \choose k} \leq \dfrac{ 2^n - 2}{n-1} $$  for $k = 1,...,n-1$ then we are basically done. This indeed seems as a more handeable inequality than the one arising from the induction hypothesis. Notice that ${n \choose k}$ is maximal when $k = [n/2]$ (floor function). But I dont see a way to do it analytically. But, we can also do this:  Rewrite it as   $$ \dfrac{ (n-1) {n \choose k } }{2^n - 2 } \leq 1 $$  Can we interpret the LHS as a probability? We see that the denominator is the size of same sample space. Since $2^n = \sum {n \choose k}$ counts all possible commitees then $2^n - 2$ is the size of the sample space of all possible committees of $n$ people where we donde consider the empty commitee and the commitee with all $n$ people (so that takes 2 out of $2^n$). Now the numerator might be the size of some event of sample space. Event: commitees of size $k$ out of $n$ people. Then the LHS is a $P(E)$ and we know $P(E) \leq 1$. An so this proves what we wanted. But, I am not 100 % whether this argument might work. Any guidance would be helpful!


SQL one-to-many relationship - How to SELECT rows depending on multiple to-many properties?

A MySQL database contains two tables with a one-to-many relationship: One user can have many settings:  Users: id    username    password --------------------------  1    Bob         123  2    Alice       abc  ...   Settings: id   user_id   key     value -----------------------------  1   1         color   blue   // Bobs settings...  2   1         theme   xy  3   1         size    5  4   2         size    5      // Alices settings...   Problem: How to find all users with color == blue AND size == 5?  Using a LEFT JOIN it is no problem to find users with one property:  SELECT users.id FROM users LEFT JOIN settings ON users.id = settings.user_id WHERE settings.key = 'color' AND settings.value = 'blue'   However, this does not work when searching for two settings at a time?   Is it possible to solve this with a single statement? What is the most efficient way to query this data?


Best option to export more than 15 millions records from Salesforce?

We have a requirement to export around 15 millions records.   Which option will be better Salesforce DataLoader or Jitterbit Cloud DataLoader or any other better option available.  Can we export around 15 millions or more records in one go ! is it possible ? will CSV file able to handle that many record if exported in one go.  Also can we do this using Report API wherein we can create a report and fetch reports data using API, is it advisable considering volume of data?  Please advise the best option to go with, for exporting large volume of records from Salesforce.


Find minimum value of this integral expression.

Let f be a continuously differentiable real-valued function on [0,1] such that  $\int_{1/3}^{2/3} f(x)dx = 0$. Find the minimum value of  $$I = \frac{\int_{0}^{1}f′(x)^2 dx} {(\int_{0}^{1}f(x)dx)^2}$$


find a sequence of rational numbers such that: $\lim_{n \to \infty} x_n = x_0 $ when $x_0$ is irrational

let $x_0$ be irrational number.  How can I find a sequence of rational numbers such that: $\lim_{n \to \infty} x_n = x_0 $   I know such sequence exists from a known theory, yet can't find one  I could only find a sequence of irrational numbers that goes to a rational limit but not the other way around


How to shuffle the order of questions in exam class

In preparation of an exam sheet, I would like the order of questions to change randomly each time I compile the tex file. This is useful for the multiple choice and True/False questions since this reduces the possibility of fraud. I am using   \documentclass{exam}   to prepare the exam sheet. More precisely, I would like the order of questions to change randomly in each section: a different order of questions in multiple choice questions section and similarly for the section for T/F questions.  The sample code:  \documentclass{exam} \usepackage{amsmath}  %\printanswers \newcommand{\tf}[1][{}]{%     \fillin[#1][0.25in]% }  \begin{document} \section{Multiple Choice Questions}  \begin{questions}     \question What is the name of the warmest season in the northern hemisphere?      \begin{checkboxes}         \choice Spring          \correctchoice Summer         \choice Autumn         \choice Winter     \end{checkboxes}      \question Which colour is not one of three main colours?      \begin{checkboxes}         \choice blue          \choice red         \choice yellow         \correctchoice brown     \end{checkboxes}  \section{True/False Questions}  \question \tf[T] Is it true that $2+3=5$?  \question \tf[F]Albert Einstein invented the steam engine in the 18th century. T/F   \end{questions} \end{document}


Should apps take up any internal storage when installed to SD?

I'm running very low on interal phone memory storage - I'm down to 5 MB of the 180 MB available. I understand that not all apps can be installed into SD card, and those will instead use up my internal storage. Luckily, those are rare.  However, I recently installed an app that is listed as being installed on the SD card, not internal storage. Even so, after installing it I'm now getting the "low on space" warning. The app takes up 16 MB, and I seem to remember I had a bit over 20 MB internal storage space before... So judging from the space, it looks like it's still taking up space on internal storage.  So my question: Should an app that's installed onto SD card take up any internal storage?  What could be causing this? Does the market store the installation files somewhere in internal cache or something as weird? Why on earth do I need to worry about apps consuming space, when I have gigabytes of free space for them on my SD card?  My device is GT-S5570 running 2.2.1.


Can I make Firefox the default browser in iOS

I really want to use Firefox as my main browser but can't find a way to make it the default browser on iOS: this make it's adoption much more complicated. Is it totally impossible?   Edit - Example of use case: while clicking a link in the Twitter app, I would like it to open directly in Firefox.  I won't jailbreak.


What is the relation between permittivity and susceptibility of a dielectric?

This question might be trivial but I have a conceptual confusion regarding permittivity and susceptibility of a dielectric  According to Wikipedia, permittivity is the ability to resist external electric field. This means a substance with high permittivity requires high external electric field to polarize. On the other hand, susceptibility is defined as the ability to polarize. So a substance with higher susceptibility should polarize easily. This means both the quantities are inversely proportional to each other but mathematically they are linearly dependant  Where am I going wrong?    I get it that there is a similar question but the answer for that question did not answer mine and I still did not get the privilege of commenting as I am a newbie. That's why I posted it as a separate question   I understood the definitions but couldn't understand the mathematical relation


Fixing QGIS generated SLD to avoid repeating polygon labelling

I have generated SLD's in QGIS that I use in GeoServer. Although the labeling shows fine when previewing the layer in GeoServer, when bringing the WMS in Leaflet then labeling repetition occurs. How do I center labeling in the QGIS generated SLD and avoid repeating labeling?  This is how the leaflet map looks like:    Desired outcome:   And here is the QGIS generated SLD:  <?xml version="1.0" encoding="UTF-8"?> <StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd" version="1.1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ogc="http://www.opengis.net/ogc" xmlns:se="http://www.opengis.net/se">   <NamedLayer>     <se:Name>Uis_Erven</se:Name>     <UserStyle>       <se:Name>Uis_Erven</se:Name>       <se:FeatureTypeStyle>         <se:Rule>           <se:Name>Single symbol</se:Name>           <se:PolygonSymbolizer>             <se:Fill>               <se:SvgParameter name="fill">#729b6f</se:SvgParameter>               <se:SvgParameter name="fill-opacity">0</se:SvgParameter>             </se:Fill>             <se:Stroke>               <se:SvgParameter name="stroke">#232323</se:SvgParameter>               <se:SvgParameter name="stroke-width">1</se:SvgParameter>               <se:SvgParameter name="stroke-linejoin">bevel</se:SvgParameter>             </se:Stroke>           </se:PolygonSymbolizer>         </se:Rule>         <se:Rule>           <se:TextSymbolizer>             <se:Label>               <ogc:PropertyName>erf_num</ogc:PropertyName>             </se:Label>             <se:Font>               <se:SvgParameter name="font-family">Arial</se:SvgParameter>               <se:SvgParameter name="font-size">8</se:SvgParameter>               <se:SvgParameter name="font-weight">bold</se:SvgParameter>             </se:Font>             <se:LabelPlacement>               <se:PointPlacement>                 <se:AnchorPoint>                   <se:AnchorPointX>0</se:AnchorPointX>                   <se:AnchorPointY>0.5</se:AnchorPointY>                 </se:AnchorPoint>               </se:PointPlacement>             </se:LabelPlacement>             <se:Fill>               <se:SvgParameter name="fill">#000000</se:SvgParameter>             </se:Fill>             <se:VendorOption name="maxDisplacement">1</se:VendorOption>           </se:TextSymbolizer>         </se:Rule>       </se:FeatureTypeStyle>     </UserStyle>   </NamedLayer> </StyledLayerDescriptor>


I recently bought a new Western Digital 1TB HDD and have used it one month ago - just copied some back up pictures.   I plugged it in again yesterday [after 1 month] and saw that I was unable to create a new folder. That option was disabled. I clicked onto the folder I had created one month back and inside that I was able to create new folders. So I created one here. [i.e inside the folder I had created one month back] I copied some data into this new folder As the copy was inprogress, I started to see why I wasn't able to create a new folder in HDD's main directory At one point, while the copy was in progress, I forcely removed the HDD from the USB port [My mistake] From then on the HDD is not mounted by Ubuntu     :~$ lsusb Bus 002 Device 003: ID 1058:25e1 Western Digital Technologies, Inc.  :~$ ls /dev/ | grep sdc sdc sdc1  :~# fdisk -l /dev/sdc  WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util  fdisk doesn't support GPT. Use GNU Parted.   Disk /dev/sdc: 1000.2 GB, 1000170586112 bytes 256 heads, 63 sectors/track, 121122 cylinders, total 1953458176      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: 0x16f2a91f  Device Boot      Start         End      Blocks   Id  System /dev/sdc1               1  4294967295  2147483647+  ee  GPT  root@Krishna:~# dmesg | tail -n20 [  110.163583] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE [  110.163585] sd 5:0:0:0: [sdc]   [  110.163586] Sense Key : Medium Error [current]  [  110.163589] sd 5:0:0:0: [sdc]   [  110.163591] Add. Sense: Unrecovered read error [  110.163592] sd 5:0:0:0: [sdc] CDB:  [  110.163593] Read(10): 28 00 00 00 08 40 00 00 08 00 [  110.163599] end_request: critical medium error, dev sdc, sector      2112 [  110.163603] Buffer I/O error on device sdc1, logical block 8 [  113.011433] sd 5:0:0:0: [sdc]   [  113.011439] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE [  113.011441] sd 5:0:0:0: [sdc]   [  113.011443] Sense Key : Medium Error [current]  [  113.011447] sd 5:0:0:0: [sdc]   [  113.011449] Add. Sense: Unrecovered read error [  113.011452] sd 5:0:0:0: [sdc] CDB:  [  113.011453] Read(10): 28 00 00 00 08 40 00 00 08 00 [  113.011462] end_request: critical medium error, dev sdc, sector  2112 [  113.011466] Buffer I/O error on device sdc1, logical block 8   But I really couldn't proceed after this - since I don't understand much from these logs.    I connected it to WINDOWS.  Troubleshooted it -which showed "no problems" I tried opening the drive - it asked me to format it to make usable  again I did try to format it, but it just threw an error that "Windows couldn't format it" - I'm not much of a windows guy.   The HDD is still under warranty - just 3 months since I bought it. I can contact WD support as well.   But I'd like to know if I can try to fix this by myself.  Thanks in advance for helping me out


How to mass delete your photos in your iPhone?

I cannot do it in the phone itself, neither in iPhoto.  How can you delete all your photos in iPhone?


Given $A \in M_n(\mathbb{R})$ with $A+A^t=2I_n$ prove that $\det(A)\geq 1$.  This is what I tried to do:  $$A+A^t-2I_n=0  \Rightarrow \det(A+A^t-2I_n)=0$$   and then I considered $f:\mathbb{C} \rightarrow \mathbb{C}$ with $f(x)= \det(A+A^t+xI_n)$.  It is known that  $f(x)=x^2+\mathrm{Tr}(A+A^t)x+ \det(A+A^t)$.  So this means $f(-2)=0$ but I don't know what to do next.. Thanks in advance!


In this code:  Console.WriteLine("Hello {0}", name);  How is this {0} called? I'm starting in C# and I've seen some codes with this. I kind of know how it works, but why should I use ("Hello {0}", name) instead of ("Hello " + name)?


Windows Subsystem Linux - Make VIM use the clipboard?

To get this off the table now and avoid any confusion ... This is for Linux running in Windows 10(ubunutu), also known as WSL. Its not the same as cygwin and windows or stand alone linux. It is it's own beast.  So please keep the above in mind before I am referenced with all the articles I have already read or comment that this has been asked before.  Does anyone know how to make the copy and paste work off of the windows clipboard OR the WSL Ubuntu Linux emulation? I am using set clipboard=unnamedplus. It's not working, not matter what combinations I use like yy, "+yy, etc.  Yes, it's vim-gtk with +xterm_clipboard support.


Trying to set up OpenVPN server on a vps

I'm trying to set up an OpenVPN server on my VPS for myself when I'm in public places, using this tutorial,   However whenever I try to start the server, it gives me this,  root@vps:~# /etc/init.d/openvpn start  * Starting virtual private network daemon(s)...                                                                 *   Autostarting VPN 'server'                                                                           [fail]   The log contains this  Tue Dec 11 10:53:32 2012 Diffie-Hellman initialized with 1024 bit key Tue Dec 11 10:53:32 2012 /usr/bin/openssl-vulnkey -q -b 1024 -m <modulus omitted> Tue Dec 11 10:53:33 2012 TLS-Auth MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ] Tue Dec 11 10:53:33 2012 ROUTE: default_gateway=UNDEF Tue Dec 11 10:53:33 2012 Note: Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2) Tue Dec 11 10:53:33 2012 Note: Attempting fallback to kernel 2.2 TUN/TAP interface Tue Dec 11 10:53:33 2012 Cannot allocate TUN/TAP dev dynamically Tue Dec 11 10:53:33 2012 Exiting   So obviously it's something to do with the tun, but I don't understand how to fix it.  Thanks!


Is there any simple solution to stream the output system/application sound to Skype, as the microphone input? For example - I want my contact to hear the YouTube video being played at the same time.  Also, if I could control which applications or processes being streamed to Skype individual it would be even better.  I'm on PC - Windows 7 Home Premium, 64-bit  Thanks


Calculate the best value of $M$ $$\large M\le \max_{t\in [0,1]}|at+b\sin t-t^2|\;\;,\;\;\forall \;a,b\in \mathbb{R}$$ Any hints would be appreciated.


How to change preview image for file from command line?

If I open the properties window for some random file. If I click on the file icon in that window I can select a new preview image (thumbnail) for the file. This preview will be displayed in the file browser. How can do this from the command line?   (Because going through the gui to change file preview image takes a lot of time and clicking, I want to write a shell function or just an alias so that I can quickly change the preview of a couple of files in a directory)


How do I recover my password in Pokemon Go?

It never gave me the option to make a password, and now I can't even sign in. I've tried to click the link, but then it takes me to some website that doesn't help me at all!  How do I recover my password?


Web service - current time zone for a city?

Is there a web service of some sort (or any other way) to pull a current time zone settings for a (US) city. For the parts of the country that don't follow the Daylight Saving Time and basically jump timezones when everyone else is switching summer/winter time... I don't fancy creating own database of the places that don't follow DST. Is there a way to pull this data on demand?   I need this for the database server (not for client workstations) - there entities stored in the database that have City, State as properties. I need know current timezone for these entities at any moment of time.


Suppose that $A$ and $B$ are symmetric and non-negative matrices.  Let $\rho(A)$ denote the spectral radius of $A$ and $\rho(B)$ denote the spectral radius of $B$.  Does the following result hold?     $\rho(A+B)\le \rho(A)+\rho(B)$   I tried several examples and found the result true.  But is it true in general?


I want in terminal or in crontab(both) be able to put a random time.  Something like  Sleep $(1-300)  pkill screen && ./start   just a random simple example


How to write this statement in mathematical notation?

No integer bigger than 70 can be expressed as a sum of 3 integers smaller than 30  My attempt: $U_1 = {x∈Z∶x>70 }$ $U_2 = {y∈Z∶y<30 }$ $∄x ∈ U_1 , ∀y ∈ U_2  , x = y_1+y_2+y_3$  I understand that there are many ways to write a sentence in mathematical notations, just wondering whether there is an easier way to write this? Thanks guys :)


Spawn prefabs from list one by one when trigger is touched

I am trying to spawn one gameobject from a list of gameobjects each time I touch the trigger with the controller.  But when I do this, all the game objects from the list spawn together at the same time. I couldn't figure out how to solve this problem and make them spawn one at a time instead, where the next touch spawns the next object in the list, and so on.    using System.Collections; using System.Collections.Generic; using UnityEngine;  public class Trigger : MonoBehaviour {      public Transform spawnPoint;     //public GameObject Prefab;     public List<GameObject> items = new List<GameObject>();      void OnTriggerEnter(Collider other)     {         //GameObject Prefab = new GameObject("prefab");          for (int i = 0; i < items.Count; i++)         {             Instantiate(items[i], spawnPoint.position, spawnPoint.rotation);             Debug.Log("Hello World" +i);         }      }  }


Which is better for full bridge rectifier circuit? MLCC or Electrolytic?

If I place 100uF multilayer ceramic capacitors at the output of a full-bridge rectifier will there be any problem? Or I need to place electrolytic capacitors? What difference do they make (except size)?


How to get datatype of an Object in Javascript?

I am getting id from URL like this. Both are object. If I recognize it like id[0] then it gives me datatype String But as a human I can understand one is String and another is Integer. How can I recognize it with JS Code?


C++ Makefile Dependency with Header file(s)

I am currently trying to generate makefile that can handle generating dependancies for a C and C++ raytracer project. I need assistance in generating the include files being used.  # Makefile  # Default Directories: #  bin  the binary directory #  inc  the include directory #  obj  the object directory #  src  the source directory BIN_DIR  := bin INC_DIR  := inc OBJ_DIR  := obj SRC_DIR  := src  # The compiler: gcc for C programs, define as g++ for C++ CC       := gcc CXX      := g++  # Compiler flags: #  -g      adds debugging information to the executable file #  -Wall   turns on most, but not all, compiler warnings #  -O2/O3  defines the optimization level of the program(s)   CFLAGS   := -g -Wall -O2 CXXFLAGS := -g -Wall -O3  INCLUDES := -I$(INC_DIR)   My file structure is the following:  Raytracer   |   |___bin   |   |___inc   |    |__Geometric   |           |____Vector3D.h   |   |___obj   |   |___src        |__Geometric        |    |______Vector3D.c        |    |______Vector3D.cpp        |        |___Main             |__Main.c             |__Main.cpp    In the Vector3D.h file, I used a template format in and initialized:  #ifndef __VECTOR3D_H__ #define __VECTOR3D_H__  #include <math.h> #include <stdio.h> #include <stdlib.h>  // C Methods defined surrounded with __cplusplus & extern "C" {...} #ifdef __cplusplus #include <sstream> #include <iostream>  namespace Geometric {     template <typename T = float>    class Vector3D { // Vector3D       // Constructors already defined...      // Methods already defined...      // Etc...     }; // The 'Vector3D' Class       // Implemented constructors...      // Implemented Methods...      // Implemented Etc...  } // The 'Geometric' Namespace  #endif /* __cplusplus */ #endif /* __VECTOR3D_H__ */   When defining the Vector3D.c & Vector3D.cpp files should i use:  #include "Geometric/Vector3D.h"  // Or  #include <Geometric/Vector3D.h>  // Or does it matter...


This might be a duplicate but I couldn't find it. Anyhow I'm having trouble integrating $$\int^t_0 e^{x^2}dx$$ I found it in an introductory chapter of a differential equations book and perhaps it assumes I know an integration technique I haven't been introduced to(I only know integration techniques: by parts, u-sub., trig subst. partial fractions )? I have been asked to verify $e^{x^2} \cdot \int^t_0 e^{x^2}dx + c_1e^{x^2}$ as a solution to a differential???  I put it into an online calculator and got the result $e^{x^2}F(x)+c$ What function does F(x) stand for? The link for result is here:  I tried integration by parts and so far I got:  Let $u = e^{x^2}$, $du= 2xe^{x^2}dx$ and $dv=dx , v=x$  So substituting in $u \cdot v-\int vdu$ we get  $$e^{x^2} \cdot x - \int x\cdot 2xe^{x^2}dx$$  Integrating by parts:$$\int x\cdot 2xe^{x^2}dx$$   I get $$e^{x^2} \cdot x^2 - \int 2x^3e^{x^2}dx$$  where $u_2=x^2, du_2=2xdx$ and $dv_2=2xdx, v_2=x^2$  Repeated integration by parts doesn't seem like a way to solving this. Does someone know of a way to integrate this?   Appreciate it.


Is there any size of photon if so what is it?  And also which particle had smallest size / radius / volume considering all of the matter.


time-sensitive documents, goods, articles or cargo   In the phrase reproduced above, does it mean that only documents are time-sensitive or does time-sensitive apply to goods, articles and cargo as well?


Is Jar-Jar Binks responsible for the creation of the Empire?

I have heard some claim that Jar-Jar Binks was responsible for the creation of the Empire. If so, how, and was he the sole reason, or were there other elements?


Displaying the username of the user who created the node in the node template file

I created file node--my_content_type.tpl.php, where I'd like to print the username as string. I tried the following code, but unfortunately it doesn't work. How can I do it?  <?php    print $name; ?>


Is Gödel's modified liar an illogical statement?

In a previous question I relied on the notion of an "illogical statement" which led to some debate and I ended up making its definition an addendum to the question.  I'd like to ask whether the notion of an "illogical statement" as defined here is a worthwhile concept, is it a concept that exists already, is it logical or not, and is it fair to apply the notion to Gödel's modified liar paradox?  It would seem to me to have merit to define an illogical statement as follows: An illogical statement is a statement whose truth value is the inverse of its own truth value.  1: (Sentence $s_1$ is illogical if $s_1\implies\neg s_1$ or $\neg s_1\implies s_1$)  2: Let $s_1$ be the Liar Paradox "This sentence is false.".  3: Rewriting 2: $s_1\implies \neg s_1$  4: From 3,1: $\implies s_1$ is illogical.  And for the modified Liar: Modified Liar: This sentence is unprovable:  5: Let $s_2$ be "This sentence is unprovable."  6: $(s_2\implies s_2)\implies\neg s_2$  7: $s_2\implies\neg s_2$  8: From 7,1: $\implies s_2$ is illogical.  It would seem to me that we should only permit true and not false statements to be accepted as true.  This rule would appear to be the implicit basis of proof by contradiction.  In a proof by contradiction, we suppose a proposition to be true, show that this supposition leads us to the conclusion that a statement is "both true and false" and therefore it is not accepted to be true on the grounds that it isn't "true and not false".  And it would seem that as a basic rule, illogical statements should not be permitted by the metatheory since they introduce a contradiction to the logical system.  The modified liar, the moment we say it, is both true and false and therefore is not "true and not false" so it would seem to me that by the same rule as any proof by contradiction, the moment we suppose the modified liar, we can immediately reject it by contradiction.  As surely it's rejected by contradiction regardless of the system into which it is introduced.  So the conclusion that the decidability of the modified liar is independent of some set of axioms does not imply that it is undecidable in the combination of those axioms and the metatheory, since the metatheory in isolation already provides for decidability that the modified liar must be rejected.  The problem seems to arise for most logicians, when they extend this conclusion by saying that since the modified liar is rejected, it is not true, so it must be false. But this step is only valid for sentences whose truth and falsehood are mutually exclusive.  The modified liar does not possess that property.  Were it true, it would not be "true and not false" and were it false, it would not be "false and not true".  Therefore with statements like this it is incorrect to make the leap that if it is not false it must be true.  I'm no maths professor (far from it) and I accept I'm naively proposing a challenge to a deeply-founded concept here so in anticipation of the inevitable cascade of downvotes please accept my sincere apologies for any misconception on my part.  UPDATE (Post accepting the answer): My current thinking is that it would be best to define an illogical statement as:  An illogical statement is a statement which is incapable of being true without being contradictory in any system in which it is provable and in which $s\implies s$


Chrome - Javascript: Negative Exponent Calculation is wrong for > -3

I am working on React project.  I have use case where I have to add step attribute on Number <Input> tag. This step attribute will be dynamic. Based on array data.  Array data is [{ precision: 2 }, { precision: 4 }, { precision: 5 }].  So I generate the step like:  <input type="number" step={ 10 ** -precision } >   Here 10 ** -precision will output :  0.01  for precision = 2  0.0001 for precision = 4  0.00001 fror precision = 5  This is what I want, and it is working fine in Firefox and Opera.  But Chrome is the issue, Chrome's output for 10 ** -4 is 0.00009999999999999999. Which is breaking in my case.  Chrome's output is correct till 10 ** -3 after that it is printing wrong.    My chrome version is : 74.0.3729.131 and OS: MacOs Mojave: 10.14.4


Why won't my iPhone 4S let me turn on the wifi?

When I go to Settings then to Wifi, I cannot turn it On.  I had read in another question I should Reset Network Settings but that did not seem to help.  Does anyone have any idea what I could do?


How do I install GRUB on a RAID system installation?

I'm trying to setup and install Ubuntu on a RAID 1 setup. I have two disks, sdb and sdc. I've been following this guide  which more or less works for getting everything set up and Ubuntu installed. The problem is at the end of the installation, it tries to install GRUB. By default it tries my "first disk", which gives a "fatal error". I've tried installing it on a specific partion, e.g. sdb1 as well as RAID devices, e.g. md0, md1, etc.. Nothing seems to work. The actual error is  Unable to install GRUB in /dev/sdb Executing 'grub-install '/dev/sdb' failed. This is a fatal error.  Then I'm taken back to the main install menu. If I choose "Install the GRUB boot loader on a hard disk" option, I can pick the partition, but entering sdb2 or md1 gives the same error. So I went ahead an just didn't install GRUB, which means now I presumably have a working Ubuntu installation, but I can't boot it. I've tried booting from the LiveCD to install GRUB, but I can't chroot into my system because it doesn't seem to recognize that my disk is a Linux disk. There's an error about it being a RAID partition. So basically I would really like to know how you know to which device to install GRUB at installation, or at the very least, how to install it on to my system now. I suppose I should also mention that sda is a Windows 7 installation that I would like to keep around and be able to access at boot. Thanks for any help.


Meaning of wait on somebody/something is to wait for something to happen before you do or decide something  So I think its usage is correct in the following sentence     It was barely midnight when I arrived home but I found them both sitting at the table waiting on me.   But according to my book it should be waiting for me.  Although waiting for is also correct but I don't think waiting on is wrong.


In mechanics, the only physical route a particle can take is the one where action is minimized. Why is this true? Is there a proof?


Where can I ask for a second opinion on a license agreement?

I'm wondering where on StackExchange I could ask for how other people interpret a specific license agreement and also whether people have rejected to agree to the specific liencese agreement because of certain aspects within it.  It would be very helpful to gain insights from other people's view on the specific service agreement in order to decide whether or not to agree to the license and start using the service.  The specific service I'm interested in is . Their  states in section 3.2 that:     You hereby grant Company an irrevocable, non-exclusive, royalty-free, transferable license, with rights to sublicense, to use, reproduce, modify, display, perform and create derivative works of the Applications, the Content and the Brand Features and Marks for the sole purpose of allowing the Company to provide the Company Software and the Services to You.   For me it is very important that the content I would put into my Firebase database would remain mine and that it would only be used by/accessible to those that I explicitly grant access.  The license agreement says that I would grant Firebase the right to use the content (which is something I do not wish to agree to), but on the other hand it also says that Firebase is only granted to do so for the sole purpose of providing the service to me.  I'm confused by this and would appreciate any sites that I can ask questions about this issue.


I am always puzzled regarding some mysterious t-sql behavior, like the following  -- Create table t and insert values.   use tempdb CREATE TABLE dbo.t (a INT NULL);   -- insert 3 values INSERT INTO dbo.t values (NULL),(0),(1);   GO   set ansi_nulls off -- purposely turn off, so we can allow NULL comparison, such as null = null go -- expect 3 rows returned but only 2 returned (without null value row) select * from dbo.t where a = a    This is not about how to retrieve all rows in a table and also not about avoiding use of ANSI_NULLS.   I just want to solicit some insights why t-sql behaves like this.


Best way to verify a user for a dating app?

What is the most user friendly way to verify a user’s identity for a dating app?    We currently use Facebook login but we receive a lot of complaints that we don’t have another login method. So I’m trying to figure out what the best way is outside of Facebook to verify a user is who they say they are.


Lead Conversion customization test class is showing 0% coverage [code added]

Apex class for custom lead conversion: global class AutomatedLeadConversion { public static void Leadconvert(List inputs){ LeadStatus convertStatus= [SELECT Id, MasterLabel FROM LeadStatus WHERE IsConverted=true Limit 1]; List<Database.LeadConvert> listLeadconvert = new List<Database.LeadConvert>();     for(Input i: inputs){         Database.LeadConvert leadConvert = new Database.LeadConvert();         leadConvert.setLeadId(i.record.id);         leadConvert.setConvertedStatus(convertStatus.MasterLabel);         System.debug('Input Account Id: '+i.accountId);         System.debug('Input Contact Id: '+i.contactId);         if(i.accountId != NULL || i.accountId != ''){             leadconvert.setAccountId(i.accountId);             if(i.contactId != NULL || i.contactId != ''){                 leadconvert.setContactId(i.contactId);             }         }         leadConvert.setOwnerId(UserInfo.getUserId());         // if createOpportunity is FALSE, set DoNotCreateOpportunity flag         if(!i.createOpportunity){             leadConvert.setDoNotCreateOpportunity(TRUE);         }         listLeadConvert.add(LeadConvert);     }          if(!listLeadConvert.isEmpty()){         List<Database.LeadConvertResult> lcr = Database.Leadconvert(listLeadConvert);     }      }  Test Class: @isTest public class LeadConversionAutomation_Test { public static testmethod void TestLeadconvert (){               Lead testLead = new Lead(LastName = 'TestLName',FirstName = 'testFName',Status='Open - Not Contacted',Company = 'testCompany', Email = 'xxxxx@xxxxx.com');     test.startTest();     insert testLead;          System.assertEquals(testLead.FirstName, 'testFName');     Id leadOwner = testUser.Id;     database.LeadConvert leadConvertTest = new database.LeadConvert();     leadConvertTest.setLeadId(testLead.Id);     leadConvertTest.setDoNotCreateOpportunity(False);     leadStatus convertStatus = [SELECT Id, MasterLabel FROM LeadStatus WHERE IsConverted=true Limit 1];     leadConvertTest.setConvertedStatus(convertStatus.MasterLabel);     //leadConvertTest.setConvertedStatus('Closed - Converted');     Database.LeadConvertResult leadConvertResultTest = Database.convertLead(leadConvertTest);     System.assert(leadConvertResultTest.isSuccess());          leadConvertTest.setOpportunityName('testFName TestLName');     test.stopTest();        List<Account> accQuery = [SELECT ID, Name,OwnerId from Account where name= 'testFName TestLName'];     for(Account acc : accQuery){         system.assertEquals(acc.OwnerId, leadOwner);     }              List< Opportunity> oppQuery = [SELECT ID, Name,OwnerId from Opportunity where name= 'testFName TestLName'];     for(Opportunity opp : oppQuery){         system.assertEquals(opp.OwnerId, leadOwner);     } }     }


Suppose a box A is moving relative to a Box B, then by time dilation equation if I take 1 sec passed for an observer in A then for an observer in B will be little longer. Now if I suppose that the box B is moving while A is stationary under the same condition, then by the time dilation equation time passed in B must be shorter than A. How is this issue resolved? In the twin paradox problem my book says that it's due to acceleration, but in my opinion acceleration is relative (please correct me if I'm wrong), but here it is not the case.


How can I use Geoserver REST-API for s3 Geotiff plugin

I have created an s3 GeoTIFF bucket to show raster data via GeoServer, now I'm looking to create a front end so that user can upload GeoTIFF, I am able to do the task halfway ( i.e. uploading tiff to s3 and creating s3Geotiff store using the rest API), how can I now create layer via rest API?


I am reading a pdf which I guess it's written in LaTex, so all I need to know is that which package is this to refer figures and bib items?


Alright, quick question.  A server is running in Eastern Time. PHP program needs to make date calculations using Central time.  At the moment, I am putting this line at the very top of my script:  putenv("TZ=US/Central");   Is that the best way to go about that or is there some PHP trick I'm not aware of?  Cheers.


I made a sharefolder on vmbox.    I typed   sudo mount -t vboxsf /home/paatubo/Desktop/vmshare/   But it showed the following message as response:  mount: can't find /home/paatubo/Desktop/vmshare in /etc/fstab   How can I fix it?


How to install 32 bit Ubuntu on 64 bit machine

I am using ubuntu 12.04 LTS (64bit) in 64 bit machine. But I want to use a 32-bit operating system (either 12.04 or 8.04), I tried to do it using bootable pen drive but it failed, while I have alreay changed my OS from 12.10 (64 bit) to 12.04 (64bit) using bootable pendrive. Any kind of help will work.


verbatim environment is not working in figure caption. Checked  and  is not working.  \documentclass[11pt, double space]{article} \usepackage{amsmath} \usepackage{graphicx} \usepackage{color} \usepackage[usenames,dvipsnames]{xcolor} \usepackage[english]{babel} \usepackage[autostyle, english = american]{csquotes} \MakeOuterQuote{"} \usepackage{cprotect}  \begin{document} \begin{figure}[!h] \caption{Sample 1 \cprotect\begin{verbatim} \tau(A) = e^{\chi_0A/(KD_p(K+A))} \end{verbatim} per hour.} \label{fig:singlecell_chemo} \end{figure}  \end{document}   I have tried cprotect package also. Any help.


Getting my head round spsite vs spweb vs anything else

I am fairly new to Sharepoint development (But learning it rapidly due to some initiatives I have in place - not exams).  Anyway, one of my biggest stumbling blocks is the naming convention for objects. That is, spweb, spsite, etc.  Is there an easy way to know which is for web apps, site collections, and subsites (Assuming that is how it works)?  Thanks


while googling and reading documentation and API, I've seen multiple solutions for "combining" 2 forms into one, and thus creating a multistep form.  What I want though, not even sure if it's doable, is to "split" my (huge) user registration form into 2 steps, where the value of one field (the only one in step 1) would determine which fields should show up in step 2.  I wouldn't like to drop the entire registration form and re-create it in code or in another way and somehow re-implement the whole user registration process. Is that possible?  EDIT: to avoid misunderstandings, what I need to do is an "actual" multistep form, with submitions between steps, and not some front-end handling. That is, I want the whole thing to be javascript independant.  EDIT2: to clarify even further, the task is figure out how/if possible to pretty much split any "edit" form to 2 parts. The current question does ask about the user/edit and/or user/register form specifically, but in order to come up with a more generalized solution, one might also want to split a node/edit form in to 2 parts. That's what I am really asking about. Splitting an entity/edit form in to 2 (or more) steps.


How to handle if XPath are different for multiple sub-menu options

I have situation when i have click main menu options it will be display 10 different sub-menu options. In all sub-menu section is available 2nd sub-menu options which is available more than 20 menu options and all are dynamic.   Helmets    This above sub-menu - my xpath is - //*[@id='ui-id-11']/span   Riding Gear    This above sub-menu's if- my xpath is - //*[@id='ui-id-12']/span  How to handle all the sub-menu options to the single Xpath?


Noobie programmer here, just learning class templates for c++.  My current project requires me to make a template class that can take ints, doubles, or strings as parameters.  So far, every time I have created the implementation of the class functions, i have to make 3 of each function (one for each parameter type).  My question is, if the implementation of a particular class function is exactly the same regardless of the parameter type, is there a way to just write one implementation for it?  Thanks in advance to all replies!


I want to keep password for my important folder where my all the documents are kept so how can i keep password for it?


Let $A$ be a finite set and let $B$ be a subset of $A$ with $|A|=n$,$|B|=m$ and $0<m<n$. Count the subsets of $A$ containing $ B.$

Task is:  Let $A$ be a finite set and let $B$ be a subset of $A$ with $|A|=n$,$|B|=m$ and $0< m < n$.Find a formula for the number of subsets of $A$ that contain $B$ and prove your statement.  I assume this is $2^m$ + something. $2^m$ would count the subsets containing only elements of $B$, but i'm not sure how the sets of the form $(a_1,a_2,b_1)$ or similar would be counted. I'm having troubles with this so help would be appreciated.


Can gentle repose be used on a zombie to preserve it?

The text for  states the following for the purposes of targeting:  You touch a corpse or other remains.  Last I checked, zombies were shambling corpses, so can gentle repose work on zombies to keep them from rotting more? I'm looking for an answer to this from a player's perspective.


I'm trying to setup a minecraft server: server is on ubuntu comp, client on windows comp.  1) On my.public.ip.adress I can't play: java.net.connectException: connection refused: no further information:80.80.80.80:25565  2) On 192.168.1.40(similar server's IP) it works, can play on LAN    So problem must be port forwarding:  3) tried the 25565 but also tried with another one.  4) on router i've set:  NAT/virtualServers/add ----> 25565,25565,TCP/UDP,25565,25565,192.168.1.40 also  NAT/Port Triggering ----> 25565,25565,TPC/UDP,25565,25565.  5) at canyouseeme.org it CAN see my service at 80.80.80.80:25565, it's visible.  6) at server's config file set: online mode:true/false both don't work  7) server's logs don't show any attempt of connection, problem must be on the router side.  halp! U_U  EDIT: window's firewall desactivated. still don't work


Can ArcGIS for Desktop auto populate Date Field with current date/time when feature is created?

I am using Arc Desktop 10.3.1 in a versioned environment.  In the geodatabase for the service requests there is a field called Date Notified.  I would like this field to be auto-populated with the current date\time when a new feature is created. ( See attached picture)  I have tried setting the field to Now() (Now) (Current_Timestamp) and others and each time it tells me my syntax is incorrect.  Is this possible to do and if so what is the correct syntax to accomplish this.  Also I am aware of attribute assistant but I do not want to use that.


Is there a way to move a Trello Checklist to a different Card?

I often need to consolidate (combine) Checklists from a couple of Cards into one Card.  Any way to do this?


Lately, booting Ubuntu on my desktop has become seriously slow. We're talking two minutes. It used to take 10-20 seconds. Because of plymouth, I can't see what's going on. I would like to deactivate it, but not really uninstall it. What's the quickest way to do that? I'm using Precise, but I suspect a solution for 11.10 would work just as well.


Totally white shadeless material in Cycles?

Is there any way to make a totally white shadeless material in Blender Cycles? I need to render something as a silhouette being totally white and the background (the background isn't an image or geometry, is just non-existent) completely black. Or make the geometry totally white with not shadows or lights at all, and the background totally black.  I know that in Blender Render you can simply make a Shadeless object texture by pressing the button with the same name and reducing the reflection of the same geometry.


I have a list with this kind of values:     list[0] = "myvalue_8"    list[1] = "myvalue_9"    list[2] = "myvalue_15"   list[3] = "myvalue_12"   When I sort my list like that:  Collections.sort(myList);   The result is:     list[0] = "myvalue_12"    list[1] = "myvalue_15"    list[2] = "myvalue_8"   list[3] = "myvalue_9"   instead of:     list[0] = "myvalue_8"    list[1] = "myvalue_9"    list[2] = "myvalue_12"   list[3] = "myvalue_15"   Thank you very much


Any way to set a default view in Word 2007 or 2010 and keep among restarts?

Every time I open a document in Word 2007 or Word 2010 on a wide-screen display I get the two-page view (which is actually very annoying for me). I would like to make Word display the one-page view, preferably with a specific zoom factor, by default and hence never display the two-page view. Is there a way to achieve that in 2007 or 2010 version?  Acceptable solutions include writing macros or using a 3rd party utility.


Undefined variable when declaring with concatenation

I get an undefined variable $ar, $pr and $af.  $sql = mysqli_query($connection, "Select empno, username, password, access_level from personaltab where access_level='ADMIN'");  $cnt = mysqli_num_rows($sql); $i=0;  while ($r=mysqli_fetch_array($sql)){ $md = md5($r['username']."!@#$%^&*()_+|"); $ar .= $md.", "; $mdp = md5($r['password']."|+_)(*&^%$#@!<>?:{}[]=-"); $pr .= $mdp.", "; $af .= $r['empno'].", "; }


Is there any way to stop someone from sacrificing a Golden Urn?

My friend had a  on the board with 10 counters on it.  If I destroy it and he sacs it in response to gain the life, is there anything that can be done about that?  Like, can I put another destroy artifact on the stack to resolve before his sac resolves?


ASP.NET MVC automatically change connection string when publishing to server

I have and asp.net mvc web app  my issue is I have to change the DB connection string manually in web.config when i try to publish to dev or production server.  <!--i comment this when i publish to prod server--> <add name="HRCornerDbEntities1" connectionString="urlToDevServer" providerName="System.Data.EntityClient" />  <!--i comment this when i publish to dev server--> <add name="HRCornerDbEntities1" connectionString="urlToProdServer" providerName="System.Data.EntityClient" />   is there any approach so the web.config connectionString automatically know when i publish to dev or prod server


Will I be admitted as a visitor to Canada with a limited travel history?

I was recently rejected for visas on the grounds I do not have a travel history. I have only been able to visit one nation. Other things about me:  I am a Nigerian I am a Software Engineer for a Financial institution in My home country / Remote Mobile application Developer I have been to Benin Republic (Just one country) I recently got married, April this year, No child. I have Properties in my name inherited from my father  Is this a good fit to apply for a  for Canada?


How did Maz Kanata acquire Luke's lightsaber?

Hidden away in a storage room beneath Maz Kanata's Castle, Rey finds Luke's first / Anakin's second lightsaber      We last saw that weapon when Luke's hand was severed on cloud city, causing the hand and lightsaber to fall down the same chasm Luke later falls down.  How did it get from where we saw it last to eventually end up in Maz Kanata's Castle?


If $f$ is increasing on $[a,b] $and $f$ has the intermediate value property then $f$ is continuous at $x$ for every $x \in [a,b]$

I plan to use the fact that if $f$ is monotone and non constant  $[a,b]$, then it is continuous on $[a,b]$ if its range $R_f=\{f(x)|x \in [a,b]\}$ is the closed interval with endpoints $f(a)$ and $f(b)$. I dont know how to go from here.


Why in this code these variables aren't changed in batch?

Variable flagForTest is false and variable count is 10 but they should be: true and 100. Debugs in batch show correct values, debugs in test class or invoked in Anonymous Apex show incorrect values. How can I take values from batch to Apex class? This is my test class: @isTest(seeAllData = true) private class PatchPanelTriggerClassTest {     @isTest private static void deleteDuplicatesTest() {      PatchPanelTriggerClassTestBatch p = new PatchPanelTriggerClassTestBatch();      Test.startTest();     Database.executeBatch(p, 200);     System.debug('p.flagForTest = ' + p.flagForTest);  // false - incorrect, should be true     Test.stopTest();      System.debug('p.flagForTest = ' + p.flagForTest); // false - incorrect, should be true     System.debug('PatchPanelTriggerClassTestBatch.count= ' + p.count); // 10 - incorrect, should be 100   } }  And this is code for my batch: global with sharing class PatchPanelTriggerClassTestBatch implements Database.batchable<SObject> {  public Boolean flagForTest = false; public  Integer count = 10;   global void execute(Database.BatchableContext param1, List<Patch_Panel__c> param2) {     flagForTest = true; // why it show false in test class and Anonymous Apex?     count = 100; // why it show 10 in test class and Anonymous Apex?      for (Patch_Panel__c p : param2) {         System.debug(p.Name); // debugs are correct     }      System.debug('flagForTest in batch ' +  flagForTest); // here is true - correct     System.debug('PatchPanelTriggerClassTestBatch.count in batch  = ' + count); // 100 - correct     System.debug('Batch execute ends'); }  global void finish(Database.BatchableContext param1) {     System.debug('nothing here'); }  global Database.QueryLocator start(Database.BatchableContext param1) {     flagForTest = true;     String s = 'select Name, Total_No_of_Ports__c from Patch_Panel__c limit 160'; //       return Database.getQueryLocator(s); }  }


OP name not highlighted in new mobile view

In the new mobile view, I noticed that the OP's name is no longer highlighted in comments.    Browser is Chrome 50.0.2661.89 running on Android 6.0.0.  Not sure if this is a bug or an intentional design decision, but we can see the OP's name highlighted again?


My current rank is Nova Master (Nova 4) and I've won 6 games straight. Also was I either 1st or 2nd in my team.   After that, I tied one time, and won 4 games in a row. I still haven't ranked to Master Guardian.   What's keeping me from ranking up? I've been playing with a friend who won 4 (from start of Nova 4 to end) and ranked. Also was he below me most of the times.


I am installing one software in linux. How to setup path in .cshrc.  The directory of my software is /home/software. Now I want to set up its path in .cshrc file. Using vi .cshrc I extended the PATH with export PATH="$PATH:/home/software" but after saved it, when I typed source .cshrc it gave Bad : modifier in $ (/). Path has not set yet.  Can any one rectify my problem.


If A is infinite, does there have to exist a subset of A that is equivalent to A?

I was reading Rudin and there is an alternative definition of infinite set (the first definition is "not finite"): A is infinite if it is equivalent to one of its subset. Then I was wondering the converse: if A is infinite, does there have to exist a subset of A that is equivalent to A?


Incorporating UserInput simultaneously while running code (same command line)

Apologies if this is a basic concept, but I was wondering how to incorporate the userinput immediately after running the code. Same line, no prompt.  I tried:   #!/bin/bash   read userinput   but that results in reading the userinput in the next line over. i.e. (assuming UserInput is 2):  $./programname 2     For reference, I want to essentially type:  $./programname 2   directly into the command line, without a newline.


Displaying an auto-increment number on android

The goal of my program is pretty simple. It is to display an integer that adds two to itself every second. Since, some of the answers get updated by latest methods, I have tried many, alas, none of them work. I have tried Timer, Handler the while loop, executor etc. With timer I get Timer-0 error, Executor runs only once, and Handler wants me to declare the auto-incremented variable to be Final. I do want the number to be incremented for an hour or endlessly if possible. I am showing one of the options I have tried here.  public class stats extends AppCompatActivity {       TextView textView2;     TextView textView1;      @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_stats);         textView2 = findViewById(R.id.textView2);          final int total = 30000; // the total number //... //when you want to start the counting start the thread bellow.         new Thread(new Runnable() {             int counter = 0;             public void run() {                 while (counter < total) {                     try {                         Thread.sleep(1000);                     } catch (InterruptedException e) {                         // TODO Auto-generated catch block                         e.printStackTrace();                     }                     textView1.post(new Runnable() {                          public void run() {                             textView1 = findViewById(R.id.textView1);                             textView1.setText("" + counter);                          }                      });                     counter += 2;                 }              }          }).start();     }   and here is the error      java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.widget.TextView.post(java.lang.Runnable)' on a null object reference. Now, this error is for the line textView1.post(New runnable)   Could there be a more simpler approach to the problem?


Prove that $\prod_{i=1}^n(1+x_i)\leq \sum_{i=0}^n\frac{S^i}{i!}$, where $x_i\in\mathbb{R^+}$.

Let $x_1$, $x_2$, $\ldots$, $x_n$ be positive real numbers, and let $$S=x_1+x_2+\cdots+x_n.$$ Prove that $$(1+x_1)(1+x_2)\cdots(1+x_n)\leq 1+S+\frac{S^2}{2!}+\frac{S^3}{3!}+\cdots+\frac{S^n}{n!}.$$  My first thought is about using induction. For $n=1$, $LHS=1+x_1\leq1+S=RHS$. Now I suppose that this inequality holds true for $n=k$; that is, $$(1+x_1)(1+x_2)\cdots(1+x_k)\leq 1+S+\frac{S^2}{2!}+\frac{S^3}{3!}+\cdots +\frac{S^k}{k!}.$$ And here I am stuck. I can't really see how I can find the relation between when $n=k$ and $n=k+1$. Perhaps induction may not be the way?  Any hints or suggestions will be much appreciated. Thanks.


Can I search for Gmail contacts with "OR"

I would like to search my contacts in Gmail in the following manner: I would like to get all contacts that contain one of the words that I enter, e.g.:  "Doron OR Danny"   This should bring my contacts:   doron@gmail.com danny@hotmail.com   Is there a way to do so?


I have following document:  \documentclass[final]{book} \usepackage{lipsum} \usepackage{titlesec} \titlespacing{\chapter}{0pt}{0pt}{0pt} \begin{document} \chapter*{Chapter One} \lipsum{1-5} \end{document}   and I want to be able to modify spacing above and below chapter heading. Let's say I want to set both to ugly setting like 0pt.  As you can see from MWE, my first thought was to use titlesec package to do it. But in  there is following note:     Notes. \titlespacing does not work with either \chapter and \part unless you change its title format as well by means of   \titleformat, the simple settings, or \titleclass.   Now I am bit confused whether it is possible to manipulate chapter headings spacing with titlesec package. If yes, how? If not, what are other options to achieve that?


Zebra-effect table affects array environments

The left delimiter of matrix environment is missing when I apply the zebra-effect using \rowcolors{1}{cyan!20}{yellow!20}. How can we prevent the zebra-effect from those environments?    \documentclass{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsthm} \usepackage[table]{xcolor} \usepackage{float} \usepackage{listings} \rowcolors{1}{cyan!20}{yellow!20} \begin{document}     \begin{table}[H]         \caption{Matrice}         \centering         \begin{tabular}{|l|l|c|}             \hline             Environment & Example & Result\\             \hline             \texttt{matrix}&\lstinline|\begin{matrix} a & b\\ c & d \end{matrix}|&$ \begin{matrix} a & b\\ c & d \end{matrix} $\\             \hline             \texttt{bmatrix}&\lstinline|\begin{bmatrix} a & b\\ c & d \end{bmatrix}|&$ \begin{bmatrix} a & b\\ c & d \end{bmatrix} $\\             \hline             \texttt{Bmatrix}&\lstinline|\begin{Bmatrix} a & b\\ c & d \end{Bmatrix}|&$ \begin{Bmatrix} a & b\\ c & d \end{Bmatrix} $\\             \hline             \texttt{pmatrix}&\lstinline|\begin{pmatrix} a & b\\ c & d \end{pmatrix}|&$ \begin{pmatrix} a & b\\ c & d \end{pmatrix} $\\             \hline             \texttt{vmatrix}&\lstinline|\begin{vmatrix} a & b\\ c & d \end{vmatrix}|&$ \begin{vmatrix} a & b\\ c & d \end{vmatrix} $\\             \hline             \texttt{Vmatrix}&\lstinline|\begin{Vmatrix} a & b\\ c & d \end{Vmatrix}|&$ \begin{Vmatrix} a & b\\ c & d \end{Vmatrix} $\\             \hline         \end{tabular}     \end{table} \end{document}


Before Insert: Using __r to pull related data in a Trigger.New for loop results in nulls even though lookup relationship has Id

Situation: I am trying to build a custom validation rule via apex that will stop users from saving a charge item to a quote if the   charge item exceeds the available product quantity. The charge item   being saved is a child of (and has a lookup relationship to) a "Rate   Plan", which is the object that carries the available product quantity   field.      Object that triggers apex: zqu__QuoteCharge__c      Relationship field on QuoteCharge: zqu__ProductRatePlanCharge__c     The trigger is currently in the BEFORE INSERT context, to block users from saving new records. I pass Trigger.new as a parameter to my class/method: z_QuoteChargeTriggerHandler.customValidation(Trigger.new);    In my for() loop, I've added a bunch of System debugs since my if statement wasn't being triggered.   When I System.debug(zqu__ProductRatePlanCharge__c) it returns an Id, so I know the relationship is there.   However, when I System.debug(zqu__ProductRatePlanCharge__r.Ascent_Quantity__c) I return null. Expected: 0.     Ultimate Question: Since I cannot SOQL query this record during BEFORE INSERT (At least, I think so, since the record hasn't been   inserted yet?) How can I reference related objects using the __r   relationship before insert of a new record in the context of   Trigger.new?   Code:  public void customValidation(List<zqu__QuoteCharge__c> newList){     if (newList != null && newList.size() > 0){     List<zqu__ProductRatePlanCharge__c> rpc = new List<zqu__ProductRatePlanCharge__c>(); // create a list per other Stack suggestion         for(zqu__QuoteCharge__c quoteCharge: newList){             if(quoteCharge.Name != 'Discount'){                 rpc.add(quoteCharge.zqu__ProductRatePlanCharge__r); // add to that list?                 System.debug('MM++++ rpc: ' +rpc); // rpc returns null but shouldnt?                 System.debug('MM++++ Charge Name: ' +quoteCharge.Name);                 System.debug('MM++++ Charge Quantity: ' +quoteCharge.zqu__Quantity__c);                 System.debug('MM++++ RatePlan Link: ' +quoteCharge.zqu__ProductRatePlanCharge__c); // returns ID (Lookup, expected)                 System.debug('MM++++ RatePlan Name: ' +quoteCharge.zqu__ProductRatePlanCharge__r.Name); // returns null (expect name)                 System.debug('MM++++ Ascent Quantity: ' +quoteCharge.zqu__ProductRatePlanCharge__r.Ascent_Quantity__c); // returns null (expect: 0)                  if(quoteCharge.zqu__ProductRatePlanCharge__r.Ascent_Quantity__c == 0 || quoteCharge.zqu__ProductRatePlanCharge__r.Ascent_Quantity__c < quoteCharge.zqu__Quantity__c){                     quoteCharge.addError('The Product: ' +quoteCharge.Name + ' only has ' +quoteCharge.zqu__ProductRatePlanCharge__r.Ascent_Quantity__c + ' in stock but you are trying to sell ' +quoteCharge.zqu__Quantity__c);                 }             }         }             } }


What university affiliation should a retired member of staff use?

University retired researchers often get privileges to use Libraries etc. When a retired member uses the university library for research are they obliged to mention the university affiliation in subsequent publications?


Why does the water level go down when a dense object is moved from a boat to the bottom of the pool

Imagine you have a container ship with an extremely heavy mass on it. Why does the water level on the ship drop when the mass is placed in water?


Hope you can help me, 'cause this problem really made me sick already.  Hardware: Asus X555SJ (Dualcore Intel celeron 2166MHz, GeForce GT920 1GB, RAM 4GB) Systems: Windows 10 LTSB x64, Ubuntu 16.04.1 i386.  Here's the problem: when i try to reboot ubuntu, i see the ubuntu logo, then the screen gets black, and that's all that happens. The notebook still works and never turns off. When i'm shutting down ubuntu, i see the ubuntu logo on screen, but the screen doesn't fade out, i can observe the logo for hours and nothing happens either. In both cases I have to poweroff the notebook with a button. I've read couple of articles, tried to sudo shutdown, sudo reboot, but it didn't help. The problem still remains. Any ideas? Some people suggest to do sudo apt-get update, sudo apt-get upgrade, tried that too. Failed. All the updates/upgrades install correctly but it doesn't solve the problem. Any help will be useful!  ps. sorry if it's hard to read, may be mistakes, i'm not a native englishspeaker and writer =)


Each countable base of a topology contains countable subfamily which is also a base

From General Topology by Kelley, Chapter 1, Prob. $\textbf F$, page 57. Let the topology $\tau$ of space $X$ have a countable base. We need to show that each base contains a countable subfamily which is also a base. From definition - A base $\beta$ for topology $\tau$ in space $X$ is a family of sets s.t, $$\forall \, a\in\tau \quad a=\cup_i\, b_i \qquad b_i\in \beta.$$ Proof If $\beta$ is a base for $\tau$, then $\tau\ni a=\cup_i\, b_i$ for $b_i \in \beta$. So for each $a\in\tau$ the union of $b_i$ is in a subfamily of $\beta$. Edited Proof: Let $\beta$ be a countable base for topology $\tau$ in $X$. Then for each $a\in \tau$ $\quad a=\cup_i \{b_i\}$ for some $b_i\in \beta,\; i\in \Bbb N$. So by creating a family of sets $\cup_i\{b_i\}$ for each $a$, we have subset $\gamma$ which is a base and is made out of elements of $\beta$, hence countable.


I would like to add a crontab entry from a script as a normal user, so I use sudo to get root permissions, but fails no matter what I try.  $ sudo { crontab -u root -l; echo ' 15  9  *  *  * root /opt/script.sh'; } | crontab -u root bash: syntax error near unexpected token `}'  $ sudo echo ' 15  9  *  *  * root /opt/script.sh' >> /etc/crontab bash: /etc/crontab: Permission denied $ sudo echo ok ok


How to hide the left tool bar of content type for non admin people?

I want to hide the left tool bar of content type also revision message box, as shown in attachement, for non admin people.  I have gone through following  but it's only for particular content.  Please suggest me how to hide from all content.


Does Thor possess any powers without Mjolnir?

The inscription on Mjolnir says "Whosoever holds this hammer, if he be worthy, shall possess the power of Thor"; which is what exactly?   In other words, does Thor have any powers other than that given to him by wielding the hammer?


Show that a continuous function doesn't exist s.t. for every real $c$, there exist $exactly$ two reals $a, b$ s.t. $f(a)=f(b)=c$.

I have a hard time trying to prove this since the only proofs that come to mind are the ones based on a compact domain/closed interval (which is not the case here). Can someone help me out a bit? Thank you!


I currently have a rack mount kit for a HP ProLiant DL380 G4 server however we have a HP ProLiant DL380 G6 server, will a rack mount kit for a HP ProLiant DL380 G4 fit a HP ProLiant DL380 G6 server?  or wil i have to buy a separete mount kit for this server?


Does Unisex gender need to include in form?

We can't deny that in this world, the human can be classified as male, female or unisex.  I design a form for registration. Does it really  make senses to put all gender or just male or female only?  Let say, my form:  Choose your gender: 1-Male       |       2-Female       |        3-Unisex  Note: Does people really admit that the person was unisex?(Or become shame and preferred not to choose it?)


How do I detect if more than 2 players are online with command blocks?

In Minecraft 1.14.4, I and my friend want to make a custom map and we need to detect if there are at least 2 players online with command blocks.  Is there any way to do that?


what happens to the local users and groups when promoting a server to a domain controller?

What happens to the local users and groups when promoting a domain member to a domain controller?  I have a Windows Server 2008 that I have made to a domain controller by installing AD DS, but it was not really what I wanted to achieve with the server so I uninstalled AD DS and removed the server's role as a domain controller.  What happens to the local users and groups that existed before I installed AD DS? Will they return? Will I be able to get into the server by logging in as admin?  I really need answers to these questions, I have a little panic because it is a customer server.   Please tell me that they will come back


I'm starting to read Steven Skiena's Algorithm Design Manual, and one of the examples discusses the nearest-neighbor solution to planing a route that visits each in a set of points and ends up back where it started.  The algorithm starts at some point, travels to the nearest neighboring point, then continues, traveling at each step to the nearest unvisited point, and finally returns to the initial point.  It's not the optimal solution (far from it), but the book mentions that      ... it looks at each pair of points (pi, pj) at most twice: once when adding pi to the tour, the other when adding pj   I can't figure out the scenario in which a particular (pi, pj) pair is considered more than once, since each step only considers points that haven't been visited yet.  When you're at pi, if you haven't yet visited pj you'll consider (pi, pj). But once you've left pi, when would you ever consider another pair that includes it?  Is the author referring to the case where pi is the first point visited and pj is the last before returning to complete the circuit? If so, does that really qualify as a case where the pair of points needs any consideration, since we have no choice but to return to the starting position since all the points in the set have been visited?


Does the arc indicate the exact percentage of the max CP?

For example, let's say a Pokémon I have is 100 CP and the arc is about halfway does that mean that I can expect it to be 200 CP when maxed?


What happened to Home Depot's Stock in 1988?

I was exploring various stocks this morning on Google Finance, and I came across some strange behavior for Home Depot (HD) in 1988. For the entire year, the stock traded incredibly low, and at incredibly high volume. I've seen large spikes in volume before, but never so consistent over an entire year. Is this a Google Finance bug? If not, does anyone know what caused this?  Here's a  on Google Finance.


Confusion between power series and taylor series

Given some power series $f(x) = \sum_{n=1}^{\infty} a_n x^n$, is it generally true that $a_n = \frac{f^{(n)}}{n!}$? If so, why? We get this form when we develop a taylor series, but why is this case for every power series? Can't the $a_n$ terms be arbitrary? I'm a bit confused.


What are inexpensive and efficient ways for mundane characters to deal with swarms?

Swarms can be a big problem. In both Dungeons & Dragons 3.5 and in Pathfinder they are either immune to weapon damage or take less damage than normal from many weapons (see  and , respectively). Sure, the PCs could use torches, but that's really inefficient against a swarm with lots of Hit Dice.  I am aware that wands and scrolls of spells can be used by some mundane characters, and expensive magic items can defeat swarms, but I am more interested in methods that are available to all characters—including those who can't cast spells—and in methods that don't cost a few thousand gp.  What efficient, inexpensive methods exist for mundane characters to deal with swarms?


I am calculating RMS value of trapezoidal wave.  I found its formula like below:  and at last the RMS value formula:  u = 30degree or pi/6 --> especially pi/6 A = 12 When I calculate RMS value by this formula, I got 2 but by matlab, I got 11.314 where did I make mistake ? Here the codes inputs = -pi:0.0001:pi;  outputs = zeros(1,length(inputs)); u = pi/6; A = 12;  for i =1:length(inputs)          if inputs(i) <= u/2-pi && inputs(i)>=-pi         outputs(i) = -2*A*pi/u - 2*A*inputs(i)/u;          elseif inputs(i)>=u/2-pi && inputs(i)<(-u/2)         outputs(i) = -A;              elseif inputs(i)>=(-u/2) && inputs(i)<=(u/2)         outputs(i) = 2*A*(inputs(i))/u;          elseif inputs(i)>(u/2) && inputs(i)<=(pi-u/2)         outputs(i) = A;                   elseif inputs(i)>(pi-u/2) && inputs(i)<(pi)         outputs(i) = 2*A*(pi - inputs(i))/u;                  end      end  mean(outputs) rms(outputs) %axis([-10,10,-4*pi,4*pi]); plot(inputs,outputs);   Sorry for tag, my reputation is not enough to enter right tag.


"times" is the preposition equivalent to "multiplied by". what is the preposition equivalent to "divided by"?


How can I show that a sequence of regular polygons with n sides becomes more and more like a circle as n→∞? In which fields this concept is applied?


How did people know that Varys is a eunuch?

As the story begins, in the books or in the show, it is common knowledge that Varys is an eunuch. As he doesn't seem to deny it, readers or viewers quickly assume this is true.  However, I wonder why would he let people know his condition. Initially, there were only two people (the sorcerer and himself) that knew. So at some point, he started to tell people and let the rumor spread.  I don't think that this is something to brag about, but maybe Varys thought that letting people know would help him somehow. Did he intentionally let people know he was eunuch? Why?  His appearance might have betrayed him, but as he has some skills in disguise, he could have chosen to hide that fact. However, he seems to delight in his condition.  NOTE: This is not a dupe. The target asks how can Eunuchs be told apart. This one asks if Varys is actually an eunuch and did he disclose his identity voluntarily.


Are two continues function equal, if they have same values for rational numbers?

I'm stuck at a particular exercise in a textbook and would appreciate any help. The statement goes as follows: Let f and g be continuous on $\mathbb{R}$ to $\mathbb{R}$. Is it true that $f(x)=g(x)$ for x $\in \mathbb{R}$ if and only if $f(y)=g(y)$ for all rations numbers y in $\mathbb{R}$?


Separated icons in the windows task bar for the same software

In Windows 7, how to make two windows from the same application to be separated in the task bar ?  So when i drag one the other stay in place. For example, opening two windows in Firefox, I want to drag the first to change its position so the second stays in place.  By the way, we didn't have that behavior in Windows Xp !


Cosmological constant in General Relativity

According to my GR notes the cosmological constant can be thought of as a vacuum energy much in the same way as the ground state of the harmonic oscillator. The notes claim that the regularised energy would then be expected to have a value of about the Planck mass to the power of 4. Can anyone shed some light on how he arrived at this value?


The hand rises from the ground upon casting the spell.  Is the hand attached to the ground?  Is the hand floating?  As an action, you can cause the hand to reach for a different creature or to move to a different unoccupied space within range.   Can the hand go 30 ft upward into the air?  There are three other hand spells and they all float/fly... I made a spell caster that has mage hand out almost all the time except when I need to concentrate.  The hand has a “mind of its own” in some regard, in game, and is named and interacted with by players and NPCs.  Therefore, I wanted to use Chill Touch, Max’s Earthen Grasp, and Bigby’s Hand all as situational Magical upgrades to the named hand character.   Wondering if Max’s Grasp doesn’t allow me to send the hand into the air against flyin creatures


Let $q$ be a prime congruent to 3 mod 4, prove the quotient ring $\mathbb{Z}[i]/(q)$ is a field with $q^2$ elements  The field portion I understand. $\mathbb{Z}[i]$ is a PID and because $q$ is congruent to 3 mod 4 it is irreducible thus prime. and hence the ideal $(q)$ is prime and therefore is maximal because $\mathbb{Z}[i]$ is a pid. Thus $\mathbb{Z}[i]/(q)$ is a field  I am not totally clear on the number of elements being $q^2$. I think perhaps the division algorithm would help but I am still not totally clear on how to use it in a case like this.


I am new to JMeter and I want to learn JMeter step by step. Would you suggest me the easiest ways that how can I start a performance testing using JMeter??  Thanks,  Matvey H


pgfgantt - Gantt chart with two highlighted vertical lines with labels

"today" allows us to create one highlighted vertical line with a label. But how can I create more than one?


If a graph with $n$ vertices and $n$ edges there must a cycle?

How to prove this question? If a graph with $n$ vertices and $n$ edges it must contain a cycle?


Does $|x_k|$ $\to$ $0$ and $\sum_{k=1}^{\infty} |x_k| < \infty$ $\implies$ $\sum_{k=m+1}^{\infty} |x_k| \to 0$ as $m\to\infty$ ? If so, how would one formally prove this? Any help would be greatly appreciated.


Upgrade Ubuntu to 13.04 from 12.10 on dual-boot laptop

Is there a possibility to upgrade from 12.10 to 13.04 ? I booted from the 13.04 installation CD but I couldn't do the upgrade (no upgrade option was displayed).  I have a laptop with a Windows 7 dual-boot.  Thanks ...