How to transpose multiple excel columns into rows and maintain structure

I have the following data structure:  Country    # Sales 01.2019    # Sales 02.2019    # Sales 03.2019 France     42                 84                  21 Germany    10                 64                  12 Spain      29                 66                  43   And need to transpose it to this structure:  Country    Month     # Sales France     01.2019   42      France     02.2019   84         France     03.2019   21      Germany    01.2019   10   Germany    02.2019   64 Germany    03.2019   12      Spain      01.2019   29  Spain      02.2019   66 Spain      03.2019   43        Is there an easy way to transpose such structures instead of copying everything manually to the desired structure?


Should nouns borrowed from Japanese be pluralized?

As someone who has watched a lot of subtitled Japanese animation, it seems odd to hear a word such as ninja (used in the plural) in the dialogue and see it transliterated as ninjas.  It somehow seems better to me to treat ninja just like antelope, bison, buffalo, caribou, deer, elk, fish, grouse, quail, reindeer, sheep, swine, etc., which are both singular and plural.


Delete all data for a kind in Google App Engine

I would like to wipe out all data for a specific kind in Google App Engine. What is the best way to do this? I wrote a delete script (hack), but since there is so much data is timeout's out after a few hundred records.


Sorry if it has been asked before I am sure. Anyways, if I hold a ball in the air, I do no work but I do spend energy ("chemical", heat... whatever happens in my muscle) and get tired. Where does the energy or whatever to cause me to get tired come from? For example how is an electrical charge capable to  pull forever and never get "tired"?


Prove that the set of integer coefficients polynomials is countable

How to prove that the set of integer coefficient polynomials is countable?


get NullPointerException when calling constructor

I have class that extends AsyncTask :       public class DailyCourse extends AsyncTask<Integer, Void , Object> {            public DailyCourse (){            }     }   I have Override necessary  functions and have my own functions too .  in main activity that implements my custom interface I try to call constructor :      public class Luncher extends AppCompatActivity implements DailyCourseAsyncResponse {               dailyCourse = new DailyCourse() ;     }   note that I do this after onCreate and problem is I get this error  :         java.lang.NullPointerException: Attempt to invoke virtual method       'java.lang.String android.content.res.Resources.getString(int)' on a        null object reference   what is the problem ? NOTE : it's not duplicate with  , I know what is null exception , the problem "was" I did not know why I get that in my case (solved)


If $f: \mathbb{N} \to \mathbb{N} $ is injective and $\lim a_n= a$, then $\lim a_{f(n)}= a$.

Let $\{a_n\}$ be a convergent sequence with the limit $a$ and an injective function $f : \mathbb{N} \to \mathbb{N} $. For $n \in \mathbb{N}$, define $b_n = a_{f(n)}$. Prove that the sequence $\{b_n\}$ converges to $a$.  Any help for this exercise? Thank you for all your answers.


Use another profile other than the oldest when joining new community or site

All the new communities that I join are using my oldest profile (Tex/LateX.SE) but I would rather they link to my profile at Math.SE.   Is there a simple way to accomplish that? I navigated the site but could not find a way to do so.  This is not the same as  as this one here does not ask about the Network Profile, but rather creating new "ordinary" accounts across Stack Exchange.


Please I'm new to ubuntu 14.04 and i can't connect to wifi

Please, i'm new to ubuntu 14.04 and i can't connect to wifi available. I'm using hp pro book 450-G2. But i can use an ethernet cable to connect to the internet. there's actually no option for me to see available WIFI connections.  09:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter [10ec:b723]     Subsystem: Hewlett-Packard Company Device [103c:2231]_


Perturbation theory and approximation - help!

I am having a bit of difficulties with expanding perturbation series. I need to find a first and second order perturbative approximation to the root of $1+(x^2+\epsilon)^{1/2}=e^x$.  I first tried the following: $$1+(x^2+\epsilon)^{1/2}=e^x$$ Set $\epsilon = 0$ $$1+(x^2)^{1/2}=e^x$$ $$1+x=e^x$$ $$x=0$$  But the derivative of $1+x-e^x$ evaluated at $x=0$ is $1-e^0=0$, so it is singular, and we can't use Taylor expansion.  So, I tried,  $$1+(x^2+\epsilon)^{1/2}=e^x$$ $$(x^2+\epsilon)^{1/2}=e^x-1$$ $$x^2+\epsilon=(e^x-1)^2$$ $$x^2=(e^x-1)^2-\epsilon$$ Let $y=e^x-1$ $$e^x=y+1$$ So, $x=ln(y+1)$  Plugging it back to the above equation, $$(ln(y+1))^2=y^2-\epsilon$$  Then I think I need to use the method of dominant balance and then go back to the very first equation written in terms of $x$ and $\epsilon$, but I am not quite sure how or if this is correct. Can someone please help? Thanks!


Combining three int arrays into one, Java

I'm trying to write a merge method that takes three arrays and moves them into one. I'm quite new to java and the website where I'm submitting this code isn't very helpful with pointing out my error  static int[] mergeArrays(int[] a1, int[] a2, int[] a3) {  int[] answer = new int[a1.length + a2.length + a3.length]; int i,j,k; for (i = 0; i < a1.length; i++)     answer[i] = a1[i];  for (j = 0; j < a2.length; j++)     answer[i++] = a2[j];  for (k = 0; k < a3.length; k++)     answer[i++] = a3[k];  return answer; }


change in variable in main not updating in thread

I have a program that starts a thread. In the constructor I pass a volatile boolean, but when the variable is changed in the main thread, this change isn't reflected in the thread.  I declare the following in the main class.  private static volatile boolean sendbuff1; private static volatile boolean sendbuff2; private static volatile boolean closeSession;   And start the thread like this.  try{     Thread uploader = new Thread(new appendObj(buffer1loc, buffer2loc, sendbuff1, sendbuff2, closeSession));     uploader.start();     Thread.sleep(5000);     } catch (Exception e) {         e.printStackTrace();     }   Later in the main function, the sendbuff1 is set from false to true, but the sendbuff1 in the thread doesn't change. I was printing it out and it stayed false.  In the appendObj thread,  while(!closeSession) {          if (sendbuff1) {             //append             System.out.println("sendbuff 1 changed");              try {             PrintWriter tobuff1 = new PrintWriter(new File(buffer1loc));             try1.appendFile(buffer1loc);             tobuff1.write("");             tobuff1.close();             sendbuff1 = false;             } catch (Exception e) {                 System.out.println("error caught print writing send buff 2");                 e.printStackTrace();             }         }          if (sendbuff2) {             System.out.println("sendbuff 2 changed");             try {             PrintWriter tobuff2 = new PrintWriter(new File(buffer2loc));             try1.appendFile(buffer2loc);             tobuff2.write("");             tobuff2.close();             sendbuff2 = false;             } catch (Exception e) {                 System.out.println("error caught print writing send buff 2");                 e.printStackTrace();             }         }        }   No idea what I'm doing wrong


Print the output of a text without '/n' delimiter


For positive integers $m,n$ if $\sqrt 7  - \frac{m}{n} > 0$ then prove that $\sqrt 7  - \frac{m}{n} > \frac{1}{{mn}}$.


Limit background data on WiFi (Windows 8)

I often use tethering to connect my Win8 laptop to the internet through my smartphone, but I'm worried of the amount of background data transferred for software updates. Is it possible to limit the background data, even if Windows reports the connection as WiFi?


I'm a math student myself, but as is natural I encounter some physics along the way too. My question concerns the heat/diffusion model. As the reader will recall this is that the heat function $u(x,t):\Omega\times\Bbb [0,+\infty)\to\Bbb R$ solves the PDE $$u_t-D\Delta u = 0$$ subject to initial and boundary conditions. I will explain the reason for my concern in 1D to make the notation easier. An example of a system would be: $$\begin{cases}u_t-u_{xx} = 0, & (x,t)\in (0,L)\times(0,+\infty) \\ u(0,t) =u(L,t) = d, & t> 0 \\ u(x,0) = g(x), &x\in(0,L)\end{cases}$$  Now of course many other systems can be modeled; using variable boundary conditions, allowing sources/sinks to exist inside the domain, etc. The problem is that none of these modifications do anything to change this fact: if the sources/sinks, initial and boundary conditions are square integrable (this is very weak, a humongous range of horribly pathological creatures are square integrable), then $$u\in\mathcal C^\infty([0,L]\times(0,+\infty))$$  In other words, if I flick a light then the heat in the entire room (no matter how big) is instantaneously affected; it has to smooth out to meet the new condition at once.  No doubt this is preposterous, but I haven't been able to find (online) any modifications to the model that account for transition states. Can anyone share their knowledge here?


User name autocomplete (with @) not working in mobile version

If I    open any post on any Stack Exchange site in mobile version (Chrome 63 on Android) then click "add a comment" then type @ then type first letter of user name which already commented to this post   Then no username autocomplete happens.   Here is gif where I try to autocomplete @Mureinik in :        In desktop Chrome autocomplete works as expected (that is after typing @ and first letter of username, popup with username appears):        Sorry if this question is duplicate.  I don't know exactly why this is not a bug (@iDebug says so), so I put both  and  labels.


Have a seat, guys   I think "have a seat" is a fixed phrase that does not change whether you address someone or a group of people.  Is that correct?  If you have more to add to the post, please do so as I would love to know more.


I am trying to enable Java (not JavaScript) in my Firefox v. 33 so that I can use applets within the browser.  Currently, I just get a dark gray box across the whole screen when I try to load an applet, without any error message or prompt to install plugin.  As per , I tried going into the Firefox plugin page to activate it, however, it wasn't there listed.  I do have Java 7 installed and it is in the path:  >java -version java version "1.7.0_71" Java(TM) SE Runtime Environment (build 1.7.0_71-b14) Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)   What do I need to do to get Firefox to see my Java installation and recognize it as a plugin so that I can enable it and view applets inside the browser?


I have Bash script below, trying to capture last digits of 'pingnet' but can not get a match. I verified in regex101 and my regex is correct:  pingnet="pingcount,site=DC,cur=200 total-up=988" regex='(\d+)$' if [[ $pingnet =~ $regex ]] then     echo "YES"     echo "${BASH_REMATCH[1]}" else     echo "NOT"     echo "${BASH_REMATCH[1]}" fi   The result of running script is NOT.


python list comprehension vs. *operation of list

Now I'm refactoring some code and I found something weird.  I thought the following 2 expressions were exactly same:  list1 = [[0.00] * 5 for _ in range(5)] list2 = [[0.00] * 5] * 5   I can see they make same results by running:  print(list1 == list2)   or  import numpy as np print(np.array(list1).shape == np.array(list2).shape)   But in the project I'm revising, list2 doesn't work. When I use it, it raises 'Index out of range'.  Please tell me if 'list1 == list2' as I said, or if I'm wrong about that.  Thanks in advance.  P.S. I can use numpy.zeros() or some other things, but I'm really curious.


Being a value semantic language, C++ passes all parameters by value. So when I pass pointer to an object, the object is passed by reference, but the pointer itself is passed by value (although I believe the object is not  passed at all, only the pointer is, and we access the object inside the function by reference. I think this idea  also conform to value semantics, since if I thinks like this, value semantics becomes more meaningful, Nothing is passed except value).  So thinking this way makes sense for pointer, as a pointer to something is itself an object, which has both lvalue and rvalue. While passing a pointer as a parameter, a copy of the rvalue is sent, like any other object (ex. passing an integer).  But what about reference? Theoretically, reference is not any individual object, id does not have any identity, simply an alias to the object it refers to. Common implementation of reference may be on top on pointer, but what about uncommon implementation? Even if implemented in terms of pointer, is it passed by value?


The most sophisticated way for creating comma-separated Strings from a Collection/Array/List?

During my work with databases I noticed that I write query strings and in this strings I have to put several restrictions in the where-clause from a list/array/collection. Should look like this:  select * from customer  where customer.id in (34, 26, ..., 2);   You can simplify this by reducing this to the question that you have collection of strings and want to create a comma-separated list of this strings in just one string.  My approach I have used so far is something like that:  String result = ""; boolean first = true; for(String string : collectionOfStrings) {     if(first) {         result+=string;         first=false;     } else {         result+=","+string;     } }   But this is as you can see very ugly. You cannot see what happens there on the first look, especially when the constructed strings (like every SQL query) is getting complicated.  What is your (more) elegant way?


How come gas molecules don't settle down?

If the earth's gravity exerts a net downward gravitational force on all air molecules, how come the molecules don't eventually lose their momentum and all settle down? How is the atmosphere is still miles thick after billions of years?


I'm completely new to Ubuntu/Linux and to Python. I'm reading a book called: Python for Data Analysis. On the first example they read a .txt file (which I have in my folder Documents/Books/ch02) using the next lines inside IPYTHON:  In [15]: path = 'ch02/usagov_bitly_data2012-03-16-1331923249.txt' In [16]: open(path).readline()   so...how could I specify my directory where I have that specific file on the first line? I have tried   path = 'Documents/Books/ch02/usagov_bitly_data2012-03-16-1331923249.txt'   but it doesn't work...any idea?


Why is my files "last modified" timestamp only showing the year with the 'ls' command?

I'm building a java service that modifies the "Last Modified" field of some of the files it works with.    The service keeps copies of files in a folder, it periodically checks a database for changes, if it finds a file whose "last modified" timestamp in the database is newer than the one on the file system then it deletes the file from the file system, downloads a fresh copy and sets the "last modified" field on the file to match the one from the database.    This all works as expected. In the code I query an SQL timestamp from the database, get the time as a Long and pass that into the file.setLastModified() method of the file object. This works as expected, and when running comparisons both timestamps match as expected. However, when I access the server via ssh and run ls -l in the folder containing the files the last modified timestamp just says "2019"; BUT, if I run the ls --full-time command then the full timestamp is displayed and is correct. Why is this? Is there some other flag I need to set when setting the timestamp on the file? This is only an annoyance right now, I'm just curious as to why it looks this way. Here's a screenshot of what it looks like:


Possible Duplicate:             How to use x coordinate of a point and y coordinate of other point? I need similar to  \coordinate (A) at (2,1); \coordinate (B) at (3,0); \coordinate (C) at (4,3); \coordinate (D) at (5,-1);  \draw (xA,yB) -- (xC,yD);


Bibliography 3 authors last name, first name, last name, first name and first name last name

Thank you in advance. So apparently I spent a lot of time editing Citavi styles to find out I cannot use them in LATEX :D  What I need is a bibliography with several authors being in this order: last name, first name, last name, first name and first name last name -> instead of "and" an "und" would be great (german)  what I get in Bibliography:       what I need it to look like (created with Citavi):


Prove by induction: $\sin{x}+\sin{3x}+\dots+\sin{(2n-1)x}=\frac{\sin^2{nx}}{\sin{x}}$

Prove by induction:   $$\sin{x}+\sin{3x}+\dots+\sin{(2n-1)x}=\frac{\sin^2{nx}}{\sin{x}}$$   I tried the problem using the normal rule of induction(the first principle), but I failed.I failed to make the form $\sin^2{(m+1)x}$. Somebody help me.


How to remove Open CTI VF softphone page from salesforce left side

Open CTI Softphone VF page is showing in salesforce left side. How to remove this ? Screenshot attached


How do we know that the nucleus isn't a quark-gluon plasma?

The standard picture of the nucleus of atom is that is several distinct nucleons, which themselves are composed of quarks. However, it seems to me like a much simpler picture is that the nucleus is directly made out of quarks, without having nucleons as substructures. That is, that the nucleus is the ground state of a quark-gluon plasma. I can't find any evidence that this is false. For instance, if the distances between the nucleons was significantly larger than the size of the nucleons, there would be a difference in size between hydrogen and other atoms which can't be explained by this new framework, but according to wikipedia the diameter of all of the nuclei is the same order of magnitude. What is the evidence that large nuclei have nucleons as substructures?


I've just now installed Python 3.7 and I'd like to understand why I get the following output from bash:  g-luca@hp-notebook:~$ python3.7 -V Python 3.7.0 g-luca@hp-notebook:~$ python3 -V Python 3.5.2 g-luca@hp-notebook:~$ python -V Python 2.7.12


How can I install an absolute minimal install of X11 on Ubuntu Server 12.04?

I'm hesitant about installing X11 on a server machine because I want it to contain the absolute minimal amount of software needed.  However, some GUIs (for FFMPEG encoding, etc) are useful so I was thinking about installing X11.  What is the absolutely minimum number of packages I would need to install in order to run some simple (?) GUIs like the frontends for FFMPEG, etc.  I don't think I need a window manager or anything else, etc.


Is there a way to use a standard Matrix Keypad to set a synchronous counter IC without having to use a micro controller?


Running find & grep, and include path in the output

On at least CentOS systems and previous versions of Fedora, I could run the following command and get a list of files with the corresponding grep matches:  $ find -name "version.php" -type f | xargs grep "^\$wp_version" site.com/wp-includes/version.php:$wp_version = '4.7.3';  Apparently though on at least Fedora 22 and newer, running that same command no longer includes the path and filenames:  find -name "version.php" -type f | xargs grep "^\$wp_version" $wp_version = '4.7.3';  I know I can include -l to show just the path, but is there a way to include the path without dropping the match? I don't see anything in the man file.


Finding $\min \frac{\left[\int_{0}^{1}f(x)\mathrm dx\right]^2}{\int_{0}^{1}(f(x))^3\mathrm dx}$ given that $f(0)=0$ and $0\lt f'(x)\le 1$

Let $f$ be a function having continuous derivative on $[0,1]$ such that $0 < f' \le 1$ and $f(0)=0$. Defined $$I := \frac{\left(\int_0^1 f(x)dx\right)^2}{\int_0^1 f^3(x)dx}$$ we must have that: $$(A) \quad I \ge \frac{2}{3}\qquad (B) \quad I \ge \frac{1}{2}\qquad (C) \quad I \ge \frac{1}{3}\qquad (D) \quad I \ge 1$$  I have been stuck on this for quite some time, here is what I have tried. Since $0\lt f'(x)\le 1$, then taking the definite integral on both sides of the inequality we get that $0\lt f(1)\le 1$. Let $f(1)=k\in (0,1]$. then the curve $y=f(x)$ passes through the points $(0,0)$ and $(1,k)$ the join of which lies on the line $y=kx$. I am unable to proceed from this step. Another alternate approach I have tried to use was the Cauchy-Schwarz inequality for integrals but to no avail. Perhaps the AM-GM inequality might be useful, since the function is non-negative in $[0,1]$ but I am not exactly sure how. Any hints or ideas are appreciated. Thanks.


I am on Ubuntu 20.04 with Gnome 3.36.3 and my top menu bar became too narrow, resulting in distorted icons. It looks like this  How to restore top bar to original height?


Is matrix equality $AB-BA=I$ impossible?

Is the following equation impossible?     $AB-BA=I_n$, where $A,B\in M_n(\mathbb C)$    If it does, then how do I prove it? Thanks in advance!


I have updated to Ubuntu 17.10. Now I want to create a bootable USB stick to use on other machines or to install 17.10 on a new machine. Start up Disk Creator recognizes my USB Drive, but is looking for a CD/DVD containing a source file.  I assume an ISO file.  I cannot change the source location and even if could, I have no idea where to find the 17.10 ISO on my hard drive.  I found sample code to create the USB using the terminal but I can not get that to work either, I keep getting a message saying the add command can not be found!  Must I be signed into the root directory to use the necessary  commands and if so how do I do that?


When to use -Ites / Ians / Ish / An / Ni / Ese / Elsh / Er

Possible Duplicate:          I have some confusion regarding usage of suffixes such as -ites / -ians / -ish.  For example:   I have seen some people using the words Kerelite and Mumbaites for people from Kerela (a state) and Mumbai (a city).  Other examples:   Indians (where India is a country) Spanish (Where Spain is again a country) American Pakistani Chinese Welsh New Yorker   So on what basis do we decide what suffixes should be used, or is it very dependent on mood or environment?


Editing the Number at the end of Page URLs / Editing Page Slugs

I am playing around with wordpress and a few plugins.  Say I have something called "Shopping Cart" and I delete the page.  Then I recreate it, I can't have the old URL back.  I get domain.com/shopping-cart-2 and I want the old one back.  How can I do this?


Distinguish synonyms from single-tag questions on the /tags page

When browsing the list of tags on a site, a number is shown next to each tag indicating how many questions have that tag, e.g. “ × 42”. If there is a single question with that tag, no indication is shown. If the tag is a synonym of another tag, or if the tag has no questions and is scheduled for deletion the next time the cleanup job runs, no indication is shown.  Please visually distinguish tags with a single question from tag names that are synonyms and tags that are scheduled for deletion. This is very useful information when reviewing tags.


I deleted 40 some photos from my SD card in my camera.  I thought I saved them on my desktop.  Using 12.04 LTS.  Is there a way to restore the photos??  My wife is pissed.  Nothing has been over written on the card.  Thanks


Zeno's arrow paradox:     Zeno states that for motion to occur, an object must change the position which it occupies. He gives an example of an arrow in flight. He states that in any one (duration-less) instant of time, the arrow is neither moving to where it is, nor to where it is not. It cannot move to where it is not, because no time elapses for it to move there; it cannot move to where it is, because it is already there. In other words, at every instant of time there is no motion occurring. If everything is motionless at every instant, and time is entirely composed of instants, then motion is impossible.   The paradox says that "in any one (duration-less) instant of time, the arrow is neither moving to where it is, nor to where it is not". But it must be correct if passed time's length is 0 because, for example, if we take a bullet with constant velocity and take an instant time (dt~0) in its movement, obviously we will see that the ratio between the displacement with passed time will be equal to the velocity of the bullet. But if the passed time's length is 0, we no longer say we divide time into small part because it doesn't matter how much times you sum these instant times, you never reach the first time length that you divided.  But if my explanation was correct, it wouldn't be a paradox, so what is the problem with my explanation?


Show that if $\langle u,v\rangle_1=0\implies\langle u,v\rangle_2=0$ then $\langle{\cdot},{\cdot}\rangle_1=c\langle{\cdot},{\cdot}\rangle_2$

Let a vector space with two inner product defined. If for every $u,v\in V$ s.t. $\langle u,v\rangle_1=0$ then $\langle u,v\rangle_2=0$ show that $\langle{\cdot},{\cdot}\rangle_1=c\langle{\cdot},{\cdot}\rangle_2$ for some $c>0$.   This is the exercise 11 on page 191 of Linear algebra done right, third edition of Axler. I had proven the statement for finite dimensional $V$ using and orthonormal basis for $(V,\langle{\cdot},{\cdot}\rangle_1)$.  However the existence of an orthonormal basis is not ensured for infinite dimensional vector spaces. My question: I must assume that the dimension of $V$ is finite for this exercise, or there is a way to prove the statement?  EDIT: I found the same exercise , but the answer is not understandable to me, when it says that if it is true for any subspace $V'$ of $V$ it remains true for $V$, why?


How do I get my toddler to stop waking at 4am?

My 12 month old has been waking at 4-4:30 am for quite some time. He usually doesn't require anything to go back to sleep but just wakes crying and grizzly. Sometimes I go in and give him his dummy other times he still has his dummy so I just lay him back down and he goes back to sleep until about 7am. I cannot work out why he is waking at this time and how to get him to just sleep through.


NullPointerExcpetion When Using a for loop on Class-leveled Array Java

I just started Java programming. I am trying to create a class method that will use an array in the same class in a for loop. But a NullPointerException is thrown when I try to run the program. Could anyone please point out what is wrong here? Thank you!  public class Judge {     double [] judgeScoreArray;     double judgeMean = getMean();     //Method to calculate mean of an array     public double getMean(){         double sum = 0;         //***NullPointerException Thrown at the next line***         for (int i = 0; i <judgeScoreArray.length; i++){          sum = sum + judgeScoreArray[i];         }         return sum/((judgeScoreArray.length));     }      public Judge(){     judgeScoreArray = new double [7];     for (int i = 0; i < 7; i++){         judgeScoreArray[i] = 0;     } }


Is there a reason tags can't be added in the mobile app?

I was posting a question in Christianity.SE, and the correct tag - Joshua didn't exist. I have privileges to add tags, but it wouldn't take the new one.   Am I doing something wrong, was this intentional, or is this a bug?


Tried installing Ubuntu 20.04 from USB flash drive but after selecting the USB boot option, GNU grub terminal appears. What to do?


I have the following XML structure for a card game. I want to load the card titels and descriptions into two arrays that I can use to randomize the cards.      <Cards>       <CardTitles>         <Title>Some Title</Title>                    .                    .                    .                    .                    .      </CardTitles>      <CardDesc>        <Desc>Some description</Desc>      </CardDesc>     </Cards>   But no matter what I do or what code I write I'm unable to get the actual text from the proper tag. The closest I got was following this example :  I know I'm not supposed to ask for complete solutions but I'm just stumped. Any help in getting this matter cleared up to me will be great.


I've read several other answers on here, but I still don't understand. Why do both fission and fusion release energy? I know the masses drop, but then why do the masses drop on both? Fusion is taking two small nuclei, adding them together, and creating a bigger atom, why should this bigger atom have less energy? Is it because more of the mass gets stored in the strong force? Then what determines how much energy is released?  The same goes for fission. A larger molecules being broke apart will approach a more stable max-energy-per-interaction form. This means that more energy should go into the bonds (I think) which would mean less mass, but still why does energy get released, and not just simply into the bonds?


Capturing effects / Controlling for variables

I understand the idea behind regressions and know how to interpret them, however, when I hear the term "capturing the effect of.." or "controlling for.." so far I've just accepted it without questioning how the regression actually manages to do so, just by including a variable in the equation.  Can somebody explain (maybe even with math) why exactly this capturing of effects or controlling for variables works just by including a variable in my regression?


AMD Radeon HD 4250 - Fan noise and driver choice

I have the Asus Eee-pc 1015T - this is an AMD based netbook and it comes with a great AMD Radeon HD 4250 vga.   With Windows 7 it can play 1080p HD video smoothly and during normal usage the average noise level it's quite low.  with Ubuntu 11.04 beta 1 the standard installed vga driver is the Gallium 3D 0.4 which is good for a normal netbook experience but it causes 3 main problems:   Average fan noise level is really annoying; High battery consumption; It can't reproduce even 720p HD video.   Issue 3 isn't critical for me.  Ubuntu restricted driver doesn't show any proprietary driver available for my configuration but in synaptic well-known fglrx driver are present.  So how could I sort out issues 1 and 2? Does fglrx work better with 4250 HD? Is there a program to control my eee-pc fan-speed?


Is it good practice to add 1 to 0 scores in log-normalization?

I am apply log-normalization to my non-normal data. However, when I apply log-normalization, the 0 values is converted into inf, which makes it impossible to apply some basic statistics on the data (e.g., correlation). Therefore, I add the score of 1 to all data values. However, I am afraid this is not a very valid approach. I wonder what is a common approach to deal with such situations.


Best unit test framework for Angularjs app

I need to start unit testing for my angularjs app, I am a bit confused with, which is best framework out of Protractor or Jasmine.  Majorly I need to test controller functions, services, dependency injection, state data.  Please suggest which one to go for.  You can suggest any other better framework also apart from these two.


I wish to add a footnote somewhere in a table. I am using booktabs package. I wrote the footnote using \footnote. It is showing symbol 1 inside a small box but it is not showing the footnote anywhere.  \documentclass[12pt,a4paper]{article} \usepackage{amsmath,amsthm,amsfonts,latexsym,amscd,amssymb,mathrsfs,hyperref,textcomp,booktabs} We have already discussed about completeness.    \begin{table}[ht] \begin{minipage}{\linewidth} \def\arraystretch{1.4}\tabcolsep=2pt\small\centering \begin{tabular}{@{} l l l l l @{}}\toprule Order&Group $G$&Gap Id&Presentation&$\Gamma_d(G)$\footnote{We shall exclude the cases $d=1,|G|$, since $\Gamma_1(G)=K_1=\Gamma_{|G|}(G)$}\\ \midrule 1&$C_1$&1(1)&$\langle a;a^1\rangle$&$\Gamma_1(C_1)=K_1$ \\ 2&$C_2$&2(1)&$\langle a;a^2\rangle$&$\Gamma_1(C_2)=\Gamma_2(C_2)=K_1$ \\  3&$C_3$&3(1)&$\langle a;a^3\rangle$&$\Gamma_1(C_3)=\Gamma_3(C_3)=K_1$ \\  4&$C_4$&4(1)&$\langle a;a^4\rangle$&$\Gamma_1(C_4)=\Gamma_2(C_4)=\Gamma_4(C_4)=K_1$\\  &$C_2\times C_2$&2(2)&$\langle a,b;a^2,b^2,aba^{-1}b^{-1}\rangle$&$\Gamma_1(G)=\Gamma_4(G)=K_1,\Gamma_2(G)=K_3$\\  5&$C_5$&5(1)&$\langle a;a^5\rangle$&$\Gamma_1(C_5)=\Gamma_5(C_5)=K_1$\\ \bottomrule \end{tabular} \end{minipage} \caption{Abelian groups} \end{table} This table shows $\Gamma_d(G)$ for some abelian groups.  \end{document}   This is showing the line This table shows $\Gamma_d(G)$ for some abelian groups. before the table and table is showing on next page. Also i want the symbol * or \dagger at the place of a and I do not want the line before footnote.


Can a factor of a number be divided by a number that will not evenly divide the original factored number?

Might be a silly question. But here it is: Say we have all the factors of a number, 84 for example. Those numbers would be 1,2,3,4,6,7,12,14,21,28,42,84. Is it possible for there to be a number that would evenly divide one of the factors of 84, without being able to evenly divide 84 itself? For the number 84 it doesn't seem to be possible, but does there exist a number where that is possible?


How do I know which Ubuntu package to install?

I am using an application on Linux, Ubuntu that originally was on Windows. I am missing opengl header files that I had access to with the Windows 10 SDK.  I want to install opengl on my Ubuntu machine. I did a search for it under Ubuntu packages .  How do I know which package to install


Here is a problem which i have not been able to do for quite sometime.   For $n \geq 2$, show that $n \nmid 2^{n}-1$.   I have thought of proving this in two ways: One by using induction which didn't actually work. Next by Fermat's little theorem we have $2^{p-1} \equiv 1 \ (\text{mod} \ p)$, which actually says that for $p \mid 2^{p}-2$. But i couldn't proceed more than this. Any ideas by which i can actually solve the problem?


Reversing Byte[] - why doesn't this work?

I have an array (?) of Bytes and I want to reverse the order of them. I'm getting a NullExceptionPointer error with the following code but I don't get why it doesn't work?  Byte[] m is the thing I want to reverse.      Byte[] temp = new Byte[m.length];     int j = 0;      for (int i = m.length - 1; i < 0; i--) {         temp[j] = m[i];         j++;      }


Inconsistent user experience when browsing by tag in the Android app

Browsing a StackExchange site's tags in the Android app (Version 1.0.85) appears to be inconsistent.  Clicking on a tag in a question and navigating back will bring the user back to the screen they were on before - which is the expected behavior. Clicking on a tag from the tags view in the action bar, opening a question, and navigating back does not. It brings the user back to the list of tags rather than the results with that tag.   (Gfycat)


Can the weight of a bird be measured, considering air friction?

Assume that a bird of mass 1.5 kg is held in a box at height 500m and this setup is placed on a weighing machine. Now, the bird starts to hover in the box  pushing the air downwards, and is at a height of around 450 m. If we measure the weight of the box, will we measure the bird's weight also. Consider air friction.  I believe that due to friction of air, the downward movement of the air may not touch the bottom of the box (the bird is hovering at around 450 m height) and is lost. Hence, we cannot measure the weight of bird.    Is this true?


I've been through associated answers but cannot quite seem to find something which works!  I'm having trouble getting TimeManager to recognise a simple data field (this is in QGIS2 - but I've had this error in earlier versions). I have these fields formatted in what appears to be one of the acceptable formats:    ... here is a screenshot of the field properties:    The format appears to be recognised in QGIS as I've worked out days difference between two dates (the "Time on Market" field shown in the image).  However ... I always end up with:   The Twitter.shp file works fine as a test, so I don't think this is an issue with the install / phyton conflict.  Any thoughts welcome!


Android Studio : Adding Elements to a List Situation

I am trying to add elements to a list here is my parent class public class TodoParent {     public String ParentTitle;     public Integer ParentId;     public List<ToDoModel> mChildList;     public long EpochTime;      public TodoParent(String mTitle,List<ToDoModel> childModels) {          this.ParentTitle = mTitle;         this.mChildList = childModels;     }      public TodoParent() {      }      public String getParentTitle() {         return ParentTitle;     }     public Integer getParentId() {         return ParentId;     }     public List<ToDoModel> getmChildList() {         return mChildList;     }     public void setParentTitle(String title) {         ParentTitle = title;     }     public void setParentId(Integer mId) {         ParentId = mId;     }     public void setmChildList(List<ToDoModel> list) {         mChildList = list;     } }  Here is the situation where i need to add element @Override public void applyTexts(String header, String footer, String listType, String timeOfDay, int priotity,long mEpochtime) {      //Toast.makeText(this,(String) timeOfDay, Toast.LENGTH_SHORT).show();      ToDoModel toDoModel = new ToDoModel();     TodoParent todoParent = new TodoParent();      toDoModel.header = header;     toDoModel.footer = footer;     toDoModel.task = listType;     toDoModel.tod = timeOfDay;     toDoModel.priorityVal = priotity;     toDoModel.epochTime = mEpochtime;     toDoModel.id = toDoModelList.size() + 1;     todoParent.ParentTitle = footer;     todoParent.mChildList.add(toDoModel);     todoParent.EpochTime = mEpochtime;       Toast.makeText(getActivity(), "New List Item Added", Toast.LENGTH_SHORT).show();      //mAdapter.add(toDoModelList.size(), toDoModel);     parentAdapter.add(todoParentList.size(),todoParent);     //input.add("To Do New1"); }  todoParent.mChildList.add(toDoModel) is not working. How can I add   toDoModel   to   mChildList ? I am new to java and this is something i am working on as a training. So any help is appreciated.Thankyou


How to make Excel retain the contents of its clipboard

I'm making a list in Excel where many rows have the same data in a number of columns, enough so that I'd like to hit Ctrl-C once on this set of common data, and then just hit Ctrl-V every time I make a new row that has those attributes.    The problem is, after I paste one time using Ctrl-V, and then go to type in the header for the next row, Excel, removes that information from the clipboard, so if I want to copy it again, I have to select it and hit Ctrl-C again.    I can work around this by pasting the data into Notepad as a tabbed list, then copy from Notepad using Ctrl-C.  This way, the clipboard is managed by Windows, not hijacked by Excel.    Is there an option or some other way to copy/paste so that Excel won't empty the clipboard contents even if I type between pastes?


First of all i have ubuntu 14.04 lts. I have deactivated the login need of a password since the 1st day.minutes ago i upgraded the ati graphics from the official software update. I restarted the pc and for the first time,system aaks for a password to login.i m typing the password but the screen flashes and asks the password again.no invalid password message appeared.any suggestions? I used the ctrl alt F1 and F2 it s working,logged in but i dnt know what to do at the terminal


Is Conjugate of Subgroup Could be Proper of its Subgroup?

I am curious whether it's possible for the group $G$ such that there is a subgroup $H ≤ G$ and an element $g ∈ G$ such that $gHg^{−1}$ $\subsetneq$ $H$ to exist.  It means there exist some duplication under conjugacy operation on $H$, but is it possible?


How can I get the GRUB menu to appear only when I press shift on a dual boot system to give me the option of booting Windows?

I have a dual boot system. I mainly work with Linux and rarely with Windows, so I want to set Linux to boot by default without bringing up the GRUB menu, but to bring up the menu if I press SHIFT so I can boot into Windows.  I already hide the grub menu and boot by default with Linux and only shows the GRUB menu when I press SHIFT, but this only works if I disable the Look for other OS option, and as a result of that Windows doesn't appear as an option in the menu, so I can't boot into it!  How can I get the configuration I want?


Can't connect to my wireless network though GNOME

I managed to install Archlinux today. But I have no access to my wifi for some reason.  I get internet access in my terminal with wifi-menu but gnome tells me that it can not connect to my wireless network. The password is 100% correct.   I followed  and installed network-manager-applet, and I also changed the rc.conf file:  rc.d start networkmanager   I also installed pacman -S networkmanager  I restarted networkmanager, enabled / disabled it, started it again. I also turned the wireless network in GNOME on and off. But nothing helped.  Any ideas what went wrong?


"work with" X or "work at" X, which is better?

Context: We are planning to run promotional campaign for hiring engineering talent, and thinking which one these promotional sentences are more correct/connecting or simply better?  Sentence 1  20 Reasons to work at X.  Sentence 2  20 Reasons to work with X.  Sentence 3  20 Reasons to work for X.  Which of the above sentence is more promising and correct for our campaign or website?


How much should I tip in restaurants in Germany?

There is already a question about , but how much should I tip?


How can I cross-check a String with an array of String objects? Java

This is my first post, so I hope this is an alright way to ask a question.  I'm working on a project where I'm trying to check if a name that I input via command line is in an array of names. The array is made up of names from a text file and it looks like that runs properly but when I try to verify if the name that I typed in is in the list already, it always comes back false. Really not sure what could be causing this, I tried changing the array to an arrayList and as a HashSet but still am having the same problem, not really sure where to go from here.  Here's my driver:  public static void main(String[] args){     String fileName = "Company_list.txt";     Scanner kybd = new Scanner(System.in);     Scanner inputStream = null;     Checker ch = new Checker();     try {         inputStream = new Scanner(new File(fileName));     } catch(FileNotFoundException e) {         System.out.println("Error opening the file " + fileName);         System.exit(0);     }     while (inputStream.hasNextLine()) {         ch.tokens.add(inputStream.nextLine());     }     ch.tokenArray = ch.tokens.toArray(new String[0]);     //System.out.println(Arrays.asList(ch.tokenArray));     System.out.println("Enter a company name:");     ch.check(kybd.next());     inputStream.close(); }   And here is my class with the array. I commented out a do while loop I used originally and left in a for loop that isn't working correctly either:  import java.util.*; public class Checker { List<String> tokens = new ArrayList<String>(); String[] tokenArray; Driver dr = new Driver(); public void check(String a1){   int N = tokenArray.length;    for(int i = 0; i < N; i++){        if(tokenArray[i] == a1){             System.out.println("Already a client, try another.");         }else              System.out.println("Potential new client.");             System.out.println(a1);             System.exit(0);    }          //do{         //if(Arrays.asList(tokenArray).contains(a1)){             //System.out.println("Already a client, try another.");         //}else              //System.out.println("Potential new client.");             //System.exit(0);      //}while(Arrays.asList(tokenArray).contains(a1) == true); }   }   Thanks in advance for taking a look.


We have a very old site with lots and lots of content. We are considering changing our URL because the current URL was a vanity URL and does not represent the company in its current form. How


I would like to know how to convert a stream to a byte.  I find this code, but in my case it does not work:  var memoryStream = new MemoryStream(); paramFile.CopyTo(memoryStream); byte[] myBynary = memoryStream.ToArray(); myBinary = memoryStream.ToArray();   But in my case, in the line paramFile.CopyTo(memoryStream) it happens nothing, no exception, the application still works, but the code not continue with the next line.  Thanks.


Can a malware occupy memory without getting noticed by or displayed in "Windows Task Manager"? How can we detect such malware, if any? Can you give examples of such malware?


sendmail limiting x amount of emails per domain per certain amount of time rule

is there a way to limit amount of email per X amount of time to certain domains? for example I have large list of emails and I have thousands of emails for yahoo.com, but if I start sending them all at once yahoo will temporarily defer me thinking that I'm doing something that I'm not suppose to do, yet if I send out only 100 emails an hour they are ok with this volume, so how can I restrict sendmail to send only 100 emails an hour to yahoo.com?


If $f$ satisfies $|f(z)|\le |f(z^2)|$ then $f$ is constant

If $f:\{|z|<1\}\to \mathbb C$ be analytic such that $|f(z)|\le |f(z^2)|$ for all $z$ in $|z|<1$ then prove that $f$ is constant.  We have , $|f(z)|\le |f(z^2)|\le|f(z^4)|\le|f(z^8)|\le\cdots \le |f(z^n)|\to |f(0)|$ , as $n\to \infty$. As , $|z|<1$ so , $z^n\to 0$. From here I can show that $f$ is bounded. But $f$ is NOT entire so that we can say that $f$ is constant. From here how I can proceed ?


roots of $f(z)=z^4+8z^3+3z^2+8z+3=0$ in the right half plane

This is a question in Ahlfors in the section on the argument principle: How many roots of the equation $f(z)=z^4+8z^3+3z^2+8z+3=0$ lie in the right half plane?  He gives a hint that we should "sketch the image of the imaginary axis and apply the argument principle to a large half disk."  Since $f$ is an entire function, I think I understand that the argument principle tells us that for any closed curve $\gamma$ in $\mathbb{C}$, the winding number of $f(\gamma)$ around 0 is equal to the number of zeros of $f$ contained inside $\gamma$.  How would you go about actually applying the hint though? I am having trouble figuring out what the image of a large half disk under $f$ would look like.


Redirecting program output to file and shell

I have a python program that makes some prints that I try to execute from the command line. I would like to redirect the output to a file and also see on the shell the prints. I tried cmd > file, cmd >> file and cmd &> file. But with these three commands, the prints are neither in the shell nor in the file. Why?


How can I use the Apple Bluetooth Keyboard on Windows 7?

I just bought the Apple Aluminium Bluetooth Keyboard, and obviously it doesn't work on my Windows machine.  I'm guessing the drivers aren't installed. It says it has successfully paired with the device, but nothing seems to work.  Has anyone successfully paired the keyboard with a Windows machine?


I am trying to make holes out from a pattern. It will be like a star and holes will be a word logo.   I am thinking to make the text as SVG then make a manual pattern in Blender and use Boolean Modifier.  _  Problems:   -It will be flat and the word will not follow the mesh (the second IMG).  -It will take a lot of time to make a pattern in blender.  I liked the one as image texter if it can be done in some how?!  And thanks!


Evaluating an infinite series $\sum_{n=1}^{\infty} \frac{1}{n^{2}2^{n}}$

I have been trying to find the sum of the series $$\sum_{n=1}^{\infty} \frac{1}{n^{2}2^{n}}$$ but I couldn't find any methods (such as a fourier series) that seem to get me anywhere.   WolframAlpha gave $ \dfrac{\pi^2}{12}-\dfrac{ln^2(2)}{2},$ but how would one get to this?


I'm currently working on some code, and still being a beginner in java, i'm having a little trouble figuring out this problem, and would like to get some advice on what I did wrong, and can do to fix it.  The code that will be below throws me a null pointer exception on the line where the entry in the array is added in the loop  public class World {   int mapWidth; int mapHeight;  Tile testTile; Tile[][] map;   public World(int width, int height) {     testTile = new Tile(0,0, 100);     mapWidth = width;     mapHeight = height; }  public World() {     mapWidth = 10;     mapHeight = 10;      testTile = new Tile(0,0, 100); }  public void generate() {     for(int y = 0; y <= mapHeight; y++)     {         System.out.println("Y: " + y);         for (int x = 0; x <= mapWidth; x++)         {             System.out.println("X: " + x);             map[x][y] = new Tile(x, y, 100);         }     } }  public void render(SpriteBatch batch) {  }  }   Any advice is greatly appreciated, thanks for any help that you can give!


How can I update multiple tables at once in Postgres?

I have several tables with the exact same structure and I need to update a value in all tables.  In order to do so I tried to build the following script:  DO $do$ DECLARE   i pg_tables%rowtype; BEGIN FOR i IN SELECT * FROM pg_catalog.pg_tables where schemaname like 'public' and tablename like '%_knex_migrations' LOOP     UPDATE i.tablename SET name = replace(name, '.js', '.ts'); END LOOP; END $do$;   I could see that i.tablename has the correct value (I inserted in a tmp table to check), but the update fails.  name: error length: 223 severity: ERROR code: 42P01 internalPosition: 8 internalQuery: UPDATE i."tablename" SET name = replace(name, '.js', '.ts') where: PL/pgSQL function inline_code_block line 7 at SQL statement file: parse_relation.c line: 965 routine: parserOpenTable   Just plugin i.tablename on the UPDATE statement doesn't work.  Is there a way to make it work? Or an easier way to update all tables at once?


Does blinding a creature with the Gaze ability stop others from being affected by it?

Does casting blindness on a Medusa (or other gaze using creature) stop their gaze attack?


Combining two lists in python2.7.2 as index and value

I am stuck at some problem.   I have two lists in python as   >>> List1 = ['a','b','c','d']  >>> List2 = ['0','1','2','3']   I want to merge these both the lists into a dictionary  as  >>> Dictionary = { 'a':'0', 'b':'1', 'c':'2', 'd':'3'}


If $X$ and $Y$ are independent. How about $X^2$ and $Y$? And how about $f(X)$ and $g(Y)$? I always have confusion about it. I feel ... yeah of course $f(X)$ and $g(Y)$ are independent, because $X$ and $Y$ are. But .. is it right?? Then how can I prove it?


Give a "Not a duplicate button" on a question

EDIT: This is NOT a duplicate of , as this is a feature request. Expected wording:  Your post has been associated with a similar question. If that question doesn’t resolve your question, edit this question.  Also, the Delete question button should be removed as it would lead to a question ban.  For  question, it has a wrong duplicate. The feedback recommends asking a new one. Why do we have to re-create the same question? Can we have a button as Not a Duplicate? This alert box seems to be appropriate.


iPhone 7 Plus stuck in recovery mode and can't restore/update even in DFU after downgrading from iOS 11

Here is what has happened. I'm hoping there is still hope in me fixing this since the weekend is here and the earliest I can get a repair appointment is Monday.  I've been on the iOS 11 Developer Beta for about two weeks now. This morning I decided that I was going to downgrade back to iOS 10. Followed all of the instructions and in a few minutes, my device was being "updated" back to iOS 10.3.2. This is where everything went wrong.  I leave the phone and come back about 20 minutes later to see iTunes says that my phone is in recovery mode and needs to be updated or restored. I click on "Update" and it fails and says it needs to be restored. So this time I click on restore, it goes through the whole process and iTunes says that my phone has been restored and it is currently restarting. However, as soon as it restarts I get the same damn prompt again telling me I need to restore or update.  I do this about 4-5 times with no luck. So next I decide it's time to put the device into DFU mode. Even when my phone is in DFU and I try to restore it to the most recent iOS 10 update I am getting the same problem. iPhone restarts and says I need to connect to iTunes and it's in recovery mode.  Any suggestions? I'm going crazy trying to figure this out.


I am extremely new to LaTeX so this question will definitely make me look like a newbie. I'm attempting to put in two images into a report. The first one was placed exactly where I wanted it and it looks good. The second image does not fit onto the page and so it vectors it onto the next (which is completely fine). The issue is that it automatically places the image into the middle of the next page, which I don't want. I would like it to be at the top of the page. Here is my code: \begin{figure}[hbt!] \centering \includegraphics[width=\textwidth]{Images/CvsT.png} \caption{C vs. T} \label{fig:inputs} \end{figure}  Any help is greatly appreciated.


I had the idea, to make a custom card game based off an Anime i like. I was wondering if it would be legal to have such printed out (using a custom card/board game service) for personal use. I would only play it with friends and not make any money off of it.


I browned the outside of a beef roast then left it in crockpot which was accidentally unplugged. Didn't realize it until 48 hours later. is it safe to cook?


Ties to Home country USA (Domestic partnership, Civil Union)

2 quick questions i wanted to ask on here , I was denied a US Visa this March, before i applied for another country (still waiting Visa decision) Now I have been looking out for possible reasons why the visa was refused, I have not come to a reasonable conclusion , so i wanted to ask on here what could be the possible reason.  Now, here is what. He (V.O) asked me if I was married and If I have traveled out of the country before , i replied both in the negative and he handed me a blue paper. I started to think my marital status was the worry, I have been engulfed with work, hence, I do not see leaving the country as a Must in this case.  Should I have to fill the DS-160 again (If i have to re-apply again at this point), could I enter that I am in a Civil Union / domestic partnership with someone (Of which I am presently, although it did escape my mind as I am apparently not married to her yet.) And secondly, does anyone think the travel issue is a barrier as well?


I would like to edit the way a basic article is structured. For example, I want to place the title under the image followed by content and at last the date. Already looked at Structure -> Content Types -> Article -> Manage fields, couldnt find anything about reordering those things.


Is there a way to solve the equation $m(m-1) \equiv 0 \pmod n$ for $1 < m < n$? In this case, $n$ is known and I am solving for $m$. I am especially interested in either the highest or lowest value of $m$ given the listed bound, though finding any value works as well.  Edit: $n$ is not prime, nor is it a prime power ($p^n$ for prime $p$ and natural number $n$). I am also not interested in the trivial solutions ($m = 0$ and $m = 1$).


How to use wired and wireless headphones simultaneously?

I have both wired and wireless headphones. I thought of sharing the both to see a movie. To do that, can we get the audio output of both at same time. I can able to switch the output but not access at same time.


Newbie How to install on Compaq EVO XP laptop using usb

I am downloading Ubuntu to use with my Compaq XP laptop, which currently has XP (3) installed.  Should I partition, or just format the hard drive? I do not intend to return this machine to XP. What can I download with XP to create a bootable usb drive, that can be read by the machine once the computer is formatted?  TY GB


I'm having some trouble with setting up a SMTP server on a windows server 2003 machine, while trying to send emails using PHP through the internet, but to domain email addresses.  Common info:   Machine has Windows Server 2003 Server Machine on a domain (mydomain.com) Machine is not a domain controller Machine accesses a domain controller through the internet (WAN with a corporate VPN link by the internet provider setup on the machine's gateway - adsl modem/router) Email addresses use the same suffix (mydomain.com) Do not have access to domain controller configuration   First Scenario   TCP/IP DNS: 1st 192.168.200.xxx   2nd 8.8.8.8 Direct access to domain controller is functional PHP mail using localhost to a user@mydomain.com won't work, because the remote mail server rejects emails from internal traffic (apparently!?!)   Second Scenario   TCP/IP DNS: 1st  8.8.8.8   2nd 192.168.200.xxx   (switched) Direct access to domain controller is not functional, only local accounts work PHP mail using localhost to a user@mydomain.com does work, because the remote mail server is accessed through its internet/external address.   So, what I needed is to have both (1) access to the domain controller and (2) PHP mail using localhost to a user@mydomain.com account working.  Any pointers? Thanks in advance


What is the difference between `Fields` and `Properties` in C#?

Edit, as per these comments:  Do you mean "Property" vs "Field"? public String S1; vs public String S2 { get; set; } –  Exactly dana, i mean the same. –  Asad: you really need to try to use some other term to describe what you mean so that we can better understand your question. C# does not have global variables. The fields you can define in C# are not global - they are members of the class type. –   Hi fellas, Need your expert views over the difference between Field and Property. As in my project, I have used certain global variables which later on i changed to 'Properties' . My manager is asking what is the benefit of using Properties of variables instead of Fields. Although I have replied him that Property provides a kind of secure/safe/indirect access to Field instead of modifying them directly if they are declared public or protected. But Please provide me with some more convincing arguments. Thanks and Regards @Asad: You should get your terminology right: Fields are not Global Variables, C# does not have global variables (as a few commenters mentioned: you can simulate global variables, but you should not do that).


How do I prove that there are no repeating integers and all numbers from 0 to b-1 are present?

While messing with modulus in python,  lomod = [num % 27 for num in [i * 8 for i in range(27)]]   print('Unsorted:', lomod)   lomod.sort()   print('Sorted:', lomod)  I found something interesting. For $a,b\in\mathbb{Z}$, and $a,b$ are relatively prime, and $0 \le x < b$, $A =ax\mod b$, then $A = \{0,1...,b-1\}$ with no repeating integers. For example in the case of $a = 8, b=27$, for values of $x$ such that $0\le x < 27$ $A =8x\mod27$ ,  then $A =$ [0, 8, 16, 24, 5, 13, 21, 2, 10, 18, 26, 7, 15, 23, 4, 12, 20, 1, 9, 17, 25, 6, 14, 22, 3, 11, 19] sorted, $A =$ [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26] Which contains all values from $0$ to $26$ once. However, I don't know how to prove this generally. Is there anyone that can help me?


Does Captain America purposely avoid picking up Thor's Hammer in Avengers 2?

There've been several questions about the Excalibur-like scene in Avengers: Age of Ultron when no Avenger is able to lift the hammer except for Captain America who seems to be able to move it slightly.  My question is simple: is there any confirmation by any official source (authors, director, any actor, anyone on the team) about whether he is NOT able to lift it, or whether he realises he would be able to lift it but chooses not to as he is not supposed to?


Trying to find the sum of the following infinite series:  $$ \displaystyle\sum_{n=1}^{\infty}\frac{{(-1)}^{n-1}}{(2n-1)3^{n-1}}$$  Any ideas on how to find this sum?


Show that the system of all matrices of the special form is isomorphic to the field of complex number.

Show that the system of all matrices of the special form  $$     \begin{pmatrix}     \alpha & \beta \\     -\beta & \alpha \\     \end{pmatrix} $$  combined by matrix addition and matrix multiplication, is isomorphic to the field of complex number.  How do i start showing this ?  And first of all how can matrix have a one to one connection with complex numbers


Integrate $\int_{-\infty}^\infty e^{\frac{-x^2}{a^2}} dx$

How to integrate $\int_{-\infty}^\infty e^{\large \frac{-x^2}{a^2}} dx$ using substitution?   I know that $\int_0^\infty e^{-x^2}dx = \frac12\sqrt{\pi}$.


Would a simulacrum created by a simulacrum of a caster that can cast simulacrum remain behind if the original simulacrum is destroyed?

A simulacrum of a caster can use magic, or this line would not make sense:     [...] nor can it regain expended Spell Slots.   But a caster can only have one simulacrum:     If you cast this spell again, any currently active duplicates you created with this spell are instantly destroyed.   The simulacrum is not the caster, it is a different creature. Since it has spell slots and the statistics of the caster (Including the spellcasting trait), it could cast simulacrum too. And the duplicate created by the simulacrum's casting is not created by the caster.  So, here is the scenario:   Suppose Anne, a caster [class redacted] can cast simulacrum. Anne creates a simulacrum, and names her Betty. Anne commands Betty to cast simulacrum, using a strand of Anne's hair. Christine is created. Anne then (maybe after a long rest) casts simulacrum (of herself) again, creating Dorothy. Betty is Instantly Destroyed.   Since ongoing spell effects do not depend on the caster to continue on, This may leave Anne with Christine and Dorothy, both able to cast simulacrum.  Is there any flaw in the reasoning above? Is it allowed by RAW?


Let $K$ be a field and $K[x]$ be the ring of polynomials over $K$ in a single variable $x$ for a polynomial $f$ belong to $K[x]$. Let $(f)$ denote the ideal in $K[x]$ generated by $f$. show that $(f)$ is a maximal ideal in  $K[x]$ if and  only iff $f$ is an irreducible polynomial over $K$.


I was looking at various extensions of the classical Coupon Collector problem, but couldn't find any answers or hints for the following modification:  Assume there are $n$ distinct coupons and you get them in batches of a different (random) size. That is, assume that every time you get a black box with coupons in it, whose number can be from $0$ to $n$ and coupons within a black box are distinct. The probability of having a specific coupon in a box is $p$ (that is, it's the same for all). What is the expected number of black-boxes one needs to open to collect all coupons?


I think I have a trojan.  svchost.exe is consuming %25 cpu all the time, and my Microsoft Security Essentials reports a different virus every half an hour or so. From what I understand the trojan is downloading different viruses. MSE removes those but can't disable the real culprit.  I have tried a couple bootable scanners such as Kaspersky Rescue Disk, they seem to find the same ones found by MSE but with no further success, when I restart my pc svchost still uses %25 cpu and I get new virus alerts time to time.  My question is, I have a windows backup of my C drive (120gb single partition), if I delete the partition and format it and then restore from backup, is it a sure way to get rid of trojan, assuming it didn't attach itself to something in D drive (which is a seperate hdd) and I don't run it? I read some trojans reside in GUID tables and such, can this action get rid of them?


What's the best way to find the inverse of datetime.isocalendar()?

The Python  method returns a tuple (ISO_year, ISO_week_number, ISO_weekday) for the given datetime object.  Is there a corresponding inverse function?  If not, is there an easy way to compute a date given a year, week number and day of the week?


In-universe reason for why most aliens speak English in the MCU?

What is the in-universe reason for why so many extra terrestrials speak English in the MCU? Is there something like Star Trek's universal translator involved?


iTunes splitting albums containing songs from multiple different artists

As seen here, my iTunes is splitting my albums up. More specifically, albums that contain songs that have different artists names in the tags. Those "Avengers - Age of Ultron" albums are supposed to be one album.  Rocket Music player, as well as every other multimedia application I have used besides iTunes, all recognize and sort my albums correctly.  This is extremely frustrating and I was wondering if there was a way I could solve this without resorting to incorrectly tagging my music with the same artist as other songs in the album.


Newish to R Very new to GIS  I've grabbed some vector spatial census data using the cancensus package. I now have a spatial data frame with variables and geometry I plot it and decide to focus on a part of the whole province  My thinking here is to create a rectangle with the coordinates that I am interested in using extent(xmin, xmax, ymin, ymax)  Assign it the same CRS as the spatial data frame and then use st_intersection. Is this the right approach?  extent(box) <- c(-81, -74, 41.68, 45) st_set_crs(box, "+proj=longlat +datum=WGS84 +no_defs") # Fails ont_crop <- st_intersection(census_data, box)   I'm not sure how to show you a reproducible example since census data is large. Please let me know what I am doing wrong.


Call a javascript tag in a javascript code

I'm having problems with my codes mostly because there are so many and so I was wondering if you can somehow use a <script src =" url "> " tag inside JavaScript code. For example: <script>   var num = 20;   var nom2 = 50;   if (num2 == num) {     console.log("Fail");   else {     /* Code script here */   } </script>


Prevent questions with bounty from being auto-deleted

Originating from this question on Meta Stack Overflow (), we wondered why a specific question was deleted, which met all requirements for deletion, but had a bounty on it.  As Mad Scientist sums up in that post, a question does quality for deletion, even if it has a bounty on it.  Currently, the requirements for deletion are:     If the question is more than 30 days old, and ...      has −1 or lower score has no answers is not locked ...or...      it was closed and migrated to a different site ... it will be   automatically deleted.   This seems undesired, even a bug to me.  Therefore, I suggest to add:     Doesn't have an active bounty on it.   This prevents questions with bounties on it from being auto-deleted.  (As a side note: Questions that have a bounty can't be closed without intervention of a moderator, so why would the Community user delete an open question in this period?)


how to compress the image size in visualforce page

I can upload 1 MB images in visual force, it will be store in Document Object. Other wise if i Upload more then 1 MB images in Visual force page It will be Display Error Message


How to access WP database inside ipn.php?

This is my ipn.php that is sending a mail to the user when PayPal transaction is completed.  The problem is that I also need to change the state of the order in the WP database and not just send the email.  I know the unique $code variable (integer) of that transaction (I have saved it when the form was sent and the user redirected to finish the process on PayPal page) and PayPal is sending it back to ipn.php file inside custom field $_POST['custom'].  So, the code in ipn.php (accessed by PayPal as notify_url when the transaction is successful) looks like this:  <?php  $req = 'cmd=_notify-validate';  foreach ($_POST as $key => $value) {     $value = urlencode(stripslashes($value));     $req .= "&$key=$value"; }  // post back to PayPal system to validate $header .= "POST /cgi-bin/webscr HTTP/1.0\r\n"; $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; $header .= "Content-Length: " . strlen($req) . "\r\n\r\n"; $fp = fsockopen ('ssl://www.sandbox.paypal.com', 443, $errno, $errstr, 30);  // CUSTOM VARIABLE $code = $_POST['custom'];  if (!$fp) {     // ERROR } else {      $email = "emailtouser@email.com" ;     $subject = "Test" ;     $message = "Your code is {$code}" ;     mail($email, $subject, $message, "From:" . $email);      fclose ($fp); }   So, the email is send OK with the code value as it supposed to be.  However, I also need to get the user email from the WP database based on the $code that is unique for every user (post type) and then change the state of the order in the db.  I know how to do that, but the problem is that WP is not loaded and I cannot access the database to perform these acts.  How to do that?  I mean, how to access WP db here ?:  } else {          // BEFORE SENDING I NEED TO ACCESS WP DB HERE...           // AND THEN SEND THE EMAIL         $email = "emailtouser@email.com" ;         $subject = "Test" ;         $message = "Your code is {$code}" ;         mail($email, $subject, $message, "From:" . $email);          fclose ($fp);     }


dd stops working after writing for couple of seconds

I want to install ubuntu server, so I decided to use dd. After executing following command dd writes some bytes there(I think it wrote every byte) and stops. sudo dd bs=32M if=ubuntu-20.04.1-live-server-amd64.iso of=/dev/sdb conv=fdatasync,fsync status=progress this is the output I get: 958398464 bytes (958 MB, 914 MiB) copied, 4 s, 236 MB/s  I can't do anything here. When I unplug my usb stick it prints out following lines: dd: fdatasync failed for '/dev/sdb': Input/output error 28+1 records in 28+1 records out 958398464 bytes (958 MB, 914 MiB) copied, 84.5967 s, 11.3 MB/s  I tried to google, but couldn't find something useful. Additional infos:  lsblk outputs following (when I executed dd if=/dev/zero of=/dev/sdb):  sda      8:0    0 931.5G  0 disk  └─sda1   8:1    0 931.5G  0 part / sdb      8:16   1  14.6G  0 disk  sr0     11:0    1  1024M  0 rom     lsblk outputs following (after I unplug my USB stick):  sda      8:0    0 931.5G  0 disk  └─sda1   8:1    0 931.5G  0 part / sdb      8:16   1  14.6G  0 disk  ├─sdb1   8:17   1   914M  0 part  └─sdb2   8:18   1   3.9M  0 part  sr0     11:0    1  1024M  0 rom     dmesg output  ... Buffer I/O error on dev sdb, logical block 46807, lost async page write ... [sdb] No Caching mode page found [sdb] Assuming drive cache: write through ...   iostat output  Linux 5.10.2-2-MANJARO (hrant-80q5)     01/14/21    _x86_64_    (4 CPU)  avg-cpu:  %user   %nice %system %iowait  %steal   %idle            2.46    0.03    2.02   37.11    0.00   58.38  Device             tps    kB_read/s    kB_wrtn/s    kB_dscd/s    kB_read    kB_wrtn    kB_dscd sda               6.58       218.68       164.16         0.00    1726719    1296228          0 sdb               0.11         0.24         5.93         0.00       1916      46808          0 sr0               0.00         0.00         0.00         0.00          2          0          0   iostat /dev/sdb 1 output  .....  avg-cpu:  %user   %nice %system %iowait  %steal   %idle            1.01    0.00    0.50   73.55    0.00   24.94  Device             tps    kB_read/s    kB_wrtn/s    kB_dscd/s    kB_read    kB_wrtn    kB_dscd sdb               0.00         0.00         0.00         0.00          0          0          0   avg-cpu:  %user   %nice %system %iowait  %steal   %idle            4.20    0.00    2.22   70.12    0.00   23.46  Device             tps    kB_read/s    kB_wrtn/s    kB_dscd/s    kB_read    kB_wrtn    kB_dscd sdb               0.00         0.00         0.00         0.00          0          0          0   avg-cpu:  %user   %nice %system %iowait  %steal   %idle           12.14    0.00    4.85   62.38    0.00   20.63  Device             tps    kB_read/s    kB_wrtn/s    kB_dscd/s    kB_read    kB_wrtn    kB_dscd sdb               0.00         0.00         0.00         0.00          0          0          0   avg-cpu:  %user   %nice %system %iowait  %steal   %idle            7.59    0.00    3.54   66.58    0.00   22.28  Device             tps    kB_read/s    kB_wrtn/s    kB_dscd/s    kB_read    kB_wrtn    kB_dscd sdb               0.00         0.00         0.00         0.00          0          0          0   avg-cpu:  %user   %nice %system %iowait  %steal   %idle            3.51    0.00    2.01   70.93    0.00   23.56  Device             tps    kB_read/s    kB_wrtn/s    kB_dscd/s    kB_read    kB_wrtn    kB_dscd sdb               0.00         0.00         0.00         0.00          0          0          0   .....


How to add dot after \section number in headline and ToC, without adding dot to \ref command

I need \section (\subsection, \subsubsection ...) titles printed with dot after numbering.  Example:   My Title   For this purpose i use:  \renewcommand\thesection{\normalfont \arabic{section}.}  \renewcommand\thesubsection{\thesection\arabic{subsection}.}  \renewcommand\thesubsubsection{\thesubsection\arabic{subsubsection}.}  \renewcommand\theparagraph{\thesubsubsection\arabic{paragraph}.}   But this method also adds extra dot to \ref{} commands. So code "Look at section \ref{section:label}." produces string "Look at section 3.."  Is there any way to add dot only to headlines and ToC, but not to references?


In Ender's Game, why was Peter considered too violent to commit genocide?

So I just watched Enders Game, great flick, but I'm a little confused. They talk in the movie about how Ender had two older siblings that had the same genius as Ender, but flunked out of the program because one was too passive, and the other (Peter) was way too aggressive. Ender was the balance between the two. At the end of the movie, Ender wins the war by completely annihilating the bugs home planet. How could Peter have been considered too violent to commit a total genocide of a species?  In the end Ender was left a broken little child because he was fooled into killing an entire species, and probably never would have done what he did if he'd known that the "simulation" were the real thing. Peter on the other hand, could have probably done the same job, knowingly eradicated the entire homeworld of their enemy, and come out at the end unaffected.   If the end result was the brutal slaughter of an entire race, then why was Peter considered "too aggressive" for the job?


Adding hyperlink to field in pop up box of CartoDB?

In CartoDB, how can i add a hyperlink to a field in a pop up box?


let $a,b,c>0$. Show that   $$a^2+b^2+c^2+2abc+3\ge (1+a)(1+b)(1+c)$$   By the $$(1+a)(1+b)(1+c)=1+a+b+c+ab+bc+ac+abc$$ it is suffient to show  $$a^2+b^2+c^2+abc+2\ge a+b+c+ab+bc+ac$$ How?


Why does my document 'error' when using '%'

I am designing gamecards in LaTeX  Everything is going pretty ok so far but when i try to insert the %-sign for a question about percentages my file keeps giving errors.  I tried putting the percentage between dollarsigns because i know just % will make it a 'remark' and that the dollarsign makes it 'mathematical data'.   Whats the reason for the error?   P.s. the error says: file ended while scanning use of \kaart. ...    Codesample:   {\kaart{Bekijk statistiek kaart F:   Schat het percentage mensen dat als lievelingseten spaghetti opgaven, je mag er slechts $ 2% $ langs zitten. } { $ 11% $}}


unable to retrieve files from u1 fie system

just been reminded too recover my files from the u1 cloud service. when i follow all instructions given on the installation faqs i get this line   bash: ./u1_downloader: cannot execute binary files: Exec format error  can some one please help


How to prove that the derivative of Heaviside's unit step function is the Dirac delta?

Here is a problem from Griffith's book Introduction to E&M.     Let $\theta(x)$ be the step function   $$\theta = \begin{cases} 0, & x \le 0, \\ 1, & x \gt 0.  \end{cases} $$      The question is how to prove $\frac{d\theta}{dx} = \delta(x)$.   I think since the function is discontinuous at $x = 0$, there is no definition of $\frac{d\theta}{dx}$ at the point $x = 0$ at all. Thus, how could we show the equivalence of a equation if the left part of equation is not defined at the point $x = 0$?


do not run process builder from test class execution

we have one test class on execution process builder is getting fired. is there any way where I can avoid to run process builder while running test class.


During Photoelectric effect and other such phenomenon, when light is made to fall on metal surface, single photon is absorbed by the single electron present in metal atom. Why not 2, 3, 4, or more photons can be absorbed by single electron?


I like to play basketball      I like playing basketball   What's the difference between these two?


I feel like I have found an amazingly rude user on the SE network. I would like to file a complaint about that user but I don't know what that user needs to have done wrong or how to do it.  This user has not done anything wrong on the surface, but often blatantly disrespects comments against himself. How and should I attempt to get rid of that user?


When to treat 'Police' as a singular noun and a plural noun?

I have seen that in some scenarios word police is treated as a singular noun and in some other scenarios it is treated as a plural noun. I don't know the exact difference!  Can anybody provide few examples demonstrating the scenarios when the word police is treated as a singular and a plural noun?  Does it depends on the context only to treat it as plural or singular?  Consider these examples:      The police are blocking off the street where the accident occurred     A police officer is getting information from the neighbors.     The police department is at the corner of First and Main streets.     The New York police force has a special counter-terrorism squad     The police force is responsible for catching criminals    In the above examples, I can see the usage of 'Police' word as both singular and plural. I need to understand the exact concept when it will be as plural or singular?


I'm trying to prove that $\sqrt 3 = [1;2,1,2,1,\ldots]$  I have found the recursive relation $$\sqrt 3 +1= 2+\frac{2}{\sqrt 3 +1}$$  and it's quite close to a continued fraction, but the problem is that the numerators here are $2$'s and not $1$'s.


Wildcard doesn't expand in for loop with variable

I'm trying to loop through several files with this naming structure: apple_123.txt, orange_456.txt, banana_789.txt I'm trying to use a wildcard for the numbers, but the wildcard is not expanded and the output looks like this: apple_*.txt I've tried quoting around the wildcard but it didn't make a difference. My loop: fruit=(apple, orange, banana) for f in "${fruit[@]}" do         echo "mv ${f}_*.txt ${f}_*.out" done


I just noticed a weird thing in my reputation tab on StackOverflow.    That last question mentioned (but not linked, had to find it via search):   I must have amnesia as I have no memory of ever interacting with this post. I don't even know what xampp and pdftk are so I don't know why I would even be interested in such a question. 2 reputation points more or less is not a big deal, but the fact I got rep change from question I've never seen before is odd and I'm wondering what happened.


Can 16,000 volt with around 3.5 to 5 amps be enough to heat a wire to 1400F

If i push 16,000V through a nichrome 10 gage wire with only 3.5 to 5 amps csn that pressure be enough to heat the wire up to 1400F


// Using entrySet() to get the entry's of the map // m is previously created Map.  Set<Map.Entry<String,Integer>> s = m.entrySet(); for (Map.Entry<String, Integer> it: s) {      String str = it.getKey();  }   Map.Enty is just the interface.  An interface doesn't have the implementation of the method getKey();  why the code above works? Like how the compiler knows the behavior of getKey()?


Why {1,2} printed by a command in $() is not interpolated?

I am in a directory in which I have two text files:  $ touch test1.txt $ touch test2.txt   When I try to list the files (with Bash) using some pattern it works:  $ ls test?.txt test1.txt  test2.txt $ ls test{1,2}.txt test1.txt  test2.txt   However, when a pattern is produced by a command enclosed in $(), only one of patterns work:  $ ls $(echo 'test?.txt') test1.txt  test2.txt $ ls $(echo 'test{1,2}.txt') ls: cannot access test{1,2}.txt: No such file or directory   What's going on here? Why the pattern {1,2} does not work?


Is it true that for vectors $x$ and $y$ in $\mathbb R^n$ $|\Vert x\Vert -\Vert y\Vert| \ge \Vert x-y\Vert $?  Can I simply use the triangle inequality $\Vert x\Vert +\Vert y\Vert \ge \Vert x+y\Vert $ to prove it even though there is a minus sign between the norms of $x$ and $y$?


I have a hybrid data that contains 15 categorical data and 4 continuous data. I need to implement a prediction on the data. So as I don't have any labeled data, I need to implement the unsupervised algorithm.  Now Using PCA my dimensions reduced to 5 but still it has 3 categorical and 2 continuous data. Now to create a prediction algorithm, I can use KMeans for continuous data or KModes for categorical data, But I couldn't find any algorithm that works on both types of data.  Can anyone know any algorithm that works on both the data types for unsupervised prediction?


I'm often encountering very strongly held opinions among games about the Vertical Sync (VSync) option present in nearly all modern 3D games. The option is supposed to synchronize the output of the game to the monitor refresh rate and thereby prevent tearing of the images.  Some say it causes lag, others say one should enable it because it looks better and doesn't hurt anyway. I've also heard that it reduces the framerate in general, not just when the framerate would be limited by the monitor refresh rate.   So, what are the technical disadvantages of VSync? What valid reasons exist to disable it in a game?


If the quadratic equations $x^2-mx+n=0$ and $x^2+mx-n=0$ both have integral roots, prove that $6|n$.   I've proved that $3|n$, and that $2|n$ for odd $m$, but I can't seem to prove it for even $m$.   Please help.


I'm trying to find the word that best describes the feeling when you feel like you're experiencing the same thing someone else has actually experienced?


Question:  If $ a^{2} + b^{2} = c^{2}$ and $c$ is even, prove that $a$ and $b$ are both even.  I am not quite sure how to prove this. My guess is proof by contradiction. Assume the contrary, that is, $a^{2} + b^{2} = c^{2}$ for $c$ even and at least one of $a,b$ odd.


Running tar cmd in wrong format, how to recover

Trying to tar a file called report, but accidentally running wrong format  $ ls -l -rw-r--r--  1 root root      708 Aug 20 10:12 report $ tar czvf report report.tar.gz    then  $ ls -l -rw-r--r--  1 root root       45 Aug 20 10:13 report   how to recover the original file?


I Need to Shrink My Database - I just freed a lot of space

This question is asked in various forms here but the question boils down to:  I know shrinking a database is risky. In this case, I've removed so much data and I'll never use it again.   How can I shrink my database? What files do I shrink?  What should my considerations be while doing this?  Should I do anything after? What if it is a large database? Can I shrink it in smaller increments?


Can I connect a wireless Xbox 360 controller to PC with a play & charge cable?

I have a wireless Xbox 360 controller with its USB charger. Can I use it as a wired controller to play on my PC without buying the ?  And if so, where can I find the drivers for Windows 7 64-bit (if available)?


This menu from left doesnt work anymore, is always greyed out

I can't change segments or anything.    As soon when I create a UV sphere or cylinder the menu from left pops up but is already greyed out.


My regex negative does not match as expected

I don't want match if there is /*  So I have this regex : (?<![\/\*]).*   I don't understand why /* test  matches ?


Difference between 'The police arrested a man' & 'The police have arrested a man'?

The police arrested a man. The police have arrested a man.  I don't know the difference between these two sentences. Could someone please explain?


How to know which object is using a material.   I know that a material is used 4 time -> picture under:  I'm searching a solution with python and I'm blocked here :   bpy.data.materials['Y.000a'].users   But this function only return the number of users and not the name.  Of course the solutions, that I'm searching for, doesn't have to obligatory use python.


Is it possible to have class.property = x return something other than x?

Let's say I have a Ruby class:  class MyClass   def self.property     return "someVal"   end    def self.property=(newVal)     # do something to set "property"     success = true      return success # success is a boolean   end end   If I try and do MyClass.property=x, the return value of the whole statement is always x. It is a convention in a lot of C-based/inspired languages to return a boolean "success" value - is it possible to do this for a setter using the "equals syntax" in Ruby?  Furthermore - if this isn't possible, why not? Is there any conceivable downside to allowing an "equals setter" operation return a value?


Source:      Pro-Russian separatists, some of them armed, have seized about a dozen official buildings in eastern Ukraine. They say they are rising up against a Ukrainian government they say is illegitimate, but Kiev says they are proxies of the Russian government bent on destabilizing Ukraine.   Why is there no that connecting the two parts of the sentence: everything before against a Ukrainian government and after they say is illegitimate?  So, I would rather prefer to read it like this:     They say they are rising up against a Ukrainian government that they say is illegitimate...


I had questions if exist A $\neq \emptyset $ that |A|=|P(A)|  And my doubt is if $ |2^{\mathbb{R}}|=|\mathbb{R}|$?


JS How to change css class color from javascript?

I would like to change color from div class. I searched the net for some info, but it's not working for me.  I have css style class in which I have property background-color, and I want to change this property from JS file.  I want in class gmBox change background-color:, how I can do this, from JS file?    .gmBox {   vertical-align: middle;   padding: 10px;   margin: 5px;   background-color: yellow;   color: black;   font-size: 23px;   border-radius: 5px; }
GM12


I've been trying to create a 400m buffer in a polygon layer in QGIS 2.18 and it seems like I may be doing something wrong compared to how the tool used to work.    Does the tool still use the units of the CRS?    When I try to create a 400m buffer or even a 10m buffer I end up just getting a large buffer that definitely isn't either one of those distances.   I'm going to Vector->Geoprocessing Tools->Fixed Distance Buffer and setting things as follows in the screen shot.  GeoJSON is in EPSG2768.     Seems like the buffer tool wasn't using the defined CRS units for my layers.  Checked the output buffer layer and it was using WGS84 instead of EPSG2768.  CRS for the project and all the layers was set to EPSG2768.  Things didn't work until I changed the CRS for the buffer layer and then re-ran the buffer tool.  I set up a couple virtual machines to test things out with mixed results.  Fresh Xunbuntu VM with QGIS installed and the buffer tool worked right off the bat, but a fresh KDE Neon VM with QGIS had the same issue I initially posted about.  Things are working now though.


Multiple "Dolphin File Manager" icons in dock on Ubuntu 19.04

In Ubuntu 19.04 GNOME, when I click icon for the Dolphin file manager in the dock, it always makes a new icon:    How do I fix the problem?


Find the number of real roots of the following equation

Question: The  number of real roots of the equation $$2\cos\left( \frac{x^2+x}{6}\right)=2^x+2^{-x}$$ is (i) $0$ $\qquad$ (ii) $1$   $\qquad$(iii)  $2$    $\qquad$ (iv)  $\infty.$      I have tried in the following way:       $$2\cos\left( \frac{x^2+x}{6}\right)=2^x+2^{-x}\implies \cos\left( \frac{x^2+x}{6}\right)=\frac{2^x+2^{-x}}{2}.$$ What can I do after this?


What is the ".Trash-1000" folder and how to delete it?

Can someone tell me what the .Trash-1000 folder is and how can I remove/delete it?  It taking up 275 gigs of disk space.


What is the best way to find someone to help critique my work?

I'm a medical student who is looking to submit images to shutterstock and hopefully pay down a little bit of debt. I have my own website but I'm having a hard time finding anyone online to review my images ( I need to pick 10). Thanks for the advice.


How do I detect when someone shakes an iPhone?

I want to react when somebody shakes the iPhone. I don't particularly care how they shake it, just that it was waved vigorously about for a split second. Does anyone know how to detect this?


Can I move the contents of the boot partition to the root drive?

So the updater told me my /boot partition is out of space.  I came here from , which recommended (if you can't expand it directly) to just move the contents of the boot partition to the primary partition and installing grub on it.  This was for 10.10, and it sounds rather risky to me. So is that still safe to do on 14.04 LTS?  This is not the same as , whose hard drive is about to die. The answer does not mention moving contents of /boot.


Difference between scalars, vectors, matrices and tensors

What is the difference between a scalar, vector, matrix and tensor in simple terms? Are vector fields and tensors related?


Question:  In Quantum Mechanics, people use the word "pure state" for some states; however, what do they mean exactly ?  Thoughts: I mean, a state is a vector in our vector (Hilbert) space, so in that sense, any given vector can be written as a linear combination (superposition) of different vectors, so in that sense, no state is pure, i.e there is no a unique set of fundamental states that does not compose of anything.  I, first, thought that they might be talking about the eigenstates of some specific observable at hand, but, even in research papers, they mention a "pure" state without talking about any observable or anything else.Also, even if that was the case, an observable can have infinitely many different set of orthonormal basis when it has a degenerate eigenvalue, so that doesn't make sense also.


Select values of a column into one row - Sql Server


How to draw attention to an old unanswered question on meta?

I encountered exactly the same problem as described in this question on Meta: . That question was asked in 2010 and got almost no response.   How could I draw an attention to that problem? I think, asking the same question once again is not a proper way.


The series $$F(n,m) := 1^n + 2^n + \ldots + m^n = \sum_{k=1}^m k^n$$  Is known as the .  I've tried to find a formula for this similar series but I've failed so far.  $$\mathcal{F}(n,m) := m^n - (m-1)^n + (m-2)^n -\ldots\pm 1^n= \sum_{k=1}^m (-1)^{m-k}k^n$$    EDIT:  Thanks to André Nicolas' answer I arrived to the following formula:  $$\mathcal{F}(n,m) = (-1)^m\left(F(n,m) - 2^{n+1}F\left(n,\lfloor m/2\rfloor\right)\right)$$


What level are spells cast at if a warlock multiclasses as another caster?

The Pact Magic paragraph on page 164 of the Player's Handbook multiclassing section reads:      you can use the spell slots you gain from the Spellcasting class feature to cast warlock spells you know.   If I were to multiclass as a Warlock 5 / Rogue 3 Arcane Trickster and cast a Warlock spell using my Arcane Trickster's 1st level spell slot, would it be cast as a 3rd level spell?  From the Warlock Spell Slots section on page 107 of the Player's Handbook:      The table also shows what the level of these slots is: all of your spell slots are the same level.   The  appears to only address the issue of spell slot recovery, not casting.


How to find the sum of the infinite series?

So I just started learning series, and I am having trouble understanding them. I have a series below:  $$\sum_{n=0}^{\infty} \frac{1}{(2n+1)2^n}$$  Can someone explain to me how I should go about this, from start to finish? I couldn't find any online websites that explained how to find sums, so if you have that, it would be greatly appreciated!


With tikz is there any way of having a callout shape that points to more than one place?  I would like to use a callout shape to explain some parts of a graph. This callout shape would point to different elements in the graph, as the explanation is the same for a set of elements.  Here is a minimal working example:  \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{automata,shapes,arrows} \begin{document} \begin{tikzpicture}[node distance=2cm, auto]   \node[state,initial]   (s0)               {$s_0$};   \node[state]           (s1) [right of=s0] {$s_1$};   \node[state,accepting] (s2) [right of=s1] {$s_2$};   \path[->]     (s0) edge node {a} (s1)     (s1) edge node {c} (s2)          edge [loop above] node {b} ();   \node[fill=green!20, rectangle callout, callout absolute pointer={(s0.south)}]        [below of=s0] {          \parbox{2cm}{Each circle is a \emph{state} of the automaton}}; \end{tikzpicture} \end{document}   which produces the output    I want the callout pointing to all three nodes of the automaton.


What's the differences and advantages to using functions and variable functions?

I was reading about this on W3, but I want to know more information about the differences and advantages of declaring a regular function versus  declaring a function stored in a variable. Regular: function test(){    // code }  With Variable: var test = function() {   // code }


A topological space $X$ which can be $drawn$, whose fundamental group is $S_3$

Does there exist an example of a topological space $X$ which can be drawn, whose fundamental group is $S_3$? I know that every group is the fundamental group of a topological space, but I need a concrete example.


I'm in the process of creating a class that stores metadata about a particular data source.  The metadata is structured in a tree, very similar to how XML is structured.  The metadata values can be integer, decimal, or string values.  I'm curious if there is a good way in C++ to store variant data for a situation like this.  I'd like for the variant to use standard libraries, so I'm avoiding the COM, Ole, and SQL VARIANT types that are available.  My current solution looks something like this:  enum MetaValueType {     MetaChar,     MetaString,     MetaShort,     MetaInt,     MetaFloat,     MetaDouble };  union MetaUnion {     char cValue;     short sValue;     int iValue;     float fValue;     double dValue; };  class MetaValue { ... private:     MetaValueType ValueType;     std::string StringValue;     MetaUnion VariantValue; };   The MetaValue class has various Get functions for obtaining the currently stored variant value, but it ends up making every query for a value a big block of if/else if statements to figure out which value I'm looking for.  I've also explored storing the value as only a string, and performing conversions to get different variant types out, but as far as I've seen this leads to a bunch of internal string parsing and error handling which isn't pretty, opens up a big old can of precision and data loss issues with floating point values, and still doesn't eliminate the query if/else if issue stated above.  Has anybody implemented or seen something that's cleaner to use for a C++ variant data type using standard libraries?


$\operatorname{Adj} (\mathbf I_n x-\mathbf A)$ when $\operatorname{rank}(\mathbf A)\le n-2$

Let $\mathbf B$ denote an $n \times n$ matrix with $r\equiv\operatorname{rank}(\mathbf B)$. I need to prove the following conjecture:     If $r \le n - 2$, then there exists a polynomial matrix $\mathbf P(x)$ such that   $$ \operatorname{Adj} (\mathbf I_n x-\mathbf B)= x^{n-r-1}\mathbf P(x).  $$


What is the difference between private and protected members of C++ classes?

What is the difference between private and protected members in C++ classes? I understand from best practice conventions that variables and functions which are not called outside the class should be made private—but looking at my MFC project, MFC seems to favor protected. What's the difference and which should I use?


An ideal that is maximal among non-finitely generated ideals is prime.

I've been doing some old exam problems and I've come across a problem that I've answered, but my gut is telling me that there's something I'm glossing over.     Let $R$ be a commutative ring with identity and let $U$ be an ideal that is maximal among non-finitely generated ideals of $R$. I wish to show that $U$ is a prime ideal.   Assume that $U$ is not prime. Let $x, y\not\in U$ be such that $xy\in U$. $U$ is contained in a maximal ideal $M$ and $xy\in M$, so either $x$ or $y$ is in $M$; assume $x\in M$. The condition $U\subset M$ then implies that there is a ring homomorphism $$\varphi: R/M\to R/U$$  Since $R/M$ is a field, $\varphi$ is injective. Hence, $\varphi(x)\in U$. This is a contradiction, so $U$ must be prime.  The thing that worries me is that I never explicitly used the hypothesis that $U$ was not finitely generated or the result that $M$ must be finitely generated.


I was asked in an interview why String is immutable  I answered like this:     When we create a string in java like String s1="hello"; then an   object will be created in string pool(hello) and s1 will be   pointing to hello.Now if again we do String s2="hello"; then   another object will not be created but s2 will point to hello   because JVM will first check if the same object is present in   string pool or not.If not present then only a new one is created else not.   Now if suppose java allows string mutable then if we change s1 to hello world then s2 value will also be hello world so java String is immutable.  Can any body please tell me if my answer is right or wrong?


Use case:  I have a post type that relates to a music show. The 'show time' is grabbed through the post publish date which is set to some time in the future. I've found a function that takes future dated blog posts and leaves the date but marks the post as published on save but haven't been able to figure how to customize it for a custom post type.  The function is below.  <?php     function setup_future_hook() {         // Replace native future_post function with replacement         remove_action('future_post','show', '_future_post_hook');         add_action('future_post', 'show', 'publish_future_post_now');     }      function publish_future_post_now($id) {         // Set new post's post_status to "publish" rather than "future."         wp_publish_post($id);     }      add_action('init', 'setup_future_hook'); ?>