nHow can I use GROUP_CONCAT() in MSSQL and sort data based on the entire row?

I have a bit of an issue. I have a dataset with around 6000 records stored in a MSSQL 2016 database, where I need to concatenate each column, sorted on row basis and grouped by an ID.  It is no problem to sort the data within the column itself, but the position of the concatenated values is the key in the system that needs the data. So, if I merge four rows with the same ID, each row value must be in the same position throughout the whole resultset row.  To make it even more messy, I must be able to apply some logic to determine which row should be in position one.  If I use the the sort functionality in GROUP_CONCAT_DS (I'm using a semicolon delimiter), it sorts on the column values, which make the index position of each merge inconsistent related to the rows that holds the data.  Example data:  id  col1  col2 -------------------- 1  foo    bar 1  lorem  ipsum 2  hi     cowboy   Expected output:  id, concat_col1, concat_col2 ---------------------------- 1  foo;lorem     bar;ipsum 2  hi            cowboy   Absolutely unacceptable output:  id  concat_col1  concat_col2 ---------------------------- 1   bar;foo      lorem;ipsum 2   hi           cowboy   In pseudo-SQL, this is a simplified example of what I want to achieve:  SELECT     [id]     ,dbo.GROUP_CONCAT_D([col1], ';') AS [concat_col1]     ,dbo.GROUP_CONCAT_D([col2], ';') AS [concat_col2]   FROM [hrm].[vEmploymentsPositions]   GROUP BY [id]   ORDER BY [id] asc, [col1] desc, [col2] asc   ... But for loical reason the sort doesn't work that way.  How can I approach this issue and make a robust solution that fit our needs?


Why isn't XeTeX embraced as the default TeX engine?

I'd like to know why XeTeX hasn't (yet?) replaced other engines that lack features we take as granted in modern computing, like support for Unicode and modern font formats.  Is there any important downside in using XeTeX? Why would I want to use, say, pdfTeX instead?  EDIT: I wasn't asking for an overview on all the engines out there, but rather for precise reasons for why I wouldn't want to use XeTeX, since from my European perspective Unicode support is kind of a big deal. I work on a daily basis with documents in German, Italian and Czech, languages where non-ASCII characters are pretty common. I gave up on LaTeX for years before finding out that with XeTeX I didn't have to painfully remember to hardcode every ß, ü or š I needed to use (which were a lot).  Also, as a type-lover I like to experiment with typefaces in my documents, so easy support for OTF and TTF fonts is a very nice thing to have in my opinion, a feeling I expected others to share.  Not having such features is a deal-breaker for me, and was genuinely looking for reasons on why would someone choose to use an engine other than XeTeX.


How do I install a custom font on an html site?   For example, I was working on a wedding website, and I was finding a lot of nice fonts for that subject, but I can't find the right way to add that font to the server, or to include that font with CSS?


Do not prompt for confirmation to delete a comment in the moderator dashboard

As a moderator, I can delete any comment by clicking on the little cross that appears when hovering on the comment. There is no confirmation, but an undelete button appears, which is a nice user interface.  However, this only works from the normal question view, but not from the question dashboard. On the moderator dashboard (in the expanded post view), clicking on the cross brings up a confirmation dialog. This makes comment cleanup harder from the moderator dashboard, which somewhat defeats the purpose.  I suspect that the moderator dashboard wasn't updated when the undelete functionality was added, making confirmation obsolete. Please remove comment deletion confirmation in the moderator dashboard.


I'm trying to texture a capacitor and my top part has a separate material slot. When I assign a new material, the old one is still somehow showing in form of triangles. Why is that? There's nothing in the UV map that would do it.


I installed Universal Media Server 3.6 on ubuntu 14.04 desktop. What I want to do is, to launch it during startup. How to add this into startup? Any suggestions? Thanks in advance.


Exception in thread "main" java.lang.NullPointerException(

I have no problem compiling however when i execute the code i get this error :   Exception in thread "main" java.lang.NullPointerException at Stock.enregistrer(Stock.java:25) at TestStock.main(TestStock.java:13)    I am learning java and i am stucked with this error for a while now . Thanks for the help.  public class Stock {    Stock() {   }    Produit [] pdt ;    Fournisseur [] four;   int [] qte ;    int t = 0;    void enregistrer(Produit p , Fournisseur f , int q) {     pdt[t] = p ;     four[t] = f ;     qte[t] = q ;     t++ ;   }    void afficher() {     for (int i = 0 ; i < pdt.length ; i++) {       System.out.println("Le produit "+pdt[i].getNomP()+"à pour fournisseur : "+four[i].getNomEnt()+" et la quantité est de "+qte[i]);     }   }  }


Is there a pdf viewer capable of opening multiple documents in the same window?

I would like to open all chapters of my PDF ebooks in the same window but neither evince nor okular seems to be capable of doing that (at least not out-of-the-box).  Is there a way to work this out?


Probability of one normdist being greater than another

I have two independant normally distributed random variables.  X ~ N(657, 3) Y ~ N(661, 2)  P(x > y) = ?   How do I calculate the probability of X being greater than Y? Using R for simulating, I am getting values around 0.13. How to get the exact ("theoretical") value?


Action Reaction when I pushing a trolley?

I tried to explain how those force work but I can hardly figure it out. I exerted a force on the trolley and there will be a force on trolley on me as well. This is the newton's third law. But why the trolley will move? Where's the force come from


Is recordViewForm supported ONLY with hasrecordId?

I am using recordViewForm (in API version 43) because I have to use lightning:outputField tags inside for its automated formatting and features like mailTo, tel:, map on address, etc. (and I am pulling in the fields to be displayed dynamically from Custom Metadata type so I can not hardcode the field names and its types). I am NOT implementing force:hasrecordId interface as this component is added only in Custom Lightning component.  When I pass the record Id to recordViewForm, I see following error. For testing, I displayed record id just before recordViewForm tag so I am sure recordId is NOT null.    Now if I use lightning Data Service to get recordId and pass it to recordViewForm, I do not see above error however, none of the fields are displayed. I am stuck here due to dynamic nature of the field list that I want to display. Otherwise I could have simply hardcoded the field names according to their types.  Anybody else facing this issue? OR any help is appreciated?


The ability to convert your Stack Overflow's reputation into money

Is it possible to convert my Stack Overflow reputation into dollars (or better in euro)? It would be nice to see a service which allows it (not to say it will encourage people to spend their time more productively).


Ubuntu, ElementaryOS and Windows Grub Broken

The other day, I decided that, in addition to Ubuntu, I'd like to try ElementaryOS. So, I made another partition, and installed on that partition (sda5). In the installer, there was a box that said to choose the bootloader installation drive. So, I picked sda6 (my Ubuntu partition) so that it would merge with my existing grub. Now, I had no idea if this would work, but it seemed like it would make sense.  Anyways, it didn't work, and that's why I'm here. My computer default boots to Windows (that is, if I don't do anything when I press the power button, it'll boot to Windows). I want to keep this functionality. Normally, I would go and select the boot device, and then grub would come up and I could boot Ubuntu. So, I want to also be able to select ElementaryOS instead of Ubuntu. However, when I select the boot device that used to give me grub, it says error: file '/boot/grub/i386-pc/normal.mod' not found and shows me the grub rescue prompt (an image is below). Now, I figured out how to boot back into ubuntu. I have to type this:  set root=(hd0,gpt6) set prefix=(hd0,gpt6)/boot/grub insmod normal normal   and it takes me back to my grub screen where I can pick Ubuntu. How can I make it so that I don't have to go through the grub rescue prompt, and put ElementaryOS on the grub menu. Furthermore, I DO NOT want grub to replace the default bootloader that boots Windows if I don't press anything.  Thanks, and sorry if this is badly explained. I'll be happy to clarify. The image of the grub prompt is below:    EDIT: Link to boot-repair summary report


What does the sudo -i command do and in which situations would it be used. read it using the man sudo command but i'm looking for a more diluted discription to help me understand better.


Screen Freeze - Asus Desktop and Ubuntu, 12.04

I bought an Asus desktop with an i5.  I switched from Windows 8 to Linux 12.04.  However, any time I allow the computer to "sleep", the screen freezes, and I have to shut the computer off in order to get the screen to re-appear.    There are other small issues that relate to the screen, too. For instance, on occasion, the mouse cursor will disappear. I will have to go to the top right and click on "suspend", which puts the computer off the internet, then press a key to come back--and I will be able to see the mouse cursor again.  If anyone else has worked through this issue and can provide information it is appreciated.  I am not a computer guy and I am hoping there is a semi-simple fix.


Why weren't everyone on Haruun Kal made a Jedi?

During the Galactic Republic, every known Force-sensitive is brought into the Jedi Order from infancy. Mace Windu's homeworld, , is notable for having a native population of purely Force-sensitives.  It seems not everyone was made into a Jedi. If that's indeed the case, why wasn't everyone brought into the Jedi Order from infancy? Why, as it appears to be the case, are only some infants, such as Mace Windu, taken?


I have general questions about the PDF output format for a novel (text only), written using LaTex/LuaTex/Komascript(book):  Is it possible to obtain a PDF/A or PDF/X format? Or do I need to add code to the style file (the preamble) to obtain this format?  Many thanks


I have a problem in this method(it is not complete but the problem is on those lines). The thing is that I have a matrix "x", but after going through the absMatriz function, it changes its values. I would like to know how to keep my x matrix, I have tried saving it in another matrix "www" but it does not work.    public Matriz[] problema(Matriz x){          Matriz www=new Matriz(x.m,x.n); //the parameters are the dimensions of the matrix          www= x;          double mm= max(absMatriz(x));          return www;     }


TreeMap manipulation in java, I get a NullPointer exception

this is the first time I ask question here. I'm working on an rather small project that implement web chat using jsp and servlet. But I encounter a problem. I set an attribute in servletcontext using this   if(sc.getAttribute("queue")==null)  //sc is servletcontext     {           sc.setAttribute("queue", new       TreeMap<String,LinkedList<TreeMap<String,String>>>());     }   then I create a map in the attribute by this  if(sn.getAttribute(sn.getId())==null) //sn is a HttpSession object     {         //store nickname         sn.setAttribute(sn.getId(),request.getParameter("nickname"));          //store the new entry in Context         sc.setAttribute("queue",((TreeMap<String,LinkedList<TreeMap<String,String>>>)sc.getAttribute("queue")).put(sn.getId(),new LinkedList<TreeMap<String,String>>()));     }   I know the code isn't so elegant. It's my first time to really work on a project. The important thing now is that it can work.  All above is in my servlet file. Next I want to call a function which has the format as this “public static TreeMap>> messagePut(ServletContext sc)”     public static TreeMap>> messagePut(ServletContext sc)   Sorry there is some problem in the dispaly of the TreeMap, please see the concrete code above.  The discreet implementation is   public static TreeMap<String,LinkedList<TreeMap<String,String>>> messagePut(ServletContext sc) {     //obtain message queue             TreeMap<String, LinkedList<TreeMap<String,String>>> temp=(TreeMap<String, LinkedList<TreeMap<String, String>>>)(sc.getAttribute("queue"));              //iterate             Set<String> keset=temp.keySet();             Iterator<String> it=keset.iterator();                TreeMap<String,LinkedList<TreeMap<String,String>>> mm=((TreeMap<String,LinkedList<TreeMap<String,String>>>)sc.getAttribute("queue"));              //object store stores a reproduce of the whole message queue             TreeMap<String,LinkedList<TreeMap<String,String>>> store=(TreeMap<String,LinkedList<TreeMap<String,String>>>)sc.getAttribute("queue");             while(it.hasNext())             {                  //put the message into queue                 //temp2 is user nickname                 String temp2=(String)it.next();                 if(temp2.equals(name))                     continue;                 else                 {                     TreeMap<String,String> c2=new TreeMap<String,String>();                     c2.put(name,message);                     LinkedList<TreeMap<String,String>> c3=store.get(temp2);                     c3.add(c2);                     store.put(temp2,c3);                 }              }              return store; }   I got a NullPointer exception in the above, this statement:  Set<String> keset=temp.keySet();   throw a nullpointer exception, I don't know why. But I have some doubt about this statement :  sc.setAttribute("queue",((TreeMap<String,LinkedList<TreeMap<String,String>>>)sc.getAttribute("queue")).put(sn.getId(),new LinkedList<TreeMap<String,String>>()));   TreeMap>> is TreeMap<String,LinkedList<TreeMap<String,String>>>. I don't know whether this statement is correct.


I understand that linear regression is finding the "best fitting line" and Pearson's r is measuring correlation between two variables, but I can't visualize this difference.  I had a project where I was finding if certain brain cancers were correlated to age, or sex for example, and I was advised to use linear regression for this, but from the definition above, in my head it sounds like Pearson's r was what I was looking for?  Can someone clarify this difference?


What does the dot product of two vectors represent? Cauchy Schwarz theorum related.

Intuitively, what exactly is the dot product of two vectors? I am trying to understand the big picture of the Cauchy Schwarz theory. So the dot product of two vectors is less than or equal to the product of the lengths of two vectors... but what does the dot product of two vectors represent anyway?


Im trying this code for a pretty chapter title: (), however I cannot get the chapter title on the line instead of next to it. It should be on the right of the page, as in the link. Can someone please help me :)  \titleformat{\chapter}[display]   {\normalfont\scshape\Huge}   {\hspace*{-70pt}\thechapter.~}   {-15pt}   {\hspace*{-110pt}\rule{\dimexpr\textwidth+80pt\relax}{3pt}\Huge} \titleformat{name=\chapter,numberless}[display]   {\normalfont\scshape\Huge}   {\hspace*{-70pt}}   {-15pt}   {\hspace*{-110pt}\rule{\dimexpr\textwidth+80pt\relax}{3pt}\Huge} \titlespacing*{\chapter}{0pt}{0pt}{30pt}


Allow [tag:tag-name] syntax to link to any site

The tag  and meta-tag  syntax generate much nicer looking results than merely surrounding your tag with [square brackets].    However, they only work when you're talking about the site you're on.  On Area51, in Chat, and on Meta sites, this is frequently not the case, leading to attempts at syntax like [[tag:failure]](https://superuser.com/questions/tagged/failure), which produces:    Hmm, must be some subtle syntax thing:   : [tag:failure](https://superuser.com/questions/tagged/failure) []: [[tag:failure](https://superuser.com/questions/tagged/failure)] : [tag:[failure]((https://superuser.com/questions/tagged/failure))] : [tag:failure] : [tag:failure][1] \n\n [1]: https://superuser.com/questions/tagged/failure : [more text is a [tag:failure] too](https://superuser.com/questions/tagged/failure)   I give up!  How can I create a link to a tag on another site with tag markdown?


I have this setup where I have computer with ssh and a display where I have a user logged in to terminal. What I want to do is send commands like I was using that local session with keyboard. I tried to echo to /dev/tty1 but it just shows what I typed instead executing it. Which makes sense. The system only has bash so no GUI or anything like that.


Are there bound states from light-light or gravity-gravity scattering in general relativity?

Is the formation of bound states from light-light scattering or from the scattering of gravitational waves possible according to general relativity? If it's possible, are there papers out there about it? And are some of those bound states black hole-like? I'm not talking about realistic light, like a world without fermions or other things that aren't gravity. Also, it's a world without quantum mechanics.


How to handle stacked controls in .NET Winforms?

I have a form that will multiple Panel controls stacked on top of each other, each one being shown/hidden based on other selected options on the form. This has been a real pain to manage in the form designer as the panels don't behave like a full TabControl. However, it doesn't look like you can use a TabControl without the tabs. What is the best way to handle this? Is there a control like the TabControl, but without the tabs?


What is the difference between balls in Test and ODI Cricket?

In Test Cricket, the red colored ball is used while in ODI and T20I, the white colored ball is used. What is the difference between these balls(apart from color)? Why are different balls used in different formats?  Ball used in Test Cricket      Ball used in ODI and T20I Cricket


Noncommutative failure of IBN: $\,R^n\cong R^m \Rightarrow n - m,$ ring $R$ with maximal ideal $I$ such that $R/I$ is not a division ring?

We're all aware of the theorem that says for a commutative ring $R$ with $1$, $I$ is maximal iff $R/I$ is a field. I'm currently working on a problem where I was asked to show commutative rings have IBN, and I used a lemma saying if $\psi:R\to T$ was a ring homomorphism and $R$ did not have IBN, then $T$ does not have IBN. I used this by sending $R$ to $R/I$, where $I$ is maximal, so $R/I$ is a field and must have IBN, so $R$ has IBN.   This made me wonder why this wouldn't work for any ring $R$. If I could just choose any maximal left ideal $I$ then send it to $R/I$, if $R/I$ is a division ring then I must have $R$ having IBN for the same reason. Therefore there must be a case where $I$ is a maximal ideal but $R/I$ is not a division ring. Does anybody know any examples? Is a "maximal ideal" even a well defined notion if $R$ is not commutative?


Sometimes you can see Pokémon "nearby" your location, which is identified by footprint icons depicting the distance that particular Pokémon is from your current location:    There are 3 "distances"; 1, 2 or 3 footprints.  How far do each of these represent?


I observed this beautiful insect near a forest in northern Switzerland. What is it?


What are the criteria for posts to be included in "Top network posts" on new profile page?

From the name of it, certainly it looks for posts with the highest scores. However, recently I found that some of the posts are not listed. Example: My  (not sure if it's that good, just because hot network question) was included in some point, but then it's not listed on . I guess it's because the question was closed, e.g as a dupe? (I don't have any hidden communities on the settings)    However, it's listed normally on .    Also, what other criteria that makes the posts to be included/excluded in "Top network posts"?


How can I associate a downvote with an already existing comment?

I am not sure whether this is a help request or a feature request, so I'm (at first) asking for help. Often, when I downvote a question/answer and a message "Please consider adding a comment if you think this post can be improved." appears, I see there is already a comment explains why this question/answer is not good. What should I do then? If I will ignore the pop-up, the user will not be able to understand the reason for my downvote. But duplicating the comment is not acceptable, of course. The best I can think of is upvoting the comment, but this does not clearly explains the correlation between the two.


I'm trying to use the Noto font for my entire document. Using mathspec this works fine for text and math fonts. However, using a comma in math mode produces a serif font-like comma instead of the one provided by the Noto font family. How can I change that? Here's a minimal example:  \documentclass[a4paper,12pt]{scrartcl} \usepackage{amsmath} \usepackage{mathspec} \setmathrm{NotoSans-SemiCondensedLight} \setmathfont(Latin){NotoSans-SemiCondensedLightItalic} \setmathfont(Digits){NotoSans-SemiCondensedLight} \setmainfont{NotoSans-SemiCondensedLight} \begin{document} \noindent 1,234\\ $1{,}234$ \end{document}   which yields    EDIT:  Using the proposed lines  \makeatletter \DeclareMathSymbol{,}{\mathpunct}{\eu@LatinLowercase@symfont}{`,} \makeatother   yields a somewhat similar, but not identical comma symbol compared to the main and math fonts (see below). Is there a way to use the exact same comma from the same font?


Share desktop monitor/keyboard/mouse with laptop

I have a desktop PC running Windows 7 setup on a traditional desk. From time to time, I would like to plug in a Windows 7 laptop and share the keyboard and mouse, (monitor - I am ok with using the laptop monitor).  What is the easiest way to achieve this? Using a KVM switch? Without needing to reboot either machine?   Thanks


How to prove two ECDSA public keys on two different curves are generated from the same private key

I wonder if I provide someone with two public keys from different elliptic curves, is there any way to prove that these two public keys are generated from the same private key without revealing the private key itself?  For example, I have a private key (which is a large random 256-bit number) and I generate one public key on the secp256r1 curve and another public key on the secp256k1 curve, how do I provide the two keys to a third party and prove to them that these two public keys are generated from the same private key? Is there some kind of zero-knowledge proof or some algorithm that can accomplish that? Thanks.


Is there any built-in software or terminal method allowing me to view the hardware profiles on my system? Windows equivalent of such a feature would be Device Manager.


I am trying to exit my main function with a certain exit number, but it always exits with 0. For example, the code:  printf("command exited with error: %i\n", commandExitError); if(commandExitError > 0)   exit(commandExitError);  if(openError > 0)   exit(openError); printf("I shouldn't see this if there was an error"); return 0;   has the strange behavior that if commandExitError is 0, but openError is 1, then it exits with error 1. However, if commandExitError is greater than zero, it still exits with 0! For example, this is some output with commandExitError > 0:     command exited with error: 512   Note that we never reached the print statement "I shouldn't see this...." Then, getting the exit status of my program, echo $?     0   We see that my program still exits with 0 although it should clearly exit with 512.


Are users notified when their questions are reopened?

Do users get notified when their question is reopened? I know there are no notifications , and that makes sense because 1) you assume the user is paying attention to their open, unanswered question, and they'll probably notice it's been put on hold and 2) it follows with the SE policy of (in general) not sending notifications for negative events.  However a reopening is a good thing, and once a question is closed it becomes less likely that the OP will be coming back to check on it often (so they might not notice the reopening otherwise). If there are not reopen notifications, why not? Or can we add them?


Png image plane transparency when used as object in hair particle not working with cycles

I wanted to make a grassland using a brush stroke from Photoshop as the leaves(object) for the a particle hair simulation. Even though, when i render just that image aloe, it keeps its transparency but after rendering the whole particles simulation together, a lot of artifact appear. just in cycles. not in Eeve. Thanks alor Here is the file and some images


Convergence of the sequence $a_n=\frac{x_1+x_2+...+x_n}{n}$ when $(x_n)_n$ is convergent

(i) Assuming that $(x_n)_n$ converges, investigate whether $(a_n)_n$ converges. (ii)Assuming that $(a_n)_n$ converges, investigate whether $(x_n)_n$ converges.  For (ii): If we choose $x_n=(-1)^n$, then $(a_n)_n$ converges as $(x_n)_n$ doesn't converge. And if we choose $x_n=1$, then $(a_n)_n$ converges as $(x_n)_n$ converges. So for part (ii), $(x_n)_n$ can both converge or not converge assuming that $(a_n)_n$ converges. For (i): I believe $(a_n)_n$ should be always converging, but I couldn't prove it, any help? Thanks for your effort and time in advance. Edit: I think the following question says that $(x_n)_n$ always converges when $(a_n)_n$ converges. Is my reasoning in part (ii) wrong?


Another method for limit of $[e-(1+x)^{1/x}]/x$ as $x$ approaches zero

I have solved this limit:  $\lim_{x \rightarrow 0} \frac{e-(1+x)^{\frac{1}{x}}}{x}$  using L'Hopital's rule and series expansion. Do you have other method for solving it?


Thanks vs Thank you vs Thank you so much?

What is the correct way to say "thanks" to anyone in any situation?  Does it make any difference depending on context or situation?


Why do some devices have 200V on the case?

I recently got a desktop LED lamp, and I feel a "strange" slight vibration when touching the metal case. I found that other devices also have high voltage on their case.  What is the reason/trade-off to design the PSU that way? Are "real" transformers inefficient? Even if it's harmless, why is the high voltage connected to the metal case, and not just through insulated wires?    When I turn the lamp on, the setup in the picture measures the power line (220V) 214Vpp (59Vrms). When I also touch the metal case, the voltage drops down to around 30V.  AC adaptor:


How to know whether or not my Q9550 has TDP of 65W?

Intel has two version of the Q9550 cpu, one of them is a 95W and the other is a 65W. But I didn't find anywhere on how to tell whether you have one or the other.  Is there anywhere to check for that?  (I use Arch Linux, if that matters.)


– Schematic created using   The diagram above, the voltage sources are equal and wired parallel, they would increase the current(2x) flow to the load(R), but what about this case:          Are the two voltage sources in series now?


What will be the value of AR and MA order?

I want to determine the value of p and q of ARIMA model from the ACF and PACF plot given bellow. What will be the order and why?


What is the iOS alternative to a radio button?

There is a radio button in android and WEB but what is the best alternative in iOS? And please don't say segmented control becuase it's not working in my case.  The case is a list of items 3-6 which have 1-3 words of text each and it is required to pick 1.


Move a 2D point to a target (first accelerate towards the target, then decelerate)

I have a point entity that I would like to move to a target point (in 2D).  I think I would like it to accelerate away from its current position (the point could already have a velocity), to some maximum velocity, and decelerate as it approaches the target, eventually coming to a stop on the target.  I think both the acceleration and deceleration should have constant magnitudes, but given that the entity can have a velocity, which may not be in the same direction as the target, the direction of the acceleration/deceleration could be different every frame.  I am not coding in any particular language or framework yet, and just want to know if this is easy/possible. Am I describing something that is quite common (like a targeted missile that stops at the target/an AI controlled space ship in a game)? If it is hard, is there another way I can achieve the same kind of motion?


Reputation detail display on specific day

After I click the  tab on my activity page, I can see graph like below:    Here I find out that I got 50 rep on 'May 8', then I click the banner to see detail, it turns out that the detail is about the reputation I got on 'May 7', because in the graph, there is 50 rep gained.


Can someone explain how Kat experienced this part of Tenet from her perspective?

In Tenet, we see Kat holds a gun to Sator and he beats her to the floor. After that the whole reverse car chase ensues. At the end of this all, reverse-Kat is wheeled away on a stretcher. Can someone list down Kat's experience as she went from being on the floor to being held hostage in the SUV to being shot and finally on the stretcher from the perspective of Kat (including reversals that she might have gone through)? Edit: We are shown that while Sator is inverted, Kat is not (during the car chase). I'm not looking for any off-screen opinion based information. I'm trying to understand those sequences from Kat's perspective because I feel it will help make sense.


the following packages have unmet dependencies(KDE)

I'm new to Ubuntu but I failed to solve this error. I had searched for this problem but I didn't find the perfect solution. Please help me. I'm finding this error. Please give me a perfect solution because this error doesn't let me to install any software. The error is:  the following packages have unmet dependencies:  software-properties-kde: Depends: python3 (>= 3.2.3-3~) but 3.3.1-0ubuntu1 is to be installed                          Depends: python3-pyqt4 but it is not going to be installed"


How is the Top Answerers Score Calculated?

I am trying to figure out how the top answerers score is calculated for a given tag. I saw the post below, but when I checked my own score It has a value of 2, but I have 3 Up Votes and No Down Votes. Are the scores only updated periodically?


I have 2 languages in my site and a search view for property search and I am using the Search API module.  When I try to search in English (default language), the search is working. But when I try to search in the another language the search is not working.  I am searching by tittle.  Any suggestions?


Please help me with iPhone updating problems I've been having

My iPhone 4 is at iOS 7. I try to update it but it says the phone is up to date. How do I change that? I want the newest iOS version.


How to show via inductive proof (and without the use of the binomial theorem) that $ {n\choose k} \in \mathbb{N} $?

How do I show via inductive proof (and without the use of the binomial theorem) that $$ {n\choose k} \in {\mathbb{N}} $$ $$\text{ for  all }\: n,k \in \mathbb{N}_0\: \text{ with }\: n≥k .$$ For my induction proof, I would show that$$  {n\choose k-1}+{n\choose k} = {n+1 \choose k}   $$ is true. However, how do I start the induction correctly with the base cases and the hypothesis? As far as I know, I cannot simply assume $$ {n\choose k-1}+{n\choose k}, $$  so how do I come to this derivation?


I'm trying to redirect  to  and it will not work. Here's the code I'm using in my .htaccess. What am I doing wrong?  Redirect forum/index.php http://example.com/forum   I've also tried without the forum/ part too.


I have noticed in cycles I render faster with .tga image textures than .png image textures. Is there a loss in render quality because of using targas instead of pngs? Which should I use?


How to remove Firefox's "inspect element" button?

This is driving me crazy! When FF 12 came out, Firefox's own 'Inspect Element' button on the right-click menu took the place of there the Firebug 'Inspect Element' button used to be.  As I've been doing web development in Firefox forever, my muscle memory still clicks there when I want to use Firebug.    Is there any way to remove the Firefox internal 'Inspect Element' and replace the button on the menu with Firebug's, returning it to its original position (marked NO in the screenshot)?


I would like to express "an interpolation scheme which is not based on grids". But among the following options:  "non grid based", "non-grid based", "non grid-based" or "non-grid-based"  I am not sure which one I should use. I have tried google and  and found no answer. I neither found any straightforward guide or rule from some related posts (eg. ,,) on this site. Which one is better for a native speaker?    Edits:    I am not sure about the rule when there are multiple adjectives with some hierarchy among them. I guess it should be "a non grid-based interpolation".(?)


Visa application for a multidestination trip

I am an Indian citizen and I have planned a multidestination trip INDIA—-> Manila (4days)—-> Japan(10days)—-> Bangkok 3days—> India   My question is which country visa should I first apply for? Thank you!!!


Let $p(n)$ be the number of partitions of $n$.  Prove that growth rate of $p(n)$ is superpolynomial, meaning that for every given $k$ there is $p(n)= \omega (n^k)$.


Interplanetary sci-fi book featuring a ring with an illegal operating system

I'm looking to identify a book that I read a long time ago and have not been able to remember.  It's interplanetary sci-fi. There is a lady with a ring, and the ring contains an illegal OS called Prime. Can't remember if she is the protagonist.  There is a scene where she kills a soldier by using the ring to override his armor neck port and let the blood out. Also there are soldiers who investigate a swamp and have 360 degrees eye helmets, very advanced tech.  Only other thing I can remember is that gamma ray sterilization of planets is a thing too.


Rear Cassette worn + needs replacing - what other components to replace?

I have picked up a bike (Specialized Allez) recently that has a very worn cassette from not replacing the chain for an extended period of time. Therefore am looking to change it. I was wondering what other components need to be replaced at the same time due to chain extension causing wear? My current list is:   Cassette Chain Chainring   Do I also need to replace the Rear Derailleur? And is the chainring required to be changed as well?


What is the purpose of closing a question?

Having been a member of Stack Overflow for a year, I have participated in reviewing close votes and flagging questions if I found any duplicates. However, I don't understand the purpose of closing a question.  As per myself, the main purpose is keeping the site clean and make a better place.     I still see closed questions on the site that are a year old.  When will these questions be deleted?   Also, when a question/answer does get deleted, it is still visible to 10k users, even if it is deleted by the owner.   Every day I participate in reviewing close votes, but the question arises why we are preserving these questions and answers even after they are closed.


replace ü/ ö/ ä / spaces and brackets in Attribute Table

I've got a Polygon Feature Class of communities in switzerland. Unfortunately, the names in the attribute Field "NAME" include spaces, brackets and ä/ ö/ ü characters. For further processing, i need to remove the spaces and brackets and to replace ä --> ae, ö --> oe, ü --> ue. I've tried to do this using update cursor but i don't get it to work:  with arcpy.da.UpdateCursor("AVR_GEM","NAME") as cursor:     for row in cursor:         row = str(row).replace("ä","ae")         row = str(row).replace("ö","oe")         row = str(row).replace("ü","oe")         row = str(row).replace(" ","")         row = str(row).replace("(","")         cursor.updateRow(row)  Can anyone show me a quick way to get the job done?


We have a Buffalo AirStation WHR-HP-G300N as the main router. We also have an Asus RT-N53 router located one floor higher. I've set the Asus router to act as a repeater for the Buffalo. There is a problem with it though. My table isn't taking any benefit due to the repeater router. My phone gets a great signal though. Well, it gets it notwithstanding the extra router.   The Buffalo router is running DD-WRT and Asus is running on stock firmware.   The Asus router doesn't seem to be able to act only as a repeater device since it has to broadcast it's own SSID for both 2.4 GHz and 5 GHz frequencies. By the way, the tablet gets an excellent signal when connected to the SSID broadcasted by the Asus router.


Advantages of using different metric signatures in relativity and QFT

I am studying General Relativity and some basic QFTs. It bothers me a lot that different books use different metric signatures, i.e. $(-+++)$ and $(+---).$ Can anyone tell me the advantages of using both of them, or why some people prefer the former while some prefer the latter? I would like to know which one should I while tackling different problems.


I would like to color the entire citation. I am working with this citation style, using biblatex: Author Year. Hyperref is only coloring the year.   Also, I would like Year to be in parentheses.  \documentclass{article} \usepackage{times} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[style=authoryear,sorting=nyt,backend=bibtex,url=false,maxcitenames=1,doi=false,isbn=false,url=false]{biblatex} \usepackage[expansion=alltext,stretch=30]{microtype} \usepackage[colorlinks,citecolor=blue,pdftex,urlcolor=blue]{hyperref}  \addbibresource{tesis.bib}  \begin{document}   Thanks in advance,  Joaquín


How do I upload a data file to Stack Exchange?

I want to ask a question in Stack Exchange with a data file. I'm new to Stack Exchange & I don't how to post my excel data file here.  I'd be grateful if anyone can tell me how to do it.


Origin of the phrase "it’s been years if it’s been a day"?

I first heard this phrase in an episode of Family Guy, and they're typically fans of referencing older shows and movies, especially from the 80s. So I'd assumed it was a fairly commonly known thing.  Then I came across it in a friend's novel. The novel is in a Southern American, older time setting, which is about where I'd expect to find examples of it.  Then I had a look online and couldn't find examples of the phrase or it's origin.  Is there such a phrase and origin? Or is this just a coincidence with people choosing something that sounds equally old-timey?


Does the order of columns in a columnstore index matter?

I have a table with ~200 million rows and ~15 columns in it. I am planning to create a COLUMNSTORE index on my table.   Will there be any change in performance based on the order of columns that I use in the columnstore index? If yes, what is the logic behind it?


I found out today that $- gives the options with which bash was started.  $ echo $- himHB   I would like to know in which file these options to bash were set or which file runs bash with these options.


Validate Dobinski's formula using recursive Bell number formula

As we know, Bell number can be given using two formula  $B_N=\sum_{k=0}^{N-1}C_{N-1}^{k}B_k$ (recursive)  $B_N=e^{-1}\sum_{k=0}^{\infty}\frac{k^N}{k!}$ (Dobinski's  formula)  Now I want to substitute Dobinski's  formula into recursive one to validate it is valid.  Here is what I do  $$ \begin{align} B_N&=\sum_{k=0}^{N-1}C_{N-1}^{k}B_k \\ &=\sum_{k=0}^{N-1}C_{N-1}^{k}(e^{-1}\sum_{i=0}^{\infty}\frac{i^k}{i!}) \\ &=e^{-1}\sum_{i=0}^{\infty}\frac{1}{i!}(\sum_{k=0}^{N-1}C_{N-1}^{k}i^k) \\ &=e^{-1}\sum_{i=0}^{\infty}\frac{(i+1)^{N-1}}{i!} \\ &=e^{-1}\sum_{i=0}^{\infty}\frac{(i+1)^N}{(i+1)!} \\ &=e^{-1}\sum_{k=0}^{\infty}\frac{(k+1)^N}{(k+1)!} \\ ?&=e^{-1}\sum_{k=0}^{\infty}\frac{k^N}{k!} \end{align} $$  But I have no idea how to deal with the line with a question sign? Thank you very much!


Why did Hattori Hanzo hate Bill so much?

In Kill Bill (I think that is what the movie is called)**Hanzo breaks a 28 year old oath and makes the best in sword he's ever made for someone he doesn't even know just because she wants to kill Bill.  Why?*


Prove that if $A,B$ are finite Abelian groups and for every $n$ they have the same amount of elements of order $n$, then $A \simeq B$.  I know I have to use primary decomposition, but am not sure how exactly. Any guidance would be appreciated!


Can you help me to write the following symbol.  Thank you in advance.


Why is electric field zero where equipotential surfaces intersect?

My professor said that the electric field is zero wherever two equipotential surfaces intersect. I can't come up with a reason why.  He also claimed two equipotential surfaces cannot intersect as that would give two different potentials at the same point. Why can't there just be two different equipotential surfaces with the same potential that intersect or touch?


Given a positive sequence $\{a_n\}$ where $a_{n+1}=a_n+\frac{n}{a_n}$, can one find an asymptotic expansion of $a_n-n$?

Given a positive sequence $\{a_n\}$ such that   $$a_{n+1}=a_n+\frac{n}{a_n}$$   Can one find an symptotic expannsion of $a_n-n$?   I want one which has the term $O(1/n)$, or a stronger one.


I was browsing the html of my favorite site...ahem...and I saw this in the markup:  <link href="/Content/all.min.css?d=20090107" rel="stylesheet" type="text/css" />   what does "?d=20090107" do? I'm assuming it's a date of some kind, but I'm not sure why it's in the path to the file. Any ideas?


Aliasing a command with special parameters

I would like to have an alias for the following code:-   g++ *.cc -o * `pkg-config gtkmm-3.0 --cflags --libs`;   but I want that when I enter the alias it should be followed by the file name *.cc and then the name of the compiled program *.  for example:  gtkmm simple.cc simple   should run   g++ simple.cc -o simple `pkg-config gtkmm-3.0 --cflags --libs`


Is there an efficient way to copy text from a PDF without the line breaks?

I need to get thousands of snippets of text from PDFs to a spreadsheet. They are short, seldom more than 2-3 rows, but each line break creates a new cell, and I have to repair that manually, which costs lots of time.   Because I have so many of them, using the "paste into Word and do a find-and-replace" workaround is just too time-wasting for me. Is there a way to have the line break disappear on copy? Maybe there is a viewer which offers a special copy mode for this, or has a plugin?   The documents are scientific articles. The text arrangement is quite linear. You can assume that the text I'm copying is not inside a table or a float, and not rotated or anything. (If such a thing happens, I think I'll deal with it manually). The text is frequently set in two columns, but I have no trouble marking just the text I need from its column. I don't need to preserve any special formatting. I'm willing to try a solution which removes all unprintable characters, for example. The texts are in English, it is OK if the solution only works in ASCII/strips all non-alphanumeric ASCII of the copied text.   I have a very strong preference for a solution which will work on Linux, possibly some kind of Okular plugin. But if there happens to be a Windows-only solution, I want to hear about it too. I have a license for a somewhat recent Acrobat Pro on the Windows machine.


Intra-individual covariance matrix in lme4

I wonder, why do not need to specify the structure of the variance covariance matrix and the lmer function library lme4, since using the lm function library nlme this is possible. Thank you.


I had Farkas following me when we did the quest "Hard Answers" at Markarth. I had a really high bounty as I went into the museum when I wasn't supposed to; I killed a couple of guards, turned into wolf form, got what I needed and ran until I was safe. I assume Farkas was probably fighting guards inside the museum.  I waited a couple of days before going back to Markarth (so I would not be attacked anymore) and Farkas is no where around. I do not want to look for him in the museum because that will start a huge mess again. I have also looked back at Whiterun (his home) and he is not there. I have tried to ask other people to follow me like Vilkas, etc, and they say "looks like you already have someone with you".  I have tried all of the techniques: Wait a week, fast travel, go to their home. I can't load the game before it happened though because I do not want to do all of this quest stuff again. Any suggestions?


List of Stack Exchange Users By Reputation

Is there some way to get a visual or list of every Stack Exchange user in each sub site by reputation and badges or is this information private?


Extracting elevation data from DEM files using QGIS

I know how to generate contour lines from a DEM file once the file is loaded in QGIS and I also know how to open the attribute table for the contour lines which show elevation against IDs.  Is there a way to look at elevation values against sets of longitude and latitude values in QGIS? In other words, is there a way to extract and look at XYZ data from a DEM file in QGIS?


Let $E$ be a smooth curve, that is, one dimensional projective variety with dimension one, and Jacobi matrix is non-singular at any point. And suppose that the map $φ$, which sends $E$ to $E'$, is birational. Birational means there are two rational maps on both direction which composites identity. Then, can we say that $E'$ is smooth?


I am looking for a tool that reformats my LaTeX source code so that it becomes nice and readable. For programming languages like C, C++, etc. such pretty printers exist.  Are there any pretty printers for LaTeX source?


Derivation of mean and variance of Hypergeometric Distribution

I need clarified and detailed derivation of mean and variance of a hyper-geometric distribution.   If a box contains $N$ balls, $a$ of them are black and $N-a$ are white, and $n$ number of balls are drawn at random without replacement , then the probability of getting $x$ black balls (and obviously $n-x$ white balls) is given by the following p.m.f.  The p.m.f is $$f(x) =\frac{(_{a}C_x) \cdot (_{N-a}C_{n-x})}{_{N}C_n}  $$  The mean is given by: $$ \mu = E(x) = np = na/N$$ and, variance $$ \sigma^2 = E(x^2)+E(x)^2 = \frac{na(N-a)(N-n)}{N^2(N^2-1)} = npq \left[\frac{N-n}{N-1}\right] $$  where $$ q = 1-p = (N-a)/N$$  I want the step by step procedure to derive the mean and variance. Thank you.


Why do I get the "Press Shutter Release Button Again" error when my D3200 isn't set to max. aperture?

I know there are quite a few posts out there about the famous "Press Shutter Release Button Again" error. But mine seems to be quite weird. I own a Nikon D3200 with the standard 18-55 mm lens. It works great and takes amazing pictures but only if my aperture is fully open (f/3.5). Once I close it to, for example, f/4 it shows me the "Press Shutter Release Button Again" error. The weird part though is that it will take a picture, but the picture will either be way too dark or way too bright depending on the lighting.   I checked and the mirror is moving without any issue and the aperture "arm" is also moving freely. I think it might be the lens? I am not sure about this though since I am quite new to DSLR cameras.   I doubt that this is normal, don't know if anybody has some advice?


I know work done is negative of change in potential energy, I.e., $W=-(∆U)$.  It means that Work done against a force (or work done on a system) increases its potential energy. And Work done by a force (or work done by the system) decreases its potential energy.  But why this is so that an internal force (by internal force I mean that a force created under a system) will always tend to decrease the potential energy of the system while the external force increase the potential energy of the system?


Prove that $J^+AJ$ has positive eigenvalues

Let $J \in \mathbb{R}$ be a $m \times n$ matrix of rank $n$ and a $A \in \mathbb{R}$ be a $m \times m$ diagonal positive definite matrix. Denote by $J^+$ a  of $J$.   As was shown  $J^+AJ$ is not positive definite in general.   However, I was wondering whether one can prove or disprove that $J^+AJ$ has real and positive eigenvalues.


An entire function whose imaginary part is bounded is constant

I need to prove the following question  Question  Let $g(z)$ be an entire function such that there exists an $\alpha > 0$ such that $\left|\operatorname{Im}(g(z))\right| \le \alpha$. Prove that $g(z)$ is a constant function.    My first thought was to use Liouville's theorem. As that states, for an entire function $g$, if $g$ is bounded, then $g$ is constant.  So if we could prove that $g$ is bounded, then by Liouville's theorem, $g$ is constant.  I have attempted to prove that $g$ is bounded, but I am struggling. Some help would be much appreciated.


How to remove an object from an array in Java?

I have written this code but I want to delete the route[mini][minj] and route[mini+1][minj] I want it to find the minimum every time delete that and find the minimum in others.  class Test { public static void main(String[] args) {     int x=3;     int y=5;     double d=0;     double p=0;     double min=1000;     int mini=0;     int minj=0;     int b=0;     int[][] route = new int[][]{       {20,50,72,63,54,33,22,93,52,70},       {67,56,46,37,39,29,15,11,13,71},     };     int[][] distance = new int[10][10];     while (b<10) {     for (int i=0;i<route.length-1;i++) {         for (int j=0;j<route[0].length;j++) {             distance[i][j]=route[i][j]-x;             distance[i+1][j]=route[i+1][j]-y;             p=Math.sqrt((distance[i][j])*(distance[i][j])+((distance[i+1][j])*(distance[i+1][j])));             //System.out.println(p);             if (min>=p) {                 min=p;                 mini=i;                 minj=j;             }         }     }     b++;     } }   } I searched for it but none of the answers seem to work for my situation.


I've implemented SSO with Salesforce using ADFS. Currently all users can login to Salesforce via SSO. I'd like to limit SSO to a subset of users based on user groups defined in AD. How can this be accomplished?


SFTP clients not respecting default UMASK permissions

Here's my situation: I'm setting up an Ubuntu 14.04 web server for a team to share. I'd like the team to have read/write access to everything inside var/www/html (same as CHMOD 775 on every file and folder).   My issue is that SFTP clients on the Mac (Transmit, Cyberduck, and FileZilla) don't respect the default permissions I've set up.  After several hours, I've walked through many steps to accomplish my goal:  Set up team permissions:   Created a myteam group Added all users to the myteam group Changed the group ownership of /var/www/html to myteam   At this point, ls -la of /var/www returns  drwxrwsr-x  2 marcelo myteam 4096 Jul 20 13:29 html   Set a default UMASK:   Updated /etc/ssh/sshd_config with Subsystem sftp /usr/lib/openssh/sftp-server -u 002 based on . Updated /etc/pam.d/sshd and /etc/pam.d/login with a new line session    optional     pam_umask.so umask=0027 based on  Updated /etc/pam.d/common-session/ with a new line session optional pam_umask.so and edited /etc/login.defs to change the UMASK line to UMASK 002 based on  Rebooted all appropraite services and/or rebooted the entire machine   At this point, if I SSH into the server via a shell, the umask command reports 002, and all new files and folders have the correct permissions. However, if I SFTP into the server via Transmit, Filezilla, Cyberduck, etc. and create files or folders, it does not respect and defaults files to rw-r--r-- and folders to rwxrwsr-x (the folders are correct). I checked, and the FTP clients are not overriding any permissions - those are disabled.


\documentclass[a4paper, 12pt]{article} \usepackage{amsfonts} \usepackage{tikz} \usetikzlibrary{decorations.markings}  \begin{document}      \begin{tikzpicture}[scale=0.90, acteur/.style = {circle, fill=black, thick,                  inner sep=0.5pt, outer sep=0pt, minimum size=1.3mm},    decoration = {markings, mark=at position 0.5cm with {\arrowreversed[semithick]{>}}}, every label/.append style = {font=\scriptsize},      ] \node (v2) at (0,0) [acteur,label=below:$v_2$]{}; \node (v1) at (0,1)[acteur,label=above:$v_1$]{}; \node (v3) at (1,0) [acteur,label=below:$v_3$]{}; \node (v4) at (2,0) [acteur,label=below:$v_4$]{}; \node (v5) at (2,1) [acteur,label=above:$v_5$]{}; \node (v6) at (1,1) [acteur,label=above:$v_6$]{}; % \draw (v1) -- (v2); \draw (v3) -- (v6); \draw (v5) -- (v4); \draw (v1) -- (v6); \draw (v2) -- (v3); \draw (v6) -- (v5); \draw (v3) -- (v4); % \node at (-2.5,1) {\textit{$G_1$}}; \end{tikzpicture}      \begin{tikzpicture}[scale=0.90, acteur/.style = {circle, fill=black, thick,                  inner sep=0.5pt, outer sep=0pt, minimum size=1.3mm},    decoration = {markings, mark=at position 0.5cm with {\arrowreversed[semithick]{>}}}, every label/.append style = {font=\scriptsize},      ] \node (v2) at (0,0) [acteur,label=left:$v_2$]{}; \node (v3) at (1,0)[acteur,label=right:$v_3$]{}; \node (v1) at (0.5,1) [acteur,label=above:$v_1$]{};  % \draw (v1) -- (v2); \draw (v2) -- (v3); \draw (v3) -- (v1);  % \node at (-2.5,1) {\textit{$G_2$}}; \end{tikzpicture} \end{document} How I can put the following two figure side by side?


Let $f:\Bbb{C}\to \Bbb{C}$ be continuous at $0$. Show that $\lim_{r\to 0}\int_{|z|=r}{f(z)\over z}dz=2\pi if(0)$.   I barely saw anything like that. In fact, I had a difficult time finding references for Complex Analysis topics regarding complex continuous functions that don't have to do with (n?)either analyticity or holomorphicity.   My only problem, at this point, seems to be showing formally that $f$ is bounded on $|z|=r$ for sufficiently small $r$.   Regardless of that, under the assumption that for sufficiently small $r$, $|f|$ is bounded on $\{z:|z|\le r\}$ by M, I let $$\lim_{r\to 0}|\int_{|z|=r}{f(z)\over z}dz|\le\lim_{r\to 0}\max_{|z|=r}({f(z)\over r})2\pi r=2\pi f(0)$$ where $M$ is the maximum of $f(z)$ on the whole disc given by $r$ sufficiently small.  Could you guid me through this problem?  Though the question is not quite different from the one to which it was claimed to be identical in theory, I had not derived much from the answers, despite asking for explanations there myself, and I cannot make my misunderstanding a public thing, unless I either make another question or start a bounty.  How is an absolute value of an integral an indication to the value of the integral itself? The value of the integral itself can be multiplicated by a branch of functions whose absolute value is 1.


Prove inequality $x^sy^{1-s} \leq sx + (1-s)y$

Given $s \in (0,1)$, prove $$x^sy^{1-s} \leq sx + (1-s)y$$ for $x,y > 0$  Tried some algebraic manipulations but I'm guessing I need to use some trick.  Any suggestions, hints?


Use minted for plain-text? (without syntax-highlighting)

I'm possibly too lazy to find how to do it without minted, but since I already use minted and I want top keep it's styles it applies to code boxes (like background color, the line break features, typewriter-style/same-width text etc.), I want to do it with minted. \inputminted requires the language as the first required argument, so I cannot omit it, and pygments does not have a "plain text" style option as it seems, so I cannot use that there. So when i just want to input a plain-text block with minted (without any syntax-highlighting), how can I do that? Use case: I could not find a proper syntax highlighting for arbitrary console output (on GitHub you e.g. have console for Markdown.) I have , but it's not about minted, but getting HTML code or so.


When I close my Gnome-shell with some open applications, I would like to restore them in the same state to the next start : how can I do that (I'm on Ubuntu Gnome-shell 14.04.02 LTS) ?  If I use gnome-session-properties, I have only applications and nowhere to select "Automatically remember running applications when logging out".  Thanks


Integrating $\int \frac{1}{\sqrt[4]{1+x^4}} dx $

How to integrate  $$\int \frac{1}{\sqrt[4]{1+x^4}} dx $$


Why won't a tight cable ever be fully straight?

I posted this picture of someone on a zipline on Facebook.    One of my friends saw it and asked , so he could try to calculate the speed at which someone on the zipline would be going when they hit the water.  The only answer, which was accepted, includes the disclaimer, "Assuming the pulley being used to slide to be friction less.Though not possible.Also the rope is assumed to be in-extensible and straight."  I used to have a zipline of about the same length in my back yard as a kid and even when I was young, I noticed that we could never straighten the line completely, even when it was slack, we could not make it completely straight.  And, naturally, once weight was added, there was a curve where the weight pulled the line down.  One of the comments from the member providing the answer is "Well i can show you why the string cannot be ever straight."  I know that from experience.  We could never make it completely straight with no sagging.  I asked the reason for this and was directed to a book on Amazon.  Having just spend $50 on a number of books for summer reading, my book budget is gone for a while.  So can someone answer that?  Why will the line never be straight when it's set up (and when there is no load on it)?


Some examples include:     We fear the damned.   He honored our fallen.   This is a given.   You are the chosen.   The lost were among us.   They obey the venerated.   My beloved kissed me. (TIL “beloved” is a verb thanks to RegDwight АΑA)   Is there a word to describe the past participle used as a noun? I’m hesitant to refer to it as a gerund, since it doesn’t end in -ing. Another possibility is adjectival noun, if you originally treat the word as a participle (e.g. “the damned man”) that has given up its modified noun.  Also, why does English tend to preface such nouns with the?


Where am I going wrong on this second derivative?

If a given first derivative is: $\ {dy \over dx} = {-48x \over (x^2+12)^2} $  What are the steps using the quotient rule to derive the second derivative: $\ {d^2y \over dx^2} = {-144(4-x^2) \over (x^2+12)^3} $  My Steps:  $$ {{d^2y \over dx^2} = {-48(x^2 +12)^2 - 2(x^2+12)(2x)(-48x)\over (x^2+12)^4} =-48{(x^2 +12)^2 - 4x^2(x^2+12)\over (x^2+12)^4} = -48{(x^2 +12)( - 4x^2 +(x^2+12))\over (x^2+12)^4} =  -48{(x^2 +12)( - 4x^2)\over (x^2+12)^3} = ???}  $$  Once I get to this point I am unsure how to derive the second derivative shown.


Is it possible to add new predictions/autofill when using syntax in Overleaf?

When using Overleaf you get quite helpful suggestions, like when you type in \beg it gives you the option to autofill the whole   \being{}  \end{}    and even adds the contents of the first bracket into the second bracket.   However, there are some options that I use quite regularly, which while being compiled by Overleaf fine are not auto-filled, for example  \textsubscript{}   Is there a way to add new options to the prediction/autofill lists in Overleaf?


Difference between "distinctive" and "distinct"

What's the difference between distinctive and distinct? My understanding is that something being distinctive means it has the power of differentiating between two things or making something different from other things, while something being distinct means it is different from other things. Is that right?


Power adapter giving a specified current

I often see power adapters indicating 5V 900mA (or) 5V 1000mA or sometimes 5V 3.4 A. Obviously they are converting current coming from 220V/110V source to 5V DC using some step down converter. But how do they know the amount of current that can be given by them ? i.e., 0.9 A or 1 A or 3.4 A etc.. What I mean is, based on Ohms law ( V=IR) the current is dependent on V and R where V is step down voltage given by adapter ( lets say 5 V in this case). However R is dependent on the circuit that is going to be connected to the battery or charger. The circuit may have higher or lower resistance and accordingly the current would vary. So then what is the meaning of the current notation mentioned on the chargers ? Is it the max current ?  If that is the maximum current in Amps that charger/battery can deliver does it mean that the resistance of the charger circuit is lets say 5V / 1 A = 5 Ohms ?  I know this is a very basic question. Appreciate your patience.


Where to find an example of the Actions?

I do not work Actions.moveTo.  actor.addAction(Actions.moveTo(500, 500, 1));   Please show me a working example.  Thank you.  ADD CODE:  stage.addActor(actor); actor.addAction(Actions.moveTo(500, 500, 1));   ...  @Override public void render () {     Gdx.gl.glClearColor(1, 1, 0, 1);     Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);     stage.act(Gdx.graphics.getDeltaTime());     stage.draw(); }


I'm desperately trying to install ubuntu 12.10 64bit on my new Ultrabook. Its a Sony T13 with 8gb ram, 256gb ssd, i7, windows 8.   I have an extra partition, D: "UBUNTU" already created with about 30gb space using FAT32. Ubuntu is MD5 checked, on a previously working USB stick using UNetBootin. Grub loads fine When I ask to test out Ubuntu ("Try ubuntu without installing") it shows the purple loading screen for a bit then brings up this error in a busybox terminal:   initramfs - Unable to find a medium containing a live file system  Things I've tried that don't work:   Different versions of Linux (Fedora, Arch, SL, even gParted) Using USB2/3 - No difference Legacy or UEFI - different interface, but same error BIOS has no option for anything "ACHI" related   I have read through tons of other people having this problem and diligently tried all the above solutions, with no luck.


Convert Molecular Particles to Keyframes

I have a baked particle system that uses the Molecular Physics addon, and I'd like to convert the particles into keyframed objects... Is there any way I can achieve that? I know it's possible with rigid bodies, and others etc, but I haven't seen anyone do it with particles before (it might be a several step process). Any and all help is appreciated!


I have Blender 2.73a with AMD Radeon 3100 Graphics. I saw  on how to make cycles render faster. It says when I go to User Preferences> System> Compute Device, It has no CUDA option, which means there is no GPU option. How can I fix this?


What's the best & easiest GUI software that can join a video that I have downloaded in several parts?


Tikzpicture-figure: Order plot data (asc/desc)?

I am using a tikzpicture for plotting. the values I want to plot are typical (X,Y) pairs. The x-value is an uninteresting id-value. I want to order the bins ascending/descending according to the y-value, but how do I do that? The figure seems to automatically take the x-values for ordering, how can I override that? (I am not particularly fixed to tikzpicture - its just the first thing that actually worked and displayed the plot....) Following minimal-working example, how could I achieve a reordering according to the y-value?  \documentclass{article} \usepackage[english]{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{relsize} \usepackage{times} \usepackage{url} \usepackage{latexsym} \usepackage{graphicx} \usepackage{colortbl} \usepackage{color} \usepackage{caption} \usepackage{pgfplots, pgfplotstable} \usetikzlibrary{arrows} \usepackage{amsmath} \usepackage{multirow} \usepackage{booktabs}  \usepackage{filecontents} \definecolor{OgAns}{rgb}{0, 0.8, 0.4}  \begin{filecontents}{testdata.dat} 1   30 2   44 4   26 3   39 \end{filecontents}  \begin{document} \begin{figure} \begin{tikzpicture}         \begin{axis}[                ybar stacked,             ymin=0,             ymax=100,             bar width=5pt,             legend style={at={(0.35, -0.4)},anchor=south west},             legend columns=-1                       ]           \addplot[ybar,fill=OgAns]  file {testdata.dat};          \end{axis}     \end{tikzpicture} \end{figure}   \end{document}


\DeclarePairedDelimiter with a name that is already defined

How do I introduce a paired delimiter with \DeclarePairedDelimiter from mathtools, if the name that I want to use for the delimiter is already declared by some other package?  For example:  \documentclass{minimal}  \usepackage{mathtools} \usepackage{physics}  \DeclarePairedDelimiter{\norm}{\lvert\lvert}{\rvert\rvert}  \begin{document} I do not even need to use $\norm{v}$ to have an error. \end{document}   Note that, unlike  or  I am wondering about overriding an existing macro to make it a paired delimiter within the package mathttools, and not how to make a \newcommand with a name that has been already defined (in the latter case, I can, for example, \renewcommand).  Note that the question is not about how should you typeset a norm operator.  The reason why one may want to redefine a command in physics package as a mathtoolspaired delimiter is that a paired delimiter can open and close on two different lines.


ubuntu 20.04.1 LTS stop showing wifi adapter?

So one day I opened my laptop and it stopped showing wifi and the error message was wifi adapter not found. I try to fix that using pre existing solutions like mentions in this form didn’t work for me. I tried to reinstall the wifi driver from the additional driver menu. It showing me this specific error: Error while applying changes   pk-client-error-quark: Error while installing package: installed bonwl-kerneksource package post-installation script subprocess returned error exit status 10 (03)   Since I had a pretty specific issue, I created a new question.


Output difference between MacTeX 2015 and 2017 with powerdot class

I upgraded MacTeX on my laptop from the 2015 distribution to the basic 2017 distribution. After installing the required packages, I tried to compile one of my slide decks which use the powerdot class, from DVI through PS and finally to PDF (latex then dvips then ps2pdf13). This worked fine before (in the 2015 distribution), with the output in landscape and filling the full page. With the 2017 distribution, the output comes out in portrait, with a cropped version of the actual slides taking up about 30% of the upper part of the page, with the rest of the page totally blank.  I traced this to a difference in dvips (version 5.995 in the 2015 distribution and 5.997 in the 2017 distribution). Regardless of whether latex is run in the 2015 or 2017 version to output the DVI file, it's possible to get the correct output when running dvips 5.995 from the 2015 distribution, and the wrong output when running dvips 5.997 from the 2017 distribution.  It's interesting to look at the beginning of the Postscript file in each case. For dvips 5.995, the relevant part is:  %%Orientation: Landscape %%BoundingBox: 0 0 594 792   As for the dvips 5.997 output, %%Orientation: Landscape is missing, and the bounding box line is replaced by %%BoundingBox: 0 0 1584 1188.  Other than manually replacing dvips by the older version (or perhaps looking for an even newer version), is there something that can be done to fix the output?


Why do circuit boards use strange paths?

First, let me say that I'm no electrical engineer, I'm just a curious student.   Here's a photo of a Raspberry Pi A+.    I (as one completely ignorant of PCB design) would expect the electrical paths to be as simple as possible, which normally implies using the shortest path from the source to destination. Here, the printer can clearly print straight diagonal paths, but some other nearby paths are stair-stepped, or even take bizarre roundabout paths to their destinations.  I've seen this on a variety of PCBs, including other models of the Raspberry Pi, some Arduinos, computer motherboards...  Can you explain, in layman's terms, why these more complex paths are chosen?


If d=gcd(a,b). Prove that a/d and b/d are relatively prime.

From this, I know that $d=sa+tb$ for $s,t\in \mathbb{Z}$. Also, that $d|a$ and $d|b$. I don't know where to go from there.   I understand that if $a/d$ and $b/d$ were not relatively prime, then $d$ would not be the GCD.


Im working on a website and my boss wants me to use CSS variations and I dont know what he is talking about.  Let's say I have 20 different elements using #7d2d39, rather than having:  background-color:#7d2d39 color="#7d2d39"   All over the style sheets he wants me to call it using:  background-color:red1" color="red1"   and somewhere define what "red1" is that way we can globally change one hex color vs. changing it 20 times? It makes sense as I type it, but I dont think this exists.


How to get Python function that prints a word to print on same line with for loop?

I've got a function in Python  def wordPrint():     print "word"   I want to use it to print 3 times on the same line using a for loop.  I would expect this code  for x in range(0,3):     wordPrint(),   to output this  word word word  But I get them on new lines


Why don't we need to start Apache server on Ubuntu as in Windows?

I have LAMP server installed on my system and it is working perfectly. However, I am very curious to know why we need not start Apache server in LAMP. When we have WAMP on Windows, by contrast, we have to start it and activate Apache and MySQL. Does Apache start as we start Ubuntu (i.e., it always runs in the background) or does it start when we open localhost?  The answers to the question "" describe how to start LAMP manually, but not how it works internally to start LAMP automatically.


Proving that integral of big oh is not following normal polynomial integral.

I want to prove that \begin{align}  \int_0^x O(t^n)dt  \neq O(x^{n+1})  \end{align} At first I tried to partially integrate but it did not work. Thanks, Axel


Type erasure with generics specialized type

I'm trying to understand the java compiler generics types erasure with the following exemple. Can someone explain me why can i add a new motor bike into a list of Car ?   List<Vehicle> list = (List<Vehicle>)(Object)new ArrayList<Car>();  list.add(new MotorBike());


Computing $\lim_{A\to\infty} \frac{1}{A} \int\limits_1^A \! A^{\frac{1}{x}} \, \mathrm{d}x.$

On this year's  there was this problem:  Compute $$ \lim_{A\to\infty} \frac{1}{A} \int\limits_1^A \! A^{\frac{1}{x}} \, \mathrm{d}x. $$  In addition to the two official solutions, I am curious as to if there exist other solutions.   I heard that someone wrote that this is actually a probability density function (just for this one line, that person got 6 out of 10 points), so it would be great to see an answer involving this claim.  Also, I thought of turning this integral (using substitutions) to something I can evaluate using the Gamma function. Could someone hint a substitution which could lead to that?  EDIT: The official solutions can be found , Problem 7.


Why is the expression $\underbrace{n\cdot n\cdot \ldots n}_{k \text{ times}}$ bad?

For writing a (german) article about the  I have the following question:  In school one defines the power with natural degree via  $$n^k = \underbrace{n\cdot n\cdot \ldots \cdot n}_{k \text{ times}}$$  In calculus normally recursion is used to introduce the power:  $$\begin{align} n^0 & := 1 \\ n^{k+1} & := n \cdot n^k \end{align}$$  Question: What are the disadvantages of the expression $\underbrace{n\cdot n\cdot \ldots \cdot n}_{k \text{ times}}$ and why it is not used to define the power in advanced mathematics (although it is intuitive)?  Note: I'm sorry, I had an ambiguous question before. I do not want to know, why we define the power. I want to know, why we use recursion and not the expression $\underbrace{n\cdot n\cdot \ldots \cdot n}_{k \text{ times}}$ to define the power in advanced mathematics...  My ideas so far:   $\underbrace{\ldots}_{k \text{ times}}$ is no operator, which was introduced before. definitions with recursion lead naturally to a scheme, how properties of these concepts can be proved via induction


I have just written a paper in LaTeX, for the bibliography I used natbib. But there is the following mistake: In file.bib I input as @book{driscoll2002schwarz,   title={Schwarz-Christoffel mapping},   author={T. A. Driscoll and L. N. Trefethen},   volume={8},   year={2002},   language={English},   publisher={Cambridge University Press} }  After Typeset, the result----->  [12] T. A. Driscoll and L. N. Trefethen, Schwarz-christoffel mapping,...  The mistake in "Schwarz-christoffel", I want to be "Schwarz-Christoffel"


IMO $2011$ problem $3$, how can I prove that $f(x) = 0, \; \forall \; x \leq 0 $?

Let $f : \mathbb R \to \mathbb R$ be a real-valued function defined on the set of real numbers that satisfies $$f(x + y) \leq yf(x) + f(f(x))$$ for all real numbers $x$ and $y$.  Prove that $f(x) = 0, \; \forall \; x \leq 0 .$  My attempts  I tried, $x=0, y=0, x=-y, y=-x$ and $x=y$, but I could not solve the problem.  $y=0$ then $f(x) \leq f(f(x))$  $x=0$ then $f(y) \leq yf(0)+f(f(0))$  $y=-x$, then $f(0)\leq -xf(x)+f(f(x))$  $x=-y$, then $f(0) \leq y(f(-y))+f(f(-y))$  $x=y$, then $f(2x) \leq xf(x)+f(f(x))$  Actually I tried more but I always failed. Can anyone solve this problem?


a non trivial example: $G/H$ is isomorphic to $G$

I need a non trivial  examples of group isomorphism that maps $G\to H$ such that   $G/H \cong G$.


Consider this equation :   $$\sqrt{\left( \frac{dy\cdot u\,dt}{L}\right)^2+(dy)^2}=v\,dt,$$  where $t$ varies from $0$ to $T$ , and $y$ varies from $0$ to $L$.  Now how to proceed ?   This equation arises out of following problem :   A cat sitting in a field suddenly sees a standing dog. To save its life, the cat runs away in a straight line with speed $u$. Without any delay, the dog starts with running with constant speed $v>u$ to catch the cat. Initially, $v$ is perpendicular to $u$ and $L$ is the initial separation between the two. If the dog always changes its direction so that it is always heading directly at the cat, find the time the dog takes to catch the cat in terms of $v, u$ and $L$.  See my solution below :   Let initially dog be at $D$ and cat at $C$ and after time $dt$ they are at $D'$ and $C'$ respectively. Dog velocity is always pointing towards cat.  Let $DA = dy, \;AD' = dx$  Let $CC'=udt,\;DD' = vdt$ as interval is very small so $DD'$ can be taken straight line.  Also we have $\frac{DA}{DC}= \frac{AD'}{ CC'}$ using triangle property.  $\frac{dy}{L}= \frac{dx}{udt}\\ dx = \frac{dy.udt}{L}$  $\sqrt{(dx)^2 + (dy)^2} = DD' = vdt \\ \sqrt{(\frac{dy.udt}{L})^2 + (dy)^2} = vdt $  Here $t$ varies from $0-T$, and $y$ varies from $0-L$. Now how to proceed?


`is` comparsion of integer greater than 256

This unexpected behavior surprised me:  >>> a = 256 >>> a is 256 True >>> b = 257 >>> b is 257 False   Why is that?


Related Posts:              I was thinking about .  and I thought being able to leave a comment on a user profile would be a nice solution. Once in a while I have a question for a specific person. Once I notice a person doing OSdev and wanted to know about his projects he was working on. I remember a person mentioning a paper he did and I wanted to ask him more. I'm sure he didn;t notice my comment because he has many replies (which get commented on) and isn't on the site for days at a time. If he decided to look at his profile comments I am sure he would have a higher chance of noticing it.  I would like comments on user profiles. I dont think flamewars would be an issue and would be hard to follow if you cant reply back on the same page (you either cant post on your own profile and if you can the other person would be notified of the comment which may slow it down)


Change the default 'naming scheme' for copying files

When I copy a file, name.txt, in Windows Explorer and paste in the same directory, a new file appears.  Its default name is name - Copy.txt.  Is there a way to customize the default name for a new file which is a copy. For example, I'd like to have the copy be name_12345678.txt where 12345678 is a timestamp. Is it possible to achieve this using Windows' configuration and not with any 3rd party software?


In languages like Java and C#, strings are immutable and it can be computationally expensive to build a string one character at a time.  In said languages, there are library classes to reduce this cost such as C# System.Text.StringBuilder and Java java.lang.StringBuilder.  Does php (4 or 5; I'm interested in both) share this limitation?  If so, are there similar solutions to the problem available?


I see App in my Apps section of settings which says App not installed for this user. It's completely greyed out and I cannot uninstall it. When I install the same from  it says incompatible version is already installed.  I just want to remove this App from my device.     Doesn't get uninstalled from adb either     C:\Users\athakur>adb uninstall com.osfg.rintonesetter.main   Failure [DELETE_FAILED_INTERNAL_ERROR]   and     C:\Users\athakur>adb shell pm uninstall -k com.osfg.rintonesetter.main   Failure [DELETE_FAILED_INTERNAL_ERROR]   Any suggestion is appreciated.


Best practice for including plugins as part of a theme?

I'm working on a theme that includes some functionality I've developed as separate plugins (as I'm hoping to release them independently).  I'd like to include these plugins as part of the theme core and I've noticed that some developers include plugins as files or subdirectories along with their theme, but over time that can ultimately lead to maintaining two versions of the same plugin - one for the plugin repository, one for the theme - but I'd like to avoid that, if possible.  What's the best practice for including plugins as part of a theme?


What is the best way to validate a credit card in PHP?

Given a credit card number and no additional information, what is the best way in PHP to determine whether or not it is a valid number?  Right now I need something that will work with American Express, Discover, MasterCard, and Visa, but it might be helpful if it will also work with other types.


Let A be a complex number and B a real number. Show that the equation  $\,\lvert z^2\rvert+ \mathrm{Re}\, (Az) + B = 0\,$ has a solution iff $\,\lvert A^2\rvert \geq 4B$. If this is so, show that the solution set is a circle or a single point.  Well i am trying to do the first part first. So assuming the equation has a solution that would mean $z = x+iy$ satisfies the equation.   I was going to let $A = s+it$ for a complex number, but it is not working out for me. Wrong step?


Is a basis for the vector space of all series in $\mathbb{R}$ constructible

Given the $\mathbb{R}$-vectorspace $V =\mathbb{R}^\mathbb{N}$ of real valued series I was wondering if we can construct a Hamel-basis of $V$. First of all I think that the dimension of $V$ is $ \mid\mathbb{R}\mid$. Since $\mid V \mid = \mid \mathbb{R}^\mathbb{N}\mid = (2^{\aleph_0})^{\aleph_0} = 2^{\aleph_0 \times \aleph_0} = 2^{\aleph_0} =\mid \mathbb{R}\mid$ we get $dim(V) \leq \mid V \mid =\mid\mathbb{R}\mid$. But I am not sure why the dimension can't be countable. I can't seem to find an uncountable number of $\mathbb{R}$-linearly independent series. Moreover I am interested if such a basis can ever be constructible. I doubt this to be the case, but I would like to know why not.


SQL string field lengths in a db having about 6 different types of addresses, with about 20 markets and environments

(Someone suggested I should ask this here too; previously posted on  )  I have been advocating lately that all string fields should be ntext / nvarchar(max) - we're using MS SQL Server. The objections seem to be either "it's not a good idea" (without any reason) or "that would allow the customer to send a lot of crap". Since I believe in filtering out the crap before it hits the database, is there a good reason why my idea is bad?  My main argument for not limiting the string fields is that I have discovered that we have about six different types of addresses (customer, reseller and so on), with about 20 markets (each having its own database) and environments. I have spotted at least ten different lengths for say Address1 and the same thing happens for other fields. Instead of "standardizing" them and then discovering that we missed something, I suggested that we go ahead and limit the inputs and let the database handle anything.  Does anyone have a pro/con I don't see?


Where are the keymaps in Debian? (Using loadkeys to change keymap.)

From the actual console (e.g. Ctrl-Alt-F3), I'd like to use sudo loadkeys dvorak .  While that automagically works in Ubuntu, Debian wants me to locate a keymap file.  I don't have the /usr/share/keymaps that is sometimes given as an answer.  find / -type f -name '*dvorak*' turns up a few files which loadkeys won't take.  As in  I do not want to make a permanent change to my system using console-config.  I want to write simple scripts that can change the keymap on the fly.  Is there a package I can install or something?  Since I'd like to swap Caps-Lock and Escape eventually, I should probably , anyway, correct?


When is the group of units in $\mathbb{Z}_n$ cyclic?

Let $U_n$ denote the group of units in $\mathbb{Z}_n$ with multiplication modulo $n$. It is easy to show that this is a group. My question is how to characterize the $n$ for which it is cyclic. Since the multiplicative group of a finite field is cyclic so for all $n$ prime, it is cyclic. However I believe that for certain composite $n$ it is also cyclic.   Searching through past posts turned up , where there was an answer containing the sentence "In number-theoretic situations there are coherent things that can be said, and/but in general I think nothing decisive can be said."  What are those number theoretic situations?  Thanks


I need to show that $||x|-|y||\le|x+y|\le|x|+|y|$. I proved the right inequality, $|x+y|\le|x|+|y|$, and now I need to prove the left inequality, $||x|-|y||\le|x+y|$.  I though that I could do it by using the definition of the absolute value, which means that I need to prove that $-|x+y|\le|x|-|y|\le|x+y|$, but I'm not sure how to proceed from here. How can I prove the last inequality?


How do I do something like this:  where the $p\leq x$ and $p\equiv\pmod{q}$ are on separate lines?


The only examples of simple rings I know that are not division rings a matrices over simple rings, but matrix rings always have zero divisors.  Are there simple rings that are not division rings but have no zero divisors? Else is having no zero divisors a sufficient condition for simple rings to be division rings


What is your favorite proof of the Pythagorean Theorem? Why?

My favorite is Euclid's original proof for two reasons:  First, it requires minimal raw material. It only needs the result that the area of a triangle is half the area of a rectangle with the same base and altitude.  Second, it gives additional information, in that it shows how to divide the square on the hypotenuse into two rectangles each of which is equal in area to one of the squares on the legs.  So,  what's yours?


'declarative' questions and 'interrogative' questions (When to use which?)

Declarative questions:        'Boss' and 'Manager' can be used interchangeably?   She is going there tomorrow?      AND  Interrogative questions:        Can 'Boss' and 'Manager' be used interchangeably?   Is she going there tomorrow?      So my question is when to use the above type of questions (declarative) and when to use the latter ones (Interrogative)?  Although I used to use them both in any situation but some time ago a native speaker pointed out that you can't use both of them in any situation. But that person also said that he doesn't know the rules regarding this, and just 'know it'. So any ideas when to use which structure of question?


UK visa validity begins on date of issue or intended date of arrival?

I've already submitted my UK visa application, but have yet to receive the visa.  I need to book a flight a day or two before the 'intended date of arrival' that I've entered in my application.  My question is, if and when I get the visa, will the validity be from the date it was issued, or from the date of intended date of arrival I entered on my application.  In case it's from the intended date, then is it possible for me to arrive a day or two before that day, or will it create problems with the airport security?


why $f$ is holomorphic if $f(z) = \frac{1}{2\pi i} \int_\gamma \frac{f(\zeta)\, d \zeta}{\zeta - z}$?

I'm reading Gong Sheng's  to get some basic understanding.  On $\S 2.4$ page 61 Theorem 2.15 (Hurwitz Theorem) it says     Theorem 2.15 (Hurwitz Theorem) Let $\{f_j\}$ be a sequence of holomorphic functions on $U\subseteq \mathbb C$ that converges uniformly to a function $f$ on    every compact subset of $U$. If $f_j$ is never equal to zero on $U$ for all $j$, then    $f$ is either identically zero or never equal to zero on $U$.      Proof: For an arbitrary point $z \in U \subseteq \mathbb C$, choose a simple closed curve $\gamma$ in $U$ such that the inside of $\gamma$ contains $z$.    Since $f_j$ is holomorphic on $U$, by Cauchy integral formula we have $$f_j(z)=\frac{1}{2\pi i}\int_\gamma \frac{f_j(\zeta)\,d \zeta}{\zeta-z}$$   Since $\{f_j\}$ converges uniformly on every compact subset of $U$, we have    $$\lim\limits_{j\to \infty} f_j(z) = \lim\limits_{j\to \infty} \frac{1}{2\pi j} \int_\gamma \frac{f_j(\zeta)\,d \zeta}{\zeta-z}  = \frac{1}{2\pi j} \int_\gamma \lim\limits_{j\to \infty} \frac{f_j(\zeta)\,d \zeta}{\zeta-z} $$   It follows that $$f(z) = \frac{1}{2\pi i} \int_\gamma \frac{f(\zeta) \, d \zeta}{\zeta - z}$$   Hence, $f(z)$ is a holomorphic function.    Similarly, we can prove that $\{f_j'(z)\}$ converges uniformly to $f'(z)$ on every compact subset of $U$.       If $f(z)$ is not identically zero, then by Theorem 2.13, the zeros of $f$ are  discrete. Let $\gamma$ be a curve that does not pass through these zeros. Then    $$\frac{1}{2\pi i} \int_\gamma \frac{f_j'(\zeta)}{f_j(\zeta)\, d \zeta} \to \frac{1}{2\pi i} \int_\gamma \frac{f'(\zeta)}{f(\zeta)\, d \zeta}$$   as $j\to \infty$.   By the assumption and Theorem 2.14, we have    $$\frac{1}{2\pi i} \int_\gamma \frac{f_j'(\zeta)}{f_j(\zeta)\, d \zeta} = 0$$   Therefore  $$\frac{1}{2\pi i} \int_\gamma \frac{f'(\zeta)}{f(\zeta)\, d \zeta} = 0$$   and $f(z)$ has no zero on $U$.    I wonder why $f(z)$ is a holomorphic function once $f(z) = \frac{1}{2\pi i} \int_\gamma \frac{f(\zeta) \, d \zeta}{\zeta - z}$?  So far from that book I only know such ways to determine a function is holomorphic   By definition, that is $f(z)$ is holomorphic in $U$, iff $\forall z\in U$, $\lim_{h\to 0} \frac{f(z+h)-f(z)}{h}$ exists, here $h \in \mathbb C$.  Cauchy-Riemann equation, that is, if $f(z) \in \mathscr L ^1 (U)$ and fulfills the Cauchy-Riemann equation $\frac{\partial f}{\partial x} = -i \frac{\partial f}{\partial y}$, then $f$ is holomorphic on $U$, here $z=x+iy$. Power series expansion (Taylor series): $f(z)$ is holomorphic in $U$ iff $f$ has a power series expansion $\forall z \in U$. Morera theorem:  If $f(z)$ is continuous on $U$ and  the integral of $f$ along any rectifiable closed curve is zero, then $f(z)$ is  holomorphic on $U$.    It seems none of such 1-4 could get to the conclusion that $f(z)$ is a holomorphic function?


How to disable touch screen permanently?

Recently i have moved to ubuntu from windows. I have a problem with my touch screen so i have disabled it by xinput command. But whenever my system is restarted the driver is getting enabled. Please help me regarding this.


What is it best to handle pagination? Server side or doing it dynamically using javascript?  I'm working on a project which is heavy on the ajax and pulling in data dynamically, so I've been working on a javascript pagination system that uses the dom - but I'm starting to think it would be better to handle it all server side.  What are everyone's thoughts?


Bind C-i and TAB keys to different commands in terminal applications via .inputrc

For what I have tried, TAB and C-i in .inputrc seems to mean the same thing, whatever I bind to one is bound to the other. I know that originally, it was the same thing and that this behavior is kind of inherited from the old times but nowadays, apart from terminal emulators, all X applications makes the difference between a C-i and a TAB press.  So is there a way to run a terminal command ("complete" for example) when I press the TAB key and run another command when I press C-i?  (the same question applies for C-m and ENTER, C-z, C-d, and all these control sequences that I would like to send by other means than their original binding and apply my own commands to these precious keybindings)  And by the way, if you could explain a little bit the process from a keypress to a shell interpretation that would help me understand. For now I understood that keyboard events are translated by Xmodmap, then by .inputrc and that the result is interpreted by the shell or something like this.  I am currently using Guake, and sometimes gnome-terminal, as terminal emulators.  After following the link proposed in a comment, it appears that the terminal emulator is the element of the chain that transforms TAB keysym from X server into C-i, and sends it to the bash shell because it doesn't understand such things as TAB, ENTER and siblings. So configuring readline itself won't work as it comes after the terminal emulator and before the bash shell. The question could be then precised like this: How to configure my terminal emulator so it translates TAB and C-i, ENTER and C-m, etc, to different pairs of character sequences? Maybe make TAB and ENTER send a new custom escape sequence, that could be mapped in .inputrc later to the original commands, and finally be able to use C-i and C-m for other purposes. Or leave TAB and ENTER and make C-i and C-m send escape sequences instead.


In my classical mechanics class they asked why the kinetic energy for an holonomic mechanical system has the homogeneous quadratic form.  Of course for a autonomous standard system( system that is holonomic and the constraint do no virtual work) you can just calculate that  $$ T = \frac { 1 } { 2 } \sum _ { i = 1 } ^ { M } m _ { i } \left( v _ { i } \cdot v _ { i } \right) = \sum _ { j = 1 } ^ { n } \sum _ { k = 1 } ^ { n } a _ { j k } ( q ) \dot { q } _ { j } \dot { q } _ { k } $$ with $$ a _ { j k } ( \boldsymbol { q } ) = \frac { 1 } { 2 } \sum _ { i = 1 } ^ { N } m _ { i } \left( \frac { \partial \boldsymbol { r } _ { i } } { \partial q _ { j } } \cdot \frac { \partial r _ { i } } { \partial q _ { k } } \right) $$ So you can write $$ T = \dot { q } ^ { T } \cdot A \cdot \dot { q } $$ But what is the physical reason?


How to find all the prime and maximal ideals of $\mathbb R [x]$?

I know that $\mathbb{R}[x]$ is a PID. I have proven that all the ideals of the form $I=(x)$ are maximals ($\mathbb{R}[x]/(x)$ is isomorph to $\mathbb{R}$ which is a field. As a result I is maximal). I also proved that if $f(x)\in\mathbb{R}[x]$ is ireducable then $\mathbb{R}[x]/f(x)$ is isomorph to $\mathbb{C}$ which is a field, so $<f(x)>$ is maximal. Are those the only maximals ideals? How can I prove it? Are there any other prime ideals that are not maximals?


Luke tells Rey that      there are three lessons he will teach her as he trains her as a Jedi   What are the lessons?


What advanced image editor should I choose in Ubuntu for web developer work?

EDITO: I'm creating a website and the images they gave me are too big. In Windows I used Photoshop to reduce the size, or maybe it is better to say scale the size, because I want to keep the whole image, in a smaller size, to be able to put them in the grid.  I ask for advice here, because I never use an editor in Ubuntu, I see all that there is in: Ubuntu Software, but not what would be the most appropriate for professional image editing, in the creation of a website, and to be able to give the best possible appearance to the images. In this case, reduce the size of some images, or perhaps it would be better to say, re-dimension. Thank you.


I have two tables with date and id fields. I want to join on both fields.  I tried   JOIN t2 ON CONCAT(t1.id, t1.date)=CONCAT(t2.id, t2.date)   that works, but it is very slow. is there a better way to do this?


How do I trade or add friends in Pokemon Go? Or is it not possible yet? For instance, each Pokemon has a "Transfer" option, but it seems that only gives the Pokemon to the professor, not to other players.


Finding $\lim_{n\rightarrow \infty}\frac{1+2^2+3^3+4^4+\cdots +n^n}{n^n}$

Finding $$\lim_{n\rightarrow \infty}\frac{1+2^2+3^3+4^4+\cdots +n^n}{n^n}$$  Attempt: $$\lim_{n\rightarrow \infty}\bigg[\frac{1}{n^n}+\frac{2^2}{n^n}+\frac{3^3}{n^n}+\cdots \cdots +\frac{n^n}{n^n}\bigg] = 1$$  because all terms are approaching to zero except last terms  but answer is not $1$ , could some help me to solve it , thanks


Story about mankind being alone in the Milky Way galaxy

Many years ago I read a short story about mankind searching the galaxy, hoping to find intelligent non-human life. After many millennia, on the opposite side of the galaxy, they think they have finally found an alien species, who have been undertaking the same quest. Later, DNA analysis reveals that the supposed alien race are actually descended from humanity, but evolved differently while going the opposite way around the galaxy. They initially conclude that mankind is alone in the universe, but then turn to look at the Andromeda galaxy, and say something like "No, we are alone in this galaxy".  Anyone recognise this story?


Find $6^{1000} \mod 23 $   Having just studied Fermat's theorem I've applied $6^{22}\equiv 1 \mod 23 $, but now I am quite clueless on the best way to proceed.  This is what I've tried:  Raising everything to the $4th$ power I have $$6^{88} \equiv 1 \mod 23 $$ $$6^{100} \equiv 6^{12} \mod 23 $$ $$6^{1000}\equiv 6^{120} \mod 23 $$  $$6^{1000} \equiv 6^{10} \mod 23$$ How do I simplify now the right hand side of the congruence ?


How can I display an image which is stored in files?  For attachments I can use the code below, but it doen't work for files.  <apex:image id="Stat1" URL="/servlet/servlet.FileDownload?file=0698E0000008w5e" width="15" height="15"/>


Linux Guest in VMware Workstation: How to map NIC in Guest OS to different VMnet?

Update  Please take note that this question has nothing to do with   That question doesn't have anything to do with VMware Workstation  My Question is related to Linux Guest OS inside VMware Workstation  I have Linux installed in VMware Workstation with 3 network interfaces.  To make it easier to read, I have assigned 3rd octet of the IP Address based on VMnet ID.  VMnet1 - 172.31.1.0/24 VMnet2 - 172.31.2.0/24 VMnet3 - 172.31.3.0/24   The setting of VMware Virtual Network Editor is as follows:    Virtual Machine Settings    DHCP is used in this setup.  When I run ifconfig, I found that   eth0 assigned to VMnet2 network eth1 assigned to VMnet3 network eth2 assigned to VMnet1 network   I'm not sure why VMware assign it this way.   user@linux:~$ ifconfig | grep ad eth0      Link encap:Ethernet  HWaddr 00:0C:29:AA:AA:A0             inet addr:172.31.2.23  Bcast:172.31.2.255  Mask:255.255.255.0  eth1      Link encap:Ethernet  HWaddr 00:0C:29:AA:AA:A1           inet addr:172.31.3.22  Bcast:172.31.3.255  Mask:255.255.255.0  eth2      Link encap:Ethernet  HWaddr 00:0C:29:AA:AA:A2             inet addr:172.31.1.24  Bcast:172.31.1.255  Mask:255.255.255.0  user@linux:~$    Is it possible to change it?  I would like to get something like this ...  eth1 assigned to VMnet1 network eth2 assigned to VMnet2 network eth0 assigned to VMnet3 network


I am using QGIS 2.18.  In the overview map, is it possible to remove attribute labels?    I just want the labels in the primary map, but not the overlay.   All that yellow in the overlay image is the labels for the attributes.


The eurosign is not showing up as I wanted in the following alignment-context:  \documentclass[fleqn]{scrartcl} \setkomafont{disposition}{\normalfont\bfseries} \makeatletter\let\TTTemp\cap\makeatother \usepackage[greek,english]{babel} \usepackage{teubner} \makeatletter\let\cap\TTTemp\makeatother \usepackage{eurosym} \usepackage{amssymb} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{lgreek} \usepackage{graphicx} \usepackage{textcomp} \usepackage{cancel} \usepackage{soul} \usepackage{cjhebrew} \usepackage{mathtools} \usepackage{rotating} \usepackage{esvect} \usepackage{natbib}  \usepackage{hyperref} \usepackage{tocbibind}  \begin{document} \begin{align*}     \textcjheb{n}(\euro)\triangleright []\\ \end{align*} \end{document}


The title bar in Firefox is gone. I need it back. Reasons: I need to easily enable/disable "Always on top". I need to be able to easily click drag FF by grabbing the title bar, not small space between tabs. How can I be fixing the Firefox to have normal title bar like other apps have in the Ubuntu? Like how Firefox used to be when it was good browser? What I have tried:  Googling a solution searching FF preferences right click on tab bar and random locations where the title bar used to be  System infos: OS: Ubuntu 20.10 Browser: Firefox 87.0 Beta 6


Test Apex sending mail with .getContent()

I'm trying to write a testMethod to cover a method that is using .getContent(). Here is a sample of code i want to cover    global class ExportReport {    @future(callout = true)    public static void sendMailReport() {        ApexPages.PageReference report = new ApexPages.PageReference('/' + Params_Report__c.getInstance().Id_Report__c + '?csv=1&isdtp=p1');         Messaging.EmailFileAttachment pj = new Messaging.EmailFileAttachment();        pj.setContentType('text/csv');        pj.setBody(report.getContent());        pj.setFileName('Name.csv');  After that, i make an email with pj as FileAttachments. I tried this as testMethod : static testMethod void testsendMailReport() { Test.StartTest();     ExportReport ajob = new ExportReport();     ExportReport.sendMailReport();     Integer invocations = Limits.getEmailInvocations(); Test.StopTest();     System.assertEquals(1, invocations, 'Mail Sent'); }  But I obtained this error message:  Methods defined as TestMethod do not support getContent call  How do I fix it?


Does the .Net DateTime contain information about time zone where it was created?   I have a library parsing DateTime from a format that has "+zz" at the end, and while it parses correctly and adjusts a local time, I need to get what the specific time zone was from the DateTime object.   Is this possible at all? All I can see is DateTime.Kind, which specifies if time is local or UTC.