How is it possible that Google has indexed more URLs than a sitemap contains?

Google has processed my XML sitemaps, and for one of the files, Webmaster Tools claims to have indexed 44,797 links even though that file only contains 4,582 links.  Here's a screen cap:    I'm not terribly worried about this, but it is a curious state of affairs, and I'm sure there's something to be learned from it. What's going on?  UPDATE: This is not a duplicate of the question: "Why is there a difference between urls submitted to a sitemap and urls in the google index?" Here's why, as I explained in the comment below:  I understand that Google may index many pages that are not in my sitemap. In fact, Webmaster Tools indicates that there are many thousands of such pages. What's curious here is that the above table is supposed to report how many of the links in a particular sitemap file have been selected for the index, so it would seem to be impossible for this number to exceed the number of links actually in the file. Unless, of course, I'm missing something.  One theory: Could it be possible that many versions of the same pages -- perhaps with different params -- have been indexed?


Proving $(1+a_{2})^{2}(1+a_{3})^{3}\cdots(1+a_{n})^{n}\ge n^n$ for positive reals $a_2,\ldots, a_n$ whose product is $1$

Let $n \ge3$ be an integer, and let $a_{2},a_{3}, ... ,a_{n}$ be positive real numbers such that $a_{2} a_{3}\cdots a_{n}=1.$ Prove that:   $$(1+a_{2})^{2}(1+a_{3})^{3}\cdots(1+a_{n})^{n}\ge n^n$$   This is the 2nd problem of the 53rd IMO and seems pretty interesting. How would we solve that?


Can we have an option to disable the "don't forget to accept" reminder?

The biggest peeve is sometimes I vote up an answer mid-way through reading it, and the "don't forget to accept" message blocks the remaining text, so I scramble and triple-click it until it closes.  Anyways I frequently scan my question list and search for SO's reminders, ("Consider accepting an answer") so the "don't forget to accept" is wholly unnecessary to some, and there should be a way to disable it. Do you think so too?


Can I switch between 'the cow' and 'cows'?

I was writing an essay on The Cow. I started like this:  The cow is a four-footed domestic animal. It has a big body...   ....There are many different breeds of cows in the world.  You would notice that I started with 'the cow' and then I changed to 'cows'. Is there anything wrong about this? Is it grammatically incorrect switching between them two?


On 18.04, installation of ttf fonts fails

On 18.04: when I do sudo apt install ttf-mscorefonts-installer & say Yes to the EULA question, it fails:  Err:1 http://downloads.sourceforge.net/corefonts/arial32.exe   Redirection from https to 'http://downloads.sourceforge.net/mirrorproblem?failedmirror=netix.dl.sourceforge.net' is forbidden [IP: 87.121.121.2 443] E: Failed to fetch https://netix.dl.sourceforge.net/project/corefonts/the fonts/final/arial32.exe  Redirection from https to 'http://downloads.sourceforge.net/mirrorproblem?failedmirror=netix.dl.sourceforge.net' is forbidden [IP: 87.121.121.2 443] E: Download Failed


How can I fix this "E: Malformed line 4 in source list /etc/apt/sources.list (type) E: The list of sources could not be read."?

I'm trying to install steam on my new chrome book but every tutorial I've watched on trying to fix this or on how to install steam gives me this problem.  I've looked at the related question  and I've tried a lot of solutions but my terminal is saying   sudo: gedit: command not found   Then when I try to install gedit with sudo apt-get install gedit it says:  E: Malformed line 4 in source list /etc/apt/sources.list (type) E: The list of sources could not be read. E: Malformed line 4 in source list /etc/apt/sources.list (type) E: The list of sources could not be read.   What should I do?


Log of all applications that run or running manually on PC with start/end time

I'm wondering if there's any log which stores information about a particular program such as when the program has started and closed manually on Windows such as MS Word, or Chrome. Any ideas?


System requirements for installing Ubuntu on my pc

I have 2046 mb of DDR3 ram , an Intel core 2 duo E7500 processor  and Asus P5G41C-M LX mother boad can in this system Ubuntu 14.04 LTS can be installed error free and run  smoothly.


How do I upgrade from 14.04 LTS to 16.04.1 LTS?

So, today is July 21st and . gives me an option to download 16.04.1 LTS. However, attempting to upgrade gets me this message -  $ sudo do-release-upgrade Checking for a new Ubuntu release No new release found   What is wrong? Does it matter that I am running apt-get update behind apt-cacher-ng?  Note: Commenting out the files in apt.conf.d that used apt-cacher-ng did not make a difference.  Edit: Explanation for possible duplicates:  deals with upgrade from 12.04LTS to 14.04LTS. My question is specific to 14.04 LTS to 16.04.1 LTS upgrade. Old answers, while good for archival purposes are less relevant in a fast changing package like ubuntu. Moreover none of the answers answer what is wrong. The link  pointed out is mentioned in one of the comments. This Q & A is more helpful for people upgrading today than the work around mentioned in "".


Pulling IP address from ping command with sed?

I have crafted a Bash tool that runs on a server. This tool will block certain IP addresses for a certain time range (i.e. from 5 A.M. to 3:30 P.M.).  As of currently, the tool works fine, but I have to input IP addresses to certain websites manually into a text file and have the tool pull the IP address based on the nth line using the "head" and "tail" commands. I don't want to do this as I believe a single ping will be much more lightweight and portable. So if I do a ping for Google:  ping google.com -c 1 -s 16   The output will be:  Ubuntu@yokai:~# ping google.com -c 1 -s 16 PING google.com (173.194.66.138) 16(44) bytes of data. 24 bytes from qo-in-f138.1e100.net (173.194.66.138): icmp_seq=1 ttl=37 time=46.7 ms  --- google.com ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 46.748/46.748/46.748/0.000 ms   And the command I have narrowed this output down with is:  ping google.com -c 1 -s 16 | grep -o '([^ ]*' | tr -d '(44):\n'   Which gives me an output of:  173.19.66.113173.19.66.113ubuntu@yokai   As you can see, there is a duplicate of the same IP address. How can I remove the duplicate with sed so that I can store the single IP address into a variable and run the script as a cronjob, or am I on a better track using tr?  (EDIT)  I already know/knew how to resolve IP address from a host name or domain. That is not what I am asking here. This question is specifically about managing ping output using sed in order to keep the tool I have created more portable as ping comes default with almost any and all linux distros.  (UPDATE) Since some marked this question a duplicate of some other bullshit question that has nothing to do with this one, I will make it clear enough that retards with English comprehension troubles can understand:  How to parse the IP ADDRESS "ONLY" from ping OUTPUT when using ping on a domain name.  This is NOT asking to resolve a domain name and therefore is NOT A DUPLICATE!!!  (LATEST UPDATE) I have, since asking this question, learned proper POSIX regex to do what I needed and I need to make it clear that I was originally asking about the regular expressions for sed that would print a single instance of an IP from ping output. I have since refined my methods and do not use any of the answers here but I thank everyone for their attempts with helping here. I am now using a timer script that I created to configure iptables at certain times to block certain domain name resolutions. Again, thank you to everyone that tried to help.


Round unsigned integer to a sequence of powers of two

I have large buffer allocated and then split into chunks of multiple sizes. Those sizes start with 32 and then multiplying that by 2 with each increase.  struct Node {     Node*           Next;     void*           Data;     const unsigned  Size; };  Node* m_Buffers[16];   Which means that the buffers at m_Buffers[0] will be of size 32 and the buffers at m_Buffers[1] will be of size 64 and so on.  And a function that takes a number and returns a buffer of the size that the specified number can round up to.  void * GetBuffer(unsigned size) {     // ... }   For example, if I request a a buffer of 384 then I need to be able to round that at 512 and return a buffer from m_Buffers[4].  So far I'm using a loop to round up:  void * GetBuffer(unsigned size) {     unsigned buffer_size = 32;      while (buffer_size < size)     {         buffer_size *= 2;     }      // ... }   But I'm curious if there's a better way of rounding up that doesn't involve a loop. And also if there's a way to convert the rounded number to an index in the array without using a switch statement.  And to be honest, I'm not even sure the title is correct. So I apologize for that.


answer_matrix=[["n.a"]*matrix_size]*matrix_size   my code  for c in a:     if answer_matrix[c[0]-1][c[1]-1]=="n.a":         answer_matrix[c[0]-1][c[1]-1]=c[2]   Now a looks something like this  >>> a[0] [1, 2, 1.3e-05, 6e-06, 0.0, 0.0, 0.0, 0.0, 0.0] >>> a[1] [1, 3, 0.000949, 0.000142, 0.0, 0.0, 1.8e-05, 5e-06, 0.00011] >>> a[2] [1, 4, 0.000417, 0.000126, 0.0, 0.0, 0.0, 0.0, 5.4e-05]   It is a list of list, first 2 entries are rows and columns (not using numpy yet)  My problem is that after running that for loop the answer_matrix is modified in places it shouldn't be.  For example in a there is no [1, 1, ...] entry but I find the answer_matrix[0][0] changed to 9e-06.  When I try to get rid of the for loop and run the code with c=a[0] for example, the code block works perfectly.  What exactly is happening?


Irreducible element iff prime norm in Gaussian integers?

I am trying to prove the following: Let $R=\mathbb{Z}[i]$, $a, b \in \mathbb{Z}, ab \neq 0$. Show that $a+bi$ is an irreducible element in $R$ if and only if $a^2 + b^2 ∈ \mathbb{Z}$ is prime. Since $R$ is a Euclidean domain, irreducible elements are prime. I think this is relevant, but am stuck on where to go from here.


Is it possible/correct to describe electromagnetism using curved space(-time)?

Comparing the simples form of the forces of both phenomena: the law of Newton for gravitation  $V\propto \frac{1}{r}$, and the Coulomb law for electrostatics $V\propto \frac{1}{r}$, one might think that if one can be extended relativistically to a curvature in space-time, that the other one would lend itself to a similar description. Is this so?  Thanks for any useful thoughts and/or suggestions!


Does anybody have a simple proof this inequality  $$e^x\le x+e^{x^2}.$$  Thanks.


Adding custom claims to access token in oAuth JWT Bearer flow

My requirement is to retrieve additional attributes via JWT Flow. For that  I developed a connected app plugin class and added it to the connected app. Although i am able to get the access token, it doesn't contain additional attributes.


What is the menu on the upper right corner called in Windows?


Why logistic regression cannot be solved by OLS

I know I mess up different things. However I want to get better understanding what is motivation behind logistic regression.  $p(y_i=1|x_i)=(1+e^{-x_iw})^{-1}$  and according to OLS  $S(w)=\sum_{i}^{}(y_i-\hat{y_i})^2$,where $y \in \{1,0\}$.  What if $\hat{y_i}=p(y_i=1|x_i)$ and estimate $w$ by finding minimum to $S(w)$.  Why this is incorrect approach?


How can I manage/track the data use on a HTC Inspire?

I thought this would be a popular question but couldn't find it here so if you do please let me know.  My mother just got a new HTC Inspire and is brand new to using a data plan.  Since she is worried that she might go over her cap I want to know how can she track how much data she has used in a certain time (preferably within a billing period). I am on Sprint so I've never had to worry about how much data I use. My question is: Can you recommend a method to manage/track data?  Also, I figure that apps like weather and news should be changed to check less frequently... any other default apps that should be changed to check less frequently?  Thanks for the help


Potential energy between attracting molecules

I read in fluid dynamics  that the potential energy stored in the molecule of water due to the attraction by the other molecules is negative. Can energy be negative and what does it mean to have negative energy??


How to fire jQuery on an element only when it's loaded?

I seem to be stuck here. I have an HTML page loading content dynamically—one of the "pages" loaded contains an accordion presenting the paragraphs on click.   Now I would like to implement the corresponding JavaScript / jQuery to make the accordion work. So far I had implemented the jQuery in the footer—problem is, that it would look for elements that are not loaded yet. This is what I have:   jQuery(document).on("click", "#acc1", function(){     jQuery(this).next("dd").slideToggle("fast"); })   This does work perfectly fine when opening a "static" url for that page—but not if the page is loaded dynamically. The #acc1 isn't loaded when the jQuery is loaded—so it can't be bound to that id yet. I hope I made my problem clear? Thank you very much! I would appreciate all suggestions / pointers …


Is it possible to get into algebraic geometry by just knowing calculus and linear algebra or is this too far of a stretch?  If not could anyone give me a list of book/lecture notes recommendations in chronological order to dive into algebraic geometry with my state of knowledge?  Thanks


Stackoverflow should have Latex Syntax Highlighting

As i just asked a LaTex-question on SO, i noticed that there is no correct Syntax-highlighting for Latex-Code in a codeblock. This makes it hard to read the code.   Would it be possible to add the Latex-Syntax to the codeblocks?


What are all the "hidden" quests in Hearthstone?

In Hearthstone you can unlock some gold bonus or whatever if you reach specific goals like reaching level 10 with all characters. I am not talking about the daily quests here.  Does anyone have a complete list of all the bonuses?


Condition for a stochastic matrix to be a second order transition probability matrix of a DTMC.

Let $A$ be a $2\times 2$ stochastic matrix $$A=\left(  \begin{array}{cc}  1-a & a  \\   b &   1-b\\  \end{array}\right). $$   Then A is a second order transition probability matrix of a DTMC, i.e. there is a DTMC with probability matrix P such that $P^{2}=A$ iff $a+b\leq 1$.   Attempt. The desired property holds iff $$A=\left(  \begin{array}{cc}  1-a & a  \\   b &   1-b\\  \end{array}\right) = \left(  \begin{array}{cc}  1-p & p  \\   q &   1-q\\  \end{array}\right)^2 $$ for some $p,~q\in [0,1]$, that is $a=2p-pq-p^2,~b=2q-pq-q^2$ for some $p,~q\in [0,1]$. I am not sure how this leads to the equivalent desired condition $a+b\leq 1$.  Thank you in advance.


Given a group $G$, let $G_m$ be the group generated by the set $S=\{g^m|g\in G\}$.  Prove that if $G_m$ and $G_n$ are both abelian, then $G_{\gcd(m,n)}$ is also abelian.


How do i define short decades for 2000 and 2010?

80's is the eighties  1980 - 1989  90's is the nineties  1990 - 1999  Is it 00's and 01's?  How do i define a decade name for the 2000 and 2010?


Measure Theory Problem: Prove a measurable function is a constant

I am looking for good solutions to this problem. Could you please help me with this? Any solution would be appreciated.  Let $\mathscr{G}$ be the smallest $\sigma-algebra$ on $\mathbb{R}$ containing all single points. Let f(x) be a function that is measurable with respect to $\mathscr{G}$, that is, for any Borel set B on $\mathbb{R}$, $f^{-1}(B) \in \mathscr{G}$.    Show that there is a countable set A on $\mathbb{R}$ such that f is a constant on $\overline{A}$ (the complement of A).


What's the best way to typeset C++ codes in latex?

I'm participating in a programming contest and we are allowed to prepare a team reference document which must not exceed 25 pages. Typically we will prepare many code templates and this year I'm trying to use latex to typeset these C++ codes and I want to know what's the best way to do that.  Some requirements:   Since there is a page length limit I want to typeset my codes as compact as possible. I want to have the C++ codes syntax highlighted. If it is possible to generate a compact table of content in front, it would be best.


Let $T$ be a tree with even number of vertices. Prove that $T$ has "exactly" one spanning subgraph in which all vertices have odd degree. I could only think of this result: In a tree with even number of vertices, the number of vertices with an odd number of children is odd. But I don't know how to proceed. I'm self-studying discrete math and I found this question in a discrete math book. EDIT: The post linked in the comments proves existence of such tree. This question also requires the proof of uniqueness.


Show $\mathcal{L}\left\{\frac{1}{t}f(t)\right\} = \int_{s}^{\infty}F(u)du$

Show for $\mathcal{L}$, the Laplace transform, that $$\mathcal{L}\left\{\frac{1}{t}f(t)\right\} = \int_{s}^{\infty}F(u)du.$$  I know that $\mathcal{L}\left\{ t^n f(t) \right \} = (-1)^n \frac{d^n}{ds^n} F(s)$ and this is sort of suggestive for $n=-1$, but I can't seem to show the result. Some help would be appreciated.


How can I repair GRUB in a dual boot with Windows 8.1?

My Thinkpad runs Windows 8.1 and Ubuntu 14.4 on dual boot. But since I tried Puppy Linux via a bootable USB stick my Ubuntu does not show up, Windows 8.1 just boots. Any solutions?  My BIOS is UEFI.


Strange reference number for main figure label containing subfigures

I have problem in referencing number for main figure label. I have this code :  \begin{figure}[t] \centering  \subfigure[11a's signal strength]{     \includegraphics[scale =0.25] {fig/cdf_sig11a.eps}     \label{cdf_sig11a} } \hspace{0.2cm} \subfigure[11n's signal strength]{     \includegraphics[scale =0.25] {fig/cdf_sig11n.eps}     \label{cdf_sig11n} }  \label{coverage_comparison} \caption{Coverage comparison in various location} \end{figure}   When I use Fig. \ref{coverage_comparison}, it shows Fig. II-C. It should be Fig. 4.   This only happens when I use subfigure and use main figure label but if I use Fig. \ref{cdf_sig11n}, it shows correct reference number Fig. 4(b).  How to solve this problem?


I've created a screen on my web application that will allow super administrators change values of parameters on Web.Config.  The problem  One time we change the values of parameters using that code users connected to the applications have to refreshed it!  I would like to know if that's a good idea  >   The code:  public void SetAppSettings(string key, string value)     {         Configuration objConfig = WebConfigurationManager.OpenWebConfiguration("~");         objConfig.AppSettings.Settings[key].Value = value;         objConfig.Save(ConfigurationSaveMode.Full )     }   Why the application is KO changing web.config.


How can I print a length in centimeters?

(I am a new to LaTeX.) I'm trying to print a length in centimeters. Here is my code:  \documentclass{article} \begin{document} \newdimen\mylength \mylength=1in  \the\mylength \end{document}   And here is the resulting output:     72.27 pt   However, I want to show output in centimeters: Example: \the dimen [cm]\mylength. How can I do that?


I created a custom counter 'rtaskno' and a command '\rtask' as following:  \newcounter{rtaskno} \newcommand{\rtask}{%    \stepcounter{rtaskno}%    \thertaskno}   I like to use them as following:  \section{Task \rtask. Blah Blah..}  \section{Task \rtask. Blah Blah..}  \section{Task \rtask. Blah Blah..}  \section{Task \rtask. Blah Blah..}   Later in the text, if I want to cross-reference 'Task 3', how can I do it? Where to put label?


How do I shut down or reboot from a terminal?

How can I shut down or reboot Ubuntu using terminal commands?


Book on Noether theorem and classical field theory

I couldn't follow the derivation of Noether theorem in my QFT book, and have some problems with classical field theory and functional derivatives etc. Is there a book which gives an introduction to these topics? I am only interested in what is needed for QFT.


How can I spin a child capsule of a cube parent?

I have a parent cube and to make it like a surface I had to change the rotation of the cube on the X to 90. and as a child, I added a capsule, and to make the capsule-like standing I had to change the capsule X also to 90. The result is : The reason I put the capsule child of the cube is that I want the capsule to move with the cube.  The capsule rotation on the X is also 90 :  Then in a script at the top, I added speed and index variables for the rotation : private int index = 0; private int rotationIndex = 0;  In the Update : RotateTo();  And the method : curvedLinePoints is a List private void RotateTo()     {         var distance = Vector3.Distance(capsule.position, curvedLinePoints[rotationIndex].transform.position);         if(distance < 0.1f)         {             rotationIndex++;         }          // Determine which direction to rotate towards         Vector3 targetDirection = curvedLinePoints[rotationIndex].transform.position -capsule.position;          // The step size is equal to speed times frame time.         float singleStep = rotationSpeed * Time.deltaTime;          // Rotate the forward vector towards the target direction by one step         Vector3 newDirection = Vector3.RotateTowards(capsule.forward, targetDirection, singleStep, 0.0f);          // Draw a ray pointing at our target in         Debug.DrawRay(capsule.position, newDirection, Color.red);          // Calculate a rotation a step closer to the target and applies rotation to this object         capsule.rotation = Quaternion.LookRotation(newDirection);     }  The problem is that because the capsule is a child when I rotate the capsule it looks like the capsule changes its shape and not spinning around itself. If I remove ut the capsule from the prefab and will rotate it on its own it will spin fine but when it's a child of the cube the result is :  I tried before running the game to play with the capsule rotation in the editor in the inspector changing the Y and Z values and the result is like in this screenshot. but I want to spin it around itself but because it's a child of the cube it's not spinning but looks like it's changing its shape. The workaround I found is to create an empty GameObject at 0,0,0 and put both Platform and Capsule as a child of it. Then I added this part to the script above : private void LateUpdate()     {         capsule.localPosition = transform.localPosition + new Vector3(0, 1.4f, 0);     }  This way the Capsule is following the Platform. The empty GameObject is just to put them both together. and for testing I just did in the Update : capsule.Rotate(0, 10, 0);  and it's working fine. Now I have to figure out how to make this rotation with the code in the RotateTo method.


Using a non-centralized structure for tex files - similar to \graphicspath

I have a fairly large document, that I have picked apart into different sections etc, each in their own file. To include graphics that are not in one central directory I use \graphicspath which works quite nicely. Is there a similar command I could use to include tex files from multiple directories without me explicitly naming them?  The idea would be the following:  \graphicspath{{./Some/Directory/For/Figures1/},{./Some/Directory/For/Figures2/}} \texpath{{./Some/Directory/For/Tex/Files1/},{./Some/Directory/For/Tex/Files2/}}   The I would like to call within the document:  \includegraphics{fig_from_Figures1}% this works \includegraphics{fig_from_Figures2}  \input{doc_from_Files1}% this would be awesome \input{doc_from_Files2}


Java class generics NullPointerException in inherited class

Please, help to understand what is wrong in next code, since I have pretty modest knowledge in Java generics. Can't find out why I getting pageData is null in class BPage, when in APage it's fine. Thanks in advance. I've simplified the excample classes to several rows:  public abstract class PageData { }  public abstract class Page<T extends PageData> {     protected T pageData;     public Page(T pageData) {         this.pageData = pageData;     } }  public class APageData extends PageData {     public final String locator = "//*[@id=\"id_1\"]"; } public class APage<T extends APageData> extends Page<APageData> {     public APage(T pageData) {         super(pageData);     }      public void getLocator() {         System.out.println(pageData.locator);     } }   public class BPageData extends APageData {     public final String locator = "//*[@class=\"class_1\"]"; } public class BPage extends APage<BPageData> {     public BPage(BPageData pageData) {         super(pageData);     } }   APage aPage = new APage(new APageData()); aPage.getLocator();  // locator found, OK  BPage bPage = new BPage(new BPageData()); bPage.getLocator();  //pageData  NullPointerException


Why does my refrigerator trip the GFCI outlet?

I've been reading around the net for about 20 minutes and came across a lot of talk about how the fridge should be on their own 15 or 20 Amp breaker and the defrost cycle can cause the interrupt in a GFCI causing it to flip  I have a 20 Amp GFCI receptacle on a 20A Breaker that also feeds 4 other 15A receptacles that have a load on the fridge, the oven and 3 other receptacles along the kitchen counter, My old fridge (one big door, freezer door on top) had no problems on the GFCI frosted good, made ice, defrosted, everything was fine, I got a new side by side fridge and every 24 hours or so the breaker is flipped.   If it didn't happen with my old one, why would it happen with my new one, I changed the GFCI thinking it was the loose wires or just an old receptacle, Nope. next day it flipped, so i tested and confirmed all of the others outlets were fine, no loss, no interruptions


Current tranformer, burden resistor calculation

I have 1:50 wound current transformer and I don't have the datasheet. Could anybody help me to calculate the burden resistor?    Maximum current to be measured: 2A  Max output voltage to ADC: 5V


I haven't really formally studied Algebra at anywhere near this level, but I was told about the existence of Quaternions a few years ago and I find them really cool. I also like how pure quaternions are analogous to cross products in $R^3$, and that it gives me a way of doing it algebraically rather than relying on hand rules.  Over the course of using them it's my understanding that multiplying an element by another, both imaginary numbers, rotates it in some manner so as to be orthogonal to both, similar to rotations of $\frac{\pi}{2}$ in the space with one real and one imaginary axis when multiplied by $i$, which is why it's useful for cross products as it will rotate it to be orthogonal to a plane spanned by linear combinations of those two vectors [afaik].   What I can't intuit though is why for any pure quaternion multiplication, there's a negative real part [the scalar product] if it's meant to correspond to a rotation within $R^3$ and the space of pure Quaternions is Isomorphic to $R^3$. Similarly I don't understand why $i^2 = j^2 = k^2 = $ A negative real.


Second look at my skipped suggested edit reviews to learn

I recently made it past the 2k reputation border on Stack Overflow and started to review suggested edits. In some cases I am not sure about whether an edit should be approved or rejected and thus I Skip the review.  Now I would like to see the outcome of the review, to be able to learn for future reviews, because there are several factors that allow to judge a review quite fairly:   If the suggestion has been approved and at least two approvers have a high approval rate and almost no rejects the result could be a robo-approval. If the suggestion has been approved and at least two approvers have a balanced approval rate with a healthy amount of rejects the result is most likely a valid one. If the suggestion has been rejected the result is most likely a valid one.   Is there a simple possibility to "review" (in the meaning of "take a second look") suggested edits that have been skipped by myself?  If not, could that be added to the "review"-list on the "activity"-tab on the profile-page, maybe combined with a CheckBox so that listing the skipped reviews is optional?  EDIT: After reviewing some of my suggested edit reviews, I have a suggestion to add to this feature request. In the review overview on my profile page, I would like an option to see whether the final result of the review differed from my vote - because that are those reviews where I probably was wrong.


yesterday i got pm by online buyer for gold coin from oversea, and he want my id picture for security he said..but the deal is canceled because his manager not interested at that coin..today he said he want to help me and willing to give me money if i help him..he said he got staff around my state, and the staff will transfer him money every week, but it hard because got so many staff, it will make commotion..so he ask me to open an account bank in this state using my name so it will make easier the staff to transfer money if in same country..so all the staff will tranfer money to me, and latter ill transfer to him using online bank in..he ask me to give the back account and password so he can monitor the money inside..it willing to pay me every week if ill help..yesterday ask for my I.D and today ask to open bank account..it is a scam?please help me


Different text for network-wide suspended users on meta

If you look at a profile of a user who is , you get the text: "This account is temporarily suspended network-wide. The suspension period ends on..."   However, if you click on "Meta user" and look at the profile of the same user on the corresponding meta, you see just: "This account is temporarily suspended. The suspension period ends on..." (The part that the suspension is network-wide is omitted.)  This is probably a minor thing but still - I suppose it is not supposed to work this way. (Maybe sometimes it might lead to confusion. For example, if I remember see that some user was suspended network-wide and then I notice on meta the text which is used for per-site suspensions - it's quite natural that I might be wondering what is going on and whether the network-wide suspension has been revoked.)


How to view which files is Writing a Process

Is there a way to get List of Files or FileName which a Process is writing (if possible writing/reading/appending) ,from C# ,which means im talking about Windows (NT,Vista,XP,7).


Generalized binomial identity that converges to 2

Numerical analysis shows that the following identity is true for $k \geq 0$.  $$\sum_{n=k}^{\infty} {n\choose k}\frac{1}{2^n} = 2. $$  However, I cannot seem to find a proof of this well-known result.


I am trying to figure out the effect of two independant variables (country and device_type) on a binary dependant variable (conversions). I am running a logit regression on a dataset with only the independent categorical variables. Both of these variables have several values. The event (conversions) occurs approximately 0.2% of the time (on 750 000 observations).  I am trying to establish which country and device have the greatest effect on conversion.  For certain countries, the coefficients are significant, but I do not have any positive event for this country. How can this happen ? How can I establish if my model converged. I have no warning. Any help on the issue is appreciated.  I am using the glm procedure in R: logit1 <- glm(conversions ~ device_type + country, data = reg_data)  this is a repost (under my name) of this :  Thank you,


I use the IEEE template, and I hope to place two pictures side by side. But if I use the 'minipage', it will change the two column of the IEEE template.  My code is:  \documentclass[conference]{IEEEtran}  \usepackage[pdftex]{graphicx} \usepackage{caption}  \begin{document}  \begin{figure*}[!tp] \begin{minipage}{.49\textwidth} \centering \includegraphics[width=1in]{Figure1.pdf} \caption{This is Figure 1} \label{figure 1} \end{minipage} \begin{minipage}{.49\textwidth} \centering \includegraphics[width=1in]{Figure2.pdf} \caption{This is Figure 2} \label{figure 2} \end{minipage} \end{figure*}  \end{document}   I'm sure it's not because the pictures too wide. I have try to change the width, but it's no use.  The result is:   But, I hope the result is like this:   How to achieve this result? And how to change the code?  Thank you!


Bending timespace fabric model: does it explain gravity by another gravity?

In the Einstein's model of time-space bending, in the simplified version, the fabric of the Universe is in 2D, while the planets are in 3D. This is the first inconsistency that I think ruins the explanation of the model. You can't arbitrarily dimensionaly downsize one part and not the other, you get a dimensionaly inconsistent model. But that's the less problematic part.  The real problem for me to understand is the following: if a heavy planet bends the cloth and creates a slope... this means that there is another vertical gravitational field that pushes the planet down into the fabric in order to bend it. Furthermore, the light object (a satellite for example) then falls onto the heavy object, meaning it's going down the slope. In order to have something react to a slope, you need to have a vertical down-pulling field. This all means that we're explaining gravity by another (vertical) gravity, without which the whole metaphor just doesn't work.  I'm not saying Einstein was wrong. I'm just saying that I have a serious problem understanding this model, firstly because it's half 2D and half 3D, and secondly, more importantly, because it presumes another gravity through the entire metaphorical universe. Since all physicians in the world agree with Einstein's idea I presume it's accurate, but this model of explanation, if you ask me, fails heavily. Can anyone please help me understand the model?


Why are smaller animals stronger than larger ones, when considered relative to their body weight?

I am interested in why many small animals such as ants can lift many times their own weight, yet we don't see any large animals capable of such a feat.  It has been suggested to me that this is due to physics, but I am not even sure what to search for. Could someone explain why indeed it is easy for smaller objects/lifeforms to support several times their own weight, but this is harder as objects/animals become larger?


I forgot my password (Ubuntu 16.04) & can't open GRUB now

I am trying to access the GRUB menu by pressing shift, esc, space, etc, but I just can't get into it. I can't change the /etc/default/grub file unless I login. But I lost my password, so I can't do that!


Term for an event being referred to by its location or date

mentions synecdoche and metonym as terms used when an organization is referred to by its location.  Do these terms also apply when an event, rather than an organization, is referred to by its location? For example, Chernobyl, Fukushima, or Hiroshima.  What about when a date is used to refer to an event, such as 3/11 being used for the Japanese earthquake and tsunami?


What are the components and path components of $\mathbb{R}^{\omega}$ in the product, uniform, and box topologies?

I am working on an exercise problem about components and path components of $\mathbb{R}^{\omega}$. Specifically,     Exercise about components and path components:   1. What are the components and path components of $\mathbb{R}^{\omega}$ in the product topology?   2. What are the components and path components of $\mathbb{R}^{\omega}$ in the uniform topology?   3. What are the components and path components of $\mathbb{R}^{\omega}$ in the box topology?   I can only handle with only parts of the problem (about components):     My partial solution:   1. $\mathbb{R}^{\omega}$ in the product topology is connected, so its only component is $\mathbb{R}^{\omega}$.   2. $\mathbb{R}^{\omega}$ in the uniform topology is not connected ().  There are two components: $A$ consisting of all bounded sequences of real numbers and $B$ of all unbounded sequences.  [EDIT: I realized that the answer is wrong: $A$ and $B$ constitute a separation of $\mathbb{R}^{\omega}$ in the uniform topology. However, this does not imply that $A$ and $B$ are two components of it. So, I have no idea of this problem.]   3. No idea.   Therefore:        Is my partial solution correct?        How to figure out the other parts of the problem?


How do I start with evaluating this-     $$\int\frac{1+x^4}{(1-x^4)^{3/2}}dx$$   What should be my first attempt at this kind of a problem where-   The denominator and numerator are of the same degree Denominator involves fractional exponent like $3/2$.   Note:I am proficient with all kinds of basic methods of evaluating integrals.


Dark matter and standard model of cosmology: how does it enter into the equation?

I am a physics student and don't know very much about dark matter nor cosmology. But today I went to a talk in which the speaker showed us this image (or a very similar one):    showing how the predictions of the standard model of cosmology having to do with background radiation vary when the ratio of dark matter is modified. I don't know what is the meaning of that plot but it seem that varying the ratio of dark mater produces a very important change in it.  My question is: how is that something that does not interact with electromagnetic radiation (as dark matter) has such a drastic effect in CMB?


Inserting with implicit type conversion causes warning for cardinality estimates

I noticed this while doing some performance testing recently. When I insert a value into a column that will require an implicit conversion (e.g. bigint into nvarchar), I get a warning:      Type conversion in expression (CONVERT_IMPLICIT(nvarchar(50),[tempdb].[dbo].[#MyFunIntTable].[EvenCoolerColumn],0)) may affect "Cardinality Estimate" in query plan choice.   Being a concerned citizen, I checked all of the obvious suspects and eventually dug into the XML to confirm that it was actually warning about the insert into the table. The problem is, I can't figure out why this would ever affect cardinality estimates. If I were doing this in a join or somewhere with a little more logic it would make sense, but there shouldn't be a cardinality estimate mismatch for the actual insert operation, right?  I noticed that this happened when it was more than just a trivial query - as soon as more than one value is inserted, or we're pulling a value from a table, we hit this.  This question has attracted some potential duplicates, including:       I think it is different from these questions because I'm literally not doing anything with this column. I'm not using it in a filter, or a sort, or a grouping, or a join, or in a function - any of these things makes the scenario more complicated. All I'm doing is inserting a bigint into a nvarchar, which should never impact a meaningful cardinality estimate that I can think of.  What I'm specifically looking for out of an answer is:   An explanation of why I get this warning despite nothing of interest going on - is it just that SQL Server will be conservative and report even when it won't affect plan choice? What cardinality estimate is actually at risk here, and what operation would change based off of inaccuracies in that cardinality estimate? Is there a scenario where this could affect plan choice? Obviously if I start joining or filtering on the converted column it could, but as-is? Is there anything that can be done to prevent it from warning, besides changing data types (assume this is a requirement of how the data models interact)   I recreated it with the below simple example ()  DROP TABLE IF EXISTS #MyFunStringTable; DROP TABLE IF EXISTS #MyFunIntTable;  CREATE TABLE #MyFunStringTable (   SuperCoolColumn nvarchar(50) COLLATE DATABASE_DEFAULT NULL );  CREATE TABLE #MyFunIntTable (   EvenCoolerColumn bigint NULL );  INSERT INTO #MyFunIntTable ( EvenCoolerColumn ) VALUES ( 1 ), ( 2 ), ( 3 ), ( 4 ), ( 5 );  INSERT INTO #MyFunStringTable ( SuperCoolColumn )   SELECT EvenCoolerColumn     FROM #MyFunIntTable;  INSERT INTO #MyFunStringTable ( SuperCoolColumn ) VALUES ( 1 );  INSERT INTO #MyFunStringTable ( SuperCoolColumn ) VALUES ( 1 ), ( 2 );  INSERT INTO #MyFunStringTable ( SuperCoolColumn )   SELECT 1;  INSERT INTO #MyFunStringTable ( SuperCoolColumn ) SELECT 1 UNION ALL SELECT 2;  INSERT INTO #MyFunStringTable ( SuperCoolColumn )   SELECT 1     FROM #MyFunIntTable;


ArcPy not seeing ArcSDE datasets from IDLE or PyScripter?

I tested the code below from ArcCatalog 10.5's python console and IDLE+PyScripter. While in ArcCatalog everything works correctly(code is supposed to list available datasets and feature layers), in other python enviroments(IDLE and PyScripter) Datasets and Feature Classes are not shown, only views are listed. No error message is produced, as if my Datasets don't exist.   # Import arcpy module import arcpy from arcpy import env      # Local variables: databaseConnection = r"C:\Users\UserName\AppData\Roaming\ESRI\Desktop10.5\ArcCatalog\SDENAME.sde" arcpy.env.workspace = databaseConnection  datasets = arcpy.ListDatasets() for dataset in datasets:     print(dataset)


Problem with \index command in argument of user-defined command

I have a problem using the \index command in an argument to a user-defined command. For some reason, the problem only appears when I use the @ symbol. The following example illustrates the problem:  \documentclass[a4paper]{book} \usepackage{makeidx}  \makeindex  \newcommand\myFoo[1]{#1}  \begin{document}  \chapter{The first chapter}  \index{one} \index{\texttt{two}}  \myFoo{\index{one}} \myFoo{\index{\texttt{two}}}  \printindex \end{document}   When I typeset this source code (with the pdflatex and makeindex commands), the index looks like this:   two, 1 two, 1  one, 1   So, the "two" entry is displayed twice (in typewriter font), the "one" entry is (correctly) only displayed once. The same problem occurs when I use the @ operator.  The idx file generated by LaTeX is:  \indexentry{one}{1} \indexentry{\texttt{two}}{1} \indexentry{one}{1} \indexentry{\texttt  {two}}{1}   I guess the problem is caused by these two spaces before the { character in the last index entry, but I do not understand why these spaces are there.   Can somebody explain why entries with formatting commands and entries without them give different results here, and suggest a solution?


The other night just as I was going to bed (10/05/2018 around 12:30 AM), on Free-to-air television in Australia on 7Mate (Channel 63) there was a program called Jabba's Avengers Special where they were talking about the Avengers, The Infinity Stones, Thanos etc.  There was a part where 2 people, a man and a woman (don't know their roles but they weren't actors, might have been part of the production team) were being interviewed about Thanos where the guy said that Thanos was a Mutant so that he was super strong and had super tough skin.  Now I would assume when the guy said Mutant he can't be using the terms that's described the X-Men and other characters with the X-Gene because it was my understanding that because of movie licensing Marvel Studios can't have Mutants (and thus why Quicksilver and Scarlet Witch are Enhanced Humans rather that being Mutants and children of Magneto).  So assuming that the guy is using the more generic form of the word, is Thanos a Mutant among Titans? If so what made him different from other Titans?


Is there a way to define an unlimited history in Bash ?


My MainActivity.class is invoking putExtra towards SecondActivity.class via setOnClickListener  Intent intent = new Intent(MainActivity.this, SecondActivity.class); intent.putExtra("sentString", stringName); startActivity(intent);   SecondActivity.class setOnClickListener  //    Recieve the extra sent from MainActivity.class Intent SecondActivityIntent = getIntent(); String mString = SecondActivityIntent .getExtras().getString("sentString");  //    Send extra to another activity ThirdActivity.class SecondActivityIntent.putExtra("sentString", mString); startActivity(SecondActivityIntent);    ThirdActivity.class setOnClickListener  //    Recieve extra from SecondActivity.class Intent thirdActivityintent = getIntent(); String mString = thirdActivityintent.getExtra().getString("sentString"); //    This time I am calling SecondActivity.class but I will not send extra thirdActivityintent = new Intent(ThirdActivity.this, SecondActivity.class); startActivity(thirdActivityintent);   ThirdActivity.class is causing an      'java.lang.String android.os.Bundle.getString(java.lang.String)' on a null object reference   what does this error mean? Is it because SecondActivity.class is expecting to get an extra from any calling activity? I don't intend to putExtra on ThirdActivity or am I force to. How can this be solve?


How can I open programms e.g. Skype minimized with a command line?

I am configuring shortcuts and just thought that it would be awesome to be able to open skype, thunderbird and this stuff minimized with a command-line-shortcut? Is there a way I could do this?


How can I edit the Hostname of my MacBook Pro via the CLI? Currently running Mac OS X Yosemite (Version 10.10.5).


Start a longtable in Latex at top of next page

I want to use the longtable environment for a table. However, I do not know how to place it at the top of the next page, as I can do with the table environment. Do you know how to do it?


Trying to identify pre-1970s short story involving multiple humans absorbed into an alien blob

I think this story dates from the 1950s, plus or minus a decade - I read it about 30-35 years ago in a (then) fairly old story collection. It involves explorers on a planet falling into a gelatinous object that dissolves most of their bodies except for their brains and nervous systems. About four of them fall in to the same creature, and they discover that by thinking about it they can grow limbs and other body parts. At first they try to fight each other, by growing arms so they can hit each other's brains - and one of them realises that growing a skull would be a good idea - but later they agree to grow legs and move the creature around co-operatively. I would love to identify this story.


Why does the field of an electric dipole drop off as $1/r^3$?

Electric field of a point charge drops off inverse squarely but that of a dipole varies as $1/r^3$. Why the field drops off more quickly for a dipole?


Hide a div when foucs is out or clicked outside div

In a html structure like this

Countries visited in last 6days?

                                      <input type="text" id="countriesVisited">                     Countries visited in last 6days?                     <input type="hidden" id="countriesVisited-val" name="countriesVisited-val" value="">

Indonesiax

   The input box is autocomplete and each country is appending to the ul tag. I want to hide the div with id focusDiv when user clicked outside of this div


I installed Ubuntu 13.10 on my laptop (Acer Aspire E1 572G) I installed over my win 8.1 partition.  I just erased the disc, but while doing so I had control over my mouse and was able to connect to the wireless via the wireless symbol on the top right of the screen.  I think I wiped any drivers that were there though, I did the initial install in work and while doing so I was called out of the office and when I got back I saw a message saying,  The system is running in low graphics mode Your screen, graphics card and, input device settings could not be detected  correctly. You will need to configure these yourself.   Is there a way I can configure them?


Are the ET like aliens seen in Star Wars Episode 1 ever explicitly named "Brodo Asogi" in canon?

In a well known Easter Egg in Star Wars Episode 1 (The Phantom Menace), there is a species shown seated in the Senate of the Republic which at least partially resembles... E.T. (of Spielberg's "E.T." movie).  I am referring to these aliens:    In addition, there is a lot of evidence that when combined with out out of universe knowledge, hints at the fact that E.T.'s race does in fact live in Star Wars Universe, as discussed in the answer to "  " - including the fact that there is a planet with the same name as E.T.'s homeworld (known as Brodo Asogi) that exists.  My question is, however:  Is there any canon confirmation (as opposed to "well, what else could they be" inference) that the aliens with E.T.-like looks shown in TPM movie are indeed the same  beings who live on the world called "Brodo Asogi" in the Extended Universe?  In other words:   We know SW EU contains aliens who are E.T. look-alikes. We know that SW EU contains aliens living on a planet whose name is identical to E.T.'s home planet (Brodo Asogi). But, do we have direct canon proof (as opposed to inference) that those 2 are the same race?   Possible confirmations could be, but not limited to, explicit statements from Lucalfilm officials, an illustration in the EU comic, book or a game; or the name mentioned in TPM script.


Random number in a range, biased toward the low end of the range

I have an input of two values, let's say 1 and 10. Lesser numbers should overall occur more often in the output than higher numbers, while there is a peak in the probability at #2:  1: very common 2: extremely common        3: very common      4: common               5: somewhat common   ...                   10: extremely rare      How do I achieve this? My code until now looks like this:  function getValue($min, $max) {     return random($min, $max); }


You can simulate a right mouse-click with the magic mouse if you tap the right half of the mouse without touching the left half and THEN click.  But is it possible to achieve a middle-mouse-click with the magic mouse (on OSX 10.6)?  And How?


How to create sql query with php variable as a column?

The database I'm working with necessitates that I prepare my sql query with variable column names. How would I go about setting up a query without knowing the column name before hand? Thanks!  I've searched around the forums and most answers seem to be for an older version of php that is now depricated.   $stmt = $con->prepare("SELECT * FROM Housing WHERE ? = Staten Island"); $stmt->execute($borough); echo $stmt->fetch()[1];


I need your help for this question      Let $\, \mathbb{P}_x, \mathbb{P}_y \,and\, \mathbb{P}_z \,are\,  the\, laws \, of \, 3 \, r.v. $ If  $\,\, \mathbb{P}_x=\mathbb{P}_y\, $then $\,\,  \mathbb{P}_x\otimes \mathbb{P}_z=\mathbb{P}_y\otimes \mathbb{P}_z$?   I know that if $X$ and $Y$are independent $\mathbb{P}_x\otimes \mathbb{P}_y$ it's going to give me the distrbution of the random vector $(x,y)$ then the problem it's the prove that the distribution of $(Y,Z)$ and $(X,Z)$ aren't equal But what if $X$ and $Y$ aren't independent of $Z$   What would be the general solution for this problem ?


I try to get the id of li in listview by using following code  $("#detailr").append("

"+ item.appname +"Left"+ item.leftc +"

Done"+ item.appdone +"

search\""+ item.appname +"\"

+"+ item.appprice +"

");});   and click events     the html content

   when I click the li, there no response, and I change $('#detailr').children('li').click(function () to $('#detailr li').click(function () , $('#detailr').children('li').on("click", function (), also doesn't work, I don't understand why, please help me, many thanks.


When should one add another answer instead of editing one's already posted?

When is it reasonable/recommended to add another answer when I have already added one? My doubt comes from  that I  although I find later that the question was not complete. I found a way to solve the problem and was going to post it when I got the "add another answer" question.  So, should I post a new answer in this case or edit the somewhat faulty one? Better yet, when is it appropriate to post another answer?


Prove that for $x\in\mathbb{R}$ $$ \cos x\geq 1-\frac{x^2}{2}. $$ My try: Consider $g(x)=\cos(x)-1+\frac{x^2}{2}.$ If I differentiate $g(x)$ then we get $g'(0)>0$ so locally we get $g(x)>g(0)=0$ and then we can see that the function is increasing for any $x$ the function is increasing and hence we have $g(x)\geq 0$ for any $x \geq 0$. But I am getting that if $x<0$ then $g(x) \leq 0.$ So this inequality isn't true in general for all $x \in \Bbb R$. But, if we use Taylor's theorem with Lagrange's remainder then also I am not sure what will be the point $\zeta\in [-x,0]$ where $\cos(x)=1-\frac{x^2}{2}+\frac{x^4}{4}\cos(\zeta).$


Please, I want to add a subsection to the existing section in my chapter 1.  How can I do that? For example, I have 1.2.1 and I want to add 1.2.2. How do I go about that?


How to make a bootable usb stick and cd disk?

so the operating system does not work on one of my laptops due to some reason. However I decided that I want to put the operating system on again. I have a USB drive and 8gigabyte CD disks and would like know how to make them both bootable. Your help will be well appreciated and i look forward to seeing your replies.  Thank you very much,  Abdullah


postfix: relay access denied. How to fix it?

I've been fiddling with main.cf file for a long time but still couldn't find why. I've set up an email server with this tutorial   This is the part about postfix:  myhostname = server.example.com mydestination = localhost, localhost.localdomain mynetworks = 127.0.0.0/8 inet_interfaces = all message_size_limit = 30720000 virtual_alias_domains = virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf virtual_mailbox_base = /home/vmail virtual_uid_maps = static:5000 virtual_gid_maps = static:5000 smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth smtpd_sasl_auth_enable = yes broken_sasl_auth_clients = yes smtpd_sasl_authenticated_header = yes smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination smtpd_use_tls = yes smtpd_tls_cert_file = /etc/pki/dovecot/certs/dovecot.pem smtpd_tls_key_file = /etc/pki/dovecot/private/dovecot.pem virtual_create_maildirsize = yes virtual_maildir_extended = yes proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps virtual_transport = dovecot dovecot_destination_recipient_limit = 1   Now within my server, I could send emails from user1@example.com to user2@example.com, I could receive emails from user@gmail.com, but I couldn't send an email to user@gmail.com. I got an error: Relay access denied. Is there anything I should change?    EDIT:  This is from /var/log/maillog  NOQUEUE: reject: RCPT from unknown[(Server's IP)]: 454 4.7.1 <user@gmail.com>: Relay access denied; from=<user1@example.com> to=<user@gmail.com> proto=SMTP


Determine if a shell script is running on a LiveOS/chroot/installed system?

How can I determine within a shell script if the script is running:   On a Ubuntu LiveOS (not necessarily version dependant) -- (already answered ) Within a chroot on an Ubuntu LiveOS (already addressed ) On a locally installed system (no LiveOS) -- (already answered )   As all three points seem to be addressed elsewhere, I'm going to vote to close this question. Pointed out in the only answer here, a combination of tests can be used to determine chroot on LiveOS.


Why is an ordered pair (x, y) written as { {x}, {x, y}}?

I was studying Set theory (on a self-study basis, reading O’Leary’s book on logic and set theory and Warner’s book on Set Theory) and I came across the notation for an ordered pair. I was just wondering if that notation is just a convention.  I’ve read Eric Steinheart’s explanation in his book More Precisely:     Since sets are not ordered, it might seem like we can't use sets to define ordered pairs. But we can. Of course, the ordered pair (A, B) is not identical with the set {A, B}. It is identical with some more complex set. We want to define a set in which A and B are ordered. We want to define a set that indicates that A comes first and B comes second. We can do this by indicating the two things in the ordered pair and by distinguishing the one that comes first. One way to do this is to distinguish the first thing from the second thing by picking it out and listing it separately alongside the two things. For example: in the set { {A}, {A, B}}, the thing A is listed separately from the two things {A, B}. We can thus identify the ordered pair (A, B) with the set { {A}, {A, B}}. Notice that {{A}, {A, B}} is not identical with { {B}, {A, B} }. Hence (A, B) is not identical with (B,A).    But it doesn’t seem enough. So, I checked Enderton’s book on Set Theory and he gave a detailed explanation, but I don’t get it. Here his explanation:     I still can’t see why the notation  { {x}, {x, y}} represent an ordered pair (x,y) instead of a single element and a pair.  I know this is basic stuff, but I would appreciate if you could help me understand it.


Solve Equation $ax+by=d$ where $d \neq \gcd(a,b)$ using Bézout

I want to solve this equation: $3x+4y=14$ I present you what I have so far: $\gcd(3,4)=1$ which is not $14$. I notice that: $3(6) + 4(-1) =14$ So using Bézout : $3(6-4k) + 4(-1+3k) = 14 (1)$, where $k$ integer. So we have $k>1/3$ and $k<3/2$. So $k = 1$. By replacing $k$ in equation $(1)$ we get: $a=2, b=2$, which indeed solves the equation. However, I dont get my previous solution $(a,b)=(4,-1)$ which is also correct. Am I applying Bézout wrong? Or am I not supposed to find the solution that I used to find the new ones, if they exist? Do I have $2$ solutions and that's it or am I missing something? Thank you.


How to dynamically change the variables of a view?

I create a view (eg Generic) which defaults to a mini pager 10 items.  When I visualize this view, I would like to dynamically change the number of items in the passing 3.  How? What hook to use?


I have run a ITS analysis on my dataset but I am unable to know which ARMA process to use. Please help understand how to select the ARMA process. I'm stuck.


In order to produce the following output involving a chemical formula     I can attempt to write the chemical formula as a mathematical formula:  \documentclass{report} \usepackage{amsmath} \begin{document}     As the scintillator $\text{PbWO}_{\text{4}}$ crystals are used. \end{document}   However, this method is a brute force when approaching a chemical formula. How would a versed Latex expert solve this task?


Noun order: "He and we..." or "We and he..."? Similarly, "...him and us" or "...us and him"?

It's convention and polite to always list yourself last in a list. I say "John and I went to the store" and not "I and John went to the store."  So does that mean that I should always list myself last, even in the case when the pronoun that represents me is first person, plural (i.e. "us" or "we")? In my case, I'm writing a recommendation letter about my experience on a team with "John," who is the highlight of the letter. I hit a point where I was about to write something similar to:     John and we got a lot of experience working on the project.   or     That project's experience really benefited John and us.   Clearly, he is mentally separated from the others of us who were on the team, at least in this context, so I was just wondering if there were some grammatical conventions to govern this situation.


I been working on and with SSL certificate's for a bit now and my organization is thinking of going with a Wildcard certificate vs the Multi-domain san certificate we have now. What I need to know, is why we should not go the wildcard Certificate route? I know how they work, but I need to sell this to them. I know the advantages and disadvantages.  I have been researching reasons why not to use and the only disadvantage I can really find is the same one every site or person says, " If the .key is compromised then the WCS is". I need a better reason why not to use it then that, because the multi-domain is the same way .key wise. We have and can put steps in place to make this safer.   What we are looking at doing is going from 1 UC Multi-domain with hundreds of SANs and breaking it down with wildcards. this will also be running through a NetScaler SDX 11500. I am not a big NetScaler person but I understand it. If we enabled SNI can we load different certs and keys?  Also do you know of more steps to make it safer. Thanks


What is all this /snap gibberish mounted on my system?

What on earth is all this utter gibber on my (freshly booted) ubuntu 18.04 virtual machine, and how do I make it go away and never bother me again?  /dev/loop0               3840       3840          0 100% /snap/gnome-system-monitor/51 /dev/loop1               3840       3840          0 100% /snap/gnome-system-monitor/45 /dev/loop2              13312      13312          0 100% /snap/gnome-characters/103 /dev/loop3               3840       3840          0 100% /snap/gnome-system-monitor/41 /dev/loop4              88704      88704          0 100% /snap/core/4650 /dev/loop5             144384     144384          0 100% /snap/gnome-3-26-1604/70 /dev/loop6              22144      22144          0 100% /snap/gnome-logs/31 /dev/loop7             142848     142848          0 100% /snap/gnome-3-26-1604/64 /dev/loop8              13312      13312          0 100% /snap/gnome-characters/96 /dev/loop9               2432       2432          0 100% /snap/gnome-calculator/170   (There is lots more than this, I just included a sample).  The previous question everyone keeps saying is a duplicate doesn't say anything about how to make snap go away completely and never come back.


I have come across several commands that use 2>&1 and 1>&2, but I quite can't get my head around the purpose of using it and when I should be using it.  What I understand  I know that 1 represents standard out and 2 represents standard error. I understand that 2>&1 combines the output of 2 to 1 and vice versa.  What I don't get   When should I be using it? What purpose does it serve?


Why does right shifting negative numbers in C bring 1 on the left-most bits?

The book "C The Complete Reference" by Herbert Schildt says that "(In the case of a signed, negative integer, a right shift will cause a 1 to be brought in so that the sign bit is preserved.)"  What's the point of preserving the sign bit?  Moreover, I think that the book is referring to the case when negative numbers are represented using a sign bit and not using . But still even in that case the reasoning doesn't seem to make any sense.


Can wild magic growth make me a Large creature?

I'm playing a wild magic sorcerer and I've rolled the size-changing effect (grow or shrink 1d10 inches) a few times. I'm 9'3" now, and starting to wonder about my size category.  Does growing beyond 10 feet, if caused by the wild-magic sorcerer random table, cause a Medium character to become a Large creature, with all the advantages and the drawbacks?  Can a character be 10 feet tall and still be considered a Medium creature?


Lower case when using natbib and apacite

Problem:  Title for references are formatted automatically in lower case.  Minimal Working Example:  \RequirePackage{filecontents} \begin{filecontents}{\jobname.bib} @book{RN518,    author = {Naughton, J.},    title = {What you really need to know about the Internet: From Gutenberg to Zuckerberg},    publisher = {Quercus},    address = {London},    year = {2012} } \end{filecontents}  \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[swedish,english]{babel}  \usepackage[natbibapa]{apacite} \bibliographystyle{apacite}  \begin{document}  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque varius maximus enim in scelerisque. Aliquam dictum mollis fringilla. Donec eu ullamcorper erat. Curabitur sit amet dolor eget tellus convallis rutrum consectetur elementum ligula. In a cursus magna. Maecenas nec tristique tortor. \citep{RN518}.  \bibliography{\jobname}  \end{document}   The title is:  What you really need to know about the Internet: From Gutenberg to Zuckerberg  But renders as (notice the words Internet, Gutenberg, Zuckerberg):


Could a human, even in principle, hear a gravitational wave? If so, how powerful must it be?

Sufficiently powerful gravitational waves . How powerful would the waves have to be for a human to actually hear them, and what would be the side-effects of that intensity of gravitational radiation?


Driving a tow work in Louisiana and need to pick up a car in Mississippi, and bring back to Louisiana, do I need to stop at the weight station?


Running a Batch File from Task Scheduler Without User being logged In

I'm trying to run a batch file on Windows 7 from the Task Scheduler.  I can run the batch file fine if I run it from the command prompt.   If I run it from the Task Scheduler to only run when the user is logged in, the task will run without any issues. However, when it runs when the user is not logged in, the Task Scheduler looks like it's running the file but nothing happens.    I've tried changing the batch file to nothing but the following line to ensure it's not because of what's in the batch file:  echo "success" >> c:\temp\test.log   and that does not work.  Any ideas?  I have it being run with the highest privileges and with an admin account that has full permissions to the batch file and the folder where the file is being written.


Closed form for $\sum_{k=0}^{m} {\binom {m}{k}} a^{k} (b+ck)^N$

Is there a closed form for the following?   $$\sum_{k=0}^{m}  {\binom {m}{k}} a^{k} (b+ck)^N$$      how about a pretty limit for large $b$.   I have tried using the binomial expansion for the $(b+ck)^N$ to convert the above expression to double sum and then tried to simplify the double sum which was not successful. Any idea if I have find a closed form for it?


Can I load a 32 bit DLL into a 64 bit process on Windows?

I recently upgraded a c# windows service to run as a 64 bit .net process. Normally, this would be trivial, but the system makes use of a 32-bit DLL written in C++. It is not an option to convert this DLL to 64 bit, so I wrapped the DLL in a separate 32 bit .net process and exposed a .net interface via remoting.  This is quite a reliable solution, but I would prefer to run the system as a single process. Is there any way I can load my 32 bit DLL into a 64 bit process and access it directly (perhaps through some sort of thunking layer)?


Pay off mortgage or invest in high value saving account

I have a mortgage of 30 yrs amortization and have 290k left on the mortgage. It suddenly hit me that with my bi weekly payment of 620, it would take forever to pay it off. I need some help deciding if when i have some 'disposable' income, i should pay toward mortgage or i should pay towards a high value savings account. In other words, how to decide between paying off mortgage and investing in high value saving account,bond etc(not stock)


Consider a function $f \in L^2(\mathbb{R}^n)$ such that $f$ is radial. My question is, is the Fourier transform $\hat{f}(\xi)$ automatically radial (I can see it is even in each variable $x_i$), or we need some conditions on $f$? Thanks for your help.


How to store the output of readlink into a C# variable

Take this function from  demofunc(){     local variable="hellow"     echo $variable     }  val=$(demofunc) echo $val  and be able to use the information inside of a C# application. For my specific case I'm trying to return the 'pointed to' filepath of a symlink, which I can get to echo, but can't figure out how to actually use that data. I've tried this with a process, but I get a blank value: Process compiler = new Process();    using (compiler)     {     compiler.StartInfo.FileName = "/bin/bash";     compiler.StartInfo.Arguments = $"Output=$(readlink {symlink} | less; echo $Output)";     compiler.StartInfo.UseShellExecute = false;     compiler.StartInfo.RedirectStandardOutput = true;     compiler.Start();     var line = compiler.StandardOutput.ReadLine();                                  Console.WriteLine("LINE, this is OUTPUT: " + line);     Console.WriteLine("Symlink:" + symlink);     }


Why does this work as a variable defined, but not as a function()?

The original prompt was: Write a function called lastLetter that takes a string and returns the very last letter of that string: lastLetter("abcd") should return "d" I was able to write it so that I could define lastLetter as a variable in the console log to produce "d" as requested; I'm just curious if someone can help me understand how I would edit this to create a function and produce the same result? Or does it matter if it's a variable or function, like is one more useful than the other? Working code let alpha = "abcd"; let lastLetter = alpha[alpha.length - 1] console.log(lastLetter) // "d";  Function returns "undefined" function lastLetter() { let alpha = "abcd"; let lastLetter = alpha[alpha.length - 1]  } console.log(lastLetter) // "undefined";


Word for opposite of boss that is not pejorative?

I'm developing an app and cannot figure out a good word for the "underlings" of a boss which doesn't sound so pejorative. I've thought of supervisee, but that sounds archaic and I don't like how it's so close to supervisor.


null pointer exception when saving image in directory android

I have tried following code in which i am trying to save my uploaded image into SD card folder with some name.It gives null pointer exception on the mentioned line. Any suggestions please.      java.lang.NullPointerException: Attempt to invoke virtual method 'android.graphics.Bitmap android.graphics.drawable.BitmapDrawable.getBitmap()' on a null object reference   Code  protected void onActivityResult(int requestCode, int resultCode, Intent data) {   super.onActivityResult(requestCode, resultCode, data);   if(requestCode==i && resultCode==RESULT_OK && data != null){     Uri selectedImage =  data.getData();     coverpic.setImageURI(selectedImage);     Bitmap  image =( (BitmapDrawable)coverpic.getDrawable()).getBitmap();//This line throws the exception     if (!direct.exists()) {     File wallpaperDirectory = new File("/images/");     wallpaperDirectory.mkdirs();      }      Bundle extras = getIntent().getExtras();      File file = new File(new File("/images/"),extras.getString("name")+i + ".jpg" );             if (file.exists()) {                 file.delete();             }      try{     FileOutputStream out=new FileOutputStream(file);     image.compress(Bitmap.CompressFormat.JPEG,100,out);     out.flush();     out.close();     } catch(Exception e)             {                 e.printStackTrace();               }         }


Why do things even move? I mean based on Newton 3rd law no matter how much force you exert on an object, it will always exert an equal and opposite force back to you. So why do things move?


I have been studying causality (specifically why there is no such thing as a simultaneous instant of time across all observers) recently and I keep hearing references to the Andromeda paradox. Can anyone tell me what it is and how it is resolved?  I've tried reading what  says about it, but I could really use someone's explanation.  Edit Ok, after reading the related question, now I'd like to know does this imply there is some sort of privileged reference frame, in which there exists absolute velocity and absolute time? I ask because the answer for the other question seemed to indicate that the actions seem to be at different points of simultaneity but that in fact the person not moving is getting it right. But this seems strange to me because if we accelerated our galaxy to a different speed, we would still perceive our stationary observer as being right even though they'd see something different than before the acceleration.  So who is right? In what frame can we be sure that our present is Andromeda's present?


Edit Review Queue on Stack Overflow: Can I flag a user?

is making several poor quality wiki tag edits.   If you look at , they've acquired over 100 points making these edits over the last couple of days. Somehow their edits have slipped past the review stage: the ones I have inspected are of sufficiently poor quality to be rolled back.  How can I flag this for moderator attention? Is there a way to do this from the review queue screens?


Prove $\cos \frac{\pi}5-\cos \frac{2 \pi}5=\frac12$ but without finding $\cos \frac{ \pi}5$

I can find the value of $\cos \left(\frac{ \pi}{5}\right)$, but is there a way to prove the equality without finding it?  I tried looking for both algebraic and geometric methods, but couldn't find anything


$A$ and $B$ are ideals of a ring ${R}$ such that $A\cap B=\{0\}$. Prove that $st=0$ for every $s\in A, t\in B$.  I have no idea how to solve it. please help.


Euphemism would mean putting across something that is possibly very hurtful in a very polite /mild manner. Is there any specific word for its antonym? The closest to this that I can think of is venomous


$\sum a_n = \sum{(\sqrt{n+1} - \sqrt{n})}$ Prove divergence

$\sum a_n = \sum{(\sqrt{n+1} - \sqrt{n})}$. I want to show that this diverges. I think the only way I can do it, is by using the comparison test, and finding a series less than it that diverges, but I can't think of a series that is used often/ easy to prove divergence for that is less than this one for all $n$. I was origionally thinking something like $\frac{1}{\sqrt{n}}$ or $\frac{1}{n}$, but those don't work


CMake Error at CMakeLists.txt:1 (cmake_minimum_required):   CMake 3.6.0 or higher is required.  You are running version 3.5.1 -- Configuring incomplete, errors occurred!   I know Ubuntu uses stable releases that it can support, but some repos require later versions of cmake. I want to overwrite the old cmake with the later version of cmake, but the common PPA doesn't carry the cmake I need. How can I upgrade cmake to use the needed version without conflicts with the older version?


Buttons not working on JS inserted HTML but work on pure HTML

Got this   All good, but after I insert a new activity (a new table) the buttons are not responsive even though I give them the classes and trigger the eventListeners.  Atm, my DOM consts are at the top of the JS page, but even when I moved them after the insertion of a new table (activity) in the JS page, still doesn't work.   tldr:    remove and check buttons work with html that is preset on the page; remove and check buttons don't work with html that is inserted with js   newDiv.innerHTML = `

       Title	       Priority	       Description	       Date	       Tasks	       Completed	       Remove

       ${newActivity.title}	       ${newActivity.priority}	       ${newActivity.description}	       ${newActivity.date}	       	       X

`;


What's a good phrase for "refining a process which is hopelessly broken"?

I'm looking for a turn of phrase to describe a situation where the powers that be wish to continue making small improvements to a process which, due to deep-rooted flaws, will never be close to accurate.  I'm working on a process for estimating the states of business objects, and there's interest in fixing some edge cases which have been noticed.  This could be worthwhile, but because of missing data we're already making heroic guesses.  So if implemented, we might get from 80.0 to 80.1% accuracy.  If we were at 99.5%, I'd be happy to get it to 99.6%, but in the current situation it doesn't seem productive.  We have some CS people on E.SE; what would you call it when someone wants to optimize a two-second process to load data, though once loaded it will be chewed on by an inefficient algorithm for hours?  Something like "bailing the ocean" or "fixing a leaky faucet in a burning building" is close to what I have in mind.  There's also "rearranging deck chairs on the Titanic," but that carries an implication that the changes are wholly useless, and that events are coming to a head.


Lenovo Yoga 2 11 with no wi-fi (soft block removed)

I installed Ubuntu Trusty Tahr 14.04 LTS on a Lenovo Yoga 2 11 and noticed I had no wi-fi option, only networking (usually I see "enable wi-fi" too.)  rfkill list all resulted in only a soft block and after running sudo modprobe -r ideapad-laptop the soft block was removed.  The trouble is that I don't know were to go from here as I still do not have wifi. All of tutorials/docs I have found address what to do if you have a hard block.


How to programmatically replace a field label and content before rendering?

I expected to be able to do it with THEME_preprocess_field, but the data at that point seems to have only the content's markup and not the label. I would need an instance where I can change both, because there's some mutual conditioning between them. I also tried with THEME_node_view to no effect. Note: I want to do this in a theme, not a custom module.


Why does the TSA allow two 3-ounce containers but not one 6-ounce container?

If I understand the TSA's  in the US correctly, you are allowed to take two 3-ounce containers of a liquid on a plane, but not a single 6-ounce container of the same liquid. Is this really how the policy works? If so, what was the rationale for regulating carry-ons like this?


What is the difference between "clothes" and "clothing"?

Do some google I find that clothes work like objects like:        You should pack your clothes.  → Yes   You should pack your clothing. → No      Can you tell me the main difference between clothing and clothes?


Related:  |  |    Ban URL shorting services from being used in questions/answers. I have three major reasons to request this:   It's abused to hide LMGTFY-Links (interestingly, this behavior ranges from the 20 rep Newcomer to the 50K User) It's used for inlined links, which negatively affects usability (I can't see where the link is taking me) It's used instead of proper formatting   As requested by ChrisF, a few examples of misuse (all removed by now):          Update as of 19th Aug '13: In the light of the recent , Id' like to suggest to reconsider the stance on this.  Those spam attacks are mostly enabled by the fact that the spammers can hide behind shortened URLs (goo.gl in this case), making blacklisting of the original URL impossible. Banning at least the most well-known services would force spammers to use their original URL (or would block the attack as a whole), making it easier to directly target them.


I'm really hung up on this problem. Sorry, I cant use subscripts for my sequences.  Let $\{a_n\}$ and $\{s_n\}$ be sequences. Suppose $L= \lim a_n$ and let $s_n = (a_1+a_2+...+a_n)/n$. Prove that $\lim s_n = L$. Hint: $|s-L| = \left|\frac{(a_1-L)+(a_2-L)+...+(a_n-L)}{n}\right|$.  I Tried proving the $\lim a_n =L$ via  Let $\epsilon >0$ then there is an $n \ge N=L/\epsilon$ then $|a_n-L| < \epsilon$  But I'm not sure if that will be helpful or where to go from here to show that $\lim s_n =L$. is there something I can say about $s_n$ when $n \ge L/\epsilon$?


I have an app that has 23 ratings and 4,5 stars but if you search for the app they don't appear. If you tap on the app after searching for it, the stars appear but empty. You can only see the stars if you tap on Ratings. It's not a problem of time, the app was released in July 2013 there are ratings from that time too.!  I'm on the Spanish App Store, and looking through the categories and there are many apps that have this same problem, only few apps have the 5 star rating under their name.  So what are we doing wrong? I would assume the ratings would appear automatically.


Relationship between $\|\cdot\|_p$ and $\|\cdot\|_{\infty}$

Is a knowledge fact that in $\mathbb{R}^n$ we have $$ \|\cdot\|_{\infty}=\lim_{p\to \infty}\|\cdot\|_{p} $$ where we define $$ \|x\|_{p}=\left(\sum_{i=1}^{n}x_i^p\right)^{\frac{1}{p}} $$ and  $$ \|x\|_{\infty}=\sup_{1\leq i\leq n}|x_i|. $$  Now consider $l_p=\{\underline{x}=(x_1,\ldots,x_n,\ldots), x_i\in \mathbb{R}; ~~\sum_{n=1}^{n}x_i^p <\infty \}$ and $l_{\infty}=\{  \underline{x}=(x_1,\ldots,x_n,\ldots), x_i\in \mathbb{R};~\sup_{i}|x_i|<\infty     \}$  Consider in $l_p$ the norm $\|x\|_{p}=\left(\sum_{i=1}^{\infty}x_i^p\right)^{\frac{1}{p}}$ and in $l_{\infty}$ the norm $\|x\|_{\infty}=\sup_{i\in \mathbb{N}}|x_i|.$    My question:  It is true that if $\underline{x}\in l_{\infty}$ then  $$ \|\underline{x}\|_{\infty}=\lim_{p\to \infty}\|\underline{x}\|_{p}~\text{?} $$


Why did St Mungo's not have any Mandrake juice to un-petrify people with?

In Chamber of Secrets, it appears that Hogwarts is the only place in the entire country to get fresh mandrake juice to unpetrify the students/cat that were petrified by the Basilisk.    Wouldn't St Mungo's have had any, it being a hospital for magical maladies, whereas Hogwarts is just a school that happens to teach about herbology and have mandrakes growing?  Is it that much of an unusual ingredient for the potion required?


Fast ways to login as a local administrator on Windows 7 company computers

I need to login to several windows 7 computers at work a day usually as local administrator. It can get tedious typing in the long username and password. What are the fast ways to login as local administrator?


Can't find any way to correctly write these two special brackets without having spacing between the symbols that compose them.      Apparently no package is found by Detexify


Wrapped method ends up in the 'false' block as but direct function call doesn't

Note: I come from a Python / PHP related background and don't have too much experience with C.  I'm currently writing a PHP extension that needs to check if another module is loaded, for this I've copied and pasted the following snippet of code throughout my extension:  #include "php.h"  const char* name = "hash";  if (zend_hash_str_exists(&module_registry, name, sizeof(name) - 1)) {     return; // Doesn't end up here, module is loaded }  // Returns true and thus ends up here   I decided to put this into it's own method to make my code a lot more clean, however whenever I do this, the method seems to return FALSE or NULL. This is the method I'm using:  #include "php.h"  zend_bool extension_module_exists(const char* name) {     return zend_hash_str_exists(&module_registry, name, sizeof(name) - 1); }  const char* name = "hash";  if (extension_module_exists(name) == false) {     return; // Now I end up here }   Could someone give me an indication of what I might be doing wrong? Thank you.


Are there any official class options in 5e not mentioned in the PHB, and if so, where can I find them?

I just joined the Adventurers League. They have told me that you can get character options (class, background, race) from the PHB and one other official D&D 5E book. I am aware of the race options, but what about class options? Is there a book that offers new class options?


"All that is gold does not glitter" is the first line of a poem from the Lord of the Rings and it's supposed to mean "not all gold glitters" but I'm struggling to see how this can be deduced.  If all that is gold does not glitter then it follows that "gold never glitters". If all gold doesn't glitter then there's no such thing as gold that glitters. This is quite different from the actual meaning. "Some that is gold does not glitter" would make more sense. Am I missing something? Does "all" actually mean "not all" in this context? It's really confusing.    It looks like "Not all that is gold does glitter" would mean the same thing, but in logic it has a different meaning.


nohup grunt server:debug >grunt.out 2>&1 <&- &   I have a nohup command that ends with <&- . What does this direction do? Can some explain with pointers. I did search google for examples, but could not find one which explained about <&- and is this really required?


If I cut the pin on my meter and remove the meter in order to replace the incoming power breaker, will I get in trouble? I live in the United States.


Custom keyboard shortcut for changing keyboard layout

I typically work on Linux machines which have a fairly handy way of changing the keyboard layout with Shift+Caps Lock. On Windows, though it's possible to change the layout with keystrokes, it doesn't seem possible to use this specific keystroke:    Is there a tool or a registry hack to enable me to customize a shortcut for switching keyboard layouts in Windows 7?


Email signature hell--How to include a logo image and have it stay sharp?

I found a couple useful threads on this forum with respect to the issues posed by (displaying) images in email signatures-- , for example-- and I've searched all over the web, but still have not found a good solution that sufficiently addresses the problem. A client of mine would simply like his company's logo included in the signature of his emails, and the issues I've encountered can be summarized as follows:   I can export a rasterized version of the logo from AI at actual size, and it will look sharp on the desktop but pixelated/blurry on hi-density (e.g. "retina") displays such as the iPhone. As suggested in the thread I referenced, I can export the logo at 2-3 times the actual, displayed size to target the hi-density displays, but the logo will then look soft on non-hi-density displays when it is scaled down. This is a particular problem in this instance as the logo contains text, which looks terrible when juxtaposed with actual text in the browser/email client. I've considered .svg as an option, but apparently the support is not great; and in this case I'm assuming the vast majority of the users reading this client's email will be using Outlook, so something that only renders properly in iOS/webkit/etc is not a viable option.   I'm at a loss at this point and wondering if there is any other possible option out there. I'm not sure, for instance, if it's possible to implement a hi-density image with lo-res fallback in an email signature?  Any suggestions/insights here are much appreciated. It's bordering on comical how difficult this task has turned out to be.


Three variable, third degree Diophantine equation

I haven't found any useful method to solve the following problem: Prove that if $x,y,z\in\mathbb{Z}$ and $x^3+y^3=3z^3$ then $xyz=0$.  Source:


I'm a little confused why our book defines an ideal $IJ$ in $R$ (where $I$ and $J$ are ideals) in such a complicated way:  $$IJ=\left\{ \displaystyle\sum\limits_{i=1}^n a_i b_i\mid n\geq 1 ,a_i\in I, b_i\in J \right\}$$  How is this different that defining more simply as:  $$\{ab\mid a\in I,b\in J\}$$ Since $\{ab\}$ is closed on addition then elements of the form $a_1b_1+\cdots +a_mb_m\in\{ab\}$, which sure does seem like it is equal to $IJ$. Am I missing something here?  Thanks.


Gender neutral noun for brotherhood / sisterhood?

Example 1:  Example 2:    Any other ideas?  association fraternity guild kinship affiliation alliance clan clique community comradeship confederacy coterie fellowship league society union


i started to learn a bit more about c++ and lately i see really often stuff like (DWORD)(x+y);  example:      int number = 10; int pointer;  pointer = *(int*)(number);  std::cout << "number: " << number << std::endl; std::cout << "pointer: " << pointer << std::endl;  getchar();   this makes a exception, i know, but could someone properly explain those action to me? like (int) and (DWORD) etc.. or, recommend me a book? thanks!


Adding command to LaTeX file using texify

A program I am using spits out LaTeT tables in LaTeT files (outreg2 command from STATA), which I run using texify to make pdfs of the tables. I crop these tables (using pdfcrop) and embed them elsewhere. However, the pdfs include page numbers, which prevent pdfcrop from cropping directly around the table. I need an automatic way to remove the page numbers before cropping. I want to insert the command \pagenumbers{gobble} into the LaTeX code to automatically remove the page numbers.  I believe  texify --pdf --texinfo="\pagenumbering{gobble}"  filename.tex   should work. It does not. No exception pops up, but the page number remains. I cannot find documentation anywhere showing examples of using the --texinfo option to splice LaTeX code into the file before running the LaTeX file to create a pdf.  How should I properly use the texify command? Or is there another way to conveniently splice in \pagenumbering{gobble} before running texify?


Modification of Euclids Proof of infinite primes to generate a sequence of distinct primes

How would one modify Euclid's proof of infinite primes to generate a sequence of distinct prime numbers only? How can you prove that each element in the sequence generated by the modified algorithm is a prime number different from all the previous primes in the sequence?  Example- In this algorithm,Given the current list of primes p1 , … pn , you multiply them together then add 1 . This gives a number x=q1..qn +1. Here x need not be prime and I was wondering how to modify the algorithm so the "x's" generated as such would be prime numbers


Do I, Ghanaian, need a transit visa at Istanbul airport on Turkish Airlines for connecting to Singapore?

I am a Ghanaian travelling on Turkish Airlines from Nigeria to Singapore. There is a long layover from 6am to 1am before boarding my next flight.    Do I need to acquire a transit visa before I can  board Turkish Airlines?


Matching html tags using regex Javascript

I have the following html variable containing:  " ... <section>     aaa </section> ... "   Using:   var output = html.match(/<section>.*[\r\n]*[\n]*<\/section>/g);    Gives me a null value. I basically want to get all substrings that are in between section tags, given that there are line breaks in between them.  Any clue on why this is not working? Thanks!


Ubuntu gives black screen at startup. I  have no idea why.  Maybe it's the  software update I did yesterday? Why is it happening?


Paid credit card bill, but money didn't leave my checking account

I paid my CC bill last Friday morning. The payment appeared in my CC account that same day. But now, 3 days later, the money still hasn't left my checking account (which is in a different bank).  I did verify that I used that checking account for payment. I also checked that the transaction is not marked as "pending". Should I call the bank, or should I wait? Both banks mentioned are in the U.S.


Format partition with GParted to recover Windows after installing Ubuntu over it

I have a broken Ubuntu OS.  I have tried many a ways to restore/recover the hard drive.  Boot-repair, Windows recovery, Ubuntu live usb repair disc option.... nothing is working.    The 750gb partition that is shown was where Ubuntu was previously installed in place of my Windows installation.  Yes that is right, I installed Ubuntu over Windows instead of the dual booting option like a fool.  Let us move past that.    Right now I want to format my partitions so as to repair my Windows OS and then install Ubuntu as a dual boot.  Please step by step or semi-detailed instructions in using GParted or possibly the terminal.  I'd appreciate any help offered and I thank you in advance!


How to convert a string to an integer in C++

That might be a easy problem but I'm still stacked on it.  I have string variable number = 11111111111111111111111111111110 and in decimal is 4294967294.  I couldn't use atoi because its value bypass int value. I tried also istringstream and strtoul and both of them gave inaccurate results.  What am I missing here?


Sorting a Map on First by value then by Key

I am actually able to sort my Map on the basis of both Key and value alone, I even tried to sort them like below:  I sorted the students on the basis of country , and if two students happen to have same states then sort by StudentID only among the matched country.  What i have tried so far:  final Map<Integer, String> studentMaster = new HashMap<>() {{         put(146, "Sweden");         put(148, "Sweden");         put(110, "Orebro");         put(6, "Malmo");         put(14, "Orebro");         put(26, "Malmo");     }        };     studentMaster.entrySet().stream()     .sorted((i1,i2)->i1.getValue().compareTo(i2.getValue()))     .sorted((j1,j2)->j1.getKey().compareTo(j2.getKey()))     .forEach(System.out::println);   The result that I am getting**( actual output )**  14=Orebro 26=Malmo 110=Orebro 146=Sweden 148=Sweden   Expected Output:    26=Malmo   14=Orebro   110=Orebro   146=Sweden   148=Sweden


Can I travel to Spain on Long Stay French Visa(Student) to attend International conference?

I landed in Paris on Long Stay Visa and I am planning to attend one international conference in Barcelona, Spain. Can I travel on Long Stay French Visa (Student).


unable to understand this image read python code

import matplotlib.pyplot as plt import matplotlib.image as mpimg import numpy as np  my_image = mpimg.imread('mountain.png') print('The image is:- ',type(image),           'dimensions is:-', image.shape)  print(image[:,:,0]) print(image[:,:,1]) print(image[:,:,2])   I am unable to understand what image[:,:,0] or image[:,:,1] mean ?


When someone edits a posting, can they simply edit it?  Why do they have to mark it with "Edit:".  Authors of books don't do this.  Postings would read a lot smoother and look more permanent, if they didn't include "Edit:" all over the place.  If I want to see the edit history, it is available.


If $\dfrac{a}{|z_2-z_3|}=\dfrac{b}{|z_3-z_1|}=\dfrac{c}{|z_1-z_2|}$, then why is $\dfrac{a^2}{z_2-z_3}+\dfrac{b^2}{z_3-z_1}+\dfrac{c^2}{z_1-z_2}=0$?   This is a complex number property given in my book but the derivation is not given. How do I get this result? I refer to the chapter complex numbers of the book 39 years chapterwise topicwise solved papers by Arihant.


argument about fallacy of diff(M) being a gauge group for general relativity

I want to outline a solid argument (or bulletpoints) to show how weak is the idea of diff(M) being the gauge group of general relativity.  basically i have these points that in my view are very solid but i want to understand if there are misconceptions on my part that i'm simply not getting and if its so, i ask for help to make the case more solid, or understanding why it doesn't apply (to gravity):    (thanks to Raymond Streater for making that point completely clear) gauge invariance in electrodynamics is an observation that physical observables are unchanged after a gauge transformation without changing coordinate frame ( we are ask to believe that in gravity someone did the same? that is, someone made the observation that physical observables are unchanged after a diffeomorphism-gauge-transformation, only to later argue that because of this, that there are no physical observables to begin with, that doesn't make a lot of sense, to not say that its just plain stupid circular argument ) . The invariance is of course broken when the theory is quantized and $\hbar$ makes an appearance, because it assumes a preferred scale for certain energies. The key point here is: classical gravity is not special regarding having diff(M) as a symmetry group from bulletpoints 2 and 3, if i cannot infer that Diff(M) is a gauge-invariance of electrodynamics, the same should apply to gravity   For this question, i would say that a valid answer would either disprove any of the arguments as fallacies themselves (hence showing a solid argument why gravity is special and diff(M) is without a doubt its gauge group), or improve the argument for making it bullet-proof (sorry for the pun)


How to *quickly* get a list of files that have bad sectors/blocks/clusters/whatever?

My wife's Windows 7 (64-bit) box has suddenly developed a SMART "disk is bad" status.  I'm attempting to copy everything off (no admonishments about lacking a backup regimen, please, I know already  :(  ) by creating a System Image across the network to a different machine, but it gets to a certain point and starts taking forever.  Doing a chkdsk reveals that certain files cause this by having many bad blocks (like dozens of thousands in a row, if the event log is any indication) and causing the system to do its standard try-to-recover-and-relocate-upon-access thing.  But this is taking so long, I'm afraid the disk will fail completely before I can get the damned thing copied.  However, several of the files so far have been ones that she has copies of elsewhere, so I am able to just delete them prior to retrying the backup to speed things up considerably.  So:  is there some tool or procedure that will try reading each file, and upon hitting a bad block, just tell me about it and skip to the next file?  So I can see which ones I can just dump and which I need to let it try to recover?


When to upgrade/install Ubuntu 14.04 LTS

I am using Ubuntu 13.10, and looking forward for the launch of Ubuntu 14.04 LTS. Please suggest me how should I upgrade to 14.04 LTS?


How to make an Angle-mark in tikz figure?

Question: I want to add angle marks to all angles in the figure with specified angle value.  \documentclass[12pt]{article} \usepackage{pgf,tikz,pgfplots} \usetikzlibrary{arrows} \pagestyle{empty} \usepackage{tkz-euclide} \usetkzobj{all} \begin{document} \begin{tikzpicture} \draw [<->,line width=0.8pt] (-3,4)-- (3,4); \draw [<->,line width=0.8pt] (-3,0)-- (3,0); \draw [line width=0.5pt] (-1.52,4)-- (1.52,0); \draw [line width=0.5pt] (1.5,4)-- (-1.52,0); \draw[color=black] (-1.55,4.30) node {$P$}; \draw[color=black] (1.45,-0.3) node {$B$}; \draw[color=black] (1.45,4.30) node {$S$}; \draw[color=black] (-0.5,2.00) node {$O$}; \draw[color=black] (-1.55,-0.3) node {$S$}; \end{tikzpicture} \end{document}


Baffled with $\lim\limits_{x\to 0}{e^x-e^{\sin x} \over x-\sin x}$

Calculate $$\lim\limits_{x\to 0}{e^x-e^{\sin x} \over x-\sin x}$$   Personal work:  $$\lim\limits_{x\to 0}{e^x-e^{\sin x} \over x-\sin x}=^{0 \over 0}\lim\limits_{x\to 0}{e^x-e^{\sin x}\cdot\cos x \over 1-\cos x}=^{0 \over 0}\lim\limits_{x\to 0}{{e^x-(e^{\sin x}\cdot\cos x-\sin x}\cdot e^{\sin x}\over \sin x})=\cdots$$  This gets to nowhere. Also, I substituted $t=e^{\sin x}$ but I could not replace the $e^x$.


How to memorize the families that are $\sin$, $\cos$, and $\tan$ of $\pi$ over something?

Is there any way to easily memorize these? Such as $\sin \frac{\pi}{6} = 1/2$. Any help needed!!!


I just reviewed a proposed edit on a SO question. At first it seemed that the edit was just just "how to" to "how-to". So I rejected the edit. However, my mistake turned out to be that there also was a change to a hyperlink in that edit which was relevant and should be approved. Is there any way to undo my rejection and approve the edit instead?