java.lang.NoSuchMethodError Using Jackson Core Streaming API

I am using Jackson Core version 2.8.3, but why do I keep getting java.lang.NoSuchMethodError? I am not using any other Jackson's modules, just the core (streaming) API  Object[] result = imageGenerator.generate(lowerBound, upperBound, fileNames); MWNumericArray array = (MWNumericArray)result[0]; try (Writer writer = response.getWriter();      JsonGenerator generator = res.getJsonFactory().createGenerator(writer)) {       generator.writeStartObject();          generator.writeFieldName("dimension");          generator.writeArray(array.getDimensions(), 0, 2); // java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonGenerator.writeArray([III)V           int[] pixels = array.getIntData();          generator.writeFieldName("pixels");          generator.writeArray(pixels, 0, pixels.length);      generator.writeEndObject(); }   Stack trace  at servlet.IonImageGeneratorServlet.processRequest(IonImageGeneratorServlet.java:48) at servlet.IonImageGeneratorServlet.doGet(IonImageGeneratorServlet.java:80) at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:344) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) at org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:305) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:316) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:416) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:283) at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167) at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206) at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180) at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235) at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:526) at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137) at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591) at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571) at java.lang.Thread.run(Thread.java:745)


I want to add a diagonal separating line in a title box of a tabular, but the line doesn't appear (I draw it in red on the picture)  \begin{center}   \begin{tabular}{|l|*{2}{c|}}       \hline       \backslashbox{Mounth}{Year}&2015&2016 \\       \hline       Mai&2560&3610 \\       \hline       June&1465&2985 \\       \hline   \end{tabular} \end{center}


I and my brother have User Accounts on this machine. I want to share the Documents directory with him.  Is there a STRAIGHTFORWARD way to do it?  I am not a power user so I am looking for a way to do this using nautilus, rather than a script or a way that requires creating symlinks.  I can download an application if i have to.  Last time I wanted to do this I just copied the contents to /home for both of us to use.  Something I can do in System Settings would be appreciated


$f: D \to C$ is analytic, Denote $f = u+iv$ and if $\exists$ an   $\mathbb{R}$ differentiable function $g: R \to R$ where $u = g\circ  v$. Show that $f$ is locally constant function.   My idea is to partial differentiate $u$ wrt $x$ and $y$ respectively and get $$u_{xx} =g_{xx}(v) \cdot v_{x}^2+g_x(v) \cdot v_{xx}$$ $$u_{yy} = g_{yy}(v) \cdot v_{y}^2+g_{y}(v) \cdot v_{yy}$$  And since $f$ is analytic, we know that $u,v$ are harmonic.  I tried adding up both equations and got stuck, any ideas on how to continue?


I know that different people follow different conventions, but whenever I see $\arcsin(x)$ written as $\sin^{-1}(x)$, I find myself thinking it wrong, since $\sin^{-1}(x)$ should be $\csc(x)$, and not possibly confused with another function.  Does anyone say it's bad practice to write $\sin^{-1}(x)$ for $\arcsin(x)$?


Compute: $\lim_{x\to 0}\frac{\sqrt[m]{\cos(\alpha x)}-\sqrt[n]{\cos{(\beta x)}}}{x^2},\;m,n\in\mathbb N,\alpha,\beta\in\mathbb R$

Compute: $$\lim_{x\to 0}\frac{\sqrt[m]{\cos(\alpha  x)}-\sqrt[n]{\cos{(\beta x)}}}{x^2},\;m,n\in\mathbb N,\alpha,\beta\in\mathbb R$$   My attempt:  $$L=\lim_{x\to 0}\frac{\sqrt[m]{\cos(\alpha x)}-\sqrt[n]{\cos{(\beta x)}}}{x^2}=\lim_{x\to 0}\frac{\sqrt[m]{\cos(\alpha x)}-1+1-\sqrt[n]{\cos(\beta x)}}{x^2}\\\displaystyle=\lim_{x\to 0}\frac{\left(1+(\cos(\alpha x)-1)\right)^{\frac{1}{m}}-1-\left(\left(1+(\cos(\beta x)-1)\right)^{\frac{1}{n}}-1\right)}{x^2}$$  Transformed expression: $$-\frac{(1+(\cos(\alpha x)-1))^{\frac{1}{m}}-1}{\cos(\alpha x)-1}\cdot\frac{1-\cos(\alpha x)}{\alpha^2x^2}\alpha^2+\frac{(1+(\cos(\beta x)-1))^{\frac{1}{n}}-1}{\cos(\beta x)-1}\cdot\frac{1-\cos(\beta x)}{\beta^2x^2}\beta^2$$  I applied the standard limits from the table: $$\lim_{x\to 0}\frac{(1+x)^a-1}{x}=a\;\&\;\lim_{x\to 0}\frac{1-\cos x}{x^2}=\frac{1}{2}$$ $$L=-\frac{1}{m}\cdot\frac{1}{2}\alpha^2+\frac{1}{n}\cdot\frac{1}{2}\beta^2=\frac{m\beta^2-n\alpha^2}{2mn}$$ Is this correct?


system update, apt transaction returned result exit-failed

apt transaction returned result exit-failed    apt transaction returned result exit-failed apt transaction returned result exit-failed


Making a button OnClickListener not working?

I get an error by "btnCalculate.setOnClickListener(new View.OnClickListener()" saying      "Method invocation 'btnCalculate.setOnClickListener(new   View.OnClickListener() { @Override ...' may produce   'java.lang.NullPointerException"   What does this mean and how can I fix it?  import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView;  import org.w3c.dom.Text;  public class MainActivity extends AppCompatActivity {     TextView totalTextView;     EditText edtPercentage;     EditText edtNumber;      float percentage;     float number;     float total;      @Override     protected void onCreate(Bundle savedInstanceState)     {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);         Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);         setSupportActionBar(toolbar);          percentage = 0;         number = 0;         total = 0;          Button btnCalculate = (Button) findViewById(R.id.btnCalculate);         btnCalculate.setOnClickListener(new View.OnClickListener()         {             @Override             public void onClick(View view)             {                 percentage = Float.parseFloat(edtPercentage.getText().toString());                 number = Float.parseFloat(edtNumber.getText().toString());                 total = number * percentage/100;                 totalTextView.setText(String.valueOf(total));             }         });     }      @Override     public boolean onCreateOptionsMenu(Menu menu)     {         // Inflate the menu; this adds items to the action bar if it is present.         getMenuInflater().inflate(R.menu.menu_main, menu);         return true;     }      @Override     public boolean onOptionsItemSelected(MenuItem item)     {         // Handle action bar item clicks here. The action bar will         // automatically handle clicks on the Home/Up button, so long         // as you specify a parent activity in AndroidManifest.xml.         int id = item.getItemId();          //noinspection SimplifiableIfStatement         if (id == R.id.action_settings)         {             return true;         }          return super.onOptionsItemSelected(item);     } }


How to kill setInterval() function in JavaScript

I have this finction:   var msec = 100;    setInterval(function () {             if (childNodeDocument.readyState == "complete") {                 parent.parent.mapFrame.hideModal;                 alert("complete");                 clearInterval();             }         }, msec);   when this condition is satisfied:  childNodeDocument.readyState == "complete"   I want to stop executing setInterval().  But the way I am doing above not working.  Any idea what I am missing?


Quickly browsing of features for the active vector layer?

I often need to view on the canvas the (selected or not) features from the current active vector layer.  In this situation, I only need to view something on the canvas, without doing anything on the canvas itself (so, the active window is always the Attribute Table).  This is what I usually do:   Open the Attribute Table for the current active layer; Select the first feature; Press Ctrl+P button (i.e. the "Pan map to the selected row" button); Minimize the Attribute Table; View something on the canvas for the current feature; Go to the first step until needed.   Is there a way (a method, a shortcut) for directly browsing every feature on the canvas without the needing of going backwards and forwards with the Attribute Table? I mean, something like a "next" button?  (I may use the workaround of splitting the windows of the Attribute Table and of the canvas within the monitor, or also docking the Atrribute Table, but I would like to work on the full QGIS window).    EDIT I saw that my question was casted as a duplicate of  question. The two questions are very similiar, but I think it should be left as open for two reasons:   the related duplicated question doesn't have an accepted answer; my question is slightly different because I'm looking for the possibility of displaying only the selected features (and the @Joseph's , that I marked as accepted, answers well to my request).


I'm trying to add an existing group to my user, but it says -bash: usermod: command not found. When I locate usermod nothing comes up. man usermod returns nothing either. I thought usermod was built in Macs? I'm using Mac OS X + Terminal.


Why is The Wall the only democracy in an otherwise Westerosi feudal monarchy? (Minor S05E02 & Book 3 spoilers)

From S05E02 and A Storm of Swords:     In this episode, a new Lord Commander of The Night's Watch is appointed after the death of Jeor Mormont. But to my surprise, the appointment takes place not from the direct orders of the King (Tommen or Stannis, your pick) but through a truly democratic process. Yes, elections, where anybody can stand for the post & only the members of the Night's Watch gets to vote.      So, the question, why is the Night's Watch the only democracy in an otherwise feudal Westeros? Army is the last place you would expect to find a true democracy.    Is it just a happenstance because     Stannis Baratheon has claimed the Wall   or is the practice followed through the ages?


Would it be proper to include (e.g.) after an example?

Usually e.g. is used after a general statement to give an example:     Use some sort of cloth to clean the table (e.g. a dish rag or kitchen towel).   If the general statement is implied from the example, we can remove it completely and include something like (for example):     To clean the table, use a dish rag or kitchen towel (for example).   My Question:  Would it be appropriate to use e.g. here instead?     To clean the table, use a dish rag or kitchen towel (e.g.).


I am attempting to use the Grouping Analysis tool in the Spatial Statistics (in ArcGIS 10.2)  to group state high schools (points) together based on enrollment and location.  Is there a way to make each cluster the same size?  I am able to set how many groups I want, but I cannot seem to make each the same size.


Firefox 37.0.2 not opening (removing firefox did not help) runing ubuntu 14.04 LTS

Opening firefox through the desktop icon will show the loading cursor, but a few seconds later it will stop loading and never open a firefox window. It is possible to load firefox from the terminal, but only in safe mode. I get the following error when attempting to load in terminal:  (process:26701): GLib-CRITICAL **:g_slice_set_config: assertion 'sys_page_size== 0' failed   I have found several pages suggesting the following will fix this problem:  chown -hR YOUR_USER .gnome2/  chown -hR YOUR_USER .gnome2_private/   however, this did not help, I got the following error:  chown: cannot access '.gnome2/': No such file or directory  chown: cannot access '.gnome2/private': No such file or directory   Any suggestions? I have removed firefox and re-installed in terminal, but the same error still occurs.


How to merge multiple returned lists into one

The code below result to list of lists: [[1, 2, 3], [4, 5, 6]] How to modify it so the result is a simple list:`[1,2,3,4,5,6]?  def functA():     return [1,2,3] def functB():     return [4,5,6] def functC():     return None  functs=[functA, functB, functC]  result=[a for a in [funct() for funct in functs] if a]  print result


Do induction motor stators and rotors have star or delta winding configurations?

For induction motors, which type of connection, star or delta, is used in the stator winding and the rotor winding and why?


What explains the higher level of technology in the alternate time line of Star Trek, specifically the technology of Yorktown Station?

The technology of Yorktown Station is much farther advanced than that of DS-9, which in turn was further advanced than that of the space station in The Trouble with Tribbles.  The difference -- Yorktown Station is in the alternate time-line.    What in-universe explanation accounts for the vastly advanced technology of the alternate universe?  The out-of-universe explanation -- that no one is going to see a new movie without a lot of new gee-whiz technology -- is pretty obvious. But the rationale?


Should I activate the additional driver: Processor microcode firmware for Intel CPUs for intel-microcode

I have recently noticed that there is an additional driver called Unknown: Unknown here which was not there before:    I have already read , and understand why it is there, but my question is, should I activate it? Will this make a difference? Or should I just leave it as it is as it sounds rather useful?    OS Information:  Description:    Ubuntu 15.04 Release:    15.04


Preventing SQL Injection in Login Page in PHP

I have a login page (login.php) and below is the code I am trying to use to authenticate the user by using mysqli_prepare:  if(!$_POST["username"] || !$_POST["password"]) {     echo "Username and Password fields are mandatory."; } else {     $unsafe_username = $_POST["username"];     $unsafe_password = md5($_POST["password"]);     $query=mysqli_prepare($con, "select user_id from users where user_name= ? and password= ? ");     $query->bind_param("ss", $unsafe_username, $unsafe_password);     $query->execute();     $data = $query->get_result();      if(is_array($data))     {        echo "Login successful";     }     else     {        echo "Login failed";     } }   Below is the code used for making MYSQL connection:  function connect_database() {     $con = mysqli_connect("servername", "username", "", "dbname");     if (!$con)      {         $con = "";         echo("Database connection failed: " . mysqli_connect_error());     }     return $con; }   By using mysqli_prepare, I am getting following warning and error messages:  Warning: mysqli_prepare() expects exactly 2 parameters, 1 given  Fatal error: Call to a member function bindParam() on null   I asked the similar question two days ago, but did not get any complete solution. ().   Please help me in resolving the problem. Is it the best approach to prevent my DB from SQL Injection?


Upgrading ubuntu 16.04 LTS to 18.04, no upgrade notice!

How come I don't get any upgrade notice on my ubuntu 16.04 LTS for an upgrade to 18.04? Shouldn't I normally receive an upgrade notice on my system? On the ubuntu wiki it says: Upgrades from 16.04 LTS will not be enabled until a few days after 18.04.1's release expected in early August. It's been more than two weeks since the release of 18.04.1! Should I wait for a upgrade notification or I can proceed and upgrade? Thanks


How can I delete files in terminal fluently?

For example, I do  cd Music dir   and get  123456789.mp3 qweerkrtrkgljdjfkdjfdkf.mp3 a.mp3 b.mp3 blabla.mp3   how do I delete, say, files qweerkrtrkgljdjfkdjfdkf.mp3 and blabla.mp3 with least effort?  UPD: Key idea is that file names can be long so I actually dont want to type them.


Using XeTeX and fontspec, I use the Liberation font family in of my documents. Unfortunately those fonts (esp. Liberation Serif) do not natively support small caps.  Is there a way to enable fake small caps in fontspec?


C++ Error : undefined reference to `Vector2::add(int)'

I'm new to C++ I have been attempting to write a linked list below you can see I have linkedList header and implement and a main file I'm using MinGW-W64 as compiler in my linkedList.h I have template struct Node and a template class Vector2 // linkedList.h template <class T> struct Node {     T value;     Node *next; };  template <class T> class Vector2 { private:     Node<T> root;  public:     void add(T value);     ~Vector2(); };  in my linkedList.cpp I implemented void Vector2<T>::add(T value); and Vector2<T>::~Vector2(); // linkedList.cpp #include <iostream> #include "linkedList.h"  using namespace std;  template <class T> void Vector2<T>::add(T value) {     Node<T> *newNode = new Node<T>;     newNode->value = value;      if (root == nullptr)     {         newNode->value = nullptr;         root = newNode;         return;     }      newNode->next = root;     root = newNode; }  template <class T> Vector2<T>::~Vector2() { }  in main I created a Vector2 vec; // main.cpp #include <iostream> #include "linkedList.h"  using namespace std;  int main() {     Vector2<int> vec;     vec.add(12);     return 0; }  when I compile my code I get this errors $> make g++ -g -Wall -o build\main main.cpp linkedList.cpp && echo Executing build\main && build\main.exe \AppData\Local\Temp\ccb8gQgf.o: In function `main': \Desktop\github\c\templates/main.cpp:9: undefined reference to `Vector2<int>::add(int)' \Desktop\github\c\templates/main.cpp:10: undefined reference to `Vector2<int>::add(int)' \Desktop\github\c\templates/main.cpp:11: undefined reference to `Vector2<int>::add(int)' \Desktop\github\c\templates/main.cpp:8: undefined reference to `Vector2<int>::~Vector2()' \Desktop\github\c\templates/main.cpp:8: undefined reference to `Vector2<int>::~Vector2()' collect2.exe: error: ld returned 1 exit status make: *** [makefile:13: main] Error 1


I'm taking a single-variable calculus course and asked to calculate $$\sum_{k=0}^\infty (-1)^k \frac{\pi^{2k}}{(2k)!}$$ So the $k=0$ term looks like $$(-1)^0 \frac{\pi^{2(0)}}{(2(0)!)}=\frac{1}{0!}$$ but $\frac{1}{0!}$ is not a number, so it appears I've made a mistake in my calculation.


Differential equation $y''=\frac{y'}{2\sqrt y}$

I'm struggling in solving this problem. We are given the differential equation $\displaystyle y''=\dfrac{y'}{2\sqrt{y}}$.   We are asked to prove:  a) Any nonconstant solution is strictly monotone.  b) Let's consider the Cauchy Problem  $$\begin{cases}y''&=&\dfrac{y'}{2\sqrt y}\\[6pt] y(0)&=&u\\[6pt] y'(0)&=&v.\end{cases}$$  Find all points $(u,v)\in\mathbb R_+\times \mathbb R$ such that the maximal solution is nonconstant and defined on the whole real line. For such points $(u,v)$ compute the limits of the solution as $t\to\pm\infty$.  Thanks in advance to anybody who will reply.  -Mario-


How do you not smash the laboratory wall?

Is it possible to not smash the laboratory wall for the achievement Another Way In?      Another Way In   Start a game without breaking the laboratory wall.


If an observer were to move toward the moon at a significant fraction of the speed of light, will its cross section appear a different size?

I've read that length contraction occurs only in the direction of motion, but I'm confused on how to interpret this question. If I travel toward the moon at a significant fraction of $c$ then distance between the moon and I should contract, and I should see the moon as a larger circular cross section, but If I do a similar experiment in MIT game lab's simulator I see that the mushrooms which I approach at a significant fraction of the speed of light appear to get smaller, not larger which makes no sense to me. My professor suggested ignoring the simulation's results which may be largely a related to a resulted to a result in GR and to just focus on understanding this one situation.  What will happen to the size of the circular cross section of the moon I see as I move towards it at a significant fraction of the speed of light and why?


Proof of $Y=F_X(X)$ being uniformly distributed on $[0,1]$ for arbitrary continuous $F_X$

This question is related to  , with the difference being that $F_X$ (the probability distribution function of random variable $X$) is an arbitrary continuous distribution function, not necessarily strictly increasing.  I think the proof is similar, but we have to take care of the possibility that $F_X$ may not be $1$-to-$1$.  I list my attempt below, and would appreciate it if someone can confirm if it's correct, and, in particular, if it can be improved.  Thanks a lot!  The goal is to show $F_Y(y)=y$ for any $y \in [0,1]$.  To do so, note that $F_Y(y)\triangleq\mathbb P(\{Y\le y\})$, and  $\{Y\le y\}=\{F_X(X)\le y\}=\{X\in F_X^{-1}([0, y])\}.$  Since $F_X$ is continuous, $F_X^{-1}([0,y])$ must be closed.  So it follows that   $\sup F_X^{-1}([0, y])=\max F_X^{-1}([0, y])=\max F_X^{-1}(\{y\}),$ which let's denote by $a$.    Therefore, $F_Y(y)=\mathbb P(\{X\le a\})=F_X(a)=y.\quad$  (Q.E.D.)


how to handle multiple regression with indepndent variables are categorical as well as continous?

I have dependent variable ( Y) is in continuous.  My independent variables ( X1 , X2 , X3, X4,  X5, X6, X7, X8) are in continuous.  And independent variables ( X9 , X10 ) are categorical variables.   In X9, there have 3 levels ( TV , News Paper , Radio )  In X10 there have 2 levels ( High Addicted , Low Addicted).  So, How can I work with this kind of data in multiple regression analysis?


Choice function without AC in special case

I read the Jech, Set theory, and saw following proposition.  (☆) If S is a finite family of nonempty sets, existence of choice function of S can be proved without axiom of choice.  I tried to prove the proposition using axioms in ZF... But how can I pick the element of X in S explicitly despite I don't know information about X in S?  Edit: There seems to be confusions on what exactly I am asking.  I think ZFC Axioms instruct when we call a object set.(If object is not set, the object is called urelement or proper class) So I think we must show that nonemptyset has a element that is set. For example, if S is singleton, US is element of S and is set by axiom of union. That is, we can find a element of S that is set. Then using other axioms in ZF, we can construct a set we call choice function of S.  But, If S has two elements, how I can know the element of S is set??


How do they film an actor talking to themselves?

In some TV shows and movies, an actor plays more than one character in one scene. How do they film the actor as one character talking to another character than they play?  I can understand scenes where the characters are "independent" of each other; they talk but don't physically do anything with each other. However, what I can't understand is when the character does something to the other character e.g. when Jack Sparrow (Captain)   Does anyone know how they film scenes like this?


How do I explain current and voltage to a lay man?

A man asked me this question in suburban train when I told him that I am an electrical engineer. Of course I replied him that current is the flow of electrons and in order for the current to flow there should be a potential difference between them. But the man didn't know what electron or potential difference was either.


Binary Tree implementation using Comparable in Java

I am trying to implement a Binary Tree  class.Here's the insert method.When I compile it I get an error as "uses unchecked or unsafe operations.Recompile with -Xlint:unchecked for details". Can some on please tell me how I can correct this?  public class BinaryNode{     Comparable element;     BinaryNode left;     BinaryNode right;     BinaryNode(Comparable theElement,BinaryNode lt,BinaryNode rt){         element=theElement;         left=lt;         right=rt;            }     BinaryNode(Comparable theElement){         this(theElement,null,null);     }  }   public class BinaryTr  {     private BinaryNode root;     BinaryTr(){         root=null;     }     public void insert(Comparable x){         root=insert(root,x);     }     public BinaryNode insert(BinaryNode current,Comparable x){         if (current==null)             current=new BinaryNode(x);         else{             if(current.element.compareTo(x)>0)                 current.left=insert(current.left,x);         else if (current.element.compareTo(x)<0)             current.right=insert(current.right,x);         else{             System.out.println("Duplicates not allowed");         }     }     return current; }  public static void main (String args[]){     BinaryTr t=new BinaryTr();     t.insert(5);             t.insert(4);             t.insert(5);     } }


Raising a decimal to a power of decimal?

The .net framework provides in the Math class a method for powering double. But by precision requirement I need to raise a decimal to a decimal power [ Pow(decimal a, decimal b) ]. Does the framework have such a function? Does anyone know of a library with this kind of function?


By integration by parts and the substitution $x = \sin t$ we can easily calculate the integral $\int_{0}^{1} \ln (x+ \sqrt{1-x^2})dx$ which equals to $\sqrt{2} \ln (\sqrt{2} +1) -1.$ I’ve tried to use the same substitution $x = \sin t$ to calculate the integral $ \int_{0}^{1} \frac {\ln (x+ \sqrt{1-x^2})}{x}dx,$ which becomes $$ \int_{0}^{\frac {\pi}{2}} \frac {\ln \sin (t+ \frac {\pi}{4})}{\sin t}dt$$ It seems difficult to solve the particular integral. Any help?


How do I report a bug related to Stack Exchange?

Does Stack Exchange contain any edit suggestion or bug submission system, or such type of discussion forum to inform SO or its administrators about suggestions and bug reports that relate to SO itself?


Is there a rule for the placement of the subject to the second sentence? I mean  , but subject also ...  or  , but also subject ...


What's the formula for the Benjamini-Hochberg adjusted p-value?

I understand the procedure and what it controls. So what's the formula for the adjusted p-value in the BH procedure for multiple comparisons?    Just now I realized the original BH didn't produce adjusted p-values, only adjusted the (non) rejection condition: . Gordon Smyth introduced adjusted BH p-values in 2002 anyways, so the question still applies. It's implemented in R as p.adjust with method BH.


One of our stored procedure was using Cursor to update rows. Total rows to be updated varies from 1000 to 2000. In our scenario, this stored procedure was taking 50 minutes to complete the update.  I replaced the Cursor and used Table Variable. At any point of time, the Table Variable will also contain 1000 to 3000 rows. When executed the update finished in 2 minutes.  Server is Windows Server 2012 64-bit with 64GB RAM. SQL Server 2008  I want to know whether to replace Table Variable with #TempTable? In the scenario mentioned above, Table Variable is working fine.   I checked few posts on Table Variable. One post says SQL Server decides when to keep Table Variable in memory and when to move it to TempDB.  For the above configuration mentioned, when will Table Variable be moved to TempDB?


Resemble popular messenger with LaTeX macros

I once saw a latex template, which you could use to create a Chat-Like document which has an appearance similar to current mobile chat applications (i.e. iMessage or Whatsapp).  I am of course looking for a static document compiled by latexor pdflatex and not a dynamic chat program.  I remember that I saw something similar done in LaTeX already, but I was not able to find it again.  I can imagine, that this has been done with tikz before.  Example images:


I have a US B-1 visa and am planning to transit via Seattle to go to India from Canada

I have a valid US B-1 visa, so just wanted to check if I can transit via Seattle.  And if my connection flight is only 1.30 hours, will I be still able to  make it?


Short story about people who wear things to hinder their ability

I remember reading a short story about a dystopia where everything is controlled. It was on a reading list along with The Veldt, Fahrenheit 451, and 1984. I can't recall a lot about it except a few scenes. A family is "programmed" and people wear things to hinder their physical/intellectual capability. The family's son rebels against this system and is killed.


Formal proof that $N$ is the smallest infinite set

I wish to write a formal proof of the following statement: For any infinite set $X$, there exists an injection $f:\mathbb{N}\to X$.  I'd like the proof to explicitly use the full axiom of choice (for every family of sets $\{S_\alpha\}$ there exists a family of elements $\{x_\alpha\}$ such that each $x_\alpha\in S_\alpha$). When this was asked , none of the answers were explicit about where choice is invoked.  Motivation: I'm TAing a course in discrete math and was embarrassed to find that I can't prove this homework question.


We have a corroded main water pipe that connects to a valve that goes into the house. The corroded pipe rises from the pave driveway and ends in a valve at the top.  Here's a picture:   The building inspector said this could be caused by improper grounding? Is this a cause?  What are some other causes?


Prove this statement: If $m$ and $n$ are relatively prime, then for any $x$ that is an integer, there are integers such that $x = ma + nb$

So I know when two integers are relatively prime, their greatest common divisor is $1$ and it can we be written as a linear combination as: $1 = am + nb.$ But how would I prove the existence of these integers a and b?


What is the best way to sniff network packets using Python?  I've heard from several places that the best module for this is a module called Scapy, unfortunately, it makes python.exe crash on my system. I would assume that it's just a problem with how I installed it, except that many other people have told me that it doesn't work particularly well on Windows. (If anyone is interested, I'm running Windows Vista, which might affect things).  Does anyone know of a better solution?  UPD:  After reading the answer telling me to install PyPcap, I messed around with it a bit and found out that Scapy, which I had tried using, was telling me to install PyPcap as well, except that it's a modified version for it's use. It was this modified PyPcap that was causing the problem, apparently, since the example in the answer also caused a hang.  I installed the original version of PyPcap (from Google's site), and Scapy started working fine (I didn't try many things, but at least it didn't crash as soon as I started sniffing). I sent a new defect ticket to the Scapy developers: , hope they can do something with it.  Anyways, just thought I'd let y'all know.


Creating a share of a random shared secret

I am interested to know if there is a solution to the following scenario: Assuming we have $n$ party members, is there a scheme that at the end of it, every party member $i$, holds a shamir's threshold share, $S_i$, of the secret $a$ where $k$ of $n$ can reconstruct $a$ using the shamir's threshold reconstruction and none of them individually knows the secret itself.


Does sourcing a script in subshells still allow the commands in the script to access the state of the original shell?

I have a script, which access some state of a shell  $ cat my.sh  #! /bin/bash jobs dirs   The state of a bash shell is:  $ dirs  /tmp/test/tt ~/program_files   $ jobs [1]+  Running                 sleep 100 &   I run sourcing the script in subshells of process substitution, command expansion, pipeline and background.  Since they are run in subshells not in the original shell, I expect them not to output anything.  But in  process substitution and command expansion, why do both jobs and dirs output the same as if they were run in the original shell?  $ cat <( source ./my.sh ) [1]+  Running                 sleep 100 & /tmp/test/tt ~/program_files   $ echo $(source ./my.sh) [1]+ Running sleep 100 & /tmp/test/tt ~/program_files    But in  pipeline and background, why does only dirs output the same as if it were run in the original shell, while   jobs doesn't?  $ source ./my.sh | cat /tmp/test/tt ~/program_files   $ source ./my.sh & [2] 32229 /tmp/test/tt ~/program_files  [2]+  Done                    source ./my.sh   Thanks.  Related


An app on the play store promises to TRIM without root access but I highly doubt if it even works

My phone is new so I can't root it because I don't wanna void my warranty just yet and trimming my phone would also not make a significant difference. Since most other apps on the Play Store promise to run TRIM only with root access, I don't think it's possible for this app to do so without root but if it can that's the best thing I can get. Can someone please confirm if this app actually works?  Link to the app:


What is the best strategy for Coppersmith in Dominion?

I tend to think of the Coppersmith card in Dominion: Intrigue as pretty much a dud of a card. Anybody have any useful tips as to how to play this card properly?


Profile name and icon are broken, but only on Coffee.SE

My profile name and icon are fine on a half-dozen sites in the SE network, but broken on Coffee.SE. There, the user name appears as a25bedc5-3d09-41b8-82fb-ea6c353d75ae. (True Names?)    This bug is new. That is, the profile name and picture were fine for 6 months, and only broken recently.  That should rule out the problem being the same bug as  although the visible symptom looks the same.  I fixed it via manual profile edit.


Unable to insert ContentVersion record in future method in apex

In a partner Community, I am inserting a ContentVersion record before doing future callout and also inserting ContentVersion record within future callout . I am able to insert ContentVersion record before future callout successfully, but within Fututre callout It is giving error - System.DmlException: Insert failed. First exception on row 0; first error: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, You do not have the level of access necessary to perform the operation you requested. Please contact the owner of the record or your administrator if access is necessary.: [NetworkId] public class myclass { .... insert ContentVersion1; // Able to insert record callout(); }  @future(callout = true) callout(){ ... insert ContentVersion2; // Gives error *System.DmlException: Insert failed. First exception on row 0; first error: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, You do not have the level of access necessary to perform the operation you requested. Please contact the owner of the record or your administrator if access is necessary.: [NetworkId]* }  Not sure why ContentVersion version record is not inserted in future callout.


Disable Hyphenation by adjusting word spacing

I drafted a thesis in MS Word, using block sentence formatting. It looks very nice. Of course, for the final version, I'm going to use Latex, however when transitioning from MS Word to tex, pdftex (texlive) chose to hyphenate pretty much each word at the end of a line.. and complain alot where it couldn't.  Word manages to get along without hyphenation by adjusting the word spacing on each individual line, which imo looks better. Is there a way to achieve this in Latex?  EDIT: I'm not looking for a solution to "fix" hyphenation for words that would otherwise cause \hbox problems, I want to avoid hypenation alltogether by giving pdftex more freedom to add space between words.  EDIT2: Ok, people get a bit focused on my slight exaggeration of how often Latex/pdftex uses hyphenation. Please focus on the actual question: Can I disable hypenation by forcing latex/pdftex to adjust word spacing to fit the words, respecting hbox bounds. This way and not the way that is suggested in the "possible duplicates", which i read before posting this.


What is this quadruple triangle logic symbol?

Or maybe it is two mirrored triangles... and an 'invertor' dot?   This is from a diagram in the , page 76 bottom left.  Note that  shows a similar device. In that question however the symbols only have two ports and no dot/circle.


How can I retrieve data within my widget

I have a Widget which I am creating but my quesiton is how do I access my custom table which I created via my plugin. I am attempting to fill the dropdown from the table called tfp which contains the column liters which I wish to popluate the values into the drop down   class my_plugin extends WP_Widget {  // constructor function my_plugin() {         parent::WP_Widget(false, $name = __('Thomsons Fuels Widget', 'wp_widget_plugin') );  }  // widget form creation function form($instance) {  //Check values if( $instance) {  $title = esc_attr($instance['title']);  $dropdown= esc_attr($instance['dropdown']);  $textarea = $instance['textarea'];  } else {  $title = '';  $textarea = ''; } ?>   <p> <label for="<?php echo $this->get_field_id('dropdown'); ?>"> <?php _e('Liters',   'wp_widget_plugin'); ?></label> <select> <option value="volvo">Volvo</option> </select>  </p>   How I created the table in the plugin   global $wpdb; global $custom_table_example_db_version;  $table_name = $wpdb->prefix . 'tfp'; // do not forget about tables prefix  // sql to create your table // NOTICE that: // 1. each field MUST be in separate line // 2. There must be two spaces between PRIMARY KEY and its name //    Like this: PRIMARY KEY[space][space](id) // otherwise dbDelta will not work $sql = "CREATE TABLE " . $table_name . " (   id int(11) NOT NULL AUTO_INCREMENT,   liters VARCHAR(100) NOT NULL,   price VARCHAR(100) NOT NULL,      postcodearea varchar(20) NULL,         dft varchar(20) NULL,   PRIMARY KEY  (id) );";  // we do not execute sql directly // we are calling dbDelta which cant migrate database require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); dbDelta($sql);  // save current database version for later use (on upgrade) add_option('custom_table_example_db_version', $custom_table_example_db_version);


I have this code:  function myFunction(){     alert("Hello"); }   And this other code:  var myFunction = function(){  }   What is the difference?


How can a user have a different reputation on a per-site meta than they have on the main site?

A certain user (I won't mention them here) has 4 reputation on a Stack Exchange site's per-site meta and 1 reputation on the site itself. The user is not banned or "temporarily suspended" on either the main site or the meta.  How is this possible?


My sql error: you can't specify target table for update in from clause

I'm getting this error but I can not figure out where I can have it done.  DELETE E.*   FROM Esordio E NATURAL JOIN (                               SELECT *                               FROM Esordio E2                               WHERE E2.Patologia = 'Otite'                                     AND E2.DataGuarigione IS NOT NULL                                     AND YEAR(E2.DataGuarigione) < YEAR(CURRENT_DATE) - 5                                     AND EXISTS                                              (                                                SELECT *                                               FROM Esordio E3                                               WHERE E3.Paziente = E2.Paziente                                               AND E3.Patologia = E2.Patologia                                               AND YEAR(E3.DataEsordio)>YEAR(CURRENT_DATE)-5                                              )                                   ) AS Target;


How to indent first paragraph after \section using Texstudio?

I am using Texstudio to compose my assignment. However, I have a problem with it. After I used \section*{}, and the my first paragraph in section is indented to the very left. I want the paragraph starts with two space. How can I solve this problem?


Consider the following   TEXT TEXT TEXT TEXT Figure~\ref{fig:foo} TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT  \begin{figure} \centering \includegraphics[width=\textwidth]{foo} \caption{This is foo.} \label{fig:foo} \end{figure}   Now I would like to put a frame around the text and the figure. Ofcourse one could remove the figure-environment and wrap everything with the fbox-environment but I need to keep the caption and label (the latter for dynamic referencing):  \fbox{  TEXT TEXT TEXT TEXT Figure~1 TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT      \includegraphics[width=\textwidth]{foo}  }   I tried the following code but it seems not work:  \fbox{  \parbox[c]{\textwidth}{ TEXT TEXT TEXT TEXT Figure~\ref{fig:foo} TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT }  \begin{figure} \centering \includegraphics[width=\textwidth]{foo} \caption{This is foo.} \label{fig:foo} \end{figure}  }


I just found out that $$\sum _{i=0}^n\:i^2= \frac{n\left(n+1\right)\left(2n+1\right)}{6}$$ and  $$\sum _{i=0}^n\:i^3 = \frac{n^2\left(n+1\right)^2}{4}$$ but I don't understand how did we get the expression $\frac{n\left(n+1\right)\left(2n+1\right)}{6}$ from this $\sum _{i=0}^n\:i^2$.  Can you help me with this.  Thank you in advance.


I am trying to extract an SFX file under Linux Mint 15 (64 bit) but it's not working. I've done chmod +x on the file and tried to run it like a script with no luck (it gives me an error that there's no such file or directory. What's interesting is that this worked for me when I was running Linux Mint 14 (64 bit).  that mentions glibc support and how newer distributions have removed 32 bit glibc binaries but I'm not quite sure if this is accurate in my case since I'm not running RHEL.  EDIT: I forgot to mention that I tried the solution posted on that article but it did not fix my problem.  I've also tried using 7z, 7za, unzip, and unzipsfx with no success. unzipsfx gives me the error "unzipsfx:  cannot find myself! [unzipsfx]" which I find rather strange.  A quick note: The sfx relies on six other archives in the rar format. I'm not dealing with zip, 7z, or any other format like that.  Am I doing something wrong? Something must have changed between distributions since extracting worked fine for me before...


I found something really strange when using newcommand in latex. I wrap two pieces of text that are often show up in my article, which are, \newcommand{\etal}{et al.} \newcommand{\stra}{$\mathcal{S}_A$}  where the first is the abbreviation and the other is a symbol. However, when I use these two macro definion and type the following Sentence 1: Liu \etal \cite{liu2019} did something. Sentence 2: Liu \etal did somthing. Sentence 3: Liu add \stra to this process.  the results are Sentence 1: Liu et al. [1] did something. Sentence 2: Liu et al.did something. Sentence 3: Liu add $\mathcal{S}_A$to this process. As you can tell, the blank after commands in the last two sentences are lost, but the space in the first sentence still exists. I am wondering how can I solve this problem. BTW, It is not a good practice to put an extra space in the command.


Show that $\arctan\frac{1}{2}+\arctan\frac{1}{3}=\frac{\pi}{4}$.   Attempt:  I've tried proving it but it's not equating to $\frac{\pi}{4}$. Please someone should help try to prove it. Is anything wrong with the equation? If there is, please let me know.


I read this phrase: "I thought your essay about Internet WAS very accurate"  I wonder why the past tense is used in here! Doesn't it have to be: "I thought your essay about Internet IS very accurate"?   Thanks all in advance.


How to remove or hide the GRUB boot menu?

Recently I decided to use only Ubuntu and there is no Windows in my laptop. When I turn on my laptop the GRUB menu is showing but I don't need to choose OS anymore.   How can I remove or hide this? And after removing this how could I access to recovery mode?


Interference between strokeopacity and fillopacity

I have a few circles in a drawing, and want to highlight some of them.  \begin{tikzpicture}  \coordinate (A1) at (0,0); \coordinate (A2) at (1,0); \coordinate (A3) at (1,1); \coordinate (B)  at (1,0);  \draw (A1) -- (A2); \draw (A1) -- (A3); \draw (B)  -- (A3);  \foreach \point in {A1,A2,A3,B} {    \fill [black,draw=white](\point) circle (3pt); }  \pgfsetstrokeopacity{.3} \pgfsetfillopacity{.3} \fill [red,draw,rounded corners,line width=9pt] (A1) -- (A2) -- (A3) -- cycle; \pgfsetstrokeopacity{1} \pgfsetfillopacity{1} \end{tikzpicture}   I would like the whole area surrounding the A points to be of the same color, but the strokeopaticy and the fillopacity interfere.  Is there some ay I can prevent this?  Note: in my actuall use scenario, there are too many coordinates for manual adjusting to be an option (otherwise I would just do with a fill with rounded corners, with points calculated manually).


I am using the following latex code to highlight some row of a table useing rowcolor command. However the table borders in those rows are overwritten by the row color. Why is it happening? How can I solve this?  Thanks  code  %% Compile and read me! \documentclass[a4paper,12pt]{article} \usepackage[table]{xcolor} \definecolor{gray}{cmyk}{0,0,0,0.17} \begin{table}[h] \centering \begin{tabular}{| c | c | c | c |} \hline User & Action & Time \\ \hline \rowcolor{gray} $A$ & $a_{1}$ & 1 \\ \hline \rowcolor{gray} $B$ & $a_{1}$ & 2 \\ \hline \rowcolor{gray} $A$ & $a_{2}$ & 2 \\ \hline \rowcolor{gray} $C$ & $a_{1}$ & 4 \\ \hline \rowcolor{gray} $B$ & $a_{2}$ & 4 \\ \hline $C$ & $a_{2}$ & 5 \\ \hline $D$ & $a_{2}$ & 8 \\ \hline $E$ & $a_{1}$ & 8 \\ \hline \end{tabular} \caption{Action Log} \end{table} \end{document}   Output:   Using midrule


In Shane Koyzcan’s poem “Instructions for a Bad Day,” the author expresses an optimistic attitude towards life where he encourages us to forget the burden of the past, to live in the present with hope, to carry on our lives with courage, and to learn to express our lives.   Is where used properly in this sentence?  Do you find anything in this sentence awkward?


Background does not fill on div (only behind txt), don't want to use css3 (just plain old css)

My background does not fill how I wan't it: it only fills behind the txt, not the whole height of the div.. Got two divs inline with a wrapper around it. The right div has a background through CSS. But it does not fill..  Its plain simple but i'm stuck and ashamed (or to tired and in a hurry) -grrr- Got it working with css3, but its to new for some of my "visitors/clients", etc.  Here it is:

&nbsp;&nbsp;TEST TEST

         Lorem Ipsum Test Txt - Where is my background?


This made me mad (Eclipse Kepler)    public class FastReader  { public static void main (String[] args) {     FastReader a = new FastReader("hi"); } public FastReader(int a) {  } public FastReader(String b) {     FastReader(10); } }   And I get this error:    Exception in thread "main" java.lang.Error: Unresolved compilation problem:  The method FastReader(int) is undefined for the type FastReader     at FastReader.<init>(FastReader.java:14) at FastReader.main(FastReader.java:6)   It almost made me mad! help me get rid of this! Thank you!


I recently found this series and the result: $$   \sum_{k=1}^{\infty}{\frac{((k-1)!)^2}{(2k)!}} = \frac{\pi^2}{18} $$ However I'm not able to justify why. Is there a special function (zeta, beta) that I don't know and that may help? Thank you


keeping & ampersand as a value in a sql where condition with other substitute variable values

In a unix script I am calling below SQL which contains a value for the column company_name with & symbol: 'SK&CO'   and other value(city,date) I am passing through script  select * from stock_details where company_name ='SK&CO' --value hardcoded  and city = &2  and date = &1;   How do I keep the & (ampersand) in the SQL with other substitute variable values?   I have tried set define off, which is not working as I need to use other substitute variable values   set define off,  will escape all the substitute values where I want to ignore substitution for the single & and treat this as a value to show the result output with matching values.


I have watched the famous "Mother" movie and I know the movie is symbolic to human creation and humanity disaster. But what is the message behind the movie? What was the director willing to inform us?


Today I came to SO and realized that all my hats disappeared! They have been there just yesterday!   What happened? Is Winter Bash over? What a disappointment... I thought it will take place all the winter!


TV Show with alien conspiracy theorist, one character has "lightning" superpowers

For some reason I have this very distinct memory of watching a specific scene in an episode of a show when I was very young. The main characters [there's two, a man and a woman] are talking to this guy who is like a hardcore believer/conspiracy theorist, and he has all this 'proof' of aliens and paranormal things tacked to his wall, and most of it is implied to most likely be junk, but one picture is actually the main guy [altho not distinctly recognisable as him, so the believer has no clue] And in the photo there's lights and maybe lightning everywhere, so I assume the main guy has lightning powers, and I'm pretty sure he's an alien or something along those lines but I don't actually know.  I remember there was some concern because the believer had put his entire life into this, and the main characters wanted to help him, but he seemed to believe the "unknown" guy in the photo was at fault for something bad in his life, and they didn't want to reveal that it was actually the main guy, both because he seemed to hate the "Unknown" guy, and also because the powers were very much supposed to be a secret.  I just know I sometimes randomly remember that scene and really want to know what show it is so I can watch it and finally put it all into context!  It was on TV when I was super young so it may have aired in the late 90s or early 2000s But it could have been a rerun so idk;;;;;


I have plenty of spare armour etc - can I trade it to my survivors and have them actually use it?  Same for Weapons too, also do certain people have better skills with certain weapons?


Why did the rebels allow Luke to fly an X-Wing against the death star?

In Star Wars, Luke flies an X-Wing in the attack on the Death Star.  My question is, why was he allowed to fly?  He had no X-Wing piloting experience. Even in WWII pilots needed at least a dozen hours flying experience before they were thrown into the battle of Brittain.  The question becomes even more perplexing given the following (movie mentioned) facts:  1) Only 30 fighters were sent against the Death Star; and 2) There were hundreds of other rebels on the base.  For that matter, why did the rebels only send 30 ships against the Death Star?


Localization of a ring which is not a domain

Let $A$ be a ring (commutative with $1$), let $S$ be a multiplicatively closed subset of $A$, i.e $S$ is contained in $A$ , $1\in S$ and $a,b\in S$ implies $ab\in S$, for every $a,b\in A$. Consider the following relation defined in $A\times S$: $$(a,s)\equiv(b,t) \iff \exists u\in S:u(at-bs)=0$$ I proved this relation to be reflexive and symmetric, but i have difficulties in proving its transitivity. Can someone suggest me a trick?


If I buy a game on Xbox digitally, can other users play that game?

I'm thinking of starting to buy Xbox games digitally, since I love how Steam works on PC, and would love similar functionality on my console. I Just have one question: If I where t buy Assassin's Creed III (or any game) on Xbox digitally, would another Xbox user on the same console be able to play that game? My brother uses the same console as me, and in the past we've always just shared disc copies of games. It'd be ridiculous if we had to buy two copies of a game digitally to both be able to play it.


Has any reference been made to Earth or the Milky Way in Star Wars EU?

Have any references ever been made to the existence of Earth, our solar system, or the Milky Way anywhere in Star Wars Legends?  EDIT:  Following @Trader's answer, I wanted to point out that "A long time ago in a galaxy far, far away...." in the starting scroll is a very obvious answer, but not the one I'm looking for.


Why can't an energy level exist containing 0.9 electron wave wavelengths? Why must it be a whole number?

So, I was reading Atom: Journey Across The Subatomic Cosmos by Isaac Asimov in order to better understand quantum mechanics when I came across this sentence:      The electron couldn't spiral into the proton because it couldn't take up an orbit with a length less than a single wave.    I was wondering why that is? Why can't an electron not have non-whole number wavelengths in atomic energy levels?


What crimes are punished with sentences in Azkaban? Or what must be proved in a trial to merit a stay in Azkaban other than murder?


Can't get Windows Search nor Cortana back

I followed this guide in order to remove Cortana:    But now, when I open windows menu, the search doesn't work, nor can I get cortana back.  I factory resetted windows from scratch TWICE, but none of them work anymore, even when I check "use cortana" at the blue screen setting. (I see the cortana search window but it is disabled, But not the notebook)


Unindent does not match any outer indentation levels

Attempting to run the following python code, I'm getting the Indentation error :      from urllib.request import urlopen      def fetch_words():        with urlopen('http://sixty-north.com/c/t/txt') as story:            story_words = []            for line in story:                line_words = line.decode('utf-8').split()                for word in line_words:                story_words.append(word)     return story_words  def print_words(story_words):    for word in story_words:        print(word)  def main():    words = fetch_words()    print_words(words)   if __name__ == '__main__':    main()


The question is as follows.      Let $ R $ Be a ring such that $ x^3 = x $ for every $ x \in R $. Prove that $ R $ is commutative    I proved it as follows.  $1.$ Since $ a^3 = a $ for every a  $ \in R$,  $ a^3 = a^2\cdot a = a \cdot a^2 = a $. So the square of any element in R is an identity of the ring.  $2.$ Let a , b $ \in R $. Then $ (ab)^3 = ab = ab \cdot (ba)^2 = abbaba = ab^2aba = a^2ba = ba.$ So $ab = ba $ for all $ a, b \in R $    Is my proof is correct? I'm not sure I can say that the square of any element in R is an identity of the ring if $ a^3 = a^2\cdot a = a \cdot a^2 = a $ for every a  $ \in R$


English uses two lexemes to denote that something is smaller in number or size/amount: "Less" and "fewer". "Less" is used for uncountable nouns ("I needed less time to mow the lawn today"), while "fewer" is used for countable ones ("I needed fewer attempts to get the lawnmower going today").  However, sometimes "less" is used with countable nouns (famously the "X items or less" register in supermarkets). When can countable nouns be used with "less"? Consider these examples:    I'll only need five minutes or less to mow the lawn. A lawnmower may only go 5 mph or less. You may only use my lawnmower if you weigh 75 kg or less.   These sentences sound correct to me, while the use of "fewer" in these contexts seems incorrect or at least odd to me (as a non-native speaker of English):    ? I'll only need five minutes or fewer to mow the lawn. ? A lawnmower may only go 5 mph or fewer. ? You may only use my lawnmower if you weigh 75 kg or fewer.   Which of these do native speakers prefer?  Could it be that "less" is acceptable, when the countable noun refers to an uncountable entity (such as time, speed or weight)? If so, is this restricted to units (minutes, mph, kg)? Also: Would this explain the use of "less" in "X items or less", as "items" as a countable noun refers to an abstract, uncountable entity (i.e. "shopping")?


Is it possible to play FIFA 2015, 4v4 on 2 Consoles?

I've the following situation: My friends and I, we're 8 in total, want to play Fifa 15 4v4. I know that the Playstation 4 just supports 4 controllers and thats why we think about a 2 console + 2 TV's setup, so 4 players per console.   So my question is: Is it possible or is there a game mode available were we could play such a setup?  Update: After I got the first answer I've to add that I know that the only way to play on 2 consoles would be through the psn online features. So we did not plan to play on Lan. We just want to sit in the same room with 2 consoles and play against each other over psn.


Visual Studio Tools For Git VS Git Source control provider

I want to use git for my visual studio project , when I googled I found these two tools which integrate in Visual studio.    and   I want to know which is better to use.


Regular Expression to Extract HTML Body Content

I am looking for a regex statement that will let me extract the HTML content from just between the body tags from a XHTML document.  The XHTML that I need to parse will be very simple files, I do not have to worry about JavaScript content or <![CDATA[ tags, for example.  Below is the expected structure of the HTML file is that I have to parse. Since I know exactly all of the content of the HTML files that I am going to have to work with, this HTML snippet pretty much covers my entire use case. If I can get a regex to extract the body of this example, I'll be happy.  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">         <title>     </title>
       Example paragraph content

       &nbsp;

       &nbsp;

Header 1
       Conceptually, I've been trying to build a regex string that matches everything BUT the inner body content. With this, I would use the C# Regex.Split() method to obtain the body content. I thought this regex:  ((.|\n)*)|(((*|\n)*)   ...would do the trick, but it doesn't seem to work at all with my test content in RegexBuddy.


Stack Overflow showing 1 reputation even though I have more than 200

I'm trying to build out my Careers 2.0 profile by connecting to a Stack Exchange account with 200+ rep. My Stack Overflow account has more than 200 rep, but the area where I can connect the account shows only 1 rep.  This is what I see:        The frustrating part is my account profile for meta.stackexchange.com does not display my SO account, but I do have one: .  Has anyone encountered this and found a solution?


Correct way to give users access to additional schemas in Oracle

I have two users Bob and Alice in Oracle, both created by running the following commands as sysdba from sqlplus:      create user $blah identified by $password;    grant resource, connect, create view to $blah;   I want Bob to have complete access to Alice's schema (that is, all tables), but I'm not sure what grant to run, and whether to run it as sysdba or as Alice.  Happy to hear about any good pointers to reference material as well -- don't seem to be able to get a good answer to this from either the Internet or "Oracle Database 10g The Complete Reference", which is sitting on my desk.


I have several files in the same folder that have one element in common in the names.  How do I rename the files so that the common element in the names is deleted?


How to select appropriate ferrite beads for power supply rails

I'm making a camera board using . For this sensor you need 3.3V analog power supply and 1.8V, 1.2V digital power supplies. Also, the 1.8V power pins are close to the 3.3V analog pins. Thus I'd like to use ferrite bead to prevent noises in 3.3v rail generated by 1.8V digital power rails. But I have no idea what kinds of ferrite beads would be appropriate for this.   DC resistance : Should it be as small as possible? impedance at each frequency: Should I look at impedances at 1Mhz, or 100Mz?   I'm going to use  as 1.8V power supply. It's a switching regulator and has 2.25Mhz switching frequency. I wonder how you predict noise frequency, or if the 100Mz is general for noises in power rails.


Shouldn't this table span the whole page width?

I have this table definition as part of a invoice  \begin{tabularx}{\textwidth}[ht]{lXrr}%   It worked fine for years until I have a very short word in the X column for the first time. Now my table is very small in width and centered horizontally on the page.  In my expectation the X column should fill up all space until the width of the table reaches the width of the page except the margins.  I have read about workarounds specifying something like 1.2\textwidth, but I don't like that, because the table is a template included via \include, so it would affect all my invoices.  I also tried \linewidth, \hsize and \columnwidth, but everything results in the same layout.  Is there a way to make the only X column expand so that it uses all available space?    Complete included table definition (Rechnungstabelle.tex):  \newcommand{\Rechnungstabelle}[4]{% vielen Dank für Ihren Auftrag. \noindent \begin{tabularx}{\textwidth}[ht]{lXrr}% \toprule% \bf{Anzahl} & \bf{Bezeichnung} & \bf{Einzelpreis} & \bf{Gesamtpreis} \\% \midrule% #1% \bottomrule% & \bf{Rechnungsbetrag}  & & \bf{\EUR{#2}} \\% \ifthenelse{\equal{#3}{}}{}{& Enthaltene MwSt. 19\% & & \EUR{#3} \\}% \ifthenelse{\equal{#4}{}}{}{& * Enthaltene MwSt. 7\% & & \EUR{#4} \\}% \end{tabularx}% }   Changing the table header row to  \bf{Anzahl} & \bf{Bezeichnung} \hspace{\textwidth} & \bf{Einzelpreis} & \bf{Gesamtpreis} \\%   is a workaround, but I don't think that would be good TeX style.  Minimum example for reproducing:  \documentclass[ fontsize=12pt,                  paper=a4,                 foldmarks=TBMPL,                 fromalign=center,                 ngerman                 ]{scrlttr2} \usepackage{babel} \usepackage[utf8]{inputenx} \usepackage[right]{eurosym} \usepackage{tabularx} \usepackage{ltablex} \usepackage{booktabs} \usepackage{ifthen}  \input{Rechnungstabelle} \begin{document} \begin{letter}  \Rechnungstabelle{     1,0 h & Do something & \EUR{99,00} & \EUR{99,00} \\      }     {99,00}     {}{} \end{letter} \end{document}


I am working on 4 different plants. I have the (RNA-Seq) data from sequencing. I look for two events E1 and E2, say, at certain positions in their genome. Let's say E2 is the common one and E1 is a special event. The positions I look for are identical across all 4 (in the genome). And let's say I see that the observation I have for 1 particular position is:      P1   P2  P3  P4 E1   0   20   0   17 E2 100   80 100  120    Here, P1 through P4 refers to plants and E1 and E2 refers to the events. E2 is more common. So, my objective is to actually check if E1 occurs more often in one or more plants than in the others. If they occur at the same proportion in all, of course it is not interesting to me.  I have 2 questions: (I have already asked  before but didn't get an answer)     Will a fisher test be right for this problem?    I hypothesize (Null) that the proportion of E1 is not different in occurrence between the 4 plants. Now, I set out to find if the proportion I have here is by any means significantly different. I use R, fisher.test() and I get p-value=2.5e-10. So, I reject my Null hypothesis for this case because I find strong evidence against it.  Sometimes, I have an observation like this,        P1   P2  P3  P4 E1   0   20   0  17 E2   0   80   0 120    then fisher.test() gives me a p-value of 0.147. So, I don't reject the Null   hypothesis. However, from a biological point of view, I would consider this significant. However fisher test answers the question I originally asked. I guess the proportion 0/0 for P1 and P3 are not useful (or not used).  So, my question is: Is it possible to modify the test such that it is sensitive even if E1 and E2 are 0 in 1 or more plants for a particular observation?     Having thought a bit to frame this post, I guess, in that case I have to ask a different question.


What is the probability of n people from a list of m people being in a random selection of x people from a list of y people?

If I am selecting 232 people from a pool of 363 people without replacement what is the probability of 2 of a list of 12 specific people being in that selection?  This is a random draw for an ultra race where there were 363 entrants for 232 spots. There is an argument about whether the selection was biased against a certain group of 12 people.  My initial attempt at calculating this was that there was 232 choose 363 possible selections. The number of combinations of any one person from the list of twelve is 1 choose 12 + 2 choose 12 + ... + 11 choose 12 + 12 choose 12. Thus 1 choose 12 + 2 choose 12 .... / 232 choose 363. Which ends up being a very low number which is clearly too low.  How do I calculate this?


Prove that $\{e^{k\alpha \pi i}: k\in \mathbb N \}$ is dense in $S^1 $ by using(or modifying the proof of) the result when $\mathbb N$ is $\mathbb Z$

Let $\alpha$ be an irrational number. There is a well-known result saying that $\{e^{k\alpha \pi i}: k\in \mathbb Z \}$ is dense in $S^1 $. In the  of this result, the Pigeonhole Principle can't guarantee that we can always choose $i>j$. So I wonder how we can prove that $\{e^{k\alpha \pi i}: k\in \mathbb N \}$ is dense in $S^1 $ by using that result or modifying its proof($\mathbb N$ is the set of natural numbers). Thanks in advance.


Is there any known way to compute this sum $\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{(2n-1)^3}$

In a video that talks about Riemann's problem someone said that we don't know yet how to compute sums like this one  $$\sum_{n=1}^{\infty}\frac{1}{n^{2k+1}}.$$  I was wandering if that concerns alternate series too like the one in my question !  Thanks in advance !


How to achieve this coffee powder photo effect?

I am interested in how to achieve this coffee cream/powder effect using Photoshop.  I have spent quite some time trying to figure this out, but wasn't successful. Using a clipping mask to apply texture works on very simple logos or text, but not on photos or anything that requires detail.


Consider the set of all mappings of class $C^1$ defined from $[-1,1]$ into $\mathbb{R}$.  Consider the two norms  $N_1=\sup_{x\in[-1,1]}|f(x)|$ and $N_2=|f(0)|+\sup_{x\in[-1,1]}|f'(x)|$.  Are they equivalent?


What is a medical term for the belief that you're healthy when you're not?

What is a medical term, as in a mental or eating disorder, that means "a compulsion with being healthy, while actually being unhealthy," stemming primarily from a poor understanding of science, medicine, physiology, and the effects of exercise?   For example, a man who does hot yoga to "sweat out toxins" (MYTH!), but in reality, due to the effects of dehydration, his kidneys are retaining water and actually hanging onto any toxins that may be in his system.


What's the difference between 18 A & 18 Ah on a Battery

What's the difference between 18 A & 18 Ah on a 12 V Battery


How to do float operation in Shell script?

time_value=$(($large / 1000))   $large could be 60 or 57. I'm expecting 57/1000=0.057. But I'm getting 0. So, is there any way to do this?


Is it possible to append to innerHTML without destroying descendants' event listeners?

In the following example code, I attach an onclick event handler to the span containing the text "foo". The handler is an anonymous function that pops up an alert().  However, if I assign to the parent node's innerHTML, this onclick event handler gets destroyed - clicking "foo" fails to pop up the alert box.  Is this fixable?
      foo


I used \bibliographystyle{apacite} and gives me the following reference:      Herfindahl, O. (1950). Concentration in the u.s. steel industry [Unpublished doctoral dissertation, Columbia University].   In the reference, "u.s." should be capitalized . How can I capitalize "u.s"? I notice that \bibliographystyle{apacite} does not capitalize the words in a title of a journal that should be capitalized. There are cases where it capitalizes the wrong word. How to do deal with such issues?  In fact, it capitalizes a word after : in the title of an article.


Can't "a couple" mean three or four but only two?

I saw a couple of men walking out of the store.  Is it ok to interpret the phrase a couple of men to be 3 or 4 men, instead of only two? OR Does it only mean two, I mean, two man only here?  I think it means two to five, which means it does not mean two only. Could you help me clarify it?  Thank you always.


I put code    float _fNum = Float.valueOf("5093.7342");    after that _fNum value goes 5093.7344  The result of Float.valuesOf goes wrong what I think.  How can I fix it or How can I make it using another method ?


Subdivide loop at custom position without stretching the texture

How can one subdivide at an arbitrary position, say the cylinder side faces, using CTRL+R (subdivide loop tool), so that the texture is not stretched like this:  Before    After    If this is not possible with this tool, is there another way, like for instance recalculating a group of UV coordinates by means of their vertex position and their surrounding vertices.


there is an exercise in a book on complex analysis:  "Let $f$ is a holomorphic function on $\mathbb{C}$ such that exists $a>0$ with property $f(z) = f(z+a) = f(z+ja)$ for each $z \in \mathbb{C}$. Show, that f must be necessarily constant."  The hint is to use Liouville theorem: "Every bounded entire function must be constant. That is, every holomorphic function f for which there exists a positive number $M$ such that $|f(z)| \le M$ for all $z \in \mathbb{C}$ is constant."  So to finish the exercise it suffices to show $f(z$) is bounded for all $z \in \mathbb{C}$. Could someone help me? Or miss i something trivial?  Thank you.


What do truncated histogram spikes indicate?

I teach a class in fine art printing. During my last class we were looking at an image in Lightroom CC Classic and someone asked why the midtone spike in the image histogram exceeded the top limit. It was cut off at the top.  Since then, I have noticed this is rather common. But, I have no idea why it is or what it indicates. The response appear to be out of the graphic range of the histogram. But, so what?


Linux CentOS 7, LaTeX issue on Kile: File 'dsfont.sty' not found

I'm trying to compile a LaTeX file with Kile on a laptop running Linux CentOS 7.  In the .tex file, I've the command \usepackage{dsfont} Kile does not compile my file and produces the following error:  File 'dsfont.sty'  not found  What can I do to solve this problem?  I tried to install all the texlive packages with this command, but it did not solve the problem:  sudo yum -y install texlive texlive-*.noarch  Edit: Ralf Stubner pointed out that there's  explaining what to do. I checked it but unfortunately it does not solve my problem and it does not provide solutions for Linux CentOS.


Can someone please show me how these are equivalent in steps $\frac{(h_2^2 - h_3^2 )}{\dfrac{1}{h_3}-\dfrac{1}{h_2}}=h_2 h_3 (h_2+h_3)$ I thought it simplifies to $$(h_2^2-h_3^2)(h_3-h_2)$$This would be much appreciated, I cant wrap my head around it.


What is the correct way to test for significant differences between coefficients?

I'm hoping someone can help straighten out a point of confusion for me. Say I want to test whether 2 sets of regression coefficients are significantly different from each other, with the following set up:   $y_i = \alpha + \beta x_i + \epsilon_i$, with 5 independent variables. 2 groups, with roughly equal sizes $n_1, n_2$ (though this may vary) Thousands of similar regression will be done simultaneously, so some kind of multiple hypothesis correction has to be done.   One approach that was suggested to me is to use a Z-test:  $Z = \frac{b_1 - b_2}{\sqrt(SEb_1^2 + SEb_2^2)}$  Another I've seen suggested on this board is to introduce a dummy variable for grouping and rewrite the model as:  $y_i = \alpha + \beta x_i + \delta(x_ig_i) + \epsilon_i$, where $g$ is the grouping variable, coded as 0, 1.  My question is, how are these two approaches different (e.g. different assumptions made, flexibility)? Is one more appropriate than the other? I suspect this is pretty basic, but any clarification would be greatly appreciated.


To prove $\sum_{cyc}\frac{1}{a^3+b^3+abc} \le \frac{1}{abc}$

if $a,b,c$ are non zero positive reals prove $$\sum_{cyc}\frac{1}{a^3+b^3+abc} \le \frac{1}{abc}$$ I have used A.M  G.M  inequality as follows:  $$a^3+b^3+c^3 \ge 3abc$$ adding $abc$ both sides we get  $$a^3+b^3+abc \ge 4abc-c^3=c(4ab-c^2)$$ so  $$\frac{1}{a^3+b^3+abc} \le \frac{1}{c(4ab-c^2)}$$ But since $a,b,c$ are positive reals  $$4abc-c^3 < 4abc$$ so  $$\frac{1}{4abc-c^3} \gt \frac{1}{4abc}$$  but i am unable to proceed here


I'm getting repeat requests for resources on my server and this is increasing the load greatly. Currently my load is at 2.5ish. I block individual IP addresses causing the problem but eventually the attacker seems to reappear with a different IP. Any ideas?  Here is my server log:  I'm getting repeat requests for '...' and 'GET'


Define $gcd(a,d)=1$ as $m|a\wedge m|b\Rightarrow m=\pm 1$.  Of course if we use the unique prime decomposition it is trivial. Is there any other easier proofs avoiding using that theorem?


Looking for some help/advice in writing a test class. The class I need to test is an apex class to schedule a report that needs to be sent to an external email address once a month as a .csv attachment. I was able to build the test class using some advice from ; I found the solution in TESTOURSFDC's comment to work sufficiently for us. Copy of my code below.  What I'm struggling with is how to test that an email has been sent. The SF documentation for scheduled apex classes are all built with regular SF maintenance use cases (e.g. create tasks on opps that fulfill xyz criteria once a month), so their test classes are easy to re-create (query for tasks with related WhatIds). I've never worked with apex to send emails before, so I'm admittedly quite unfamiliar with the methods and metadata available.  Has anyone tested something similar to this that could help me out?  Thanks!!  Class (updated):  global class reportExporter implements System.Schedulable {      global void execute(SchedulableContext sc) {          ApexPages.PageReference report = new ApexPages.PageReference('/00OXXXXXXXXXXXX?csv=1');          Messaging.EmailFileAttachment attachment = new Messaging.EmailFileAttachment();          attachment.setFileName('Report.csv');          //use getContent() only if not a test, otherwise test will fail         //http://salesforce.stackexchange.com/questions/97223/test-fails-because-of-testmethod-do-not-support-getcontent-call         if(!test.isRunningTest()){             attachment.setBody(Blob.valueof(report.getContent().toString()));            } else {             attachment.setBody(Blob.valueof('TEST BODY'));         }          attachment.setContentType('text/csv');          Messaging.SingleEmailMessage message = new Messaging.SingleEmailMessage();          message.setFileAttachments(new Messaging.EmailFileAttachment[] { attachment } );          message.setSubject('Report');          message.setPlainTextBody('The report is attached.');          message.setToAddresses( new String[] { 'name@example.com' } );          message.setBccAddresses( new String[] { 'name@example.com' } );          Messaging.sendEmail( new Messaging.SingleEmailMessage[] { message } );          List<Messaging.SendEmailResult> results = Messaging.SendEmail(new Messaging.Email[] { message });             System.debug(results);         if (!results.get(0).isSuccess()) {             System.StatusCode statusCode = results.get(0).getErrors()[0].getStatusCode();             String errorMessage = results.get(0).getErrors()[0].getMessage();          }      }  }   Test Class:  @isTest private class testReportExporter {     // CRON expression: midnight on March 15 2022    // Because this is a test, job executes immediately after Test.stopTest() regardless of date    public static String CRON_EXP = '0 0 0 15 3 ? 2022';     static testmethod void test() {       Test.startTest();        reportExporter re = new reportExporter();        // Schedule the test job       String jobId = System.schedule('ScheduleApexClassTest',                         CRON_EXP, re);        // Get the information from the CronTrigger API object       CronTrigger ct = [SELECT Id, CronExpression, TimesTriggered,           NextFireTime          FROM CronTrigger WHERE id = :jobId];        // Verify the expressions are the same       System.assertEquals(CRON_EXP,           ct.CronExpression);        // Verify the job has not run       System.assertEquals(0, ct.TimesTriggered);        // Verify the next time the job will run       System.assertEquals('2022-03-15 00:00:00',           String.valueOf(ct.NextFireTime));        // Verify the scheduled job hasn't run yet.       Integer beforeInvocations = Limits.getEmailInvocations();       System.assertEquals(0,beforeInvocations,'no email sent');        //Verify class results are not false       System.debug(re);        Test.stopTest(); } }


I want to fill integral limits by exponent function y=e^{x-1}; y=2-x, and Ox. Please everybody help]


Which process sent data out of my computer?

Using vnstat, I observed a lot of uploaded data from my computer and I don't know which process sent data out of my computer. Is there a tool to get stats on how much data a process consumed during a period of time? Thank you.  Update: Looks like the process isn't sending data anymore, I installed nethogs to monitor live data transfer and everything seem totally normal.


Trigger outbound message/API Endpoint on record delete

On the Event table I have a workflow rule that sends an outbound message that notifies my external API when a record is created and updated.  1) Is it possible to have the workflow send an outbound message to my external API when a record is deleted?  2) If not, what is the simplest way to accomplish this? My application needs a few select fields from the record.  Edit: apparently 1) is not possible, however I still need the simplest way to do this.


login page permission has changed suspiciously

I have developed a website with php and apache server on linux centos I am not professional on security issues and I think some folks try to hack my website first please advice me which security things I should follow  but my problem: tonight as I tried to login firebug showed it tries to load login.php for serveral times but a file error occurs (I think a permanent move or something....) anyway when I checked the login.php file in linux I have noticed the file permission has been changed and all x (execution) flags has been removed.  could it be the work of a hacker? what should I do to prevent such happening.  I changed chown to root, and also set chmod of all files from 775 to 755 please give more


How to put a copied command in a command block?

If you have copied a zombie herobrine command what do you press on your computer to put the command in the command block?


What are "How to ... ?" questions (errors) called?

I see questions formed like "How to do this?" every day.  They are so frequent that I wonder if there is a name for grammatical errors of this kind.


Comments on nominations in an election don't show OP highlighting until after "show more comments" is clicked

I was over looking at the  when I noticed that the comments under nominations don't highlight the name of the OP/nominee:        Except when you click "show x more comments", then the highlighting magically appears.      This is also reproducible on the recent     Is this a bug? Or is the highlighting purposefully turned off until you show more comments? I think the highlighting is quite useful and would like it better if it showed all the time.


Unicoin mining doesn't work on iPhone / Chrome

There is a serious bug: I can not mine rocks using Chrome on iPhone!  I hope this will be rectified over the coming weeks.


Does linear regression assume all variables (predictors and response) to be multivariate normal?

I stumbled on this really nice blog.    It has mentioned- "the linear regression analysis requires all variables to be multivariate normal".  I think the assumption of normal distribution is for the residuals. I understand that skewed data can distort significance tests and it is desirable to have normally distributed data. But can we say "normal distribution of variables" is one of the assumptions of linear regression?  I am confused with this. Could somebody please shed light on this?


I've been coding in Ruby for sometime now, but I don't understand when to use:  def self.METHOD_NAME end   or just:  def METHOD_NAME end   In any Rails model. Is "self" a modifier like private in Java? When should I use it and when not?. Thanks a ton.


What is the official stance of the SE team on the recent Net Neutrality rulings?

I was a little surprised not to see anything here on Meta or on the SE blog regarding the recent Net Neutrality rulings in the US.  I'm hoping to find the team's official take on the issue and whether or not they expect to be making any changes to deal with the potential change in landscape.  Please note: I'm looking for an official response. I realize this may be a controversial issue and I really don't want to stir up debate.  So... What, if any, is the official stance of the SE team on the recent Net Neutrality rulings?    From:      On January 14, 2014, the DC Circuit Court determined in the case of   Verizon v. Federal Communications Commission that the FCC has no   authority to enforce Network Neutrality rules, since service providers   are not identified as "common carriers".It did, however, agree   that FCC has the ability to regulate broadband and may craft more   specific rules that stop short of identifying service providers as   common carriers, according to lobbyist group Public Knowledge. The   likelihood of this occurring under new FCC Chairman Tom Wheeler is   low, as he has stated in the past that he is not opposed to providers   receiving consideration to prioritize certain traffic.


What is the ultimate foundation for all of mathematics?

Clearly it's not set theory, because set theory is built on first order logic, which is in a sense more fundamental as it comes first (you need first order logic to even state the axioms of ZFC)  And then comes the philosophical nightmare that I have been wrestling with for weeks. What comes before first order logic.   The question started when I began my quest on studying logic. It bothered me to a great extent that the books I read always assumed a knowledge of sets, natural numbers, functions, relations and in one of them, even cardinality! And to put the cherry on the cake, a few chapters later the books would go on to describe ZFC and building set theory, as if they had not been using sets casually for the past few chapters.  Here are the answers I have received so far   First-order logic does not require the use of set theory There are certain things that you have to accept as primitives and part of an accepted metalanguage, which are needed as a starting point to lay the foundations of mathematics It's turtles all the way down   Regarding the first one, I have literally seen books on logic use terms like a language is a set of symbols or even "sets of well formed formulas", particularly something like $\{\phi_1,\phi_2,\dots,\phi_n\}\vDash \psi$ so I really don't know where the first point is coming from.  Regarding the second point, this makes much more sense, except that it seems no one can tell me what are the things we take as primitive and part of "common sense". Do we start off with a "common sense" understanding of sets and then build logic? Is it the same for natural numbers, functions, countability etc.? Is that to say that the ultimate foundation of all of mathematics is Naive Set Theory and Naive Number Theory? That just sounds so... unsatisfying. How can math be consistent, if our metalanguage of English is not (we can form contradictions like "This statement is false"). Ok basically my main question for this part is what are the things that we take as accepted and  "common understanding" before we build mathematics. Like precisely what are they. Sets? Natural Numbers? (Is the domain of discourse in first order logic also a "common sense" term?)  The third one really grinds my gears because it just brushes the whole issue aside and doesn't explain it at all.  To sum up my question, as a foundation for mathematics, there are some things that we humans have to take as understood for us to draw a baseline. What precisely are these things and does a naive understanding of them in a metalanguage mean that mathematics is not as precise as it appears to be. Also as an aside, when we prove things about first order logic, do we do it in our imprecise metalanguage? I have seen logic proofs that use induction and I'm so confused because Number Theory is a much higher level thing than logic.


How to make 2 random integers, between 1 and 7, without both being 5?

EDIT: This is a different question to  because I requested the solution uses the methods  public int getRandomNumber(int start,int end) { int normal = Greenfoot.getRandomNumber(end-start+1); return normal+start; }   and   getRandomNumber(int, int)     Good afternoon. I've been working on a project in Greenfoot, with Java, where the main character is on a 7x7 screen with 3 coins. I have written this code:  public class FirstLevel extends World { public int getRandomNumber(int start,int end) {    int normal = Greenfoot.getRandomNumber(end-start+1);    return normal+start; }  /**  * Constructor for objects of class FirstLevel.  *   */ public FirstLevel() {         // Create a new world with 600x400 cells with a cell size of 1x1 pixels.     super(9, 9, 60);      MainCharacter theDuckDude = new MainCharacter ();    addObject(theDuckDude, 4, 4);     coin coin1 = new coin();     coin coin2 = new coin();     coin coin3 = new coin();    addObject(coin1, getRandomNumber(1, 7), getRandomNumber(1, 7));    addObject(coin2, getRandomNumber(1, 7), getRandomNumber(1, 7));    addObject(coin3, getRandomNumber(1, 7), getRandomNumber(1, 7)); } }   So, as you can see, the three coins and duck character will appear on the screen in random locations. Here is a snippet of the code from my theDuckDude character:  Actor actor = getOneIntersectingObject(coin.class); getWorld().removeObject(actor);   Obviously, this code shows that when my theDuckDude character touches the coin actor, the coin is removed. As you have probably seen, this poses quite a problem: if theDuckDude and a coin actor are generated on the same square, the game won't work properly:   So, is there a way I can generate these random ints, using the  public int getRandomNumber(int start,int end) {    int normal = Greenfoot.getRandomNumber(end-start+1);    return normal+start; }   and   getRandomNumber(1, 7)   methods, how can I make it generate a random location that excludes 5 and 5 together?


Sorting a list of dictionaries based on a value

I am having trouble trying to sort a list of dictionaries based on a value matching a string. Here's an example:  test = [{'username': "1", "password": "test1"},         {"username": "3", "password": "test2"},         {"username": "5", "password": "test3"}]   I would like to sort this dictionary based on password = test3, so it would look like:  test = [{"username": "5", "password": "test3"},         {'username': "1", "password": "test1"},         {"username": "3", "password": "test2"}]   Any help would be appreciated. Thank you!


I am trying to print a simple value for $AR1_p1 but the variable $i is not evaluating. for i in 1 2 3 4 do     AR1_p1=22     AR1_p2=23     AR1_p3=24     AR1_p3=25     echo $AR1_p$i done   It's like concatenating dynamically. Any suggestions on how to fix this?.


What is the most efficient way to alternate taking values from different iterators in Python, so that, for example, alternate(xrange(1, 7, 2), xrange(2, 8, 2)) would yield 1, 2, 3, 4, 5, 6. I know one way to implement it would be:  def alternate(*iters):     while True:         for i in iters:             try:                 yield i.next()             except StopIteration:                 pass   But is there a more efficient or cleaner way? (Or, better yet, an itertools function I missed?)


If I'm playing Brave New World multiplayer as part of a team it appears that, unlike science, our culture and tourism are not combined.  That means the best way for the team to win a culture victory is to give all the great artists to one player, let that player build all tourism benefiting wonders and basically concentrate entirely on that player's civ, which seems like it might not be much fun for the other player(s).  Have I understood this correctly?  Edit: I've just read the question that people have marked this as a duplicate of, sounds like it's even worse - everything I've said is true, plus you need to influence your partner too, yet you can't have open borders with them!  Sounds like this isn't a good way to go in multiplayer.


I have a positive asymmetric response variable in a regression model. One of the assumptions about linear model is that the stochastic component of the model is normally distributed. If I have a skewed response but my residuals are normally distributed could I use the linear model or I have to choose or a transformation or a GLM?


I was wondering can I use a flash gun that goes on my camera  with studio continuous light kit for newborn and older kids? As unsure if safe?


Kotlin crashing application issue SetOnCreate method

I'm new to Kotlin, and I'm trying to create an authentication short application. My application doesn't have any errors, but when I want to start the application it crashes.  The console debug system shows the following error:  java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference     at com.menu.a9dli3.ui.modifyFragment.ModifyFragment.onCreate(ModifyFragment.kt:24)     The Kotlin view fragment code is here:  package com.menu.myapp.ui.modifyFragment import android.os.Bundle import android.util.Log import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.TextView import android.widget.Toast import androidx.fragment.app.Fragment import androidx.lifecycle.ViewModelProviders import com.menu.a9dli3.R import kotlinx.android.synthetic.main.register_activity.*  class ModifyFragment: Fragment() {      private lateinit var modifyviewmodel: ModifyViewModel      override fun onCreate(savedInstanceState: Bundle?) {         super.onCreate(savedInstanceState)         setOncreate(R.layout.fragment_modify_profile)         login_id.setOnClickListener {              val email = email_id.text.toString()             val password = password_id.text.toString()              Log.d("Login", "Attempt login with email/pw: $email/$password")         }          register_page_id.setOnClickListener {             performRegister()         }     }      private fun performRegister() {         val email = email_id.text.toString()         val password = password_id.text.toString()          if (email.isEmpty() || password.isEmpty()) {             Toast.makeText(context, "Please enter text in email/pw", Toast.LENGTH_SHORT ).show()             return         }         Log.d("MainActivity", "Email is: $email")         Log.d("MainActivity", "Password: $password")     }      override fun onCreateView(         inflater: LayoutInflater,         container: ViewGroup?,         savedInstanceState: Bundle?     ): View? {         modifyviewmodel =             ViewModelProviders.of(this).get(ModifyViewModel::class.java)         val root = inflater.inflate(R.layout.fragment_modify_profile, container, false)         val templatemode: TextView = root.findViewById(R.id.text_slidemodify)         modifyviewmodel.text.observe(this, androidx.lifecycle.Observer { templatemode.text = it })         return root     } }   Please, I want some explanation and not just a solution.


Is it possible to increase only the vertical size of a shape in PowerPoint?

I have a shape (rounded rectangle) in PowerPoint 2007 of which I would like to increase the vertical size only (to illustrate de-bottlenecking). So, the width will stay the same but the height will grow (both from the top and bottom, so the centre will remain in the same location).  Custom Animation -> Emphasis only appears to change the whole shape.  Is it possible to increase only the vertical size (stretch the shape)?  This is during animation of the shape.


\pagestyle{empty} doesn't seem to work for page with \maketitle

In the LaTeX document pasted below, I still see page numbers upon compiling, even though I've included a \pagestyle{empty} command below the \maketitle command. Any ideas what I'm doing wrong? Thanks in advance.  \title{Thesis Abstracts} \author{         Kurt Han Peek } \date{\today}  \documentclass[a4paper,11pt]{article} \usepackage{graphicx} \usepackage[margin=2cm]{geometry}  \begin{document} \maketitle \pagestyle{empty}  \section*{An Analysis of the Effects of Digital Phase Errors on the Performance of a FMCW-Doppler Radar} In modern frequency-modulated continuous-wave (FMCW) radars, the transmitter is increasingly being implemented using direct digital chirp synthesis (DDCS), which provides improvements in sweep linearity, stability, precision, agility, and versatility over analog techniques. Its main limitations are errors due to sampling of the modulating signal, phase truncation, and digital-to-analog converter (DAC) quantization, which produce spurious signals due to their deterministic nature. This thesis presents an analysis and simulation of the effect of two sources of digital phase errors -- namely, sampling of the modulating signal and phase truncation -- on the performance of a FMCW-Doppler transceiver employing a DDCS in its transmitter. An upper bound for the amplitude of spurious targets resulting from these digital phase errors is established. Further, it is shown that provided the phase errors are periodic with the sweep period, the spurious targets are not offset from the target in Doppler. An algorithm for selecting the digital chirp parameters of a DDCS so as to ensure periodic and phase-continuous sweep transitions, which guarantee periodic phase errors and reduce `spectral splatter', is devised. Finally, we investigate parallels of FMCW radar in the optical domain, and consider the fundamental question whether range resolution is fundamentally limited by the bandwidth of a transmitted signal, or its carrier frequency.  \section*{Estimation and Compensation of Frequency Sweep Nonlinearity in FMCW radar} One of the main issues limiting the range resolution of linear frequency-modulated continuous-wave (FMCW) radars is nonlinearity of frequency sweep, which results in degradation of contrast and range resolution, especially at long ranges. Two novel, slightly different, methods to correct for frequency sweep nonlinearity by digital post-processing of the deramped signal were introduced independently by Burgos-Garcia et al. (Burgos-Garcia, Castillo et al. 2003) and Meta et al. (Meta, Hoogeboom et al. 2006). In these publications, however, no formal proof of the techniques was given, and no limitations were described. In this thesis, we prove that the algorithm of Meta is exact for temporally infinite chirps, and remains valid for finite chirps with time-bandwidth products which are large compared to unity, provided the maximum frequency component of the phase error function is small compared to the square root of the nominal chirp rate. It is also shown that the algorithm of Meta reduces to that of Burgos-Garcia in this limit. A digital implementation of both methods described. Finally, we propose a novel method to measure the systematic phase errors which are required as input to the compensation algorithm.  \end{document}


Book a child/teenager discovering his power and struggling to learn to control it

I am looking for a book series where each member of the family has a special ability. Each book follows a different character but they are all part of the same (larger) family.  As I remember, one of the boys can control the weather/wind (and makes it terribly bad if he doesn't control his power properly). The grandma has the power to "save" music in jar (when you open the jar, the music plays). Later in the book (series?) most or all of the jar of the (now deceased) grandma is broken and, thus, the music is permanently lost.   If I remember correctly, the main character in one of the books spent a lot of time in a car dump (working there with one or two other people).  Each book follows the story of one of the children going through their teenage years, discovering their power and learning to control it.  I believe that the last book of the series was written less than 10 years ago.