Pivot SQL Server data, concatenate multiple column data into computed column

FYI: I'm using SQL Server.  I have a table where I query for one column but it may contain multiple records:  SELECT CodeNumber FROM Books WHERE Type='Children'  CodeNumer --------- A B C D E   I want to PIVOT the table and concatenate the column data into a computed column such that it looks like this:  ComputedColumn -------------- A; B; C; D; E;   I'm open to using something else other than pivot in the query. I'd prefer not to write a stored procedure which will perform this action.  Thank you for any help.


How can I change the gear of my 2D character?

Is it possible to change the clothes of a 2D character(it's a 2D Windows Phone game) without creating new animations for that character? I want that the player can change the clothes of the character, but the character animations(for example walking, jumping, attacking) should rest the same. The clothes won't affect the character's animations.  I create my animations in Anime Studio Pro. Is it possible to change the clothes without creating new walking, jumping and attacking animations for every single dress?


Why didn’t Harry’s power from his mother affect others who wanted to hurt him?

If Quirrell got burnt when he wanted to hurt Harry, why didn’t others? I mean, was this power Harry had from his mother mentioned in any other situation? Or did Lily's sacrifice just work for Voldemort and Quirrell died because of Voldemort?


Doesn't show 64-bit options in VirtualBox after doing everything

Here is everything straight.   My OS is 32-bit Window 7 Home Basic.  My processor is Intel Pentium P6200, which is 64-bit capable. I have VirtualBox 5.0.4 installed.  I have the ISO file of Ubuntu 14.04.3 LST, downloaded via torrent.  Intel Virtualization Technology is enabled in the BIOS (there it says 'Intel Virtual Technology').  The I/o APIC is on too.  My laptop is Lenovo G560   But the New Virtual Machine window doesn't give a 64-bit option for any OS of any company. Don't start telling me to go to Settings then System then Acceleration because it is greyed out. I don't have Hyper-V (I at least don't have seen anything with that name). Where exactly is the problem? Is it the BIOS? Is it the host OS being 32-bit? Thanks in advance.


Array seems to be null, values were read in from text file (fixed duplication)

import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; // The "FileProcess2" class. /*September 25, 2016  Programmer: Toni L  This is a program to enter in expense values from a specific text file(previously created) and sort them, then add them to get the total. Also calculates the average expense value.*/ public class FileProcess2 {  //Integer to contain number of rows in text file  static int days = 0;  static double hold = 0.00;  //Method to take the double array that contains the expense value and using a bubble sort, organize them from greatest to least then return sorted array   public static Double[] Organiser(Double[] expenses)throws FileNotFoundException, IOException {         for(int i=0 ; i<days ; i++){     for(int y=0 ; y<(days-1) ; y++){      if(expenses[y] < expenses[y+1]){       hold = expenses[y];       expenses[y] = expenses[y+1];       expenses[y+1] = hold;      }     }    }     return expenses;   }  public static void main (String[] args)throws IOException  {      //File Reader to read in the contents of the file   BufferedReader rF = new BufferedReader (new FileReader ("expenses.txt"));   //Actual number of lines in text file is generated   while(rF.readLine() != null){    days ++;   }    //Declaring string array to enter values from text file   Double expenses[] = new Double[days];   while(rF.readLine() != null)   {   }   rF.close();   //Declaring new double array to enter the values from the text file       //Runs Organiser Class   Organiser(expenses);   //Printing values in table format, with column headings.   System.out.println("Number"+"\t"+"Expenses");   for(int s = 0; s<days ; s++){    System.out.println((s+1)+"\t"+ expenses[s]);   }    }    //Calculates the total of the expenses as well as the average/  public static void totaler(double[] expenses)throws FileNotFoundException, IOException {   double hold = 0.00, total= 0.00, average= 0.00;   for(int u = 0; u<days; u++){    hold = expenses[u];    total = hold + total;    average = (total/days);   }   //Outputs the total as well as the average.   System.out.println("The total value of Shelley's purchases is: "+total);   System.out.println("The average value of Shelley's purchases is: "+ average);     } }     When running the program, I cant seem to get it to read in the numbers from the text file properly, because it always gives me a     NullPointerException . I read the documentation for that exception, and I know that it means that my array called expenses[] is null, but I'm not sure how to give it values. Can someone help me?


Create a bijection between half-open and open interval

I need to create a bijection between $[4,5)$ and $(9,12)$. My strategy was to do it in two parts. First I created a set $X=\{x_n \in [4,5) | n \in \mathbb N \cup \{0\}\}$ Such that $x_n=5-\frac {4}{2^{n+2}}$. Then I defined $h(x_n)=x_{n+1}$ and $p(x)=x$. Then $f(x)=h(x)$, if $x \in X$ and $f(x)=p(x)$ otherwise. Then $f(x)$ takes the interval $[4,5)$ to $(4,5)$ Next I defined $g(x)=3x-3$ to take the open interval $(4,5)$ to $(9,12)$. Then I composed the two functions and got $F(x)=g(x_{n+1})$, if $x \in X$ and $F(x)=g(x)$ otherwise. Is this correct or have I made a mistake? How to I prove if this is a bijection?


Any way to attract attention to a good answer?

For questions, you can attract attention by offering a bounty.  Now let's say you worked hard and offered what you feel is a very good answer (possibly a lot better than the currently accepted answer) - problem is - no one's looking at it - especially if there are already many answers with up-votes and with an accepted answer.  Is there any way to attract attention to it?  EDIT:   Feature request: What if we could ask for moderator attention for good answers (as well) possibly for a cost of some points - after which the moderators could decide to either reject the claim that it is a very good answer or distinguish it in some way - if it is indeed a good answer...like for example to display it as the first answer or the like.


Hello everyone i need your help.  I have installed  ubuntu but it is experiencing  a lot of  overheat issues and it  can't  stay on for more than 5 mins.  So i decided  to  install windows but it is showing an error that it cannot be installed  on  disk 0 parition 1.   So i was asking is there any good os which does not  have  any overheat issues and is easily installable


Usage of "since" and "for" in the present perfect and simple past tense

Can we use since and for with past tense?   If we can use them, then what is difference between:         I have learnt English for 3 months   I learnt English for 3 months


For positive $a$, $b$, $c$ with $abc=1$, show that $\sum_{cyc}\sqrt{a^2-a+1}\geq a+b+c$

Let $a,b,c$ are positive number such that $abc=1$. Prove that:   $$\sqrt{a^2-a+1}+\sqrt{b^2-b+1}+\sqrt{c^2-c+1}\;\geq\; a+b+c$$   This problem froms my Math teacher. I have attempted to let $$(a,b,c)=(\frac{x}{y}, \frac{y}{z}, \frac{z}{x})$$. The inequality is equivalent to: $\frac{\sqrt{x^2-xy+y^2}}{y}+\frac{\sqrt{y^2-yz+z^2}}{z}+\frac{\sqrt{x^2-xz+z^2}}{x}\geq \frac{x}{y}+\frac{y}{z}+\frac{z}{x}$  Then, I tried to use AM-GM but I stucked on it.


Steal the Gold: Wait, does it even exist, what is it?

Having more gold in Dungeons and Dragons allows a player to add things to their character sheet, and effects the actions they can take in a combat round.  But what is gold in terms of game mechanics in Dungeons and Dragons games? (I am leaving it broad regarding editions, as there isn't a huge difference--that much I know).  It is codified in the rules how XP is distributed equally among the party.     When adventurers defeat one or more monsters-typically by killing,   routing, or capturing them-they divide the total XP value of the   monsters evenly among themselves.  -5e DMG   This is not the case for gold.       Over the course of a typical campaign, a party finds treasure   It is clear a PC can do things with gold that effect their character sheet and available actions in a combat round.  Being able to cast Forcecage, increasing armor class, having more spells.  Note that even in 5e, regardless of intention, the DMG provides options to buy magic items, which many DM's allow, and lists suggested prices--using that rule, gold directly affects your character sheet like XP.    There doesn't seem to be any mechanic in any edition that allows stealing of XP or abilities from other characters, so whats up with gold?  Where exactly is the delineation from mechanic and in-game economy?  (Well, there was Psychic Drain psionic power from 2e, but not a lot in this arena.)  So are there two types of gold in the game world:  one is more like "mana," and disassociated, while the other can be used to buy bushels of apples, and is useless to the PC's, so who cares?   There are implications to questions like "should gold be distributed like XP, in a manner that PC's get so much each, and can't possibly 'steal' it?" depending on what gold is in the game.


There's an election going on. What's happening and how does it work?

The  says that there is a moderator election occurring.   How does the election work and how can I get involved?


Issues with the chain rule in derivatives in chiral perturbation theory

I realize that this is a purely math question, which however has arisen in a physics computation. The reason to post it here is that I want a fast dirty answer. Not something cluttered with definitions. If the mods think that it isn't fit for the site feel free to remove it.  I am computing some derivatives of the matrix $U$ in chiral perturbation theory  $$U=e^{it^a\phi_a}$$  where $t^a$ are the Pauli matrices and $\phi_a$ are complex scalar fields. I want to take a derivative of this, for example  $$\partial_{\mu}U=\partial_{\mu}e^{it^a\phi_a}$$  since the exponent contains a matrix a am uncertain when applying the chain rule. Is the proper way to take the derivative  $$e^{it^a\phi_a}\partial_{\mu}(it^b\phi_b)$$  or  $$\partial_{\mu}(it^b\phi_b)e^{it^a\phi_a}$$


How I can add ll alias to ls -l command.  I can not find .bashrc file in my home. I tried to add into .bashrc.user file, but it does not work.


Convergence of $\int_{1}^{\infty}x\cdot \sin{(e^x})\,dx$

This question was already asked here:  . Unfortunately due to my low rank I am unable to ask questions in it. I am wondering how does this integral converge from $\int_{1}^{\infty}$? It seems like it blows up past 1 as $x\to\infty$. Any clarification would be much appreciated.


What am I not doing in showing: If a holo fcn $f: \mathbb C \to \mathbb C$ satisfies $|f(z)| \le A|z|+B$ then $f$ is linear without using power series

We want to solve this without using power series.    I know I should use Cauchy's estimates formula, but I can't seem to get a correct proof.  We want to show that $f'(z)$ is constant and the result will then follow from Liouville's theorem.    Choose $R>0$ and consider $\overline{B_R(0)}$. Then for $z \in \partial \overline{B_R(0)}$, we have $|f(z)|\le A|z|+B \le AR+B$.  So, $$|f'(0)| \le \frac{1}{R}(AR+B) = A+\frac{B}{R}.$$  As $R \to \infty$, then $|f'(0)| \le A$.  However, I need to show that $|f'(z)|$ is bounded and thus constant.  How can I continue?


Why Cooper or Dr. Brand can't send message?

In Interstellar, we saw Murph, Tom, Prof. Brand are able to send message to Cooper. Then why  Cooper or Dr. Brand can't send message as well?


Menu select item stuck on screen after context or command menu has closed

Periodically when I select a menu command, the label or selected option gets "stuck" on screen and won't go away. I can close all open applications, including whichever one I was using when it got stuck, but it still won't go away.   In the screenshot below, I opened an new instance of IE just to show how the label stays on top. The label was not created by this instance of IE.    (I added the circle in MS Paint. That part isn't stuck.)  The label that gets stuck is the first menu command I select in IE. If a label is already stuck, a new one does not get stuck (regardless of which instance(s) of IE are involved). Based on this knowledge, I now just open IE on my secondary monitor, carefully open the context menu so the Properties command is in the bottom corner, and click it. This is not a solution.  The floating label never moves and is transparent to mouse input (if I click it, it's as if I clicked the item behind it).  The label does not go away if I close all running applications. I haven't tried stopping services or closing system tray items like Live Mesh.  The label does go away if I change the screen resolution and then change it back.  Any ideas how I can stop this from happening? It's happened a half dozen times and it's becoming quite disrupting to my work.


Why the middle mouse button in Blender 2.80 changes the orthographic view to perspective?

If I choose an orthographic view by using the numpad and then try to orbit the geometry by clicking the middle mouse button Blender goes from orthographic to perspective. Why is that the default now? Wouldn't it be more logical if instead of that Blender kept the orthographic mode? In other words: Why Auto Perspective is turned on by default?


Why does `find` not delete the files it found?

I'm trying to understand why the find command is not deleting files in one particular case. I've got the following command:  find C:\\path\\to\\Pictures\\pmcctv -name cap_*.jpg -o -name cap_*.ogg -o -name cap_*.flv -o -name cap_*.mp4 -o -name cap_*.webm -mtime +7   Which returns the files I would expect:  C:\path\to/Pictures/pmcctv/cap_20160915T193251_620067800.jpg C:\path\to/Pictures/pmcctv/cap_20160915T193322_742708800.jpg C:\path\to/Pictures/pmcctv/cap_20160916T081046_394767500.jpg C:\path\to/Pictures/pmcctv/cap_20160916T081125_615129600.jpg C:\path\to/Pictures/pmcctv/cap_20160916T081129_503678200.jpg C:\path\to/Pictures/pmcctv/cap_20160916T081255_842394600.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161008_693586800.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161012_749396800.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161043_774132200.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161150_497251900.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161154_437379600.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161337_350955300.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161341_452596000.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161412_870774000.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161443_969064400.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161554_468109900.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161558_378086000.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161916_668433100.jpg   Now if I try to run the same command with -delete, the files are not deleted:  find C:\\path\\to\\Pictures\\pmcctv -name cap_*.jpg -o -name cap_*.ogg -o -name cap_*.flv -o -name cap_*.mp4 -o -name cap_*.webm -mtime +7 -delete   I've also tried with -exec rm, but they are also not deleted:  find C:\\path\\to\\Pictures\\pmcctv -name cap_*.jpg -o -name cap_*.ogg -o -name cap_*.flv -o -name cap_*.mp4 -o -name cap_*.webm -mtime +7 -exec rm {} \;   find returns no error and the files are owned by me with permissions 644.  Any idea what could be causing this?  (note: I've cut the commands to make it more readable but normally there's no line break)


How can I install Ubuntu on a headless machine?

I have a headless storage server with preconfigured Windows Home Server. How can I install Ubuntu without a display?  Do I have to build a custom install flash drive? If so, what would be the basic procedure? Is there a program (like unetbootin) to do this?


How to change default settings for volume and brightness keys?

One of the best Mac OS keyboard shortcuts I've discovered this past year is that by pressing SHIFT+OPTION while pressing the volume up/down keys or brightness up/down keys, the levels change in quarter increments instead of whole increments.  I find that I'm using this so often, that I'd now prefer the quarter increment change to become the default for these keys.  In an ideal scenario, for example, pressing the volume up key (without having to press SHIFT+OPTION) would increase volume by a quarter increment, and pressing the volume up key with SHIFT+OPTION would increase volume by a whole increment.  What would be the best way to accomplish this?  Someone pointed me towards the Karabiner-Elements keyboard remapping software, but I'm not sure if that's the right approach here or if it would even work.


I have Ubuntu 16.04 LTS OS on my PC, each time Software Updater alter pops up I click on Update Now and I enter my credentials to proceed.   But each time it fails and shows an error message that says that there is some issue with my Internet connection, But my Internet connection works fine.     When I use sudo apt update following messages come.  Fetched 6,200 kB in 7s (776 kB/s)                                               Reading package lists... Done Building dependency tree        Reading state information... Done 191 packages can be upgraded. Run 'apt list --upgradable' to see them. W: Target Packages (universe/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list:56 W: Target Packages (universe/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list:56 W: Target Packages (universe/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list:56 W: Target Translations (universe/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list:56 W: Target Translations (universe/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list:56 W: Target DEP-11 (universe/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list:56 W: Target DEP-11-icons (universe/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list:56 W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 Release: The following signatures were invalid: KEYEXPIRED 1515625755 W: http://packages.elastic.co/kibana/4.5/debian/dists/stable/Release.gpg: Signature by key 46095ACC8548582C1A2699A9D27D666CD88E42B4 uses weak digest algorithm (SHA1) W: Failed to fetch http://repo.mongodb.org/apt/ubuntu/dists/xenial/mongodb-org/3.4/Release.gpg  The following signatures were invalid: KEYEXPIRED 1515625755 W: Some index files failed to download. They have been ignored, or old ones used instead. W: Target Packages (universe/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list:56 W: Target Packages (universe/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list:56 W: Target Packages (universe/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list:56 W: Target Translations (universe/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list:56 W: Target Translations (universe/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list:56 W: Target DEP-11 (universe/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list:56 W: Target DEP-11-icons (universe/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:17 and /etc/apt/sources.list:56


Pennywise, or "It", spent a lot of time trying to scare the 7 kids Scooby-Doo style, but why did It not just kill them?  I know that It is supposed to be feeding from their fear, but all the other children who went missing were not fortunate enough to be spared, not to mention all those who died in the Iron Works factory explosion. Why these seven?  I'm talking about before they joined up as a team and when they each had their individual experiences.   Were they just lucky to escape? (i.e. "Lucky 7")   (potential spoiler for the second movie if  you haven't read the book)...   Has it something to do with       The Turtle?


Simple sql code gives strange result:  select '0.29'*100;   Result: 28.999999999999996  Another one:  select '0.28'*100;   Result: 28.000000000000004  What's going on? Is it a bug?  I couldn't find any other number that behaves like that.


Nonlinear Functional Equation $f(x)^{2}=f\left(\frac x a\right)$

Find all functions $f(x)$ such for a given fixed $a\in \mathbb{R}$ such that the following functional equation holds: $$f(x)^{2}=f\left(\frac x a\right)$$  I'm not sure  how to solve this equation other then using the method of power series, any tips?


Hide HOST resources from a docker container

I have a linux server with 100GB of RAM & 56Cores, I run a docker container with limit in Memory and CPU and I use cgroups too (I limited Memory & CPU to 50GB & 20Cores). With all that when I use top or htop in docker container I can see all of server resources!. I know that with all I did I only limit usage of RAM and CPU, but is there any way to hide server resources from docker containers?


Why isn't Unbreakable Vow used extensively as a common-place high security measure?

The meat of the question stems from several things in HP lore:   people could get falsely accused and go to jail for nothing (Sirius Black for instance) people could betray other people (Potters + Pettigrew + Fidelius charm) people could say that they are not Death Eaters and were under influence of Imperius (Lucius Malfoy)   So, basically the vow of the following format could save both Ministry, Order of Phoenix (who whouldn't mind killing a Death Eater even if it would enforce stringent discipline in their ranks, eg taking the vow), Death Eaters (who actually used it casually (Snape-Malfoys)), bankers etc. from a world of headache:     Giver: "I swear to tell the truth regarding matter X and I swear not to conceal any facts that may pertain to the understanding and the appropriate line of questioning by Receiver"      Receiver: "I swear to hear the truth from the Giver and act accordingly and justly"      Binder: "I bind you bla-bla-bla"     Why wasn't it used as proposed? Maybe there is some rationale I'm missing.


Is there a model of ZFC in which every real number is definable?

Wikipedia defines a "definable real number" as one definable by a parameter-free formula in the language of set theory.  The article says, "The set of all definable numbers is countably infinite (because the set of all logical formulas is) while the set of real numbers is uncountably infinite".  This seems fallacious, as truth is undefinable and thus the bijection between $\omega$ and the "set" of definable reals need not exist in the model (and indeed, there not even need be a set of definable reals).  Question 1: Is this claim on wikipedia as fallacious as I think it is?   Question 2: If so, is there a model of ZFC in which every real number is definable?  An obvious candidate for such a model is $L_\alpha$, where $\alpha$ is the least ordinal such that $L_\alpha \models $ ZFC. Note that by Gödel's condensation lemma, this model is countable.  Edit: I edited the wikipedia to delete the false sentences. Hopefully it stays deleted.


Find $\sqrt{a}+\sqrt{b}+\sqrt{c}$ only in terms of $p$.

If $a^{2} x^{3}+b^{2} y^{3}+c^{2} z^{3}=p^{5}, a x^{2}=b y^{2}=c z^{2}$ and $\frac{1}{x}+\frac{1}{y}+\frac{1}{z}=\frac{1}{p},$ find $\sqrt{a}+\sqrt{b}+\sqrt{c}$ only in terms of $p$. I tried simple factorization like shifting terms here and there but didnt get anything.


I see this notation a lot, but I can't seem to find an answer in my google searches. In particular I am looking at the question      Let $\alpha:S^n\rightarrow S^n$ be the antipodal map. Prove that $n$ is odd, then $\alpha\simeq \operatorname{id}.$    If it is an arbitrary symmetric group, then I understand, but I have seen $S^1$ be used for the circle.


how can I pass a reference to a generic method?  I have the class below.  public static class DataTableUtil {     public static List<T> DataTableToList<T>(DataTable dt)     {         List<T> lstItems = new List<T>();         if (dt != null && dt.Rows.Count > 0)             foreach (DataRow row in dt.Rows)                 lstItems.Add(ConvertDataRowToGenericType<T>(row));         else             lstItems = null;         return lstItems;     }...   I'm consuming the class this way  var lista = DataTableUtil.DataTableToList<SasRating>(retorno).AsEnumerable();   The SasRating class is a POCO class. I would like to send this parameter dynamically through a factory pattern. It is possible ? How to do this ?  Here's an example of some (invalid) code that demonstrates what I'm looking for:  var genericObj = T;  if(T is SasRating) {      T = SasRating } else {      T = SasTest; }  var lista = DataTableUtil.DataTableToList<T>(retorno).AsEnumerable();


Audits contain other tags when filtering close reviews

When you place a filter on the close review queue and a review audit is placed, the question will almost always be for a different language entirely (for example I filter for  and I get a question about , with the  tag tacked on - it isn't there on the real question). Is this  or not, and should this be changed?


transforming simulated data to have the desired mean and variance

I am working on simulation of data, and this is just the first step of what I am trying to do. I am first simulating data based on a correlation matrix (as this is what I want). I used the R code found on a blog :  # The variables will each have a mean of 0 and a variance of 1. After you have the     data, you can  # apply a linear transformation to get any mean and variance that you want.  rmat <- matrix(c(1.0, .50, -.50, .50, 1.0, .30, -.50, .30, 1.0), nrow = 3, byrow = T) mu <- c(0,0,0) library(MASS) mat <- mvrnorm(100, Sigma = rmat, mu = mu, empirical = TRUE)  # If empirical = FALSE, the correlations will be approx.  cat ("The intercorrelation matrix is = '\n'") print(cor(mat))   I have two questions - (1) can I just use a covariance matrix here instead?  2) the author has written "apply a linear transformation to get any mean and variance that you want". I need the data to have a particular mean and S.D...it is probably a trivial exercise , but can someone help me how I can transform this data which has mean 0 and SD 1 to what is desired? So is there an easy way to scale mat variables to have the desired mean and S.D?  Thanks for the help!


ASP.NET: Where/how is web.config cached?

I read somewhere in the Microsoft documentation that the content of the ASP.NET's web.config is cached. If that is true, where is it cached - in memory or on disk?  And a follow-up question: are there any performance considerations I have to make, if I have to access the web.config intensively?


Suppose we have a random generator, how do we test the randomness of its output?   If I made two calls, there is a slight chance that the two results collide.


What's the word for something that is 'good', but 'bad' at the same time?

What is the word that describes an act that was meant to be an act of kindness/helpful, but ironically has not been helpful at all.  I know the word, but it's totally gone out of my head, and I cannot for the life of me remember it.  A few examples:      Hanging out the washing for someone trying to do them a favour, but hanging it incorrectly so it's not going to dry that well.     Doing the dishes for Mum after she's cooked you tea, but you put something non dish washer safe in the dish washer.     Mowing the lawns for your Grandma, but the mower was too short and has now killed the grass.     You told your wife you'd do the washing for her, which she was so thankful for, but you put the towels in with the clothes, and she   wasn't too happy about that.    I KNOW there is a word, but I just am absolutely stumped. Any help?!


Do votes get canceled if voting privilege is lost?

If I'm below 15 reputation, I can't alter the public score of an answer/question.  Suppose I gain the privilege by getting the required rep and vote some posts up. Then, for any reason, I fall below 15 and lose the ability to vote. What about the votes I already did cast?  Do post scores get altered by ignoring my vote, or will they stay the same? In other words, is losing a privilege retroactive?  If yes, what about when I gain my privilege back? Are my votes automatically restored, or do I have to cast them again from scratch?  I made the easiest example, but this applies to any higher privilege


Over non-commutative ring, Free modules of different ranks might be isomorphic?

This is an exercise from Matsumura 2.4  $A$ is a non-trivial ring. If $A^n\cong A^m$, then $n=m$; prove this by reducing to the case of a field. (Note that there are counter-examples to this for non-commutative rings.)  What is the counter example and reason that I do not expect rank being well defined for the noncommutative case? Does it have anything to do with left ideal and right ideal might not be the same? So one may have one rank through left maximal ideal and another rank through the right maximal ideal?


About certain proof of countability of $\mathbb{Q}$

I came across this proof of the countability of $\mathbb{Q}$ in a textbook:      Each rational can be expressed as a fraction $a/b$, where $a$ and $b$ are integers. We know that the set $\{(a,b) : a,b\in\mathbb{Z}\}$ is countable, thus $\mathbb{Q}$ is countable.    My question is this: Clearly each rational can be uniquely expressed in lowest terms as a fraction $a/b$. However, each fraction can be expressed in a multitude of different ways that are in the set $S=\{(a,b) : a,b\in\mathbb{Z}\}$, specifically $(na)/(nb)$, where $n\in\mathbb{Z}$. Thus we only know from this that $|\mathbb{Q}|\leq|S|$, and not that $|\mathbb{Q}|=|S|$. Because of this, does this mean that we are assuming CH?   *As a side note: I'm not questioning whether or not the rationals are countable, I'm completely sure that they are. I am just asking if this proof is assuming CH or not.   Thank you all in advance for the help.


Site is working with http:// not with http://www

My site is working if i type it as domain.com. But If I type it as www.domain.com I get an error 404 page.  The domain is registered with Google Apps for Business and the hosting is done with another company. I have some A records that are pointing the site to this server. However, as it appears the A records are only working halfway.  What do I have to do to make it working for both http:// and http://www ?


How to resize/hide arrows on the Desktop icons?

I have upgraded from Ubuntu 18.04 to 20.04LTS.  So far, everything is running well except my desktop icons sometimes exhibit a massive arrow (this is the case of the *.desktop files:  Is there a way to resize and or hide these arrows?  I did not see any possibility in gnome-tweaks. To make it clear: in the above icons, Corbeille (created by the system) is what I would like to see.  Veramtex and Pycharm both are .desktop files with the corresponding icons.  Only there appears a large arrow on both.  Could I get rid of those? Here is the content of Pycharm.desktop [Desktop Entry] Type=Application Terminal=true Name=Pycharm Icon=/..../pycharm-community-2020.2/bin/pycharm.png Exec=/..../pycharm-community-2020.2/bin/pycharm.sh Name[fr_BE]=Pycharm  And this is icon pycharm.png (without the arrow)


How can I explain the scientific basis of the constant speed of light to a $c$-decay proponent?

asks why and how the speed of light is constant. I would like to ask a related, almost converse question:  Given that the speed of light is constant, how could I explain to a young-earth-creationist who is still a proponent of the disgraced Barry Setterfield  that the $c$-decay theory contradicts observed physical reality, as described and understood by all scientists, including those in the Physics and Astronomy fields?  Surely a variable speed of light would throw a monkey wrench into all sorts of fundamental laws or systems in physics? Surely it would be measurable on instruments today, if there was even a miniscule change in the  speed of light relative to a continuous cold caesium fountain atomic clock?  The fact that there is no observable change in any recent trustworthy data, is the beginning, middle, and end of the scientific argument. Am I correct?  My physics education ended at Grade 12. So I'm asking for a high-school level explanation.  I also wonder if $c$-decay theorists are contradicting themselves, or have sawn off the branch upon which they themselves sit; For example,  I wonder this; Would we have to modify our expectations of what the doppler effect (red shift) would look like, as light comes towards us from distant stars, if the speed of light is variable? Would we not have to throw all our doppler data out, and all the distances themselves, if the speed of light is variable in some undefined way, and thus unknown and unknowable?  The $c$-decay theory was spawned because redshift data indicates that the stars are too far away for their light to have reached us in the mere 6000 years the universe has existed.  In short, if $c$-decay theory exists to explain distant stars to young earth creationists and help them breathe a sigh of relief, wouldn't it be slightly-less-scientifically-bogus, to just dispute the doppler effect and the distance of those stars?


The correct positioning of a sentence adverb in a sentence

Three days? I think that it is not simply enough time.   Three days? I think that it is simply not enough time      What rule of grammar informs acceptable word order in this case?


I created two separate classes, main and leads. The following is from 'leads' , I am trying to apply Leads.primeLead(); if the user answers Yes on the first question, and if not, I'd like to write a different method to add all the necessary information. My problem is that, I don't quite understand why the primeLead() wont apply on Lead constructor or how am I supposed to define it so it will. import java.util.ArrayList; import java.util.Scanner;  public class Lead {      String nameLead;     int ageLead;     int phoneLead;     String cityLead;     String email;     String otherNotes;      int indexOfLead = 0;     int i = indexOfLead;      ArrayList<String> names = new ArrayList<String>();     ArrayList<Integer> ages = new ArrayList<Integer>();     ArrayList<Integer> phones = new ArrayList<Integer>();     ArrayList<String> cities = new ArrayList<String>();     ArrayList<String> emails = new ArrayList<String>();     ArrayList<String> notes = new ArrayList<String>();      Scanner leads = new Scanner(System.in);      Lead() {         System.out.println("Is this the first lead? (Y/N) ");         if (leads.nextLine() == "Y") {             this.primeLead();         }     }     /* public mainMenuLead(){         System.out.println("Please choose one of the following options");     } */       Lead newLeads = new Lead();      public void primeLead() {         i = 0;         System.out.println("============================================");         System.out.println("  Please enter by the following order : ");         System.out.println("     Name, age, phone , city, mail     ");         System.out.println("============================================");          System.out.println("Please enter the name of the Lead :  ");         names.add(leads.nextLine());          System.out.println("Age? :  ");         ages.add(Integer.parseInt(leads.nextLine()));          System.out.println("Phone number? ");         phones.add(Integer.parseInt(leads.nextLine()));          System.out.println("Would you like to add ... ");         System.out.println("1) City? ");         System.out.println("2) Email? ");         System.out.println("3) Notes?  ");          if (leads.nextLine() == "1") {             System.out.println("Please add City: ");             cities.add(leads.nextLine());          } else if (leads.nextLine() == "2") {             System.out.println("Please add email : ");             emails.add(leads.nextLine());          } else if (leads.nextLine() == "3") {             System.out.println("Please add any other notes you may have:  ");             notes.add(leads.nextLine());         }     } }


Calculating the determinant of a matrix $A=[a_{ij}]$ such that $a_{ij}=ij$ if $i \neq j$ and $a_{ij}=1+ij$ if $i=j$

Here is my attempt :  If order of $A$ is $2$, then $$A=         \begin{pmatrix}         2 & 2  \\         2 & 5  \\         \end{pmatrix}  \Rightarrow \det A=6.$$ Also the eigenvalues in this case are $1,6$.  If order $A$ is $3$, then $$A=         \begin{pmatrix}         2 & 2 & 3 \\         2 & 5 & 6 \\         3 & 6 & 10 \\         \end{pmatrix} \Rightarrow \det A=15$$ Also the eigenvalues in these case are $1,1,15.$  If order of $A$ is $4$, then $$         \begin{pmatrix}         2 & 2 & 3 & 4 \\         2 & 5 & 6 & 8\\         3 & 6 & 10 & 12\\         4 & 8 & 12 & 17\\ \end{pmatrix} \Rightarrow \det A=-21.$$ I found that $1$ is an eigenvalue here by directly putting $\lambda=1$ in the characteristic determinant. But $-21$ is not the eigenvalue.  I couldn't use information about eigenvalues so I looked at the pattern of determinants :  $6,15,-21,...?$ Observed that they are $3\times 2,3 \times 5,-3 \times 7$. From this pattern it might be possible that next term is $-3 \times 11$ since $2,5,7$ are primes and next is $11$. Also the negative sign can be in the pattern $+,+,-,-,+,+,-,-,+,+...$ As it seems to me I will have to calculate order $5$ too to get some more concrete idea with respect to this way. But isn't there some elegant method?  I see that every such order $n$ matrix is "engraved to upper-left inside" order $n+1$ such matrix and every $A$ is symmetric. Thanks.  PS : I wrongly calculated $\det A_{4 \times 4}=-21$. It should be $31$.


Please clear my doubt Diffrence between /etc/init.d/ssh start and service ssh start. which is the best to use service command or /etc/init.d/.


I'm having some problems when i try to save my project in Eclipse. The error is because of the character encoding that is Cp1252 that is because i copyed the file from another that i have created in my Linux computer, then i cant save my file in Eclipse, but how i can solve this problem? But if is needed here is an screenshot of the error:   Thanks!


Empty in-app notification if open from the drop-down Android

If I receive a notification (new comment or answer) and open the StackExchange application, the notification drawer is completely empty and I need to reopen the app.  Using StackExchange 1.0.71 and Android 5.1.1.


Isomorphisms between $(\mathbb Z_4,+)$ and $(U_5,*)$

So I am asked to find all the isomorphisms between $G = (\mathbb Z_4,+)$ and $H = (U_5,*)$.  I solved it as follows: we will have two isomorphism corresponding to the two generators of $U_5$.  The first isomorphism : $\phi([x]_4)$ = $[2]_5^x$   The second isomorphism is: $\phi([x]_4)$ = $[3]_5^x$   Notice that [2] and [3] are the only generators of $U_5$ one can check it systematically or use the fact that $a^m$ is a generator iff gcd(m,4) = 1.  So I just wanted a verification of my work I showed that they are bijective, well defined, and is a homomorphism.


Is there a way to use the Firefox 'User Agent Switcher' addon in separate tabs, or only for certain websites?

I love using the 'User Agent Switcher' Firefox addon on most sites on my desktop PC, in order to trick websites into using the mobile versions by masquerading as an iPhone/Android user agent. I like how on mobile sites I can enlarge text as much as I want and it will move text to the next line instead of making me scroll left and right to read it all.  However, of course, video sites such as YouTube ask me to install the Safari plugins, which I cannot do. I would love to be able to use the 'User Agent Switcher' addon in separate tabs, or only for certain websites.  How can I do this?


I'm a little confused as to how I'm supposed to gear up my follower since the installation of smart loot in Loot 2.0. My follower still has most pre loot 2.0 items because I have yet to find comparables that are rolling with the right affixes.   To be clear, I play a DH and so I used the Templar as my tank. I very rarely find items that roll with Strength because smart loot sees my DH and rolls Dex for me instead. With the use of the Enchantress I thought it would get better because I could replace Dex with Strength...but that's not true. It seems as though the Enchantress will only roll Dex for me too.   With the auction house down for good, no outlet for trading, and the installation of smart loot, it seems that gearing a follower has become almost impossible unless I want to jump on another character that uses strength and get items that way. I want to find items that I can use while I'm playing. How do I gear my follower post Loot 2.0? Do I have any options other than character jumping?


How do I reference all files including hidden files?

I know that * references all files excluding hidden files, how to reference all files including hidden files whose names begin with a . in bash?


PDF on a https server can not be downloaded with Chrome

I try to download a pdf on an https server (with an authenfication) but this is unsuccessful with Chrome or LG Browser. This is ok with Firefox. I found this answer/comment : .  Is there a solution for a non-power user ?


I have a lot of music in a tree under one directory, saved in whatever format I initially got it in, for quality. I have a second directory tree which is similar in structure, but with all files in a lossy-compressed format playable by my phone, and with occasional metadata changes (e.g. removing embedded covers to save space).  It occurs to me that for a significant portion of the music, there is no difference between the two instances - generally when the distributed version was only available as mp3/ogg and didn't have embedded covers. Hard drive space may be cheap, but that's no reason to waste it. Is there a way to script:   Check for identical files in two directories Whenever identical files are found, replace one with a hardlink to the other Without e.g. taking the time to get a full diff, in the interest of time But still without the risk of accidentally deleting a copy of two non-identical files, which is a remote but nonzero chance if I were to e.g. just compare hashes?


Table cell content aligning changed after using tikzmark?

\usepackage{tikz} \newcommand\tikzmark[2]{% \tikz[remember picture,overlay,baseline=0pt]  \node[inner sep=0pt,outer sep=0pt, anchor=base] (#1){#2};% }  \newcommand\link[2]{% \begin{tikzpicture}[remember picture, overlay, >=stealth, shorten >= 10pt, shorten <=10pt]   \draw[->] (#1.south east) to (#2.north west); \end{tikzpicture}% }   \begin{table}[htbp] \renewcommand{\arraystretch}{1} \setlength{\tabcolsep}{10pt} \centering \begin{tabular}{m{0.2in} | m{0.2in} m{0.2in} m{0.2in} m{0.2in} m{0.2in} m{0.2in} m{0.2in} m{0.2in} m{0.2in}}     \hline     & A  & B   & C       & B       & B       & B       & D  & C  & E \\     \hline  C  & 0   & 0  & \tikzmark{13}{\bf{1}}  & 0       & 0       & 0       & 0  & 1  & 0 \\   B  & 0   & 1  & 0       & \tikzmark{12}{\bf{2}}  & \tikzmark{22}{\bf{1}}  & 1       & 0  & 0  & 0 \\   B  & 0   & 1  & 0       & 1       & \tikzmark{11}{\bf{3}}  & \tikzmark{21}{\bf{2}}  & 0  & 0  & 0 \\   C  & 0   & 0  & 1  & 0  & 0  & 0  & 0  & 1  & 0 \\   E  & 0   & 0  & 0  & 0  & 0  & 0  & 0  & 0  & 1 \\    \hline \end{tabular}  \captionsetup{justification=centering}  \caption{All local alignment scoring matrix}  \label{table:all_local} \end{table}  \link{11}{12} \link{12}{13} \link{21}{22}


I've read a few tutorials but I'm still new to Illustrator. Currently, I am trying to work with a sketch that I am trying to position on the artboard. If I were to resize the entire shape the sketch is drawn on to within the bounds of the artboard, however, the sketch would be too small. How can I crop or otherwise keep the sketch the same size as it is in the image below, while keeping the shape it is on within the artboard?


Cannot remove email from my profile page

It seems that I'm unable to persistently remove my email address from my profile pages.  Initially removing my email address works fine, I simply visit my profile page on any site associated with my account, edit my email and press the Save And Copy Profile To All Stack Exchange Accounts button. So far, so good.  However, if I'm logged out; whether logging out manually or visiting the site from a new device; I then log into any of my sites using the Stack Exchange method and the following happens:   For the profile page on that site, the email field is automatically re-populated.  For the profile page on subsequently visited sites, I'm automatically logged in but the email field remains empty. I have tested logging into each of the sites and it's only ever the first site that I log into where the profile pages get repopulated with my email address.   Is this expected behavior of Stack Exchange sites or a bug?  Other things to note:   I assume that the email address field on the profile pages are not mandatory. The email address that is repopulated is one I use to log in with the Stack Exchange method. My motives in trying isn't out of email privacy but simply bafflement. I'm aware that .


$f \text{ convex }\Rightarrow \forall (x_0,f(x_0))\in \Gamma(f) \exists a : \forall x\in \mathbb{R}, f(x) \ge a(x-x_0)+f(x_0)$

$f:I \to \mathbb R$ is a convex function on an open interval $I$. I know that if $f$ is differentiable on $I$, then $\forall x_0,x \in I , f(x_0)+f'(x_0)(x-x_0) \le f(x)$  I read somewhere that something similar true even if $f$ is not differentiable, i.e. $\exists a \in \mathbb R: \forall x_0, x \in I, f(x) \ge a(x-x_0)+f(x_0)$.  Does anybody know a proof for that? It would e.g. help to show that $\forall x_0 \in I$ there is a convex differentiable function $g:I \to \mathbb R, g(x_0)=f(x_0)$ and  $\forall x \in I,  g(x) \le f(x)$


Context getResources(), can't find resource

I'm trying to write a class which is to handle the maps methods (showmap, addmarker, etc) and I call these methods in an Activity or Fragment, but I get this error:  java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference   I know what it means, but I canit solve it. So I hope somebody can help me.  Here is the map calss:  public class MapHandle extends AppCompatActivity implements LocationListener {  private SupportMapFragment mapFragment; private GoogleMap map;   public void initMap() {       mapFragment = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map));     if (mapFragment != null) {         mapFragment.getMapAsync(new OnMapReadyCallback() {             @Override             public void onMapReady(GoogleMap map) {                 createMap(map);             }         });     } else {         Toast.makeText(this, "Error - Map Fragment was null!!", Toast.LENGTH_SHORT).show();     }   }  public void createMap(GoogleMap googleMap) {     map = googleMap;     if (map != null) {         // Map is ready         Toast.makeText(this, "Map Fragment was loaded properly!", Toast.LENGTH_SHORT).show();     } else {         Toast.makeText(this, "Error - Map was null!!", Toast.LENGTH_SHORT).show();     } } }   And here I call it in an Activity:  public class FragOne extends Fragment {  MapHandle mh;  @Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {     mh = new MapHandle();     mh.initMap();     return inflater.inflate(R.layout.frag1,container,false); } }


How do I use the C.L.I. to convert packages in the output from apt-cache depends into a space‐separated list for use with apt-get download?

How do I use the command line interface (not a GUI) to convert the list of dependency packages in the output from apt-cache depends into a space‐separated list for use with apt-get download? Preferably, I’d like the two actions to be executable via a single command.  (By “list of dependency packages”, I’m referring to all packages prefixed by the string “Depends:”.)  The use case is to download all dependent packages of a package onto a machine with Internet access for use on a machine without Internet access as well as to teach myself how to reformat text via the command line.  One example with a long list of dependencies involves the command apt-cache depends gimp, the output of which is shown below. (This example includes a few dependencies listed multiple times, but apt-get download apparently ignores duplicate entries, so there’s no need to filter them out.)  gimp   Depends: libgimp2.0   Depends: libgimp2.0   Depends: gimp-data   Depends: gimp-data   Depends: libgdk-pixbuf2.0-0   Depends: xdg-utils   Depends: libaa1   Depends: libbabl-0.1-0   Depends: libbz2-1.0   Depends: libc6   Depends: libcairo2   Depends: libfontconfig1   Depends: libfreetype6   Depends: libgcc1   Depends: libgegl-0.4-0   Depends: libgexiv2-2   Depends: libglib2.0-0   Depends: libgs9   Depends: libgtk2.0-0   Depends: libgudev-1.0-0   Depends: libharfbuzz0b   Depends: libheif1   Depends: libilmbase23   Depends: libjpeg8   Depends: liblcms2-2   Depends: liblzma5   Depends: libmng2   Depends: libmypaint-1.3-0   Depends: libopenexr23   Depends: libopenjp2-7   Depends: libpango-1.0-0   Depends: libpangocairo-1.0-0   Depends: libpangoft2-1.0-0   Depends: libpng16-16   Depends: libpoppler-glib8   Depends: librsvg2-2   Depends: libstdc++6   Depends: libtiff5   Depends: libwebp6   Depends: libwebpdemux2   Depends: libwebpmux3   Depends: libwmf0.2-7   Depends: libx11-6   Depends: libxcursor1   Depends: libxext6   Depends: libxfixes3   Depends: libxmu6   Depends: libxpm4   Depends: zlib1g   Breaks: gimp-plugin-registry   Recommends: ghostscript     ghostscript:i386  |Suggests: gimp-help-en   Suggests: <gimp-help>     gimp-help-ca     gimp-help-de     gimp-help-el     gimp-help-en     gimp-help-es     gimp-help-fr     gimp-help-it     gimp-help-ja     gimp-help-ko     gimp-help-nl     gimp-help-nn     gimp-help-pt     gimp-help-ru     gimp-help-sl     gimp-help-sv   Suggests: gimp-data-extras   Suggests: gimp-python   Suggests: gvfs-backends     gvfs-backends:i386   Suggests: libasound2     liboss4-salsa-asound2   Replaces: gimp-plugin-registry


Seeking alternatives to pgRouting for open source routing / network analysis?

I was wondering if there are any alternatives to  tools.  Thinking about it for a bit, I think the only alternative is to use R or RPY to do the analysis.   Basically I'm trying to solve routing problems based on nonPostGIS databases. As most of my data is actually stored in a different format; however, it's not to hard to convert. I'm finding that pgRouting to my dumb silly brain is difficult to implement. So perhaps a non-database solution that I can easily tweak would be ideal for me


I think I must first prove that I(A) is a subring and then prove that A is in the ideal I(A) and I(A) is the largest sub-ring containing A. but I have problems to show that I(A) is a subring because let x and y in I(A), so $xa\in A$ and $ya \in A$  but I do not know how to prove that $xy\in I(A)$ and the rest.


Can’t get PC to boot from Usb to install Ubuntu

Just downloaded Ubuntu desktop 18.04 to USB via my desktop. I have a laptop PC running on Windows 10. I created a 25 GB partition to install Ubuntu.I plugged the USB in and rebooted. Windows started. I restarted the PC and went to bios then changed boot order, making external device  option. Message says an operating system wasn’t found. The PC restarted and loaded Windows.


It's way too complex for me. I need to use Localhost (PHP + MySQL)


Ubuntu 12.04 LTS: Changing Mysql root Password

I did an upgrade from 10.04 to 12.04 today. I wanted to access MySQL afterwards, but I've forgot the root password... So I tried some guides from the net but none is working for me. Im not even sure which MySQL-Version is installed right now:  root:~# apt-cache show mysql-server | grep Version Version: 5.5.38-0ubuntu0.12.04.1 Version: 5.5.22-0ubuntu1   root:~# dpkg-reconfigure mysql-server-5.5 <- Did not work - server not installed. But it is working fine...  Who can help?


How does permutation of training data improve convergence time when training a perceptron or neural network model?

I'm currently studying some basic concepts regarding Deep Learning and Neural Networks with  material.   When discussing the training algorithm for a perceptron, the author states that looping through the training data in constant order is not always a good idea, specially in data sets where some labels could be somewhat ordered.   For example, say the model is being trained on a set of 1000 examples, the first 500 have a "positive" label, and the last 500 have a "negative" label. If these examples are iterated in their original order within the data set, in order to determine the weights of the perceptron, then after evaluating the error of the first few examples (which are "positive") the model would likely decide that every example is "positive", and would stop learning anything. It would perform well for a while, until it begins to evaluate the "negative" examples, when it would begin predicting everything as "negative". In the end, the model would've learned from only a handful of examples.  This makes perfect sense to me, and I understand the need to permute the data before iterating over it in the training algorithm. However, it is said that the convergence could be achieved even faster (about twice as fast), if the data is re-permuted in each iteration.  How does this improvement actually happen? Is there a way to actually quantify the difference in the number of epochs needed for convergence when the data is permuted once and when it is re-permuted with each iteration (maybe a statistical model, or something of the sort)? Also, are there any special cases where permuting the data with each iteration is actually ill-advised?


Evaluating $\int_0^{2 \pi} e^{\cos x} \cos (nx - \sin x) \,dx$ using complex analysis

I'm taking a complex analysis course and doing some practice computing residues & evaluating integrals. I pulled out an old book called     On page 196-197, there are some interesting integrals to evaluate. I'm at 5.4.3.10.: I was able to do question 1, but was stumped at how to even begin with question 2:     Evaluate the integral   $$\int_0^{2 \pi} e^{\cos x} \cos (nx - \sin x) \,dx ,$$   where $n$ is an natural number.   The answer is simply $\frac{2 \pi}{n}$. Any hints?


I have Ubuntu server 12.10 and I would like to switch to desktop and would like to know how?   Thanks


Does offset from the axis cause problems in barn door trackers?

I am thinking of building a Barn door tracker for some basic Astrophotography. I have seen some of the builds by people such as .  In all builds I have seen, Camera is mounted few inches away from axis of rotation. If I have to guess, center of camera lens is probably 5-6 inches away from axis. Won't this cause error?  If I point camera at Pole star, I suspect this offset will cause camera lens to prescribe a small circle instead of being fixed on target.  Is this understanding right? No one has mentioned this anywhere.


Google Domain and Site title change - Strange results! HELP!

The name of the Previous website was "Game&Util Foundation" Now, I changed the name to "Mobi:HQ - The Social Sharing Platform"  I set up both 301 redirection AND used to change of address tool in webmasters.  But still, Google is displaying  as "Game&Util Foundation". Don't they ever read the  tags?  The first time it got indexed, everything was fine. After 2 days, the title "Game&Util Foundation" was Added to EVERY SINGLE SEARCH RESULTS on google. And all my google index looks like this : [New page title] - Game&Util Foundation  Google has added the word "Game&Util Foundation" To every single index......  This is seriously disturbing. Please help.    I tried fetching URLs manually. I did everything but google still ads "Game&Util Foundation" Tag to every single search result.  Please don't question me about the contents. I was hired by that board to look at technical stuff. Nothing I can do about it.


Different 'About me' for different communities

I have accounts in different communities in StackExchange. Is it possible to have different 'about me' for different communities? Thank you.


Should medical conditions that affected performance be stated in personal/research statement? And how?

Condition  I have been suffering from day time sleepiness (9-10 hrs of sleep and still struggle to stay awake), fatigue, memory loss and lack of concentration. The doctor found that I suffocate in my sleep: I stop breathing several times per hour.   In a few days, I will be undergoing surgery to modify my airway (nose, throat) that, according to the doctor, will completely resolve these problems.  Background  My profile is OK: undergrad valedictorian, scholarships, awards, numerous research experiences and skills. But my condition was exacerbated during the masters and I graduated "B+" instead of continuing my straight "A" performance during undergrad. Also, I felt that I could have performed better in standardized tests (GREs), do more research etc without my condition.  Questions   Should I make this medical condition known in my research/personal statement? I fear the reader might assume that I am not as "able" as completely healthy candidates. Or perhaps there is no benefits at all to bringing this up? If so, how should I put it to avoid sounding like I am making excuses or whining?


Force template instantiation in another header

I have a templated "collection" class. I don't wan't the code be recompiled in every source file. But this collection should be used with DataTypes (class SpecialDataMember : DataMember) not defined on definition of the the template class. This is why I can't force the instantiation in the template source file (throug moving the definitions to the source file and add template LinkCollection<DataMember>;), because the definitions of the template must be accessible in other source files ("SpecialDataMember.cpp").  Is it possible to make "SpecialDataMember.o" hold the code for LinkCollection<SpecialDataMember>. Every includer of SpecialDataMember.h should know I leave LinkCollection<SpecialDataMember> to the linker.  I see two options but I don't know if they work:   Make two template headers (with header guard) one with the definitions one without.   SpecialDataMember.h  // .. include "LinkCollection.h" // ..   SpecialDataMember.cpp  // ..  include "LinkCollectionImpl.h" // ..  include "SpecialDataMember.h" // ..  template LinkCollection<SpecialDataMember>;   All includers of "SpecialDataMember.h" will not know the definitions of the template so they will let the linker do his work.And the linker will find the instantiation of LinkCollection<SpecialDataMember> in SpecialDataMember.o. Is that correct? But I would have to maintain two header Files. Is there a better way to gain this effect?    Use template derived classes   If I create a special class SpecialDataMemberLinkCollection : LinkCollection<SpecialDataMemberLink> in the "SpecialDataMember" header and source file, I could reference this special class instead and so the compiler knows there is an instantiation of that class and the base class template and leaves the work to the linker. Will this work as expect?


on Control page:  <?php   include 'pages/db.php';    $results = mysql_query("SELECT * FROM sidemenu WHERE `menu_id`='".$menu."' ORDER BY `id` ASC LIMIT 1", $con);   $sidemenus = mysql_fetch_object($results); ?>   on View Page:  <?php foreach ($sidemenus as $sidemenu): ?>   <?php echo $sidemenu->mname."<br />";?> <?php endforeach; ?>   Error is:     Notice: Trying to get property of non-object in C:\wamp\www\phone\pages\init.php on line 22   Can you fix it? I don't have any idea what happened.


Existence of complement of a subspace without Zorn's lemma

Let $E$ be a $\mathbb{K}$-vector space. I have seen that every subspace $F \subset E$ has an (algebraic) complement $F'$  ($F+F'=E$ and $F \cap F'=\{0\}$).   One proof (using that every vector space admits a basis) is found , and another using directly Zorn's lemma in .  What I would like to know is if it is possible to prove that statement without using the axiom of choice.   One idea that came to me was this: in the finite case, the complement of a subspace  $F \subset E$ is isomorphic to the quotient space $E/F$. Is this true in the general case? If there were a way to embed $E/F$ in $E$ in such a way that it is the complement of $F$, we could prove the statement.  On the other hand, a way to prove that this is not possible to achieve could be to deduce that every vector space admits a basis (without using AC) from the fact that every subspace admits a complement. But I can't see how this could be done.  Thanks in advance for any help


I have a problem, I added a splash screen. The splash screen appears. But it does not disappear after it's done and the main form has loaded.  static void Main() {     Application.EnableVisualStyles();     Application.SetCompatibleTextRenderingDefault(false);      Thread thread = new Thread(new ThreadStart(showSplashScreen));     thread.IsBackground = true;     thread.Start();     Thread.Sleep(1000);     Main main = new Main();     Application.Run(main);     thread.Abort(); }  private static void showSplashScreen() {     Application.Run(new SplashForm()); }


If I don't know where to ask my question, where on SE to ask for site recommendation?

Where do I ask where I should ask a question about something?


Why must Voldemort's body be killed last?

Voldemort has horcruxes to grant him "immortality" (more like regeneration). But if his body is destroyed, why wouldn't destroying the other horcruxes afterwards not kill him just as easily? Why does the order matter?


How to draw circle, square, and triangle marks in TikZ picture?

The below is part of my TikZ picture:  \begin{tikzpicture} \draw (0,0)--(10,0); \filldraw (0,0) circle (3pt); \end{tikzpicture}   I want to place a "square mark" to denote the point at (10,0). How can I place a square mark? Is there anything like  \filldraw (10,0) square (3pt);   In addition, how may I place a "triangle mark"?


I have seen sentences similar to the following:  (1) See the reference above. (2) See the reference below.  And,  (3) See the above reference.  But not,  (4) See the below reference.  Are all these forms acceptable? Which is/are preferred in formal writing?


The minimum value of $ f(x) = | x - 1 | + | x - 2 | + | x - 3 | $ is?

I don't get it why my solution is wrong :   My solving :   $ f(x) = | x - 1 | + | x - 2 | + | x - 3 | $   When $ x\leq 1 $   $ f(x) = | x - 1 | + | x - 2 | + | x - 3 | = 0 $   = $ 6 -3x $  since $ x\leq 1 $   $ f(x)\leq 3 $    also it clear $ f(x)\geq 0 $   => The min value is 0 .   I dont have to consider other cases, since 0 is the min value f(x) can take .   Book has given the answer : $ 2 $ .


How does the electric field of a Reissner-Nordstrom black hole exist outside its event horizon if nothing can escape the event horizon?

I am learning Reissner-Nordstrom black holes and I have learnt that the black hole contains a net charges. The static field due to it ( through the Energy Momentum tensor) exists even outside the event horizon. But I also know that nothing can escape out of an event horizon. So I have two questions-:  Why does the electric field ( static ) of a charge on the Reissner-Nordstrom black hole exists even outside the event horizon of the black hole?  If the black hole gains a some more charge ( say a charged particle does fall in the time like singularity) then the net charge on the black hole increases and a static condition is again reached. The electric field of the new static hole should also now increase. Will the change in electric field propagate outside the horizon also increase? If so how? This increase in the electric field could act as a causal influence which has now propagated outside the horizon but that should not have happened. ( The old hole had a horizon so nothing should pierce through it, and the new hole again reaches a static condition; so the change in the electric field has pierced through the horizon of the previous hole which shouldn’t have happened)


Quickly create a large file on a Linux system

How can I quickly create a large file on a Linux () system?   will do the job, but reading from /dev/zero and writing to the drive can take a long time when you need a file several hundreds of GBs in size for testing... If you need to do that repeatedly, the time really adds up.  I don't care about the contents of the file, I just want it to be created quickly. How can this be done?  Using a sparse file won't work for this. I need the file to be allocated disk space.


What are the goals and benefits of doing a PhD?

I'm a master computer science student in a German university and I will be graduating soon. I'm in a situation between accepting a PhD position or leaving academia to start looking for job. This is a very hard decision to make so I need some advice.   I see most of the people who do a PhD leave academia afterwards and start looking for jobs (is it also the same in the US?). Very few people continue with a postdoc and remain in academia after getting the PhD.  My question is then, what is the point of doing a PhD (especially if one gets a job in industry afterwards)? What are the benefits of spending 3-5 years obtaining a PhD? What kind of goals should a person enrolling in a PhD program have?  From the point of view of industry, I realize that after a PhD they might start with a high position in the company. But, on the other hand, in those 5 years they could have started a small tech company and make it somehow medium or even a bit successful. Instead of doing a PhD, after 5 years of investing in their own company, they could be paid for working for themselves and not for others, having their own companies.   From the point of view of obtaining knowledge, if someone is curious about knowing, they could learn new things by themselves. After graduation, finding a job or starting a company, knowledge could be obtained by buying books and reading during one's free time, or following extra courses. I don't think you don't need a university for this.  Am I right in my analysis? Is it true most people go to the industry after the PhD (I'm especially curious about people in the US from top universities)?  If my analysis is at least partially right, and since there is other viable ways to become successful in industry and to obtain knowledge, what are the benefits of doing a PhD? Is it only a good idea for people with strong plans to continue in academia, or are there other goals one can achieve (better) by obtaining a PhD? I am afraid that doing a PhD might be a waste of time if I plan to continue in industry.


Two captions in one line for two different tikzpictures

I created these figures in tikzpictures. The two left ones are the first figure and the two right ones are the second figure.  How can I give them two separate captions respectively while keep both figures next to each other? If I add a second caption, the second figure always goes to the next line.  MWE:  \documentclass[12pt]{article} \usepackage{caption} \usepackage{tikz-qtree} \usetikzlibrary{arrows.meta} \usepackage{subcaption}  \begin{document} \captionsetup[subfigure]{labelformat=empty}  \begin{figure}[ht] \centering \begin{subfigure}[b]{0.25\textwidth} \centering \begin{tikzpicture}[scale=0.25] \tikzstyle{every node}=[font=\tiny] \draw  (4,9) node(a) [circle, draw] {} (4,1) node(b) [circle, draw] {} (1,3) node(c) [circle, draw] {}; \draw [->,line width=0.8pt](a) to (b); \draw [->,line width=0.8pt](b) to (c);  \draw [->,line width=0.8pt](c) to (a); \draw (3,4) ellipse (6cm and 10cm);  \end{tikzpicture} \captionof{figure}{Q} \end{subfigure}% \begin{subfigure}[b]{0.25\textwidth} \centering  \begin{tikzpicture}[scale=0.25] \tikzstyle{every node}=[font=\tiny]  \draw  (1,1)   node(a) [circle, draw] {} (0.5,9)  node(b) [circle, draw] {} (4,8)  node(c) [circle, draw] {} (4,4)   node(d) [circle, draw] {}; \draw [->,line width=0.8pt](a) to (b); \draw [->,line width=0.8pt](b) to (c); \draw [->,line width=0.8pt](c) to (d);  \draw [->,line width=0.8pt](d) to (a); \draw (3,4) ellipse (6cm and 10cm);  \end{tikzpicture} \captionof{figure}{V-Q} \end{subfigure}% \begin{subfigure}[b]{0.25\textwidth} \centering  \begin{tikzpicture}[scale=0.25,remember picture] \tikzstyle{every node}=[font=\tiny]  \draw  (3,1)   node(x) [circle, draw] {} (0,5)  node(y) [circle, draw] {} (2,9)  node(z) [circle, draw] {}; \draw [->,line width=0.8pt](x) to (y); \draw [->,line width=0.8pt](y) to (z); \draw (3,4) ellipse (6cm and 10cm); \end{tikzpicture} \captionof{figure}{Q} \end{subfigure}% \begin{subfigure}[b]{0.25\textwidth} \centering  \begin{tikzpicture}[scale=0.25,remember picture] \tikzstyle{every node}=[font=\tiny]  \draw  (1,9)   node(a) [circle, draw] {} (6,7)  node(b) [circle, draw] {} (6,3)  node(c) [circle, draw] {} (1,1)   node(d) [circle, draw] {}; \draw [->,line width=0.8pt](a) to (b); \draw [->,line width=0.8pt](b) to (c); \draw [->,line width=0.8pt](c) to (d);  \draw (3,4) ellipse (6cm and 10cm); \end{tikzpicture} \captionof{figure}{V-Q} \end{subfigure}% \begin{tikzpicture}[overlay, remember picture] \draw[->,line width=0.8pt] (d) to (x); \draw[->,line width=0.8pt] (z) to (a); \end{tikzpicture} \caption{Figure X} \end{figure} \end{document}     The desired outcome is:


Handling CustomAdapter in Fragment in Android

This is Fragment  public class SoupFragment extends ListFragment{      public static int [] subImages={R.drawable.tiffin,R.drawable.tiffin,R.drawable.tiffin,R.drawable.tiffin,R.drawable.tiffin,R.drawable.tiffin,R.drawable.tiffin,R.drawable.tiffin,R.drawable.tiffin};     public static String [] subItmList={"Let Us C","c++","JAVA","Jsp","Microsoft .Net","Android","PHP","Jquery","JavaScript"};     CustomAdapter customAdp;      public SoupFragment() {         // Required empty public constructor     }      @Override     public void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);     }      @Override     public View onCreateView(LayoutInflater inflater, ViewGroup container,                              Bundle savedInstanceState) {         View view = inflater.inflate(R.layout.fragment_soup, container, false);         ListView lv = (ListView)view.findViewById(R.id.listView);              customAdp = new CustomAdapter(SoupFragment.this,subItmList,subImages);          //lv.setAdapter(new CustomAdapter(getActivity().getApplicationContext(),R.layout.list_row, subItmList,subImages));         lv.setAdapter(customAdp);         // Inflate the layout for this fragment         return view;     }  }   This is my CustomAdapter  public class CustomAdapter extends  BaseAdapter{     String [] result;     Context context;     int [] imageId;     private static LayoutInflater inflater=null;     public CustomAdapter(SoupFragment soupFrag, String[] prgmNameList, int[] prgmImages) {         // TODO Auto-generated constructor stub         result=prgmNameList;         imageId=prgmImages;         inflater = ( LayoutInflater )context.                 getSystemService(Context.LAYOUT_INFLATER_SERVICE);     }     @Override     public int getCount() {         // TODO Auto-generated method stub         return result.length;     }      @Override     public Object getItem(int position) {         // TODO Auto-generated method stub         return position;     }      @Override     public long getItemId(int position) {         // TODO Auto-generated method stub         return position;     }      public class Holder     {         TextView tv;         ImageView img;     }     @Override     public View getView(final int position, View convertView, ViewGroup parent) {         // TODO Auto-generated method stub         Holder holder=new Holder();         View rowView;         rowView = inflater.inflate(R.layout.list_row, null);         holder.tv=(TextView) rowView.findViewById(R.id.txt_category);         holder.img=(ImageView) rowView.findViewById(R.id.list_image);         holder.tv.setText(result[position]);         holder.img.setImageResource(imageId[position]);         rowView.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View v) {                 // TODO Auto-generated method stub                 Toast.makeText(context, "You Clicked "+result[position], Toast.LENGTH_LONG).show();             }         });         return rowView;     } }   My problem is while running its throwing a error      "Attempt to invoke virtual method 'java.lang.Object   android.content.Context.getSystemService(java.lang.String)' on a null   object reference"   . What is the exact error and How to solve it.Since am new to android I don't know how to solve this error.


Where would I find a Stack Exchange site related to digital logic and basic CPUs?

I've been looking for a Stack Exchange site for digital logic for a long time. Is there anywhere I can find one?   The Electronics Stack Exchange site seems a bit broad, and the retrocomputing Stack Exchange site is more concerned with other things like microprogramming and microprocessors. Are there any Stack Exchange sites tailored to logic gates?


I am getting this error on my website.      Strict warning: Creating default object from empty value in theme541_preprocess_html()   I found a patch  by Damien McKenna but I don't know how to apply the patch that fixes the error.


Show private beta accounts on the reputation graph

I noticed that private beta accounts are shown on FlairTM but not on the accounts tab or reputation graph of your SE user page.   explains why private beta accounts are shown on FlairTM but not on the accounts tab of your SE user page. The reason given for this is a good one:     However when it comes to flair, we show it off, as much reputation as you have everywhere all added up, because showing it causes no harm or navigational confusion.   But I think this argument isn't sound when it comes to the reputation graph: the reputation graph is showing off as much as is FlairTM.      In the private beta case, anyone not in the private beta couldn't use the link to go to your profile there...so showing it on the Accounts tab doesn't really make sense.   Also this isn't a sound argument when it comes to the reputation graph, since that doesn't include links to the accounts.  So, how about showing private beta accounts in the reputation graph?


Sequential numbers in a field using Python in the Field Calculator on a based on Sorted Column not FID/OID

This code below auto-increments based on the FID/OID in the attribute table. How can I auto-increment a column based on a sort of another column? I don't want it to follow the FID/OID. Please advise.  rec=0 def autoIncrement():  global rec  pStart = 1 #adjust start value, if req'd   pInterval = 1 #adjust interval value, if req'd  if (rec == 0):    rec = pStart   else:    rec = rec + pInterval   return rec


Let $A, B \in M_n$ be positive definite and let $α\in (0, 1)$.  Why does $αA^{−1} + (1 −α)B^{−1}\succeq (αA + (1 − α)B)^{−1}$?


Suppose $G$ is a group generated by elements $x$ and $y$ where $xy^2 = y^3x$ and $yx^3 = x^2y$ What can you prove about $G$?  I've just been playing around with the relations but I can't seem to get anywhere. It seems as if I'm going in circles. I don't know what to look for in terms of how the equations should look in order to give me an insight into the structure of the group.  So given a group presentation, are there any general strategies of what to look for in the relations (as in how to rearrange them) in order to obtain insight about the group?


Suppose we have two rationals, $\frac{a}b$ and $\frac{c}d$. I daresay anyone with some form of mathematical education would disagree that our result would be $\frac{a}b\times \frac{c}d=\frac{ac}{bd}$. That is, we multiply our numerators to get the result numerator and we multiply the denominator to get the result denominator. However, mathematically speaking, why do we do this?  If we consider the canonical definition of multiplication (i.e. repeated addition) in the case where we have two integers, say $3$ and $4$, we would come up with $(3\times 4) = (4 + 4 + 4)$. If this is so (and hopefully it is) what does it mean mathematically to add $\frac{c}d$ to itself $\frac{a}b$ times?  After doing a bit of research, all I've managed to come up with is this image.   Unfortunately, I don't see how this has anything to do with multiplication and seems to me like little more than a tool for teaching grade schoolers.  This also led me to think about how we multiply decimal numbers. For example, $(0.2) \times (0.4) = 0.08$ (i.e. $2\times 4$ with the decimal moved over a number of places equal to the number significant digits past the decimal).  My intuition tells me that the answer to one of these will provide the answer to the other.  Lastly, excuse me if this question seems silly, but I've pondered it quite a bit and can't come up with anything mathematically rigerous.    EDIT: I changed all literal values to be arbitrary values (as they should have been originally).  EDIT 2: Please note that I am PERFECTLY CAPABLE of multiplying fractions together in any way shape or form. This is NOT a post about how to multiply fractions. This post is about fundamentally understanding what it means to multiply a pair of fractions together.


Name for table with metric_name and metric_value columns

A typical database table might look something like this:  date-------geography---clicks---cost---conversions ___________________________________________________ 1/1/2010---Kansas------56-------12-----1   When transposed, it looks like this.  date-----geography---metric_name---metric_value ____________________________________________ 1/1/2010-Kansas------clicks--------56 1/1/2010-Kansas------cost----------12 1/1/2010-Kansas------conversions---1   The transposed table works better for some use cases where the number of metrics being collected changes frequently.  Is there a standard name for a table structured like that in the transposed table?


What's this new “get updates” box and why doesn't it have any functions?

I've seen this across nine different Stacks I follow, so I presume it's everywhere.  The last few days, I've been getting a little box in most (all?) questions with a bell icon inside and "get updates on questions and answers" -- but there's no active text in the box, the bell isn't active, and the only function that appears to be available is to close the box with the X in the upper right.  Is this a preview of an upcoming feature, a bug, or a bugged/failing feature that's supposed to be live? I've looked in other parts of the UI and don't see anything that lets me specifically follow a given question or answer. What's up with the bell box?  (referred here from boardgames.meta.stackexchange.com)


I have recently been typesetting a Quranic Mashaf using a combination of XeLaTeX, bidi, and polyglossia. I am generally pleased with the results so far, but after reviewing Idris Samawi Hamid's work in ConTEXT and the development of the Husayni font, I believe that's the direction I'd like to move in.  But I'm unclear if Husayni is complete yet? The last reference I could find is in the article  which dates back to 2012, and at that time the font was still under development. I wrote to Professor Idris  recently but haven't heard back yet.  Could anyone provide a "minimal working document" that illustrates the use of Husayni?  Lastly, as a computer programmer, and the idea of being able to program TeX in a language like Lua seems very appealing. However, I'm unclear how mature LuaTeX and the rest of the stack that Professor Idris uses actually is, or whether it's missing features that will soon frustrate me and make me want to go back to XeLaTeX? Any advice from someone who's been down that road would be greatly appreciated.


How do I create, dry or roast my own barley malt for beer?

I live close to a farm and I have access to fresh barley. How would I go forward to create barley malt, so I can brew for example a Pale Ale beer?


Search for a string in all tables, rows and columns of a DB

I am lost in a big database and I am not able to find where the data I get comes from. I was wondering if it is possible with SQL Server 2005 to search for a string in all tables, rows and columns of a database?  Does anybody has an idea if it is possible and how?


Why has ArrayList add E and remove Object

For ArrayList we have:  public boolean add(E e) {   but for remove we have:  public boolean remove(Object o) {   Why isn't it?:  public boolean remove(E e) {


Knot selection for cubic regression splines

I was wondering if anybody had experience in how to set the knot points when using cubic regression splines.  Some background: I have a response and predictor variable, and I want to determine the trend relationship between the two. To see what it looks like without making too many assumptions, I've fit a smoothing spline curve using the gam function in R. The trend is obviously not linear, but otherwise well-behaved: smooth, and not too wiggly.  I'd now like to model this trend using a simple, cubic regression spline (there are various practical issues with using the gam fit, or I'd just use that). Of course, using a regression spline requires the knots to be specified in advance. It's not too hard to do that with linear splines: I'd insert a knot where the slope of the smooth fit changes substantially, eg around local minima/maxima. However, cubic splines appear to be a more complicated story. Any guidance on where I should put the knots would be much appreciated.


Given $a,b >0$  $$ \lim_{n \to \infty} (a^n + b^n)^{\frac{1}{n}} = max\{a,b\}$$  I tried to start with taking a common but could reach the conclusion , please provide a solution.


Is it possible to start a program with "NT AUTHORITY\SYSTEM" account

This is an extension of the question on SO  If I see a process being run as "NT AUTHORITY\SYSTEM" account, can I start a program with "NT AUTHORITY\SYSTEM" credentials? Something like run as option.


Roots of Sum of Two Polynomials (with Known Roots)

I am writing a piece of software and I'm trying to avoid root finding polynomials for efficiency purposes. I have two polynomials with complex coefficients, where the roots of both polynomials are known. In fact, the internal representation I use just stores the complex roots and a complex scaling factor, not the polynomial coefficients themselves, although it's trivial to compute these. Essentially, my goal is to sum the two polynomials and express the result in the same internal representation which I use for the addends. The mathematical challenge here is then to find the roots of the sum (and the scaling factor, which is trivial). As I've mentioned, I would very much like to find a way to do this more efficiently than just finding the coefficients of the sum and computing the roots from there - although I will resort to this method as a last resort if what I'm asking for isn't possible.  EDIT: I am putting a bounty on this question, so I want to clarify my standard for a good answer. A good answer will either:   Explain or overview an algorithm which accomplishes my task, preferably with references to relevant papers with more information. Give an explanation for why the task is infeasible, possibly with references or suggestions for another angle of attack, but this is not necessary.


View App Store Download Progress (Downloading Maverick)

I'm downloading Mavericks on my Lion, but I don't know how to see the progress. When I go to the purchases tab on the app store, I see a blank button:


Moving files modified after a specific date

How do you move files modified after a specific date (say 7 days for example) to another directory? I clumsily tried sending the output of  ls -t | head -n XX   But learnt recently that it isn't a good idea to parse ls.


Question 10.3 Apostol Mathematical analysis

Consider question 10.3.  I am not able to prove 10.3. Attempt: f(x) $\geq$ 1 ae implies $\int_{I} f(x) \geq \int_{I} 1$ on I ae and $\int_{I} 1 $ is lenght of I so $\int_{I} f(x) $ is divergent. Also $s_n (x) \leq f$ so, $\int_{I} s_n(x) \leq \int_{I} f $. These are my thoughts . But how to show what is asked?


How is temperature defined, and measured?

In , temperatures of millions of degrees (Celsius, Kelvin, it doesn't really matter at that point) are mentioned. But, what does it mean exactly? What is measured, and how? As I more or less expected,  the  mentions that the official definition  (the one I was told in elementary school, either between freezing and boiling points of water for Celsius, or between absolute zero and triple point of water for Kelvin) doesn't really work above 1300K. So, questions:   For "earthly temperatures", how is temperature measured consistently? Why would linearity of the measuring device be assumed, in particular to extrapolate beyond the initial (0-100, or 0-273.16) range? What guarantees that two thermometers, working under different principles (say, mercury and electricity), that agree at 0C and 100C, will agree at 50C?  What do statements like "the temperature in the Sun's core is $1.5\times10^7K$ mean? Or, even, what do the "7000K" in the Earth's core mean?


Prove that if $g^2=e$ for all $g$ in $G$ then $G$ is Abelian.   This question is from group theory in Abstract Algebra and no matter how many times my lecturer teaches it for some reason I can't seem to crack it.   (Please note that $e$ in the question is the group's identity.)  Here's my attempt though...  First I understand Abelian means that if $g_1$ and $g_2$ are elements of a group $G$ then they are Abelian if $g_1g_2=g_2g_1$...  So, I begin by trying to play around with the elements of the group based on their definition...  $$(g_2g_1)^r=e$$  $$(g_2g_1g_2g_2^{-1})^r=e$$ $$(g_2g_1g_2g_2^{-1}g_2g_1g_2g_2^{-1}...g_2g_1g_2g_2^{-1})=e$$  I assume that the $g_2^{-1}$'s and the $g_2$'s cancel out so that we end up with something like,  $$g_2(g_1g_2)^rg_2^{-1}=e$$ $$g_2^{-1}g_2(g_1g_2)^r=g_2^{-1}g_2$$  Then ultimately...  $$g_1g_2=e$$  I figure this is the answer. But I'm not totally sure. I always feel like I do too much in the pursuit of an answer when there's a simpler way.  Reference: Fraleigh p. 49 Question 4.38 in A First Course in Abstract Algebra.


Adjusting GPS collected data to a polyline shapefile

I am collecting data from a GPS that is attached to a car. When I display this data in a map, the set of collected points are supposed to match with the street shapefile. However what I see in my map is points overlying places where the car can't go, Ex. Buildings, Parcels etc.   I understand this is a GPS accuracy issue. My question is: Is there any script or any way to spatially adjust this points to place them on top of the line so the collected data display on its right position in the map.


I am trying to write a class which accepts *args and so i need example of passing *args in init. i dont know how many parameters will be passed to *args and so not sure how will assign them.  class bank():      def __init__(self, *args ):         if args is not None:             for i in in argv:                 self.name=i                 #now if there are more argument how do i assign them???like i am using "account" and "name" in below function ("withdraw")                  #but i dont want to pass this in "balance", i want pass just "name"       def balance(self,name):         bal="select account from banktab where name = '%s'" %(self.name)  #       result=b.query(bal)         print (bal)      def withdraw(self,name,account):         wit="select account from banktab where name = '%s'" %(self.name)         print (self.name)         print (self.account)


\listoffigures chokes on inline math delimiters in captions. What is going on?

I'm working on my thesis, and I've realized that, any time I try to use \( \)-type inline delimiters in captions, that pdflatex breaks. While I can weasel out of actually \needing\ math in my captions, it's very inconvenient. I'm pretty perplexed.  Here's a (relatively) minimal example that breaks for me:  \documentclass{uafthesis}  \usepackage{amsmath} \usepackage{graphicx} % Graphics stuff  \begin{document}  \listoffigures  \begin{figure}[h] \centering \includegraphics[width=0.3\textwidth]{angle.png} \caption{\(\theta \)} \end{figure}   \end{document}   Here's a sample of the output:     ! LaTeX Error: Bad math environment delimiter.      See the LaTeX manual or LaTeX Companion for explanation.   Type  H   for immediate help.    ...                                                    l.1 ...k or  to continue without it.}}}{2}      ?    ! Extra }, or forgotten $.    ...r  to continue without it.}}      l.1 ...k or  to continue without it.}}}{2}      ?    Some things:   uafthesis is the unofficial official document class for my university. It has been written mostly by physics grad students by hacking at other document classes. My fork is . This only happens if I include amsmath. The minimal example and the resulting log file are gisted .   I'm defending tomorrow, and I have to turn in my thesis pretty soon, so hopefully we can figure this out within a day or so! If not, I understand, and thanks anyway.


Large negative intercept value in python statsmodels regression for a time-series

I am quite new to regression analysis and am using python's statsmodels.  My dataset is a time-series, which consists of values of a variable recorded for a long period, 1990 - 2020. I am interested to see whether the variation over time shows significantly increasing or decreasing trend or there is no trend. I am aware of other methods of trend analysis for time series. However, I  choose OLS method in python statsmodels to find the regression of my variable on time. After running the OLS model for the time series, I found the following: Problems:  Here I see the intercept value [const] (red circled) is very large negative and meaningless. It makes sense because I have data from the year 1990 onwards. Given the data set, going back to zero values of independent variable time, here, i. e. year = 0 may result in such a large negative value of the intercept.  Condition number is too large also.   Is there some way so that the intercept value would be meaningful?


What command is executed when shutdown from the graphical menu in 14.04?

I understand that clicking "shut down" from the menu that comes up on clicking the cogwheel triggers the following command to be executed:  dbus-send --system --print-reply --dest=org.freedesktop.Hal /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Shutdown   However, when I execute this command on a terminal, I get the following error:  Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Hal was not provided by any .service files   Is it because 14.04 uses some other service for shutting down, or am I doing something wrong?    Note: This question is in follow-up of:


What are the next steps we as a community should take?

It has been near three months now since the tipping point of the community. Many of us are still very not happy with SE.  The situation with Monica is at an impasse SE has told us:       "We aren't going to re-litigate the past." -         "We’ll be reaching out to her directly to apologize for the lack of process, privacy, and to discuss next steps." - .    Monica's  was over a month ago... in that post she says:     "I posted it here because I have exhausted all known private communication channels available to me short of legal proceedings. I would have preferred a private conversation, which I have asked for repeatedly. I remain open to that option." -         "we are not able to respond to anything regarding Monica's situation. We will not be answering any questions or comments about that going forward." -    There was a GoFundMe page set up by Monica for the impending legal battle and .  Other actions SE has taken include making a .     "Moving forward, we will release an official process around removing moderators." -    Which they did in the .    They completely rewrote the      "Going forward, we will be working with the community to overhaul how we gather input and feedback from our moderators and members of the community to make sure that your voices are heard and involved in the process, not just informed after decisions have been made." -    In the spirit of better communication SE started a new blog series  explaining how they make decisions and gather user input.  In short SE's actions have been spurned this year, here is a screen shot of the lowest voted question on meta as of this writing.   Don't forget about another  that would be in second on that list.  Meanwhile scores of ; hundreds of users have indicated support for Monica ; many letters to SE have been written; users have started to build  . The community is not happy  So the question is what do we (as the unhappy community) do now? What are our next steps? We don't want to just sit here and hope everything gets better, or do we? Is it better to wait (who knows how long) for some legal decision between Monica and SE? Or do we finally say enough is enough and walk away?  SE has been rather clear about their next steps and actions, what are our next steps and can we take them?    Sorry for the original title, it was never my intention to mislead anyone or impersonate the staff (not that I'd want to), it was simply a play on two famous titles from this saga.  I did not mean to simply rehash old hurt and bring all those feeling back again. My purpose in asking this is because it is a question I'm asking myself. A while after the mods of BSE went on strike, we had a talk in our mod room about when will it end, what do we do now etc. I still do not have a good answer. I know it is silly to think SE will "reinstate Monica" now (why I outlined the history above) so us users who took a stand against SE's firing of Monica - I have to figure out what are my next steps.


Compound/nested section numbers in ConTeXt: how to omit the top level? E.g. 1.2.1 --> 2.1

In the following MWE, titles have no displayed number, but sections (the second level) are still numbered 1.1, 1.2, etc, because the titles have an internal number.   I would like the sections to ignore the title above them, and to simply be numbered 1, 2, etc.  (Titles have an internal number so that they can be included in the Table of Contents. This code comes from my answer to . I don't trust that answer completely, by the way.)  \setuphead[title][     incrementnumber=yes, % keep an internal title counter+list     number=no]  % don't display the counter  \title First title        % no number displayed \section A section        % 1.1, should be 1 \subsection A subsection  % 1.1.1, should be 1.1   Some setups take the option prefixsegments=chapter:section — , for example, and . \setupheads, however, does not accept it, and I don't know whether sections numbers are managed as enumerations or as numberings or something else.


is it possible to create a costum shape with tikz node like in figure without using pgf?     It is like this (but now I have to include the third block):


Ubuntu 18.04 Detects 2 monitors when I only have one. My monitor model is LG LG22MP68VQ-P. HDMI supported. I have to rearrange the settings to get the screen. Can anyone help me out?


Windows Update: “Some settings are Managed by your system administrator”

I want to turn off Windows Update on my machine (Windows 7 SP1 x64 Ultimate). However, despite being logged in as an admin, Windows update complains " “Some settings are Managed by your system administrator". How can turn off Windows update?


Can one of Newton's Laws of motion be derived from other Newton's Laws of motion?

Can one derive Newton's  second and third laws from the first law or   first and third laws from the second law or  first and second  laws from the third  law  I think Newton's laws of motions are independent to each other. They can not be derived from one another. Please share the idea.


Nginx location blocks don't apply to .php files inside them?

So to help prevent brute force attacks against my phpmyadmin install I've configured nginx to require HTTP Basic Auth (extra username and password) and then the requests need to come from a whitelisted IP Address. However the IP Address whitelist works fine if I run  however without adding the extra .php block I could load  without my IP being whitelisted. This issue doesn't affect the HTTP Basic Auth. Is there a reason this happens? Anyway to get around having to add extra .php blocks? A copy of the config area for phpmyadmin is below.  # Setup and secure phpMyAdmin location /phpmyadmin/ {   allow 1.2.3.4;   deny all;   auth_basic "phpMyAdmin - HTTP Basic Login";       auth_basic_user_file /etc/nginx/pma_pass;     location ~ \.php$ {     include snippets/fastcgi-php.conf;             fastcgi_pass unix:/run/php/php7.0-fpm.sock;     allow 1.2.3.4;     deny all;     } }


How to simplify $\frac{\sqrt{4+h}-2}{h}$

The following expression:  $$\frac{\sqrt{4+h}-2}{h}$$  should be simplified to:  $$\frac{1}{\sqrt{4+h}+2}$$  (even if I don't agree that this second is more simple than the first).  The problem is that I have no idea of the first step to simplify that.. any help?