My aim is to write the body text and only the body with a big left skip; theorems, titles and display math starting from the very left, without skips. I use the command \leftskip=4cm, which works good on the body ignoring all the environments, but works also for titles. I'm putting it into the preamble. What do you suggest me? Although LaTeX is the best in organizing text, I want it to write my personal notes and I absolutely need to use my personal typeset. EXAMPLES Here is an example of what I've done till now (I hope not-English examples are allowed, just for the sake of typesetting):  and here is an example of what I'd like to make:  Here is a minimal executible code:    \documentclass[a4paper]{book}     \usepackage{geometry} %typography     \usepackage{lipsum}% http://ctan.org/pkg/lipsum  %   THEOREMS \newtheorem{teo}{Teorema}   %theorems:  unindented environment \newtheorem*{dimostratio}{Proof}  \newenvironment{proof.} %proofs:    indented environment     {\begin{dimostratio}  \leftskip=4.5cm   \mbox{} \noindent\ignorespaces  }     {\end{dimostratio}}  %   TYPOGRAPHY      \geometry{a4paper, top=2cm, bottom=2cm, left=2cm, right=2cm,  bindingoffset=5mm}     \leftskip = 4.5cm           % indentation of everythingh isn't a theorem.   %DOCUMENT \begin{document}     Here is the indented body.       %indented as I like.     \lipsum[1]                   \section{Indented (sic) title}       %indented but I don't like.     \lipsum[2]      \begin{teo} Here is an unindented environment, as I like. \end{teo} \begin{proof.}      And here is an indented environment, as I like.     \end{proof.}      \lipsum[4] \end{document}


Can every implicit function be written explicitly?

So we were learning implicit differentiation a couple of months ago, and I noticed that while for some equations, like ${{x}\over{y}}=1$ can easily be rewritten as $y=x$ and therefore have a very easy derivative to take, some equations, especially those that broke the vertical line rule, were very hard to convert to explicit.  For example, the equation of a circle, $x^2 +y^2=r^2$ can be rewritten as $y=\pm \sqrt{r^2-x^2}$, so my question is: can all implicit formulas be rewritten as one or more explicit equations? If yes, how do we know, but if not, could you provide a counterexample?  Please try to simplify your answers so a high-schooler could get it, but I'll try my best to understand each answer.


Does there exist a non zero $2 \times 2$ matrix $A$ such that $A^2 \neq 0$ and $A^3=0$, where $0$ is the $2 \times 2$ zero matrix?


I am trying to make a script to log in with my username directly without entering the password. The password should be entered automatically in the background, like the normal user you create in Ubuntu when you first install the OS when you sudo nano  vlad@Vlad:~$ sudo nano [sudo] password for vlad:   I want the password to be entered automatically so I should have direct access to the editor where we make aliases.  I don't want to remove the password by any means. I want to write it in the script so it should connect automatically.


Is it true that $\lim\limits_{x\to\infty}{x·P[X>x]}=0$?

I ask this because I'm trying to understand a proof of the expected value of a non negative random variable is equal to $\int_{0}^{\infty}(1-F(x))dx$ ($F$ is the distribution function of $X$) when $E[X]$ exists, and in some step I have $\lim\limits_{x\to\infty}({x·P[X>x])}=0$ and I don't know why it verifies. The problem I see is the indetermination in the limit $\infty·0$.


NullPointerException while running JUnit. Unable to read String data

It throws NullPointerException while running JUnit. Error is being shown at line " driver.get(baseUrl)". Somehow it is not able to read data of String baseUrl. String baseUrl is defined at @Before and I am trying to read data @Test.  Please Suggest.   Below is my code :  public class JunitTest1 {     WebDriver driver;     String baseUrl;      @BeforeClass     public static void setUpBeforeClass() throws Exception {         System.out.println("Execution starts here");     }      @Before     public void setUp() throws Exception {         System.setProperty("webdriver.chrome.driver", "E:\\chromedriver_win32\\chromedriver.exe");         WebDriver driver= new ChromeDriver();         driver.manage().timeouts().implicitlyWait(60,TimeUnit.SECONDS);         baseUrl="http://spezicoe.wipro.com:81/opencart1/";     }      @Test     public void test() {          driver.get(baseUrl);         WebElement registerBtn = driver.findElement(By.xpath("//*[@id=\"top-links\"]/ul/li[2]/a/span[1]"));         registerBtn.click();         WebElement loginlink = driver.findElement(By.xpath("//*[@id=\"top-links\"]/ul/li[2]/ul/li[2]/a"));         loginlink.click();          //Login steps         WebElement emailId=driver.findElement(By.xpath("//input[@id=\"input-email\"]"));         emailId.sendKeys("username");          WebElement password=driver.findElement(By.xpath("//input[@id=\"input-password\"]"));         password.sendKeys("Suren!123");          WebElement loginBtn=driver.findElement(By.xpath("//input[@class=\"btn btn-primary\"]"));         loginBtn.click();     }      @After     public void tearDown() throws Exception {         System.out.println("Execution completed");     }      @AfterClass     public static void tearDownAfterClass() throws Exception {              System.out.println("Execution completed");      }  }


I'm using TeXlive 2020. I've organized my project files as: sb-mathematics     c_chapter-01.tex     c_chapter-02.tex     prd_mathematics.tex env_studentbook.tex project_studentbook.tex  Compiling the project_studentbook.tex file doesn't generate any pdf file. Other files generated are: project_studentbook.log project_studentbook.tuc  What am I missing? project_studentbook.tex \startproject project_studentbook \environment env_studentbook  \product prd_mathematics  \stopproject  env_studentbook.tex \startenvironment env_studentbook \project project_studentbook  \usepath[{sb-mathematics}]  \stopenvironment  prd_mathematics.tex \startproduct prd_mathematics \project project_studentbook \environment env_studentbook  \component c_chapter-01 \component c_chapter-02  \stopproduct  c_chapter-01.tex \startcomponent c_chapter-01 \product prd_mathematics  \chapter{A chapter}  \stopcomponent  c_chapter-02.tex \startcomponent c_chapter-01 \product prd_mathematics  \chapter{Another chapter}  \stopcomponent


Why do some Centrino chipsets and PCI-Express cards say Not for Lenovo/HP?

I am noticing a bunch of a half-PCI Express Centrino chipsets that say "not for Lenovo/HP", what's the reason for this? Technically, PCI-Express is standardized. What could possibly be different?  Here is  and , and .


Is it misleading to say "holes in semiconductors jump to the other side"?

I'm getting a little confused with the convention of saying that "holes in a semiconductor will move from p-side to n-side and electrons will move the opposite way". I have no trouble with the concept itself, it just seems to me that an electron moving from one side to the other would mean it left a hole behind where it used to be?   Am I understanding it correct that we just think of electrons leaving behind holes as "holes moving" or do I actually misinterperet the way this works?


Can I use progressbar in parallel? (every thread reads a different file)

I have to deal with like 10 binary files, each larger than 100MB. I have written a single thread program using BinaryReader, and it worked well. I want to make it parallel by using  Parallel.For(0,10, i=> {   -------------   BinaryReader BR = new BinaryReader(File.Open(Files[i], FileMode.Open));   While (BR.BaseStream.Position < BR.BaseStream.Length)   {        Uint64 a = BR.ReadUInt64();        ProgressBar[i].Value = Convert.ToInt32( 10* BR.BaseStream.Position / BR.BaseStream.Length); //error   }   ------------- } );    updating progressbar (owned by UI Thread) is the problem each thread has its own progressbar control instance, but they cannot touch it.


I would like my external drives to be readable and writable from Linux, Mac OS X and Windows.   FAT32 works, but the 4 GB file size limit is a showstopper these days. Are there any alternatives?


Ubuntu does not offers me "install alongside Windows"

Any of the partitions makes in Windows was not recognised by Ubuntu, or Zorin OS, or LinuxMint. It's like a blank hard disc, 250 gb free. I'm a new Linux user, but what confuses me is that I was able to install Ubuntu alongside Windows on my laptop with no problems, but on PC... no way!


Unable to sign-in into Google Play Store after logging out

I downloaded Freedom app, but I didn't find it interesting, so I uninstalled it completely. After a while I tried opening my Google Play Store, but it didn't open and shows: "No connection - retry".  So I logged myself out of Google to see if the problem is resolved or not. But unfortunately, it didn't, and now, I am not able to log into my Google account, and ultimately, unable to use Google Play Store. How can I solve this issue?


"He might could come Friday" - Can anyone use two modals for the same verb (and get away with it)?

I've heard someone use two modals for the same verb more than once, in an American film. It looked like an old movie, perhaps from the 70s. The other sentence was: "I might could help you."  I wonder whether "might could" is an idiom. Is it?


Installing Kino fails with missing file linux/videodev.h

I'm running into a brick wall here, I'm getting an error on the command:  make   in installing Kino(Video Editing Software(Dead Project)).  Here is the error:  make[3]: Leaving directory `/opt/kino-1.3.4/src/kinoplus' make[3]: Entering directory `/opt/kino-1.3.4/src' g++ -DHAVE_CONFIG_H -I. -I.. -Wall      -I/usr/include/alsa  -I/usr/include/libxml2  -pthread -I/usr/include/libglade-2.0 -I/usr/include/libxml2 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2  -I../ffmpeg -I../ffmpeg/libavformat -I../ffmpeg/libavcodec -I../ffmpeg/libavutil -I../ffmpeg/libswscale -DHAVE_SWSCALE   -D_FILE_OFFSET_BITS=64 -DKINO_PLUGINDIR=\""/usr/local/lib/kino-gtk2"\" -DDATADIR=\""/usr/local/share"\" -D_REENTRANT -D__STDC_CONSTANT_MACROS    -g -O2 -MT kino_common.o -MD -MP -MF .deps/kino_common.Tpo -c -o kino_common.o kino_common.cc In file included from page_bttv.h:30:0,                  from kino_common.cc:54: v4l.h:43:28: fatal error: linux/videodev.h: No such file or directory  #include <linux/videodev.h>                             ^ compilation terminated. make[3]: *** [kino_common.o] Error 1 make[3]: Leaving directory `/opt/kino-1.3.4/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/opt/kino-1.3.4/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/opt/kino-1.3.4' make: *** [all] Error 2   Google is giving this error in different cases and one for Kino but no resolve that works for me  is for ubuntu and didn't work. My distribution is Fedora 20 KDE x86_64. Any idea's?


Is money a countable noun?  We had a little/few money left, so we decided to have a meal in a cheap restaurant so that it costs us a few rupees.   Here rupees is the currency of India.  I wonder few rupees make sense. But why we can't use few money here?


How to explain contradictory results from manipulation of infinite sums?

Suppose $S = 1 - 1 + 1 - 1 + 1 - 1 + 1\ldots$. Then $1 - S = S$ so $S = \frac{1}{2}$ Now suppose $T = 1 - 2 + 3 - 4\ldots$.  We can also write $T = 0 + 1 - 2 + 3 - 4\ldots$. Adding the two we get $2T = (1+0)+(-2+1)+(3-2)+(-4+3)\ldots$ or $2T = 1 - 1 + 1 - 1\ldots$, so $T = \frac{1}{4}$. Now let $P=1+2+3+4+5\ldots$. It can be easily seen that $P-T = 4P$ or $P=-\frac{T}{3} =-\frac{1}{12}$ so we have $P = -\frac{1}{12}$ How it is possible that $1 + 2 + 3 + 4\ldots=-\frac{1}{12}$?


Off Topic Close vote suggest a SE website besides the 5 listed

I see on , that it is a concern to allow user migration to any SE site based on users' understanding of the other site. Just now I came across  on Stack Overflow that should belong on Ask Ubuntu.  If the sites should not all be added to Close -> Off Topic, can there be a drop-down menu to flag a moderator about the question and write-in which site it belongs on?


If $A$ is a subset of $B$, then the closure of $A$ is contained in the closure of $B$.

I'm trying to prove something here which isn't necessarily hard, but I believe it to be somewhat tricky.  I've looked online for the proofs, but some of them don't seem 'strong' enough for me or that convincing.  For example, they use the argument that since $A\subset \overline{B} $, then $ \overline{A} \subset \overline{B} $.  That, or they use slightly altered definitions.  These are the definitions that I'm using:  Definition #1: The closure of $A$ is defined as the intersection of all closed sets containing A. Definition #2: We say that a point x is a limit point of $A$ if every neighborhood of $x$ intersects $A$ in some point other than $x$ itself. Theorem 1: $ \overline{A} = A \cup A' $, where $A'$ = the set of all limit points of $A$. Theorem 2: A point $x \in \overline{A} $ iff every neighborhood of $x$ intersects $A$.  Prove: If $ A \subset B,$ then $ \overline{A} \subset \overline{B} $  Proof: Let $ \overline{B} = \bigcap F $ where each $F$ is a closed set containing $B$.  By hypothesis, $ A \subset B $; hence, it follows that for each $F \in \overline{B} $, $ A \subset F \subset \overline{B} $.  Now that we have proven that $ A \subset \overline{B} $, we show $A'$ is also contained in $\overline{B} $. Let $ x \in A' $.  By definition, every neighborhood of x intersects A at some point other than $x$ itself.  Since $ A \subset B $, every neighborhood of $x$ also intersects $B$ at some other point other than $x$ itself.  Then, $ x \in B \subset \overline{B} $.  Hence, $ A \cup A' \subset \overline{B}$.  But, $ A \cup A' = \overline{A}$.  Hence, $ \overline{A} \subset \overline{B}.$  Is this proof correct?  Be brutally honest, please.  Critique as much as possible.


When do the Freshman's dream product and quotient rules for differentiation hold?

This is motivated by looking at the calculus exams of some of my undergraduate students. A recurring mistake is assuming that the derivative of the product of functions is a product of derivatives and the derivative of the quotient of two functions is the quotient of their derivatives.   This might be an ill formed question, but do their exist a pair of functions such that these rules hold. Explicitly, do there exist $f(x),g(x)$ satisfying all of: \begin{align*} f&\neq 0;\\ \frac{d(fg)}{dx}&=\frac{df}{dx}\cdot \frac{dg}{dx}\\ \text{and }\frac{d(f/g)}{dx}&=\frac{df}{dx}/ \frac{dg}{dx}\text{ ?} \end{align*}  EDIT: Just to clarify my question, looking at the responses so far. I am looking for functions satisfying all three conditions above simultaneously.


The square of minimum area with three vertices on a parabola

I was given this question by a friend and after working tirelessly on it I have not come up with anything substantial. I was hoping someone in the community could provide a pointer or possibly a solution. The person who gave me the question says he has the answer to it, but I am more curious about the working.  Here is the question:     Three points $(B, C, D)$ lie on parabola  $y = x^2$ and a fourth point $A$ is placed such that $ABCD$ forms a square. Find the minimal area of $ABCD$.   So far my working out has involved a collection of distance/mid-point formula's and I haven't even reached the point where I differentiate to minimize the area.  Any pointers would be welcome.   Edit  Apparently the correct answer is $\sqrt{2}$ units squared.


How can I make my ad hoc iPhone application's icon show up in iTunes?

I've got an iPhone app with icon file Icon.png.  This icon shows up properly when the app is on the phone itself, but it doesn't show up in the applications pane in iTunes.  What do I need to do to get it to show up properly?


In my understanding, $64^{\frac23}$ can be defined as $(64^{\frac13})^2=4^2=16.$ How can I define $64^x$ when $x$ is real?


Our two year old son is almost fully potty trained. He will use the potty for both pee and poop, and he has even taken a few naps (when we forgot to put on a diaper) and woken up dry. However, he is refusing to wear underwear. Currently we let him run around bottomless, because it's just him, my wife and myself living in our house. We want him to start wearing underwear, but he will fight it pretty intensely or the few times he's actually worn them will pee in them.  What are some methods my wife and I can use to teach him to wear underwear and to not potty in them?


Android app crashing on viewing code blocks

Version 1.0.53  Viewing questions with code blocks is fine, until I click on the code to scroll. Crashes every time, even after rebooting the phone.   Example question:   OnePlus One phone, latest CM Stock nexus 5 updated


Why did Einstein put a negative sign in the Pythagorean theorem?

In 4-dimensional spacetime, when we study the spacetime interval, why did Einstein put a negative sign in it?  $$x_1=x$$ $$x_2=y$$ $$x_3=z$$ $$x_4=ct$$ $$ds^2=dx^2+dy^2+dz^2-(cdt)^2$$


Let $(M,g)$ be a riemannian manifold. Show that the topology induced by the metric coincides with the topology of $M$.

I know that I have to show that $M$ with these two notions of topology have the same open. To do this, I have to take elements of the basis of any topology. But I am failing in choose that opens for each case. It is evident that I have to use somehow curves on the manifold, but I really have know idea how to proceed... I appreciate hints/solutions/comments, etc.  P.S. I cannot comment what I have tried so far because I am totally lost in how to do this.... please, be coherent.   Thanks


Finding my Great-Grandfather when DNA test not conclusive?

I am from Japan and I have been trying to identify my great-grandfather who was British.  For more background these are two questions that I have asked here previously:       I have now taken a Family Finder DNA test (Autosomal DNA) but the results appear not to give any hints that will help me to identify my great-grandfather.   The DNA test says that I have a male cousin in Denmark and that this is three to five generations ago. However, I have not been able to make contact with him.   So three people were related to me. One Japanese man, one Japanese woman and Danish man. The two Japanese are more than 5 generations, while the Danish man is from 3 to 5 generation.  If the ancestors of this Danish man become known to me I think it will be very useful.       Is there another DNA test that I should take?   I did a Autosomal / Family Finder test of FamilyTree DNA.  I was matched with 3 people in FamilyTreeDNA. One person in the Danish, two people after is Japanese.  We'll explain the research that I have done. My great-grandfather was in Kobe of Japan in the 1890s. He was officially married and great-grandmother. However, I do not know his name.   As denoted in my other questions in addition to DNA testing I have...   1. I examined the foreigners who lived from the late 1880s until 1900 in Kobe.  2. So, I found a person who continued to live after that.  3. The person was Cecil Zohrab Ede.  4. I ordered the materials of Ede in Archives of the United Kingdom. As a result he was found to have died in Shanghai in 1901. And, he is a bachelor, his property his father has received.  5. I have heard that the great-grandmother went abroad with her husband.  6. So I examined the record of the boarding of the ship. And, I found that in 1893 Mr and Mrs Ede rode to the ship.  7. Because I cannot identify the great-grandfather in the record only, I was asked to test the FamilyTree DNA. When Ede brother offspring relationship if the registration is found I thought.


Displaying several specific pages using WP_Query()

I want to display the pages 'famous' and 'mschief'.  Using this code, WP_query() doesn't return any result:  $args = array( 'post_type' => 'page', 'pagename' => 'famous,mschief', 'posts_per_page' => 3 );   This code returns one of the 2 pages:  $args = array( 'post_type' => 'page', 'pagename=famous,mschief', );   And this code returns the 2 pages correctly:  $args = array( 'post_type' => 'page', 'pagename=famous,mschief', 'posts_per_page' => 3 );   Why does the first piece of code (the only correct one to me) doesn't work? And why the two others produce these results?


Can we reconstruct 1D potentials in QM from the spectrum?

Knowing the potential, we can find the spectrum of the Schrödinger operator. The converse question is: Knowing the spectrum, can we reconstruct the potential? As an example, a harmonic potential has an equally spaced spectrum. But is the converse true?   This is, of course, similar to the 'hearing the shape of the drum' problem, which has a negative answer. But we also should notice that in classical mechanics, if the potential is symmetric, we can recover it from the oscillation period as a function of the energy of the particle. This is due to ingenious work by Abel.


After login mac is stuck on progress bar

I have 15 inc Mac book pro with Mavericks installed. I can successfully on the Mac but I cannot login to my account. Upon press enter I get progress bar and after that I get grey screen then nothing happened.   I tried all those online solution i.e press cmd + s and follow:  /sbin/fsck -fy / /sbin/mount -uw / mkdir /Disabled_System_Library_Extensions cd /Disabled_System_Library_Extensions mv /System/Library/Extensions/ATI* . mv /System/Library/Extensions/AMD* . touch /System/Library/Extensions exit  But I have no luck resolving this issue (this is the second mac that happened). I can sure see both Hard drive (HDD) and see all the context in by using cd, ls etc.. commands in this mode.   I have also try changing the HDD that contain new OS (EL Capitan) but its the same old issue (also tried cmd+alt+p+r too). When I press Alt on startup I can see the HDD, so I guess the laptop can read HDD but cannot access it?     One things I have also noticed is that I cannot start anything and what I mean by this is if I press cmd + R to access disk utility I persist same issue, if I try installing new OS via USB i  persist same issue. AND sometime when I login and keep the laptop for few long then my screen turns blue which forces me to restart my computer and follow the same procedure.    It will be nice if someone can help, can access var/log via cmd + S, if anyone requires specific log let me know.


Find x in degrees: (there souls be 2 answers from 0 degrees to 360 degrees) 5cos(x)=2sec(x)-3


Do I say "I study computer science," or "I study Computer Science"? Similarly, "I really liked that computer science course," vs. "I really liked that Computer Science course."


everything seems to run fine apart from the if statement, comments in code explain most of it.  The aim is to add two ArrayLists to a Jtree. Arraylist containing whole numbers like (1,2,3,4 etc) and the second containing double number like (1.1,1.2,2.1 etc).  I want to add the first array to the JTree, which i have managed to do. But i then want to add the second arraylist so thats it is a child of the first.  So that 1.1 and 1.2 are a child of 1 and 2.1 is a child of 2 etc.  Any help would be appreciated.      DisplayTree.addActionListener(new ActionListener() {          @Override         public void actionPerformed(ActionEvent e) {              JFrame frameG2 = new JFrame("Cell Tree");             frameG2.setSize( 400, 900 );             frameG2.setVisible(true);              frameG2.setBackground( Color.gray );              DefaultMutableTreeNode root = new DefaultMutableTreeNode("cells");              int i=0;             //should through first array list and adds it to root             for (int n =0; n<arrayList.size();n++) {                 DefaultMutableTreeNode cells = new DefaultMutableTreeNode(arrayList.get(n));                  root.add(cells);                  //should go through jtree elements                 Enumeration search = root.postorderEnumeration();                 while(search.hasMoreElements()){                       //should compare each element to a 2nd array                     //2nd array consists of double numbers like 1.1,1.2,2.1 etc                     //so i split it before the "." so 1.1 is 1                     //first array consists of whole numbers like 1, 2, 3                     //want to make 1.1 child of 1 etc.                     if (search.nextElement().toString()==(arrayList2.get(i).toString().split("\\.", 0)[0])) {                         DefaultMutableTreeNode NewCells = new DefaultMutableTreeNode(arrayList2.get(i));                         cells.add(NewCells);                          i++;                      }else{                     }                  }             }                   tree = new JTree(root);                 frameG2.add(tree);           }     });


In a ring, how do we prove that a * 0 = 0?

In a ring, I was trying to prove that for all $a$, $a0 = 0$.  But I found that this depended on a lemma, that is, for all $a$ and $b$, $a(-b) = -ab = (-a)b$.  I am wondering how to prove these directly from the definition of a ring.  Many thanks!


Redirect to another page on select event

How can i redirect on another page when an option is selected from a select element.  HTML select:  <select id='rooms' class="full-width"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> </select>   What i need is to redirect users to page.php when they select the option 2, 3, 4


Term for if-then statements where the "then" part does not logically follow

First, I'd like to apologize for the awkwardly-phrased title.   Instead of trying to explain the structure I'm thinking of, I'd like to give some context and then an example or two. I've used and seen this construction used conversationally, and if my memory and intuition serve, conversationally only. I'm curious to know if there is a formal term for it.  Ex 1  "If you don't like what I'm offering, the door is that way."  A purely logical interpretation would make little sense with this example. In this context, the inference is that the speaker is indicating to whomever he is speaking that they should leave, which suggests that there might be an elision, e.g.  "If you don't like what I'm offering, ... [then you may leave. T]...he door is that way."  Ex 2  "If you're hungry, I have food."  This is a similar context. The implication is that the speaker will offer food to whom she is speaking if they are hungry. A (strictly) logical interpretation would, again, make little sense (if you are hungry, then I have food doesn't convey any intent to provide it, nor does it make sense; the speaker always has food, she just will offer it if her guest is hungry).  I recognize that this might be too specific to have a term associated with it. I'm just curious to know what it is if it does exist.


With powershell get exactly the same application list as in Add/Remove programms

There are various methods to find installed applications on the system but to my knowledge none returns exactly the same list as control panel item Add Remove Programs. Some of the ways I tried are:   WMI via Win32_Product and Win32Reg_AddRemovePrograms Registry, both x32 and x64 branches   For instance, I have 217 entries in AR and   gwmi  Win32_Product   returns 261 items.  gp HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*, HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | ? {![string]::IsNullOrWhiteSpace($_.DisplayName) } | select DisplayName   returns 119 items.   (gwmi Win32Reg_AddRemovePrograms) + (gwmi Win32Reg_AddRemovePrograms64) | sort DisplayName -Unique    returns 107 items.  I tried to nail it down with more complex filter that included InstallLocation, InstallSource, InstallDate etc without success.


NullPointerException when using findViewById to set text from a Bundle on Textview in a Fragment class

I researched this problem on various sites and questions here on stack overflow, but I could not find a solution that solved my problem. I am struggling with this problem for some time now but just can't solve it..  I have two activities and a fragment. The first Activity (Overview) should add the Fragment in t's onCreate with different text then the default one. The second Activity (AddCity) sends this text data to Overview with an Intent and a Bundle. In Overview the Data is available and i send it to the Fragment with myfragment.setArguments(bundle), but when I try to access the Textview in onCreateView with Bundle bundle = getArguments() i get the following error:  FATAL EXCEPTION: main      Process: com.myapp.www, PID: 19690      java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.View.findViewById(int)' on a null object reference   The exception occurs at the following line in StatusFragment:  TextView cityText = (TextView) getView().findViewById(R.id.city_name);   I already tried the approach using a own constructor for that, but as far as i know you should avoid a custom constructor other than the empty default constructor in a fragment, and it didn't work either.  My classes are:  Overview:  protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_overview);          Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);         setSupportActionBar(toolbar);         getSupportActionBar().setIcon(R.drawable.myicon);         // Create the adapter that will return a fragment for each of the three         // primary sections of the activity.         mSectionsPagerAdapter = new SectionsPagerAdapter(getSupportFragmentManager());          // Set up the ViewPager with the sections adapter.         mViewPager = (ViewPager) findViewById(R.id.container);          if(getIntent().getExtras() != null){             Bundle extras = getIntent().getExtras();              StatusFragment newFragment = new StatusFragment();             newFragment.setArguments(extras);              mSectionsPagerAdapter.addFragment(newFragment, extras.getString("city"));         }else{             Log.w("Overview-Bundle", "No Bundle Data");         }          mViewPager.setAdapter(mSectionsPagerAdapter);     }   AddCity:  This class uses a method to receive a JSON string and parse it to get the data i need to send to the fragment. This works fine, so I only give the relevant code where I put together the Intent. obj is the JSON object. (let me know if you need more code)  Intent i = new Intent(AddCity.this, Overview.class);                     Bundle bundle = new Bundle();                     bundle.putString("city", obj.getString("user_city"));                     bundle.putString("country", obj.getString("user_ country"));                     i.putExtras(bundle);                     startActivity(i);   StatusFragment:  public View onCreateView(LayoutInflater inflater, ViewGroup container,                              Bundle savedInstanceState) {         View view = inflater.inflate(R.layout.fragment_for_overview, null);          setUI(view);          return view;     }      public void setUI(View view){         if(getArguments() != null) {              Bundle bundle = getArguments();              String city = bundle.getString("city");             String country = bundle.getString("country");              TextView cityText = (TextView) getView().findViewById(R.id.city_name);             TextView countryText = (TextView) getView().findViewById(R.id.country_name);              cityText.setText(city);             countryText.setText(country);          }else{             Log.w("Arguments", "no arguments");         }     }   I would be grateful for every answer. Let me know if I should post more code.


a two-variable cyclic power inequality $x^y+y^x>1$ intractable by standard calculus techniques

If $x$ is in the open interval (0,1) and so is $y$, prove that $$x^y+y^x>1$$  A direct two-variable application of maxima and minima seems difficult.


How to install Ubuntu without a CD and a USB?

I want to install Ubuntu WITHOUT using either of the following:   CD USB


How can I change the bitrate of an .mp2 file usin ffmpeg.  So far I tried following:  ffmpeg -i myAudio.mp2 -minrate 160k -maxrate 160k -bufsize 160k myAudioNew.mp2   It creates me an Audio but if I go into the file details (Windows) the bitrate is different.


I have written that all the groups with 4 element are isomorphic with Z4 or the Klein group. Can somebody explain me why,please?


How to delete ".."-folder under Windows?

I have a folder on my desktop which is named ".." (which itself contains subfolders with an empty name). The folder can't be deleted the usual ways, even not when using the CLI. Does anyone know how I can remove this folder on Windows Vista 64-bit?  Renaming does not work, either (obviously).  This is what "dir /x" echoes:  09.10.2009  15:04    <DIR>                       . 09.10.2009  15:04    <DIR>                       .. 08.03.2007  11:18    <DIR>                       cgi-bin                0 Datei(en),              0 Bytes                3 Verzeichnis(se), 45.866.037.248 Bytes frei


Assume we have a full-wave rectifier bridge circuit connected to a load made of a resistor with resistance R and a capacitor with capacitance C in parallel to each other.  In the first quarter-period, the capacitor is obviously charging with the diode from the rectifier on (We assume it is ideal and that the connecting wires are ideal as well.). However, from the quarter period to the half of the period, I have no idea how to get an analytical formula and derive whether the capacitor charges or discharges.  How do we get an exact equation governing the capacitor and when exactly does it start discharging? Does it do so exactly at the quarter period or does it start discharging after a certain angle?


This might sound like a stupid question, maybe even so obvious that I can't find the answer anywhere else, but could someone please shed light on why inductors don't short out?  With basically all of the inductors that I've seen, the wire coils touch.. a lot. Why doesn't the electron flow just take the "path of least resistance" and go straight from the input lead to the output lead?  To illustrate, my understanding of how electricity flows through a conductor is as follows (please excuse the dodgy looking MS Paint overlay):    Since the wires are touching, I'm wondering why it doesn't go like this:   The only explanation that I could think of is that the silver-coloured contacts at the ends (somewhat covered by my drawing) are actually elemental silver, and the wires are only coated in copper. This seems like the only explanation, because according to www.tibtech.com/conductivity.php and chemistry.about.com/od/moleculescompounds/a/Table-Of-Electrical-Resistivity-And-Conductivity.htm, the only thing with less electrical resistance than copper is silver. Presumably the difference is sufficient to force the current to run the entire way around the coil and not just short through the copper.  If anyone could shed light on this, that would be great - thanks :)


How to use ajax_url in front end when using with theme?

I'm trying to use ajax function to my theme. I think i can't just put the javascript code in my functions.php, i have to register it properly and enqueue it.  So i store the javascript file with .js extension and enqueue it from my themes js directory. Now ajax_url is only available globally in admin section not in front end.  To get the url we have to use <?php echo admin_url('admin-ajax.php'); ?> for front end .  How can i use it in the file as it is a js file? Php can not be interpreted.  Is there any other way to define the ajax_url in my js file for front end.  OR should i include it in the header.php with no option?


present continous or present perfect continous?

Should I write 'I have been reading a book now' or 'I am reading a book now'? I started to read one week ago and I haven't ended yet. Thanks for help


How to find the size of a string inside a function in C?

Firstly before I explain, here is the code in C:  #include <stdio.h>  void printSize(char* str);  int main() {     char a[100] = "StackOverflow";     printSize(a);     return 0; }  void printSize(char* str) {     int n = sizeof(str) / sizeof(char);     printf("%d" ,n); }   As you can already see, I am trying to get my function to print the value "100" as 100 is the size that I have allocated to my char array a. However I am getting 8 as my answer. Now I know why I am getting 8 here because it's printing the size of the pointer. So my question is, if I can't use this method to print out the value of "100" then how can I find out the memory allocated to a from inside the function?  Thanks


Difference Between singleton class and a class with only static members?

EDIT: I want the difference between singleton class and a class with only static members. I don't want to compare the singleton class with the static inner class, because java doesn't allow static classes rather than static inner classes.  A Singleton class allows user to have only one object for that class. By this we can restrict the user to have only one instance of the attributes.   This could be achieved by using a class which has only static members and static methods (Not a static inner class)  So, What is the Difference between the following 2 classes  Singleton class:  public class Test {     public static void main(String args[]) {         Singleton s = Singleton.getInstance();         s.foo();     } }  class Singleton {      private static Singleton obj = new Singleton();      private Singleton() {     }      public static Singleton getInstance() {         return obj;     }      public void foo() {         // something...     } }   class with only static methods and members:  public class Test {     public static void main(String args[]) {         NotSingleton.foo();     } }  class NotSingleton {     public static void foo() {         // something...     } }


If electrons are waves, how do they repel each other?

Louis de Broglie said that electrons are waves. But how they repel each other?


There should be a space between the period and the N

reads:     This election is currently in the nomination phase.Nominations close in 7 days    The space after the S of “days” should be moved to just before the N of “nominations.” IMO, there should also be a period following “days.”


I have declared one formClosing event procedure on form closing  here is my code.I'm designing a notepad using c# and before closing the form or my notepad app it should ask user whether he/she wants to save it or not ..  private void Form13_FormClosing(object sender, FormClosingEventArgs e)     {          if (this.Text == "Untitled-FileEditor")         {             if (richTextBox1.Text.Length > 0)             {                 DialogResult dr = MessageBox.Show("Do u want to save changes to untitled", "FileEditor", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);                 if (dr == DialogResult.Yes)                 {                     saveFileDialog1.FileName = "NewText";                     saveFileDialog1.Filter = "Text Files(*.txt)|*.txt";                     DialogResult d = saveFileDialog1.ShowDialog();                     if (d == DialogResult.OK)                     {                         string TextFilePath = saveFileDialog1.FileName;                         richTextBox1.SaveFile(TextFilePath, RichTextBoxStreamType.PlainText);                         richTextBox1.Text = "";                     }                 }                 if (dr == DialogResult.No)                 {                     //richTextBox1.Text = "";                     this.Close();                 }             }             else if (richTextBox1.Text.Length == 0)             { this.Close(); }         }         else if (this.Text != "Untitled-FileEditor")         {             if (richTextBox1.Modified)             {                 DialogResult dr = MessageBox.Show("Do u want to save changes to " + openFileDialog1.FileName, "FileEditor", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);                 if (dr == DialogResult.Yes)                 {                     saveFileDialog1.FileName = "NewText";                     saveFileDialog1.Filter = "Text Files(*.txt)|*.txt";                     DialogResult d = saveFileDialog1.ShowDialog();                     if (d == DialogResult.OK)                     {                         string TextFilePath = saveFileDialog1.FileName;                         richTextBox1.SaveFile(TextFilePath, RichTextBoxStreamType.PlainText);                         richTextBox1.Text = "";                     }                 }                 if (dr == DialogResult.No)                 {                     //richTextBox1.Text = "";                     this.Close();                 }             }             if (!richTextBox1.Modified)             {                 this.Text = "Untitled-FileEditor";                 //richTextBox1.Text = "";                 this.Close();             }         }     }   Error showing - An unhandled exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll  Additional information: Cross-thread operation not valid: Control 'richTextBox1' accessed from a thread other than the thread it was created on.


I'm trying to implement a KeyListener for my JFrame. On the constructor, I'm using this code:  System.out.println("test"); addKeyListener(new KeyListener() {     public void keyPressed(KeyEvent e) { System.out.println( "tester"); }      public void keyReleased(KeyEvent e) { System.out.println("2test2"); }      public void keyTyped(KeyEvent e) { System.out.println("3test3"); } });   When I run it, the test message comes up in my console. However, when I press a key, I don't get any of the other messages, as if the KeyListener was not even there.  I was thinking that it could be because the focus is not on the JFrame and so they KeyListener doesn't receive any events.  But, I'm pretty sure it is.  Is there something that I am missing?


Why is %appdata% C:\Users\<user>\AppData\Roaming and not just C:\Users\<user>\AppData?  And whats the difference between AppData\LocalLow and AppData\Local?  Related, but no duplicate:


Why does my code break from the while loop before it seems it should?

cont = "y";         while (cont == "y")         {             System.out.println("Enter money.");             money = input.nextInt();             TestMachine.insertMoney(money);              System.out.println("Enter more money? ('y' for yes, anything else for no.)");             cont = input.nextLine();         }          System.out.println("Enter how many tickets do you want.");   When I enter my code, at this part, this is what happens.  Enter money. 34 Enter more money? ('y' for yes, anything else for no.) Enter how many tickets do you want.   The code will break the while loop before It's recieved input from the user and even though the variable 'cont' appears to still be "y". Could someone help me by explaining why this happens? Thanks.  I've been told to use .equals() instead of == in my code. It now looks like this.          cont = "y";         while ("y".equals(cont))         {             System.out.println("Enter money.");             money = input.nextInt();             TestMachine.insertMoney(money);              System.out.println("Enter more money? ('y' for yes, anything else for no.)");             cont = input.nextLine();         }          System.out.println("Enter how many tickets you want.");   however when I run the code the same problem arises. It breaks the loop before waiting for an input from the user.  Enter money. 34 Enter more money? ('y' for yes, anything else for no.) Enter how many tickets do you want.


transparency texture not showing other object?

So I have a video and I have the checker texture, and have set it up so that its black and white, and then I put the color into alpha of the output node, so that I have this white and transparent dotted line. BUT, the "transparent" part of the line goes THROUGH an object right behind it.  I'm using blender internal. help?


Minecraft Error: Could not find or load main class

My full error:  Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release Error: Could not find or load main class net.minecraft.client.main.Main  I just installed Minecraft 1.8.9 on OSX El Capitan and tried to play offline since my wifi connection has some issues, and I ran into the error above.  Here is the log link:   Do you have any idea how to fix this?


Javascript onClick event does not work with data-modal - Asp.Net Core MVC

I have a DataTable in my Index in which the lines are loaded using JavaScript. The Edit, Details, Delete, and History buttons are created together. All of them open in a modal window (the modal block is inside the Index) ... In the html of each button there is a "data-modal" attribute in which it will serve as reference for the onclick event that will cause that button to open in the Modal window.    "columns": [             { "data": "id", "name": "Id", "autoWidth": true },             { "data": "descricao", "name": "Descricao", "autoWidth": true },             { "data": "pessoaTipoDescricao", "name": "PessoaTipo", "autoWidth": true },             {                                "render": function (data, type, full, meta) {                     return ' |' +                            ' |' +                            ' |' +                            ''                 }             }         ],     Problem: Clicking on the "Edit" button, the "data-model" attribute does not seem to be recognized and the onclick event is not working:     $('a[data-modal]').on('click', function (e) {         // Abre a janela modal com o formulário solicitado          openmodal(this.href);         return false;     });     Does anybody know how to solve this?


What is the best way to find the users home directory in Java?

The difficulty is that it should be cross platform. Windows 2000, XP, Vista, OSX, Linux, other unix variants. I am looking for a snippet of code that can accomplish this for all platforms, and a way to detect the platform.  Now, you should be aware of  that user.home does not work correctly, so please do not provide me of textbook answers, I can find these myself in the manuals.


Multiple choice question: Let $f$ be an entire function such that $\lim_{|z|\rightarrow\infty}|f(z)|$ = $\infty$.

Let $\displaystyle f$ be an entire function such that $$\lim_{|z|\rightarrow \infty} |f(z)| = \infty .$$ Then,    $f(\frac {1}{z})$ has an essential singularity at 0. $f$ cannot be a polynomial. $f$ has finitely many zeros. $f(\frac {1}{z})$ has a pole at 0.   Please suggest which of the options seem correct.   I am thinking that $f$ can be a polynomial and so option (2) does not hold.  Further, if $f(z) = \sin z $ then it has infinitely many zeros... which rules out (3) while for $f(z) = z$ indicates that it has a simple pole at $0$ and option (4) seems correct.


Do photons gravitationally attracts one another?

I know photon is an electromagnetic wave and are generally massless and therefore cannot exert a gravitational force, however I know energy can wrap the space around it so I'm confused. I think I'm mistaken somewhere so please help, thanks.


why does letter s pronounced differently in word resume and assume?

In assume consume,s is pronounced as /s/,but in resume presume,s is pronounced as /z/.why?  The 4 words have a common root sume which is from Latin,but get different pronunciation eventually.


If $m$ and $n$ are distinct positive integers, then $m\mathbb{Z}$ is not ring-isomorphic to $n\mathbb{Z}$

Show that if $m$ and $n$ are distinct positive integers, then $m\mathbb{Z}$ is not   ring-isomorphic to $n\mathbb{Z}$.   Can I get some help to solve this problem


Why doesn't this code cast a base class into a derived class in c++?

Why doesn't this c++ code work? It is meant to dynamically cast a base class into a derived class. How would I achieve this?      class base {     public:         int x = 0;     };      class a : public base {     public:         char c = 'a';     };      class b : public base {     public:         long int d = 'b';     };      std::vector<base> vec;     for (int i = 0; i < 5; i++) {         b temp;         vec.push_back(temp);     }      for (int i = 0; i < 5; i++) {         b* temp = (b*)&vec[i];         std::cout << temp->d << std::endl;     }


Can vector components be in turn decomposed?

I've a basic (and maybe obvious even if I don't see it) question on the decomposition of a vector in physics.  An example of situation I'm confused about is the inclined plane with an object on it. There is only the weight force acting on it. Weight is vertical but it is usually decomposed in parallel and normal components to the inclined plane.  Referring to the first picture (on the left) the blue vector is wheight and the red ones are its decomposition. My question is about what I did in the second picture on the right. There I considered only one of the components of weight (the red normal one) and I decomposed it in vertical and orizontal components (the green ones). The question is: does this make any kind of sense or is it a total absurdity?    It seems impossible to me for a vertical vector to end up to have an horizontal component, perpendicular to it. Nevertheless in some situations I ended up with this doubt, that I cannot solve by myself.  Am I missing something important here?


can we declare key strings as final variables in javascript/nodejs

I come from world of java but have been working in nodejs + angularjs for my current project. I have some "key Strings" which are frequently used at many places both in client and server side.  In java it is practice to declare all key strings as final variables and use through the final variables so as to avoid typing mistake while using them. Is there any similar concept in javascript?  public static final String KEY_WORD = "frequently used string"     public static final String KEY_WORD2 = "another frequently used string"


I need help, I am very new to Ubuntu and am running 14.04 LTS. the problem was that my password login screen would prompt me twice for my password, I could not find a solution so I decided to remove my password login completely. I found a web page telling me how to remove it and I succeeded in doing so, but now it prompts me twice for my keyring password.. I have looked for a solution to this but no luck, I have decided just to go back to having my normal password on the login screen and wait for a solution to the double login problem, but apparently I did not bookmark the site I used to remove it and I cannot remember how to undo it..  Any Suggestions?  output of cat /etc/lightdm/lightdm.conf in terminal is  [SeatDefaults] autologin-user=


How does resistance/vulnerability/immunity interact with carryover damage after reducing a Polymorphed (or Wild Shaped) form to 0 HP?

A caster casts  on another creature. Let's say the polymorphed creature has 10 HP in its new form, but takes 30 piercing damage and its current form is reduced to 0 HP. This causes it to revert back to its original form, with 20 more piercing damage that would carry over. However, its original form is resistant to piercing damage. How much damage would the new form actually take? Would its original form's resistance to the damage type apply to the carryover damage? The same question can be extended to the original form having immunity or vulnerability, as the answer would ostensibly use the same logic.  The  ability also works similarly to polymorph in this regard (if you reduce the new form to 0 HP, then any remaining damage carries over to its original form), so I suspect the answer would be similar for a similar question about Wild Shape.


Here i have a template class:  template <class T,int N>  class A{    private:     T q;    public:     int show(); };   and i want to redefine func "show" different for class int, what do i do? in my thought it's like this:  template<int T,int N> int A<int,N>::show(){      return int(q/100); }   how should i do it right? There are alot of examples for only one template argument,but how i do define it for two or more?


Directional, Triangular Collision Detection in Pygame

I am trying to create a game in Pygame, with Python 3, and am trying to figure out an algorithm that will tell me which direction a rectangle is colliding with a rectangle, so that I can push it back the correct direction. I know I can detect rect-to-rect, and I could (possibly?) use pixel-to-pixel collision, but I was wondering if there was a better way. My collision algorithm currently loops through all of the "entity" objects in a Pygame sprite.Group(), and testing for collision using the colliderect() method, then I test which direction the rect is coming from by testing which sides overlap. Is there something similar that I could do with a collision between a triangle and a rectangle, too? Pseudocode would be nice.


How to recover Ubuntu GRUB after installing another Linux distribution?

I use Ubuntu GRUB.  After installing some other Linux distribution Ubuntu GRUB disappears and the other distribution's GRUB appears.   How can I recover the Ubuntu GRUB?


I'm going crazy in trying to draw the following table in LaTeX:    Can you help me please? Thank you in advance  Here's what I've done:  \begin{tabular}{c c c}     A & \multicolumn{2}{c}{B}\\ E & F \\ C\\    D & G\\   \end{tabular}   Thank you all, guys, but I have to draw a table just using the following packages: array, multirow, tabularx, and the supertabular.


I have data in the following format  Project Person1 Person2 Person3 A         Joe     Alice  Bob B         Bob      Tom   Joe C         Alex     Alice  Tom D         Bob      Doug   Susan   How can I get a pivot table that shows the following:  Person   Prj1    Prj2 Prj3 Joe       A       B  Alice     A       C Bob       A       B    D Tom       B       C    Dog       D Susan     D Alex      C


How to get system cpu/ram usage in c++ on Windows

I know this question has been asked multiple times. I've looked around a lot, but I can't seem to find an answer.  I did find this code . But it will not compile, and all the other answers I've seen have been about how to get a single processes cpu/ram usage.


Which is actual difference between package update and security updates?

This is probably a real noob question...  I would like to understand what the "updates" alerts I get when logging onto my Lubuntu box actually mean.  When I read:  35 packages can be updated. 22 updates are security updates.   I understand that there are 22 security updates and 13 "regular" updates, for a global count of 35 updates.  As I want to run only security updates, I run:  sudo unattended-upgrade   But after that, I do not get any update notification any longer until the next updates cycle, so all the packages, security and not security, seem to be updated.   This seems also confirmed with:  sudo /usr/lib/update-notifier/update-motd-updates-available   Which replies with a blank output.  Someone can explain? Thanks!


For every finite case, I can find a $c$ where $2^n = n^c$, so why is this true?  $$\lim_{n \rightarrow \infty} \frac{2^n}{n^c} = 0$$  From the finite cases it seems like $2^n$ grows faster because we can find a $c$ to match it at any $n$.


Remove the spacing before the itemized list

Anybody knows how I can remove the spacing before my itemized list?  \begin{document}     {\bf main text }\hfill{year}\\     {title}\\     \renewcommand\labelitemii{$\square$}      \begin{itemize}     \setlength{\itemsep}{0.05em}     \item[$\square$] item 1     \item[$\square$] item 2     \item[$\square$] item 3     \item[$\square$] item 4\\     \end{itemize} \end{document}


Author Date Function not working as expected

I am trying to get whether the author has posted within the last 30 days but this returns TRUE even if the author hasn't posted within the last 30 days.        <?php $args = array( 'post_type' => 'post', 'post_status' => 'publish', 'author' => get_current_user_id(),  'date_query' => array(array('after' => date('Y-m-d', strtotime('-30 days')), 'inclusive' => true,),) , 'fields' => 'ids',); $wp_posts = get_posts($args); if(count($wp_posts)) : ?>
Author posted within the last 30 days
       <?php else : ?>
Author did not post within the last 30 days
       <?php endif; ?>   Not sure what I am doing wrong here.


As the title says, I could use an exhaustive list of all Stack Exchange sites that use MathJax.  If the list included any site-specific customizations made to the MathJax configuration on each site, that would be even better.


I am trying to generalized, for which integral values of $d$,   $\mathbb{Z}[\sqrt{d}] = \{ a + b\sqrt{d} \vert a,b\in\mathbb{Z}\}$ is an Euclidean domain?   I am interested specially in positive integral values of $d$.


Is there an application dealing with ancestry on Ubuntu?  Wine will not co-operate with Family Tree Maker.  If someone can point me in the right direction, I will be able to give Windows the  complete "Heave-Ho".


can I use the same PICTURES, VIDEOS, MUSIC & DOCS already on hard drive. I remember a window appearing during Linux installation saying it would require about 300gb for this, I clicked on OK but don't know how to get to them to appear.


For all integers y, if $\gcd(9,y) = 3,$ then $\gcd(9,y^2) = 9$

This question is based on the equation above, where for all integers $y$, if $\gcd(9,y) = 3$, then $\gcd(9,y^2) =9$.  I know this statement is true as if you try to put whatever that is a multiple of 3 as $y$ and if the value matched with the first condition where the $\gcd$ is $3$, it'll match the second condition. For example, if $y = 3,6,12,15,18,21,24...$ they will all work for both conditions.  What I'm trying to know now is how do I put into words to explain how they actually work in pair? More specifically, I am trying to understand the logic behind how they work for each other.


Wifi Won't Connect; Connection Timeout (Mac)

I'm having issues with my macbook pro OS X 10.7.5.  It used to connect to the wifi router (D-Link N300, DIR=615) no problems.  But for the past several weeks, I haven't been able to at all.  What pops up when I select my wifi network from the list:   "Failed to join "network" A connection timeout occured".   What happens when I try to enter my password manually:   "Connection timeout"   What I've tried to do as solutions:   Google Restart router by pressing reset & refresh button Delete System & User (Login) Keychain access Network > Gear symbol by the + and - bottom left of the screen > Set Service Order > Drag Wifi to the top


In a grammar test I did, the following sentence was to be corrected: "I first spotted the turtle playing tag in the yard." It clearly contains a misplaced modifier. The correction suggested was to place the participial phrase at the beginning of the sentence ("Playing tag in the yard, I first spotted the turtle"). Could you, instead, place a comma after turtle? "I first spotted the turtle, playing tag in the yard." Based on what I've read about the placement of participial phrases, there's nothing wrong with it, but it looks and sounds strange to me. "I first spotted the turtle while I was playing tag in the yard" seems preferable to me.


The  in the Babylon 5 saga are very secretive. As far as we know, only two humans ever visited their empire and lived.  Vorlon territory was restricted to other alien species and (almost) every known expedition into Vorlon space failed to return to their respective governments. Much like the Shadow homeworld, Vorlon is protected by an array of highly advanced and automated defense systems designed to keep out intruders and primitive spacefaring races. These defense systems remain in place and active even after the Vorlons abandoned their home and left known space; evidence suggests that the systems will not allow outsiders entry to Vorlon until 1,000,000 human years have elapsed.  They wear encounter suits and very rarely leave the suits because they don't want others to see how Vorlons appear.    Despite their secretiveness about their empire, their history, and especially their physiology, somebody poisoned the Vorlon ambassador to . How would anybody know how to poison a Vorlon?  In the pilot episode, , ...      a member of the Wind Swords, a militant section of the Minbari warrior caste, disguised himself as station Commander Jeffrey Sinclair, and attempted to assassinate  with poison.   A person could not pick a chemical at random and hope it works. If they tried sodium-cyanide, they might discover it just makes Vorlons hallucinate, but does not injure them. Or if somebody tried, potassium-chloride, they might discover that Vorlons use that the way we use table salt, sodium-chloride.  Later in the episode ...      Doctor Benjamin Kyle decided to risk treating Kosh, which meant opening the encounter suit. Determining that a cure would be impossible without knowing where the poison entered the Vorlon, Dr. Kyle convinced newly arrived Psi Corps telepath Lyta Alexander to scan the Vorlon. Despite the very strict Psi Corps rules in such cases, Lyta performed the scan.   So we have a separate, but related question of how could a doctor know how to treat a Vorlon for poison if he doesn't understand Vorlon physiology, which poison was used, or the effect of the poison on the body? While this second question is intriguing, it's not the focus of this post.  I prefer answers backed by canon sources; such as comments from the producers, novelizations, or screenplays.


How do we extend a command to the next line? Basically whats the windows alternative for Linux's ls -l \ /usr/  Here we use backslashes to extend the command onto the next lines. What's the equivalent for Windows?


Dave and Sharon Sampson established a plan to save 347𝑝𝑒𝑟𝑚𝑜𝑛𝑡ℎ(𝑜𝑟4164 per year) for their children's education. Their oldest child is 5 years old and will begin college in 13 years. They will invest the $347 in a savings account that they expect will earn interest of about 4.8% a year, compounded monthly, over the next 13 years.  This was the original question. However, I was having trouble answering part part d.   d) How would their savings accumulate if they could save 198.5 bi-weekly instead of $347 per month (at 5.8% interest per year).  I am having trouble with identifying the i and n values which are required to solve the formula. Could I get some help?


I've installed virtualbox on my laptop which has Windows 7 operating system, but I cannot run Ubuntu and it shows me the following error:     This kernel requires a x86-64 CPU, but only detected an i686 CPU.   Unable to boot- use a kernel appropriate for your CPU.


I want to start and stop an external program in Python3, on Linux. This program is an executable, called smip-tun,  located in the same folder as the source code and I'd like to be able to execute and control it from there with relative names.  Unfortunately, this does not work:  smip_tun = 0  def start_smip_tun(self):     smip_tun =  subprocess.Popen(['smip-tun',DEFAULT_SERIAL_PORT])  def end_smip_tun(self):     smip_tun.terminate()     print("end")   But says it cannot find smip-tun. Efforts to specify the relative directory have failed. I was trying with cwd but cannot figure it out. Any advice?  Edit:   Made Smip-tun global but the issue persists.  New code:  smip_tun = 0  def start_smip_tun(self):     global smip_tun     smip_tun =  subprocess.Popen(['smip-tun',DEFAULT_SERIAL_PORT])  def end_smip_tun(self):     global smip_tun     smip_tun.terminate()     print("end")   Error message:    File "/home/sven/git/cerberos_manager/iot_network_api.py", line 40, in start_smip_tun     smip_tun = subprocess.Popen(['smip-tun',DEFAULT_SERIAL_PORT])   File "/usr/lib/python3.5/subprocess.py", line 947, in __init__     restore_signals, start_new_session)   File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child     raise child_exception_type(errno_num, err_msg) FileNotFoundError: [Errno 2] No such file or directory: 'smip-tun'


Right above this  here it's mentioned that the matrix of regression coefficients, $(\sum_{XX})^{-1}\sum_{XY}$, corresponds to the coefficients of an OLS solution. But I can't really see it for myself.


Android notifications for read inbox messages

I am running Stack Exchange Android app version 1.0.63.  I had disconnected my phone from Wi-Fi and after that, I browsed Stack Exchange from my Laptop and received a bunch of inbox messages. I replied to them and the top bar on any relevant Stack Exchange site showed no new messages.  I reconnected my phone to Wi-Fi, and in the past 10 minutes I have received about 20 old notifications. The app itself shows them as read, but I still get the notifications. On clicking the notification, the inbox opens, but no message is highlighted.   This happened before, but I ignored it then. Also, Stack Exchange on my iPad doesn't suffer from this.


Challenging intuition: supremum of the set of all intersections with the x-axis

As a follow-up question from , let $f : [a, b] \to \mathbb{R}$ be continuous and let $X = \{x \in [a, b] : f(x) = 0\}$. Clearly $f$ is uniformly continuous, the set $X$ is bounded, and $a \leq \sup X \leq b$. From the linked question, is it very possible for $X$ to be a closed nowhere dense set such as . But, nevertheless,  Is it true that $\sup X \in X$?  My intuition was challenged many times during my studies of real analysis. But if this one is false, it will be by far the biggest challenge to my intuition, ever!


Prove that $|a|\leq \max\{|b|,|c|\}$ if $b\leq a \leq c$

Prove that $|a| \leq \max\{|b|,|c|\}$ if $b\leq a \leq c$.  I showed that $a\leq c$ and therefore $-c\leq a \leq c$ so that $|a|\leq c$ but then I got stuck. Is this the right approach?


Prove that $\binom{n+1}k = \binom nk + \binom n {k-1}$

As the title says.  Prove that ${n+1 \choose k} = {n \choose k} + {n \choose k-1}$  It looks to me like induction but since there are two variables, I'm not really sure how to even set up a base case. If it is, in fact, induction.


What is the best technique for long-exposure photography in good light?

Can anyone offer any tips on achieving long exposures (with the intention of blurring water, clouds etc)?


The problem is show that if $I$ and $J$ are ideals in a commutative ring s.t. $1 \in I+J$, then $1 \in I^m+J^n$ for all natural numbers $m, n$ (Marcus Number Fields Ch3 Problem 7).  I can write $1 = a + b$ for $a \in I$ and $b \in J$. Considering $m=n$ for now, from the binomial theorem we have $$ 1^n = 1 \quad\in\quad I^n + J^n + IJ\sum_{k=0}^{n-1}{I^kJ^{n-1-k}}.$$ I am not sure where to go from here. If $IJ\sum{I^kJ^{n-1-k}}$ were contained in either $I^n$ or $J^n$ we would be done but this does not always hold.


Input. Let's say I have a file named f with the following content:  +% H % V   I can get the first column sorted in two ways:  First approach:  cat f | awk '{print $1}' | sort   Second approach:  cat f | sort -k 1 | awk '{print $1}'   Output & Question. It seems to me that it must be the same results, but it isn't: the output of the first command is:  % +%   and of the second is:  +% %   If I swap H and V in the second column of file output of the second command would change, but it shouldn't. Flag for stable sort doesn't change anything. All these were tested for bash versions:  GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu)  and  GNU bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu).  So, my question is why do outputs differ?


Well, what is the meaning of wave function? What does it represent? In Schrodinger's equation, we find the value of Ψ. But what is Ψ exactly? Max Born only gave an explanation of what $Ψ^2$ (the probability of particle with low mass enough to have an observable wavelength to be in a position in space). But no one knows what Ψ is.


Bash Shell takes variable amount of time to load

I use bash on Ubuntu 18.04. I have added a lot of functions and a lot of scripts are sourced in my bashrc. I am able to time the total time it takes to load my terminal, sometimes it takes 0.9 seconds to more than a minute. And this happens randomly, not that only at the first time it takes more time.   How can I log and analyze how much time each command in bashrc takes to execute. I hope that the logs are generated every time automatically and when it is slow I could analyse the cause of it.   Any suggestions as to what can be done.   Secondly, would preload daemon be useful to speedup the loading of the terminal. I am not sure about it.


Is there a standard of rest in the universe?

If you measure the cosmic background radiation you will find that in any direction it is roughly the same. However, if you were to travel near the speed of light relative to the Earth in a particular direction then the cosmic background radiation would be observed to have different values based on what direction you measure it from. So, does the cosmic background radiation imply a standard of rest in the universe?


Years old vs. year old in a descriptive sentence

I need to describe that a product is suitable for specific ages. Which of the follwoing should I use? This product is suitable only for 7+ year old children This product is suitable only for 7+ years old children


If I want to measure an electron how would I do it?

If I look at the Electron to see it then a Photon must of hit the Electron. So I have no idea of what the Electron was doing before I looked at it.  To find its position again I need to perform a measurement of some sort. This time I decide to make sure my Electron is in a black box so no Photons can get to it. But to measure something is to scale, to grade, to quantify maybe is a better word. So how do you do quantify an Electrons position with out disturbing it in the first place.


why did my old history and extensions appear in a fresh install of chrome?

I uninstalled chrome with:  sudo apt-get purge google-chrome-stable   The next day I reinstalled it with:   sudo apt-get install google-chrome-stable   All the old settings from the old install appeared when I opened it up.


I am having a lot of trouble with a homework assignment. We were given three JPanels: myJPanel, myJPanel1, and myJPanel2. I have to have a JButton in mJPanel1 update the text of a button, b2, in myJPanel2. The problem is I can't make any changes to myJPanel2. Everything I try gives me a NullPointerException. Please help.  Here is the code: myJPanel-  import java.awt.*; import javax.swing.*; public class MyJPanel extends JPanel {     MyJPanel panel;     public MyJPanel() {         super();         setBackground(Color.gray);         setLayout(new BorderLayout());         MyJPanel2 p2 = new MyJPanel2();         add(p2, "Center");         MyJPanel1 p1 = new MyJPanel1(p2);         add(p1, "North");     } }   myJPanel1-  import java.awt.*; import javax.swing.*; import java.awt.event.*; public class MyJPanel1 extends JPanel implements ActionListener {     JButton jl1;     Student st1 = new Student("Fred", "Fonseca", 44);     myJPanel panel;     myJPanel2 panel2;     public MyJPanel1(JPanel p2) {         super();         setBackground(Color.yellow);         // the whatsUp of this student has to shown in the other panel        jl1 = new JButton(st1.getInfo());        jl1.addActionListener(this);        add(jl1);     }@     Override     public void actionPerformed(ActionEvent event) {         Object obj = event.getSource();         if (obj.equals(jl1)) {             panel2.b2.setText("test"); //This is where the NullPointerException is...         }     } }   myJPanel2-  import java.awt.*; import javax.swing.*; public class myJPanel2 extends JPanel {     //==================================================     //no changes allowed in myJPanel2 for assignment 05     //==================================================     JButton b1, b2, b3, b4;     public myJPanel2() {         super();         setBackground(Color.pink);         //setLayout(new GridLayout(3,1));         b1 = new JButton("When the user clicks on the button in the UPPER panel");         add(b1);         b2 = new JButton("Display here whatsUp from the student in UPPER Panel");         add(b2);         b3 = new JButton("===>>>>You CANNOT create a student here <======");         add(b3);         b4 = new JButton("It has to be the student from the UPPER Panel");         add(b4);     } }   Any help would be greatly appreciated. I have been stuck on this problem for days.


How can I (really) change my browser identification (user agent AND javascript attributes)?

A website can get information about your browser and system via several methods:    user agent,  javascript attributes (like navigator.platform),  profiling by testing avalaible browser features (Javascript API for example),  asking available browser plugins,  etc.    This website shows some of these:    At least, I would like to know how to spoof the user agent and javascript attributes so that the website cannot detect my OS. I did it once by patching Chromium source code, but I'm looking for an easier way.   I'm interested in solutions for Chromium (Chrome) and/or Firefox.


Prove that $(n!)^2 ≥ n^n$ using mathematical induction


Find all positive integers $a,b$ such that each of the equations $x^2-ax+b=0$ and $x^2-bx+a=0$ has distinct positive integral roots.

Find all positive integers $a,b$ such that each of the equations $$x^2-ax+b=0$$ and $$x^2-bx+a=0$$ has distinct positive integral roots.   Suppose $\alpha,\beta$ are roots of the first equation and $\gamma,\delta$ are of the second, then we have these two sets of equations  $$a=\alpha+\beta$$ $$b=\alpha\beta$$ and $$b=\gamma+\delta$$ $$a=\gamma\delta$$ How to proceed?


As a perl programmer I can evaluate strings as code If I wished, Can I do the same in C#( with strings or some other object containing user input)?   What I want to accomplish is to create an object where its methods may be predefined in my source code or may be defined at run-time by the user by entering a string that represents C# code for a method  or a SQL Query. The method call should always return its scalar value as a string, I believe it would be desirable to make available some pre-defined "system" variables for use in the method call and some "Cleanup" code to validate that a string is actually returned.   Psuedo - Structure   Object Statistic       string  Name;       functionref Method;   The architecture I have in mind would basically collect these in realtime and add them upon request of the user to the list of statistics that user wants to display.  Defined Statistics could be saved to a file and loaded into the main program during initialization.  This way the user doesn't have to keep redefining the desired statistic. Edit/Update/Delete of statistics are needed.    If this is successful then I( the programmer) won't have to go and add new code every time someone decides that they have a new piece of information they want displayed on their stat board that I haven't already written code for .   Any ideas on where to start reading to accomplish this in C#?    The purpose for this capability is a program that displays statistics for a running system/database.  Values to watch are not necessarily known at design time, nor how to define the value desired for retrieval. I want to allow the User to define any  statistics beyond any I pre-code for the system.


In $\mathbb Z[\sqrt{5}]$, $2$ and $1+\sqrt{5}$ are irreducible but not prime.   To  show irreducible  I tried  that there exists $\alpha$ and $\beta$ such that  $$2=\alpha\cdot \beta $$ $$N(2)=N(\alpha)\cdot N(\beta)$$ $$4=N(\alpha)\cdot N(\beta)$$  then there are 3 possibilities (namely $1.4 , 4.1 , 2.2$)  Now,I have to show that $N(\alpha)=2$ is not possible  that is $|a^2-5b^2|=2$   $a^2-5b^2=\pm 2$   How can I show that this is not possible? and how can i show that $2$ is not prime in $Z[\sqrt{5}]$?


Scaling/size using a ratio that does not correspond to the object's length

I made this plane 17in x 6in but when I measure it blender says its length is 1in and when I try to extrude/scale it to a certain length it uses a ratio of it's current size instead of length in inches, does anyone know how I can fix this? Thanks


I'm trying to install OS X Mavericks in VirtualBox on Windows 8.1. I have VirtualBox installed and the VM set up, but I need an ISO file to install the operating system.  I've searched around and found one result one a website I hadn't heard of, but Google Chrome flagged it as malware. I found a file on CNet, but it's an upgrade file for machines that are running an earlier version of OS X.  Is there an official source for downloading OS X ISO files? If not, is it possible to get the required ISO file without already having access to OS X?


Problem with showing that group is isomorphic, cyclic and its subgroup is normal

Let $G$ be a finite group which does not have two subgroups of the same order (cardinality of the group). Assuming that I need to show that  any subgroup of the group $G$ is its normal divisor (normal subgroup), done if $G$ is nontrivial, then it's isomorphic with the product of its Sylow subgroups (hint Induction in regard of amount of Sylow subgroups), $G$ is cyclic (hint Use $2.$).  Starting with $1.$ I wanted to assume that there exists a subgroup $N$ of $G$ s. t. $gN\neq Ng$ for every $g \in G$. Namely, it is a subgroup which is not normal. Using $3.$ we obtain $$gN\neq Ng,$$ $$g^nN\neq Ng^n,$$ $$eN\neq Ne,$$ $$N\neq N.$$ which makes a contradition. Anyway, I have a problem with $2.$ and $3.$. Any hints would be helpful. I know that the third problem was somehow solved here as one user mentioned, but I am not convinced that this is the same situation. Anyway, the second problem with isomorphism still exists. Thanks.


Beamer and description environment text size

Is it possible to define a the description environment size like it its possible with itemize and enumerate?  \setbeamerfont{itemize/enumerate body}{size=\small} \setbeamerfont{itemize/enumerate subbody}{size=\footnotesize} \setbeamerfont{itemize/enumerate subsubbody}{size=\scriptsize}   I have been using:  \begingroup \small \begin{description} \item[aaa] bbb \item[ccc] ddd \end{description} \endgroup   But I don't know if it is the better approach. Also, sometimes I prefer to use the following construction:  \begingroup \small ... \endgroup   For text, figures, tables or even itemize/enumerate to fit the contents in a frame, instead of using the shrink option:  \begin{frame}[shrink]{Frame title} ... \end{frame}   Which I also don't know the better approach.


Me and my husband were granted single entry schengen visa and our country of entry and exit will be Italy. We are travelling in August, 2016 and are confused by what actually single entry means. We are also planning to visit other countries like Switzerland and Germany and back to Italy to fly back home.  Our understanding was, we can enter schengen area once ( in this case through Italy) and if we don't go outside the schengen regions (that includes all 22 countries) it will cause no problem even if we try to enter one country more than once.  Please can one clarify this to me? Thanks a lot.  Marina


How can I create a healthy and balanced vegetarian diet?

When going vegetarian, there is a problem; where can one get the protein he/she used to get from meat?  How can one create a healthy and balanced vegetarian diet, so as to get the proper nutrition people get when they eat meat, which eating it?


Is it bad to marinate meat for too long?

From my experience it is always best to marinate meat for a decent amount of time, so the meat can "soak" up the marinade and be more flavourful.  However, I came across this recipe here:   In the directions, it says: Add pork and marinade for a minimum of 6 hours or overnight, but no longer than 12 hours.  I was wondering, why does it say "no longer than 12 hours"? Isn't it good to let meat marinate for as long as possible?  Thanks.


How can I adapt A* pathfinding to work with platformers?

I have an A* implementation that works in "top down" situations where gravity is not taken into account for pathfinding. But, I am looking to modify to work in a 2d platformer situation. I am using the Unity Engine in C# but any examples or even pseudocode would be really helpful. I have found a source so far but it haven't been that helpful as I am not understanding the way they have adapted A*, I have listed them below.    (Very specific to authors implementation and hard to understand)


When I move files, a small 'noise' noise comes through my headphones or speakers.  It only happens when moving files.  Is there a reason why moving files causes this slight static?  It only lasts for as long as the files are moving.  I'm not as much as annoyed as I am curious.  It is a Gigabyte board with a integrated sound card.  I'm running Windows 7.  I don't think it used to do this but I'm not quite sure.


Is there an easy way to change filetype association?

After the upgrade to 11.10 I've had the problems that    all music-files would open with banshee, which then crashed all folders would open with konsole   The first problem I  after installation of "ubuntu tweak" "> admin > filetype Associations".. Changed back to totem.  The second was somehow not accessible this way (did not give any possibility to add commands).  I've changed the line "inode/directory=nautilus-folder-hanlder.desktop" to "inode/directory=nautilus.desktop" from "/usr/share/applications/defaults.list" and now everything works fine.  Question: More convenient ways to do that?


Smallest $n$ such that $G$ is a subgroup of the symmetric group $S_n$

A well-known result, Cayley's theorem, says that any group is isomorphic to $S_n$ for some $n$. Given a (finite) group $G$, is there a standard name for the smallest such $n$?  This seems like a very basic concept which has surely been studied and named, but my searches have found nothing so far.  Is it easy to calculate $n$? An obvious lower bound is the Kempner number $(|G|)$.    Note: there is a  but it doesn't address my issue.


Is communication possible with entanglement?

From what I gather, communication is not possible with quantum mechanics. With the experiment on teleportation, entanglement is referred to as coordination and not communication. However, my belief is that communication is taking place. For example, given if a qubit has more information than a bit, this will mean that after Alice entangles/sends the qubit and prior to Bob measuring it, information is communicated. Am I missing something?  Yes. I have studied superdense coding. I also understand about the 2 classical bits. Let me add clarity to my question. Alice has a qubit which is sent to Bob. The qubit is not a regular bit and it contains more information than a bit. So, at the end of the day, Bob ends up receiving a qubit. And what I was saying in my original question, let's assume Bob does not read it but rather uses this qubit in a circuit. Hence, Bob is able to harness the information of a qubit which contains more information than regular classical bits. Hence, I see that communication of information is taking place. Is there something I am missing and/or can I clarify further my question. Thank you!


I'm trying to write a function to replace the functionality of the exit builtin to prevent myself from exiting the terminal.  I have attempted to use the SHLVL environment variable but it doesn't seem to change within subshells:  $ echo $SHLVL 1 $ ( echo $SHLVL ) 1 $ bash -c 'echo $SHLVL' 2   My function is as follows:  exit () {     if [[ $SHLVL -eq 1 ]]; then         printf '%s\n' "Nice try!" >&2     else         command exit     fi }     This won't allow me to use exit within subshells though:  $ exit Nice try! $ (exit) Nice try!   What is a good method to detect whether or not I am in a subshell?


Redirection of http to https not working

I want to redirect my subdomain to https. My .htaccess file contains the following:  RewriteEngine On RewriteCond %{HTTPS} !on RewriteRule (.*) https: //%{HTTP_HOST}%{REQUEST_URI}   It's redirecting to https but my chrome browser giving an error      This webpage has a redirect loop The webpage at https:    //sub.domain.com/ has resulted in too many redirects. Clearing your   cookies for this site or allowing third-party cookies may fix the   problem. If not, it is possibly a server configuration issue and not a   problem with your computer. Learn more about this problem. Error code:   ERR_TOO_MANY_REDIRECTS   please help me


Where to find error in bibliography: "finished with exit code 2" bibtex

I obtained a finished with exit code 2 using kile when compiling the bibliography. I presume there is an error in how I've written the bibliography (.bib) file.  Is there a sort of debugger which indicates what is actually the error?


The program ed, a minimal text editor, cannot be exited by sending it an interrupt through using Ctrl-C, instead printing the error message "?" to the console.  Why doesn't ed just exit when it receives the interrupt?  Surely there's no reason why a cryptic error message is more useful here than just exiting.  This behavior leads many new users into the following sort of interaction:   $ ed hello ? help ? exit ? quit ? ^C ? ^C ? ? ? ^D $ su # rm -f /bin/ed    Such a tragic waste—easily avoidable if ed simply agreed to be interrupted.  Another stubborn program exhibiting similar behavior is less which also doesn't appear to have much reason to ignore C-c.  Why don't these programs just take a hint?


Now that we have digital sensors which can be exposed to light repeatedly, why are SLRs still around? Wouldn't a digital viewfinder or a simple LCD be less bulky and prone to failure in addition to allowing shorter focal lengths? Are SLRs just a holdover from the analog days or is there some sort of advantage that I'm missing?


Can ios users connect and play with PC users?

I have Terraria on Steam and on mobile, but I want to know if I can connect with PC users.  I believe my friend has accomplished this, but I do not know how. Is this possible? How do you do it if so?


Error when trying to install steam with "sudo apt-get install steam"

Here is the error message:  ILocalize::AddFile() failed to load file "public/steambootstrapper_english.txt". [2017-02-14 16:35:18] Startup - updater built Jun 16 2014 11:16:02 Xlib:  extension "NV-GLX" missing on display ":0". SteamUpdateUI: An X Error occurred X Error of failed request:  BadValue (integer parameter out of range for operation) steam


How to make xkb settings stick after restart

I'm running Ubuntu 15.10. I'm running the following command in the terminal to swap the left Alt and left Control keys: setxkbmap -option ctrl:swap_lalt_lctl. It works, but as soon as I reboot It's gone and I have to run that command again. I tried adding it to the "Startup Applications." I clicked "Add" in the Startup Applications GUI and in the "command" field I entered setxkbmap -option ctrl:swap_lalt_lctl. I named it "Swap Alt Ctrl." It doesn't work. What am I doing wrong?


Best solution to force MacBook Pro 2011 to use integrated graphics (discrete graphics still working though)

After changing my AMD Radeon HD graphic card again, and seeing so many complains about the MacBook Pro 2011 issue online, I decided to plan to make the my MacBook only work with Intel HD 3000 graphics no matter what, to avoid the amd discrete graphics from ever overheating and failing again. I saw so many suggestions online about this, but I haven't found a real solution if the AMD is still working, and it needs to be disabled all the time no matter the application running. Please, I need suggestions. I don't want this AND graphics to fail on me again, if I keep on using it or in automatic graphics switching. Thanks.


A combinatorial argument for IMO 1972, Problem 3.

I'm trying to prove the following question from IMO 1972     Prove that for any positive integers $m,n$, $$\frac{(2m)!(2n)!}{m!n!(m+n)!}$$ is always an integer.   I tried thinking of a combinatorial argument, and came up with this: Imagine that there are two bags with $2m$ and $2n$ objects respectively. This expression is the number of ways of selecting $m$ objects from the first bag and $n$ objects from the second bag, such that the order in which you select these objects is not important. For instance, you can keep switching between bags, and also changing the order in which you select the objects.   However, I am not convinced that this is a correct argument. Where am I going wrong? Thanks


Is there a way to see recent and pinned files like in Windows?

I'm using GNOME.  In Windows, you can right-click on applications in the taskbar to see your most recently used files, and files you've chosen to stay in the dock. This is one of my most missed features since switching  Here's an example:    Is there a way to have this feature in Ubuntu?


Which is the best book for a High school student to study number theory?

I am really confused which book is good for me to study number theory  as I am preparing for the maths olympiad.


Suppose $\{X_n,n\ge 0\}$ and $\{Y_n,n\ge0\}$ are two independent discrete-time markov chains (DTMC) with state space $S=\{0,1,2,\ldots\}$. Prove or give a counterexample to:  $\{X_n+Y_n,n\ge 0\}$ is also a DTMC.


The menu bar in notepad++  is missing. I have tried to remove plugins, even reinstate the program, still menu bar is hidden. Any ideas ?


I have a paginated table of items. We can do some bulk actions ( like delete) on items. User selects some items on page 1 and goes to next page and selects some items on page 2. is it better that bulk actions work per page? Or work on all selected items in all pages?


How to set default application for special link types (e.g., ssh://)?

Some applications will signal to the OS that they can open special link type, such as ssh:// or github-mac://.  They get automatically opened for such links by the web browser (or when using open in a terminal).  If I have multiple such applications, how can I set which one should be the default?  For example, both GitHub Desktop and SourceTree can handle github-mac://. When I installed GitHub Desktop, it became the default handler for these links.  How can I set SourceTree as the default handler without uninstalling GitHub Desktop?


This may sound like a strange question, but it's incredibly relevant to my company.  If it's legit to purchase previously used VL keys for SQL Server 2008 and have them legally transferred over to us through VLSC, that would fill a huge gap for us.  We have an application that runs on SQL Server 2008 (not R2).  If you read the licensing guidelines for SQL 2008, you can deploy as many virtual machines PER SOCKET as you want, as long as you've licensed all sockets.  We run a SaaS application that is backed by SQL Server. As you can imagine, the licensing change to core-based licensing is quite literally a "million dollar" decision for us as we continue to roll out new Production hypervisors and SQL virtual servers.  Thus far, we've been able to find retail copies of SQL 2008 as we build out new servers, but I assume as some point the retail supply of 2008 Ent Per-Proc licenses will be exhausted.  However, since Microsoft no longer offers upgrade "discounts" for SQL Server, If you bought a perpetual VLK license of 2008 (without software assurance), you have to pay full price for 2012 if you want to upgrade.  This would mean that there is a large population of SQL 2008 volume licenses that are basically used, right?  If so, does anyone know if Microsoft has a provision to transfer ownership of these volume licenses to a different company?  Lastly, if all of the above is accurate, does anyone have unused SQL 2008 Enterprise Per-Proc VL keys they would like to sell?


German linguistic requirements for an assistant professor (Juniorprofessur) in Germany

Officially, proficiency in the German language is not required for assistant professor positions. However, it is clear that the assistant professor is supposed to teach bachelor students (most probably in German). What are the unpublished requirements regarding language skills? For someone with basic to intermediate level, is it worth applying for this position?


Is it possible to serialize a Form with a File input with jQuery?

I would like to send my form to the server through jQuery's Ajax method. I have text boxes, text areas, select boxes, checkboxes, radio buttons and most importantly, files in my form.  What I was using for a form that did not have files in it is this:  $('form').serialize();   However now if I have a file field in my form I can't seem to do it. What the best practice (common practice) to send over a big list of form elements including files to the backend server with jQuery - without having to add each element manually to the FormData()?


Installing TP-LINK TL-WN722N without internet

I'd like to install the wireless receiver TP LINK TL-WN722N on my desktop computer (Ubuntu 14.04 LTS) without using internet connection, how do I do that?  I'm currently using a BOLT's mobile wifi to connect to the internet with my laptop. I've been trying to find ways to connect it with no success.  Could you please help me with clear detail steps? If there's any file that I need to download from websites, I can do that through my laptop and transfer it to the desktop comp with my USB.  *desperately needed help >,<  Thank you. :)


Bibliography - I can't see my bibliography

I try to include my bibliography bit after running my TeX file, but I can't see anything. What have I done wrong? The file Bibliography lies in the same folder as the TeX file.  Minimal Example:  \documentclass[12pt, a4paper]{article}  \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} \usepackage[USenglish]{babel} \usepackage{setspace} \usepackage[left=3.3cm, right=3.3cm, bottom=3cm, foot=0.8cm]{geometry} \usepackage{natbib} \usepackage[small]{titlesec} \usepackage[stable]{footmisc}  \setlength{\parindent}{0pt} \parskip1ex   \begin{document} \selectlanguage{USenglish}       \title{my title}     \author{my name}  \maketitle \thispagestyle{empty}   \vspace{3cm} \begin{abstract}  blabla  \newpage    \setcounter{page}{1} \onehalfspacing  \section{Introduction}  blabla   \section{Responsibility and the Market oder (!!!) The Ethical Potential of the Market}  blabla  \section{Conclusion}  blabla   \newpage  %LITERATURVERZEICHNIS \singlespacing  \addcontentsline{toc}{section}{Works Cited} \renewcommand{\refname}{Works Cited} \bibliographystyle{econometrica} \bibliography{bibliography} \nocite{*}   \end{document}   FILE: Bibliography  % Bibliography for Hausarbeit  @ARTICLE{anderson1990,     author="Anderson, Elizabeth",title="The Ethical Limitations of the Market",journal="Economics and Philosophy",volume="6",year="1990",pages="179-205" }


Unexpected space when using `range` with `unicode-math`

When I use range in setmathfont, I'm seeing an unexpected space showing up in various cases. Here's my distilled MWE:  \documentclass[varwidth, border = 0.2in]{standalone} \usepackage{array} \usepackage{mathtools} \usepackage{unicode-math} \DeclarePairedDelimiter {\set} {\{} {\}}  \begin{document} \centering\large  \setmathfont{TeX Gyre Pagella Math} % Correct \begin{tabular}{>$c<$}   \set{2, 3} \\   \set[\big]{2, 3} \end{tabular}  \smallskip \setmathfont{TeX Gyre Pagella Math} \setmathfont[range={cal}]{Latin Modern Math} % Incorrect -- extra space on the second line after the brace. \begin{tabular}{>$c<$}   \set{2, 3} \\   \set[\big]{2, 3} \end{tabular} \end{document}   The result is below — note the extra space after the brace in the 4th line.    The only difference is the addition of \setmathfont[range={cal}]{Latin Modern Math}. Unless I'm misunderstanding, that should have no effect in this case since we're not displaying anything using \mathcal.  BTW, unlike other similar questions, I'm not using LuaTeX.


Orthonormal basis of $\{(x_1, \dots, x_n) \mid x_1+x_2+\cdots+x_n=0\}$

How can we find the orthonormal basis of $\{(x_1,\dots,x_n) \in \Bbb R^n \mid x_1+x_2+\cdots+x_n=0\}$?   It is easy to find a basis, but using Gram-Schmidt procedure seems difficult to obtain an orthonormal one.


Proof in logic for arbitrary number of sets

given $n \in \mathbb{N}$ ,prove that $A \cap (B_1 \cup B_2 \cup \cdots \cup B_n) = (A \cap B_1) \cup (A \cap B_2) \cup \cdots \cup (A \cap B_n) $ ? (As HomeWork)  Now i know how to prove using induction or using "without loss of generality",  But unfortunately we did not learn them in class so "We don't know them", is there another way to prove the above equality !


When were the seasons first extended in A Song of Ice and Fire?

I had originally thought that the seasons were extended due to The Doom, which was 400 - 500 years ago. However, with The Long Night lasting a generation and being 8000 years ago, and the source of the season shift being "magic" (as explained in a ), has there ever been a time that the seasons were normal? Is there any reference in the books to three month seasons?


Generating combinations of a string in a list [Python3]

I have a string "dog" and I wan't to generate all possible combinations with letters from that word.  Output would be something like this:  ["dog","dgo","ogd","odg","god","gdo"]   Order does not matter at all.