Is there any reason to use/not use math mode for all numbers?  For example:     "The first few decimals of $\pi$ are $1$, $4$, $1$, $5$, $9$"?      "If you count in base $36$ every english word is a number: $h$ is $17$ and $hi$ would be $630$"      "There are $10$ types of people in the world..."   vs     "The first few decimals of $\pi$ are 1, 4, 1, 5, 9"?      "If you count in base $36$ every english word is a number: h is 17 and hi would be 630"      "There are 10 types of people in the world..."   In the first example, pi must obviously be in math mode or it won't display properly as the Greek letter pi. But the integers following that is not obviously one way or the other I think. I'd like to use math mode for the sake of consistency. Why would pi be more special than 1?  It the second example, I think it is obviously superior to use math mode for all numbers. If you don't, there is not really a way (for the compiler in particular but also readers) to distinguish what is a number and what are regular letters/words.  The third example I actually think is the hardest. If we look at it as a number, I think math mode makes most sense. But if we look at it as a word (I have a hard time forming this thought in word, but it feels like the number 10 is different from the meaning of the word "ten"), it kind of makes sense to treat it as a word (ergo not math mode).  To me it seems more natural to always use math mode when dealing with numbers, but it also seems like a pedantic thing no one in the right mind would do.


No 'Delete' link on Android App for answers

There is no Delete Link for my answer that I want to delete. I checked the more ... link and all it gave me was an option to flag it    This is on version 1.0.73


I'm confused about the following basic points:    Do lat/long points have a projection or are they projection agnostic? Do these points live in a sphere or a plane?   I understand that projections are used to transform a spheroid into a plane while attempting to minimize artifacts along desired attributes (e.g. distance).    Is a lat/long measurement agnostic to projections in the sense that it captures some sort of "absolute position" on Earth? If it is in fact agnostic (if the point lives in the spheroid), is this the reason why we use havesine to calculate distances? How do CRS come into play when dealing with lat/long coordinates?   I seek feedback on misconceptions and pointers to material to learn about this stuff.


Linear regression: any non-normal distribution giving identity of OLS and MLE?

This question is inspired from the long discussion in comments here:    In the usual linear regression model, for simplicity here written with only one predictor: $$      Y_i = \beta_0 + \beta_1 x_i + \epsilon_i $$ where the $x_i$ are known constants and $\epsilon_i$ are zero-mean independent error terms. If we in addition assume normal distributions for the errors, then the usual least squares estimators and the maximum likelihood estimators of $\beta_0, \beta_1$ are identical.  So my easy question: do there exist any other distribution for the error terms such that the mle are identical with the ordinary least squaeres estimator?  The one implication is easy to show, the other one not so.


Perpetual motion machine with permanent magnets

I am not a physicist, but I know the first law of thermodynamic (conversation of energy), and I have connected this with an idea that came to my mind some time ago to create perpetual motion machine which impossible according to the first law of thermodynamic.  This spinning wheel is made of ferromagnetic material ,So a force will be applied on the wheel causing a torque ,If we put this in place with no air ,and these are permanent magnets so they are going to apply a force permanently,and the atoms in the ferromagnetic material will not be aligned because the permanent are in opposite directions so how would this wheel stop acceleration ?


The faces in rendered and material mode are shading incorrectly. Some are dark and some are light. All normals are correct

the faces are affected by the light so sometimes they're very bright or very dark. I tried deleting and adding the faces but they change slightly, and not all of them change.


How to command grep not to display the searched string?

I want to print a part of a line in a file. The whole line looks like this.   Path=fy2tbaj8.default-1404984419419   I want to print only the characters after Path=. I have tried grep Path filename | head -5. But its not working.It still shows the entire line. How can i do this?


Can I speak to my companion in the cantina in the Sith academy on Korriban?

I've heard that when your companion needs to speak to you on SWTOR KotFE, you need to go to a cantina or your ship. I'm a Sith, so would the cantina on Korriban do? Thank you


Previously, in order to explain the benefits of (certain limited kinds of) duplication on Stack Exchange sites, I've seen a blog.stackoverflow blogpost with the words "Dr. Strangedupe" in the title.  The post comes up in a search on the new blog, but       Can we please bring this post back? I'd love to link to it when , to reassure the questioner that there is value in not deleting their question because of search terms, but the blog post explained it a lot better than I could in a comment.


Using CLI, how do I change the user's profile picture?

A similar task for changing the desktop background, can be achieved using the following script:   FILE="/backgrounds/background.png" gsettings set org.gnome.desktop.background picture-uri "$FILE"   How would I achieve the same result, but with the user's avatar/profile picture?


Are some indefinite integrals impossible to compute or just don't exist?

I've just started working with integrals relatively recently and I am so surprised how much harder they are to compute than derivatives. For example, for something as seemingly simple as $\int e^{ \cos x} dx $ is impossible right? I can't use u-sub since there is no $-\sin(x)$ multiplying the function, also integration by parts seems like it wouldn't work, correct? So does this mean this integral is impossible to compute?


How can I check whether a struct has been instantiated?

I have a struct that (for the purposes of this question) pretty much mimics the built in Point type.  I need to check that it has been instantiated before using it. When it was Point, I could do this:  if (this.p == null)   But that now generates the following error:     Operator '==' cannot be applied to operands of type 'ProportionPoint' and '<null>'   How can I compare my struct against null? Is there another way to check for instantiation?


How can someone review a late answer which was reviewed hours before?

I am quite confused by . At the time that I am writing, it states that:   Review completed 9 hours ago:; two lines below, it says that a certain user “reviewed this 9 hours ago”. However, between those two lines, it says that that another user reviewed the answer a few minutes ago.   How can someone review a Late Answer hours after the review was completed?


What is the number at the top for the results for ls -l?

When you type in ls -l, there is a number on the first line labeled "total 22037"? What does this number mean? I am attempting to write my own version of ls -l( in C), and how do I get this value or calculate it?   Thanks for any help.


I have the following enumeration:  public enum AuthenticationMethod {     FORMS = 1,     WINDOWSAUTHENTICATION = 2,     SINGLESIGNON = 3 }   The problem however is that I need the word "FORMS" when I ask for AuthenticationMethod.FORMS and not the id 1.  I have found the following solution for this problem ():  First I need to create a custom attribute called "StringValue":  public class StringValue : System.Attribute {     private readonly string _value;      public StringValue(string value)     {         _value = value;     }      public string Value     {         get { return _value; }     }  }   Then I can add this attribute to my enumerator:  public enum AuthenticationMethod {     [StringValue("FORMS")]     FORMS = 1,     [StringValue("WINDOWS")]     WINDOWSAUTHENTICATION = 2,     [StringValue("SSO")]     SINGLESIGNON = 3 }   And of course I need something to retrieve that StringValue:  public static class StringEnum {     public static string GetStringValue(Enum value)     {         string output = null;         Type type = value.GetType();          //Check first in our cached results...          //Look for our 'StringValueAttribute'           //in the field's custom attributes          FieldInfo fi = type.GetField(value.ToString());         StringValue[] attrs =            fi.GetCustomAttributes(typeof(StringValue),                                    false) as StringValue[];         if (attrs.Length > 0)         {             output = attrs[0].Value;         }          return output;     } }   Good now I've got the tools to get a string value for an enumerator. I can then use it like this:  string valueOfAuthenticationMethod = StringEnum.GetStringValue(AuthenticationMethod.FORMS);   Okay now all of these work like a charm but I find it a whole lot of work. I was wondering if there is a better solution for this.  I also tried something with a dictionary and static properties but that wasn't better either.


Labels are diappearing while zooming in or out

We are using Geoserver 2.10.0. While displaying the labels in the maps, the labels which are there on the border of the tiles(4*4) are not getting displayed properly. the labels can be seen after further zooming in or out(when they fall in the center of the tile and not in the border). in this image you can see the labels are being cut  On zooming further, the labels come properly, as expected  In the first image(1.png), the labels are cut. But in the second image(2.png), we see on zooming further, the labels are coming as expected.  Please help.  Can someone please suggest a solution without using GeoWebCache.


What do "root," "flash," and "ROM" mean?

Possible Duplicate:          I have been looking for some good explanations of some words that have been frequently used the android developer communities like the XDA forums.   Some words I've seen but do not understand are:  root - (as far as I know it's the way of getting the super user access)  flash - don't know what this is  ROM - don't know either  I need a more descriptive explanation about these words and the related tools, mechanisms, etc.


Whenever I am trying to install anything using apt-get,  it shows:  Could not exec dpkg Returned with error code (100)   Same result when I execute   apt-get upgrade   When I type   dpkg --configure -a   It tells me dpkg is not installed and when I run:  apt-get install dpkg   it tells it is the newest version, but when I run:  apt-get install --reinstall dpkg    it again returns error code (100)  Even system updates are failing to occur, no software is getting downloaded even from the Software Download Center.  I use Ubuntu 14.04 LTS


cannot install MS office 2007 on ubuntu 18.04.01 via Playonlinux

My question is not a duplicate because    I don't use wine directly while the asker used wine instead of Playonlinux.  My ubuntu version is 18.04.01 Bionic Beaver, not 14.04 LTS. I am trying to install MS office 2007, not MS office 2010.   I tried several methods.  I successfully mounted the iso-file via the terminal, but Playonlinux is unable to find the CD-ROM, despite the fact that I indicated the path to this mount point (after the successful mounting) in the field "where is your cd-rom mounted".  I chose installation of a non-listed program in POL, browsed the 'setup.exe' file belonging to the folder "ms office" and followed the POL instructions afterwards. There were various messages during the installation process. The was a message that everything is ok, and MS office has been successfully installed on my PC. But those files generated by MS office on another PC are not opened on my PC, and my ubuntu system informs that MS office is not installed. I chose the wine version 3.0.1. in the configuration menu in POL before installation.  Can you give some recommendations and references? What can I do else?  The above link to another question did not help me. I followed the recommendation offered for installation of ms office 2007. My ubuntu version requires "Please insert volume 'OFFICE12' (needed for package 'office2007pro')" , despite mounting of OFFICE12.iso


The force acting on a plate of a parallel capacitor

How can you prove (using high-school-knowledge) that the force which acts on one plate of a parallel capacitor is equal  $F = \frac{E \cdot Q}{2}$  Where $E = \frac{U}{d}$ is the magnitude of the electric field beside the plates and $Q$ is the charge on each of the plates?   I can calculate basic integrals (although they're not in high school).


Staying/extending 90 days more if leaving inbetween Schengen expiry date of 90 days

I am a Canadian citizen. I will leave about 70 days into the Schengen visa given 90 days upon my arrival in Italy. I will go to Thailand for 12 days, and then return into England, with the wish for the chances of getting 90 days again (the stamp is for some reason in the middle of my otherwise blank passport you don't open to it directly.) Can I get a renewal done if I get a letter from a non-profit community saying I am wanting to learn and volunteer more? Can I get one in Italy? Portugal? If I re-enter Europe into England, how will they know in Italy when I entered if I then take the train from England to either Italy or Portugal? I was thinking to do this instead of fly to get around the stamp into Schengen.


How does an object in vacuum loose its temperature?

Well, it radiates in the infrared, I guess. But how exactly are these photons created? The atoms have some kinetic energy, which makes up the temperature. So while the atoms or molecules jitter a bit relative to each other, how does this spontaneously create a photon?


Why is the "user was removed" message so vague?

The message that appears in the reputation tab of a user's profile when they gain or lose reputation due votes disappearing when another user is deleted is simply:     user was removed   This message is confusing and unhelpful. Below are comments that demonstrate this confusion, . I don't have any quotes from the users who could not find it and remained confused.  There is , and . However, the message has not been changed.  I know that in the past the developers have been reluctant to direct users to meta in some situations, such as question bans, because it may cause users to post here appropriately. That does not seem to apply to this case. This is not typically a case of ""; most of us have probably seen the message at some point.  Why is this message vague and unlinked? What negative behaviour does this confusion mitigate?       My first interpretation was that I was the user who was removed!        I just simply wished the explanation on the reputation page was better. Seems like I shouldn't have had to come to the meta section to figure this out.        It must be better to show "User  was removed". For a moment I just thought that I was removed :-(        the information should be better. I lost 10 points yesterday by "user removed" and assumed that I was the one being removed, leaving me wondering why and feeling somewhat embarrassed.         The recalc policy is fine. But the red mark and "user was removed" looks cryptic and unnecessarily negative--especially since the only user name mentioned on a profile is one's own. So the natural impulse is to bind "user" to the account you're looking at. (It was jarring to me and I could tell what it meant, but still this could be clearer.) I agree that orange is better than red and ideally all of these things would have hyperlinks to a help page (or at least a meta post) explaining what the deal is.        +1 (to HostileFork) for the idea of linking to an explanation of 'User was removed'. It just took me 10+ minutes to find this particular thread and read through, when I could have simply clicked through! I would also like a little more info on why user was removed (abuse, friend upvotes, rules, etc) , as that could help educate the community as a whole on what behaviors to report.        I could care less about the rep gain or loss, but when you have a loss it is a scary message without context. I honestly thought for a moment that my account had been inhibited in some way. No, it didn't say "Your account was removed." Still, there is that moment of "what did I do wrong?" which seems silly to cause simply by not posting a few extra words. A clearer "A user who voted on your posts was removed along with reputation changes they caused" would have gone a long way to not cause me to question my participation in the review queues as of late.         My problem is that the message "user has been removed" is not a clickable link like the other messages - so I had to search meta to discover this question to find out what it meant.


How do pass/fail classes look to PhD admissions committees?

I'm a junior hoping to do a PhD. I'm in a graduate level class right now in a different field. I believe almost all the other students are PhD students. The first couple weeks of the course were just barely accessible, though very challenging. Now, however, I really find myself unable to complete the problem sets. There are no office hours either.  How bad would it look to pass/fail this class? It's not particularly related to my intended research focus in the PhD. I believe I am a strong candidate aside from this class.  Also, I'm really not sure what grade I would get in this class. Probably a B at worst. I'd rather not mess up my GPA though. All of my other technical classes are A's or A minuses.


I have algebra problem from a friend, that is 1=-1!!! because   $$-1=-1^{3}=-1^{^{\frac{6}{2}}}=\sqrt{(-1)^6}=\sqrt{1}=1$$  I can not see what is wrong with this?  I will appreciate it any help.


Visit to USA from India via Zurich - visa needed

I am a citizen of India holding a B1B2 visa for US. I am planning to visit the USA for the first time via Zurich and want to stay in Zurich for 2 days. Will I need a Swiss visa for that?


Taking a loan with a low interest and putting it into a Savings deposit with High interest

Can I make money from taking out a loan from a country with a low interest rate (such as Switzerland, that has an interest rate for loans from 4.9%) and put it into a fixed savings deposit account in a country with a high interest rate (the Ukraine, for example, where the interest rate has been said to be around 20%).  What would be all the possible drawbacks. This case of making money of a loan with a savings account(mentioned above) seems to be to black and white(obvious).   I know Ukraine is an unstable country and there is a higher risk of course of losing my money. but apart from that, what else should one look out for?


Saving Chemfig submolecules in a separate file, to be recovered into beamer

Please consider the following code  \documentclass[t]{beamer}  \usepackage{chemfig} \begin{document}  \begin{frame}   \frametitle{1st frame} \definesubmol{x}{-[:+30,.6]-[:-30,.6]} \definesubmol{y}{-O-(=[2,.6]O)-!x!x!x!x!x!x!x!x} \chemfig{[2,0.5]([0]!y)-[,1.5]([0]!y)-[,1.5]([0]!y)}  \end{frame}  \begin{frame}   \frametitle{2nd frame} \chemfig{[2,0.5]([0]!y)-[,1.5]([0]!y)-[,1.5]([0]!y)} \end{frame}  \end{document}   What I would like to achieve is to build submolecules first and then assemble them in successive frames. If I write the submolecules that I need within each frame, soon the whole code become complicate and cluttered.  The only solution I was able to find was to save the submolecules in an external .tex file, to be invoked each time from within frames when needed.  Something like the following  \documentclass[t]{beamer}      \usepackage{chemfig}     \begin{document}      \begin{frame}       \frametitle{1st frame}     \input{submoleculesChemfig.tex}     \chemfig{[2,0.5]([0]!y)-[,1.5]([0]!y)-[,1.5]([0]!y)}     \end{frame}      \begin{frame}       \frametitle{2nd frame}      \input{submoleculesChemfig.tex}          \chemfig{[2,0.5]([0]!y)-[,1.5]([0]!y)-[,1.5]([0]!y)}     \end{frame}      \end{document}   Is there a better solution, without using the external file ? Thanks


What is a good introductory book on quantum mechanics?

I'm really interested in quantum theory and would like to learn all that I can about it. I've followed a few tutorials and read a few books but none satisfied me completely. I'm looking for introductions for beginners which do not depend heavily on linear algebra or calculus, or which provide a soft introduction for the requisite mathematics as they go along.  What are good introductory guides to QM along these lines?


How to run applications as root using gksu alternative

When I run applications like Synaptic or Gparted, I'm prompted by the lovely screen on the left, to enter my admin password. I think this has something to do with pkexec.  But when I run applications using gksu I am prompted by the ugly window on the right.   I'd like to run Nautilus or Gedit sometimes as root and be prompted by the nicer window on the left.     Update 2015/4/09 6:00pm     $ pkexec gedit gdk_mir_display_open Failed to connect to Mir: Failed to connect to server socket: No such file or directory Unable to init server: Could not connect: Connection refused  (gedit:9664): Gtk-WARNING **: cannot open display:


Whats the best way to get people to verify their identity for the purpose of preventing fake accounts on a social site.  For example, Zoosk does the following:     Members who choose to verify their photo will be prompted by the system to record and submit a video “selfie” that will capture the individual’s face from a variety of angles. If the moderators approve the member’s photo, he or she will be notified and a Photo Verified badge will be added to their profile.   However  I'm interested to know if there's a clever way to do this without human intervention (aside from using Amazon Turk service or the like, I mean fully automated)


How can I show the System Tray across multiple monitors in Windows 8.1

In Windows 8.1, the taskbar is shared between all 3 of my monitors but the System Tray only shows up on my monitor that is noted as my "Main Display" in Screen Resolution settings.  Is there a way I can have the system tray show up on all of my monitors?  Edits: I noticed this guy asked a similar question about the clock, so I doubt I'll get any different answers.


Ubuntu lastest kernel update broke my GFX drivers

So, the latest kernel broke my AMD drivers and forced my system into a Low Graphics Mode on boot up now, the update I got was 3.19.0-26 and I'm now in ttyl consoles now instead of the Ubuntu desktop. I am on 15.04 64 bit but I'm at the end of my rope I have tried to install the regular and updates version of fglrx but I still get LGM when I boot back up. Also, I'm using the drivers provided by additional drivers.  Any help?  Edit: I purged all fglrx drivers from my system using sudo apt-get purge fglrx* and I got to the greeter but the ubuntu desktop won't load and throws me back at login. Good thing I installed enlightenment desktop, that let's me log-in. I'm going to download and install the drivers from AMD to see if that helps.


Are there more rational or irrational numbers?

On the number line, are there more rational numbers or irrational numbers? I was told that there are equally many rational and irrational numbers. Is this correct? How could we prove that?


Is it possible to check if a certain url is redericting without opening a request to the site in Python?

I know that it is possible to check if a URL redirects, as mentioned in the following question and its answer.    using the following code:  eq = urllib2.Request(url=url, headers=headers) resp = urllib2.urlopen(req, timeout=3) redirected = resp.geturl() != url # redirected will be a boolean True/False   However, I have list of Millions of URLs. Currently it is discussed wether one of them is a harmful URL or redirects to a harmful URL.   I want to know if it is possible to check for redirect without opening a direct connection to the redirecting website to avoid creating a connection with a harmful website?


Encrypted file system on external storage

I use archlinux and manjaro. I recently bought an external 2TB toshiba stor.E canvio, and I planned to use it as back up. I used gpt layout and partitioned it with luks and ext4. Dolphin reports 6% full, whilst only 20kb are used. why is it so? I decided to use encrypted zfs/btrfs on it, but I don't know any of it's basis and jargon. what's the easiest way to do so.


Highlight "close (x)" when a close vote is already raised

I always stumble upon questions which are in need of being closed. However, I often forget whether I voted to close a question or not, so I click on "close (x)", wait for the close dialog to load and see whether I've voted or not.  Why not make it clear from the very start? How about highlighting the "close (x)" link when a vote to close is already raised?  No vote raised:    Vote already raised:


Say there is a convolutional layer that has 8 filters of size 3x3 and takes as input 28x28x1 images.  Then the output size will be 26x26x8.  So how are there 8 26x26 feature maps for that layer or just 1 26x26 feature map? If the answer is 1 feature map then how is it created since the output has 8 channels?


Is there a offline version of the Stack Exchange platform to download to run on an internal network?


Cantor's diagonal argument can be used to show that a set $S$ is always smaller than its power set $\wp(S)$.  The proof works by showing that no function $f : S \rightarrow \wp(S)$ can be surjective by constructing the explicit set $D = \{ x \in S | x \notin f(s) \}$ from a function $f$ and showing that no element of $S$ maps to $D$.  This proof works because all bijections are surjections, so if no surjection from $S$ to $\wp(S)$ exists, then there cannot be a bijection between $S$ and $\wp(S)$.  My question is whether it is possible to run a "reverse diagonalization" that works by instead showing that there is no injection from $\wp(S)$ to $S$.  I am curious about this because I have never seen Cantor's theorem proved this way (or, more generally, any diagonal argument structured like this).  Is it possible to take Cantor's diagonal argument and "reverse" it to show that there cannot be an injection from $\wp(S)$ to $S$, rather than showing that there can be no surjection from $S$ to $\wp(S)$?  Thanks!


Related to :  I don't know Lagrange's theorem, and I don't want to prove that there are no subgroups of size $4$ or $5$, is there a better way to argue that there aren't any, with basic abstract algebra knowledge?


How can I get this vertical line in LaTeX:  |  I dont see a command for it, and if I type | it becomes horizontal.


Are there English contrepèteries apart from this one ?

Do you know the difference between a nun in a church and a nun in a bath ?   This sounds as a nun joke, it is not.   Well, in church her soul is full of hope...   Then you let your audience figure out the rest. This is art for connoisseurs, and you're not meant to give it away, but since I think most English speakers miss this without knowing, here it is: Her Soul is full of Hope...  Her S-ole is full of H-ope...   This is rude, and meant that way, go on...  Her H-ole is full of S-ope  Her hole is full of soap.  There are thousands of such humorous blasts, hidden in French literature, passed like farts in too stiff dinners by bored gentlemen sharing a laugh in private, published weekly in "L'album de la contesse" the dedicated section of "Le canard Enchainé", a satirical and political weekly read by the establishment.  Now my questions are : Does that exist in english ? Is it even possible beyond a few examples ? What's it called ?


Page layout of parts included by the \include command

It is customary in big works like books or user manuals to split content in several separate files and \include them in the main document: usually each file contains a chapter, an appendix or more generally a unit of text which not nested in any of the remaining others. I tried to extend the use since, writing a user manual of a complex system, I have several parts which remains unchanged even for different systems and thus different manuals: therefore I tried and succeed in including single paragraphs or groups of such sections/subsections, which are naturally nested inside a single chapter, in the sense that the index numbering so generated is more than correct. However, as Mittelbach and Gossens say at page 19 of "The LaTeX Companion" (2nd ed.),     Note that each document part loaded via \include starts on a new page and finishes by calling \clearpage; thus, floats contained therein will not move outside the pages produced by this part. So natural candidates for \include are whole chapters of a book but not necessarily small fractions of text.   I would like to know if there is a way to inhibit this behavior, namely to avoid that chosen parts included with \include will start on a new page.


quotient by contractible space and homotopy equivalent?

Let $X$ be a space and $L$ be a subspace of $X$ that is contractible. Then is $X/L$ homotopy-equivalent to $X$ itself? it doesn't seem trivial to me at al...If so, how to show it rigorously? Could anyone help me?


I try save variable name like this:  #define TEST someVariable #define makeString(x) #x  int main(int argc, char *argv[]) {     char TEST[] = makeString(TEST);     printf("%s    %s\n", TEST, makeString(TEST));     return 0; }   Output is :  appden4ik@appDen4ik:/opt/preprocessor/Debug$ ./preprocessor  TEST    TEST'   I want next output:  someVariable      someVariable   Where I am wrong?


I defined a question macro, then made it successively fancier.  Right now, three macro should define a short hand for the following:  \section{Questions} \begin{enumerate} \item Q1... \item Q2... \end{enumerate} \section{Exercises} \begin{enumerate} \item exercise 1 \item exercise 2 \end{enumerate} \href{my.url.goes/here/specific}{Take the quiz}   The three commands defined to do this are:  \newcommand{\qqq}{\section{Question}\begin{enumerate}} \newcommand{\exer}{\end{enumerate}\section{Exercises}\begin{enumerate}} \newcommand{\endexer}[1]{\end{enumerate}\href{my.url.com/path/{#1}}{Take the quiz}}   A sample call to make this happen:  \qqq \item What is 2+3? \exer \item Write a program to compute 2+3 \endexer{123}   should generate the url:  my.url.com/path/123  The error is:  ! LaTeX Error: Command \endexer already defined.                   Or name \end... illegal, see p.192 of the manual.  I am not posting the MWE because I think this is a stupid syntax error based on something I am missing about \newcommand, but if I'm wrong, I will create an MWE and add it here.


Cycles getting black shaded areas of emission / transparent shaded faces

I have a terrain mesh that I have shaded using a combination of emission shader and transparent shader. The issues is when I view the model from any angle where there would overlap from itself, for example both sides of a mountain are visible due to the transparency. The back sides appear to be black. I have disabled shadow rays for the object but it does not help. Attached is a pic of the issue and shader I am using.


TB Mega Menu: The website encountered an unexpected error. Please try again later

I have installed drupal 8.0.2 on my hosting for testing purposes. I am using Zircon template and installed TB Mega Menu 8.x-1.0-alpha1. After installation, on page: admin/structure/tb-megamenu, when I click any of button, I get the following error:  The website encountered an unexpected error. Please try again later.  by searching google, I came accross with a solution:   But as a new to drupal and environment, I do not know how to do it. I have never tried patching before and most importantly it is the solution for the case.  If patching is the solution, which program should I use, how can I accomplish this step by step?


Set History Tracking missing from SFDX code

I went to put my newly create sfdx application onto a different scratch org.  It seems as if the configuration of the 'set history tracking' is not saved when you pull.  I verified if I changed the setting and the pulled nothing will get pulled down. Is there a way to get this into this configuration in the sfdx project?


While adding 2 numbers I am getting a lengthy decimal part   Pasting the code below.  Number(200.59) + Number(100) =  300.59000000000003 //Expected result 300.59


How do I Uninstall a Program and Dependencies from a tar.bz2?

I installed a program using make and sudo make install. Is there a command I can use to remove these files now?


prepend the text file output to other file

I want to prepend the data of a file (random.txt) into another set of files (real.txt) in a folder.  Take the following example:  $ cat random some text  $ cat real.txt sample text   If I run the following command:  $ sed i.old '1s;^;some text\n;' real.txt  $ cat real.txt some text  sample text   This command prepends the text of file random into file real.txt, but the content of random is not fixed. Is it possible to redirect the content of the random into real.txt?  I tried the following command:  $ sed -i.old "1s;^;$(cat random)\n;" real.txt  $ cat real.txt   Which gives the output:  some text sample text   The problem occurs when i my random fil gets a txt starting with "/*". It shows following error:   $ cat real.txt /*new text  new line*/ $sed -i.old "1s;^;$(cat random)\n;" real.txt  sed: -e expression #1, char 16: unterminated `s' command


Can we partition $[0,1]$ into two nowhere null sets?

Is it possible to partition $[0, 1] = A \sqcup B$ such that given any $0 \leq x < y \leq 1$, both $\mu([x,y] \cap A) > 0$ and $\mu([x,y] \cap B) > 0$?


How can I display the spinning NSProgressIndicator in a different color?

I am using a "spinner" NSProgressIndicator in my cocoa app:     I would like to display it in a different color so that it will show up well on a dark background:     How would I go about doing this? My last resort would be to write my own custom NSView subclass that renders a custom animation, but I'm not even sure where to start on that front. Any help is appreciated.


I can't figure out what is causing this I tried removing the materials for the objects as well as re-assigning new materials and flipping normals I don't know what is causing this issue for the model.  The head seems to be working like it should but the body doesn't turn white in textured mode or black in material mode. I'm using default blender render


storing data in an int array after change a string value to int in java

int[] Data = null ;     sp = set.replaceAll(" ", ",").split(",");      for (int i=0 ; i<sp.length ; i++){          Data[i] =Integer.parseInt(sp[i]);   }  In this java code i have this error "Exception in thread "main" java.lang.NullPointerException". In fact the int can not saved int value in Data[i]. What should i do to store that? Thanks


Migrate Clash of Clans data from Android to iOS

I have a CoC account on my iPad. I got an Android phone and set up a second account there. Now I got a new iPhone and I want to use my Android CoC account on that, but when I log in my iPhone, it pulls the one I have on iPad.  I have logged out of Game Center but no idea how to move into my Google account on the iPhone to pull that account over.


Is Google Scholar reliable for reporting citations?

When quoting the number of citations for each paper you have published, different sources can be used, Google Scholar, ResearcherID, Scopus. Google Scholar covers a larger range of literature.  Is it acceptable to use Google Scholar? Or it is not a professional resource, and we necessarily should use ISI Web of Knowledge for counting citations?


How to deal with IP redirection and Googlebot?

My client wants country-based domains for their customers. For example, all customers from UK will be taken to the .co.uk site, even if they visit the .com site. And same for other countries.   I have used IP redirection for this. Redirection is OK.   Since all non-UK IPs are redirected to .com site, how will Google index the .co.uk site?  If I submit a sitemap of .co.uk and .com sites to Google and have country-based IP redirection in place, will Google (or any other bot) be able to visit?  My understanding is, Google bots have IPs from USA.  And, .co.uk and .com sites have 80 % content same. Will it impact on duplicate content?


Novel about a replica of earth where history happened slightly differently after the ~1940s

I'm trying to find a novel I read a long time ago and it's driving me nuts - all Google searches result in failure..it's been 10-15 years since I've read it I think, here's some details I remember:  The biggest plot twist is that the main character is being told that he's on an exact replica of earth, that was 'snapshotted' around ~1940 (I think?) Certain historic events after WWII happened differently in that world There's a sub plot about gravitational waves / using it to construct some sort of phone (I think?) At some point in the book, nanobots or something heal this guys' body / rejuvenate it completely, after he meets some folks that transport him out of the replica earth (I think)  I realize this is a very loose recollection of my memory, so some stuff might be off, apologies in advance! Any leads would be spectacular. Thanks!


What are the reasons for accepting Coulomb's law?

I read the Coulomb's first memoir on Electricity and Magnetism (Louis L. Bucciarelli english translated version), and found it to contain only three trials (as complained by many) to reach the conclusion of a $1/r^2$ equation for the force. And many seems to have also complained for not having able to get the same results. I read the recent papers of A.A Martinez and others who have tried to reproduce the experiment (the technical details went beyond so I couldn't complete).     What I want to know now is, what has made Coulomb's law unquestionable? Has the experimental justification for the law been given? What are the reasons for accepting it?     Or is the same equation been arrived theoretically (I have a feel for this)?


Here's a puzzler: Is the use here of his wife, Julie's, correct?     Peter Brown, still smarting from his wife, Julie's, infidelity, wants   her dead, and he's trying to convince his friend Bill to commit the   murder.   I don't think so, but it seemed like an interesting case that I haven't seen covered anywhere.


How do I avoid the "S to Skip" message on boot?

After upgrading my laptop from karmic to lucid, my fat32 partition won't mount automatically. I get the message:  The disk drive for /osshare is not ready yet or not present Continue to wait; or Press S to skip mounting or M for manual recovery   Funny thing is, if I skip, then /osshare/ is mounted once I log in.   I've a similar setup on my desktop, and it works fine. Fstab on desktop:  UUID=4663-6853  /osshare        vfat    utf8,umask=007,gid=46 0       1   /etc/fstab on laptop:  UUID=1234-5678 /osshare vfat utf8,auto,rw,user 0 0


How is find's {} substitution pattern vulnerable to injection attack?

I'm trying to understand more about this edit that was made to an answer of mine:    How does running cd "{}" in the context of a find command introduce vulnerability to injection attacks?  For reference, the change made to cover the vulnerability was:  diff --git a/command b/command index 26488d0..fed4c07 100644 --- a/command +++ b/command @@ -1 +1 @@ -find . -type d -exec sh -c 'cd {} && echo "Spawning a shell in $PWD..." && sh' \; +find . -type d -exec sh -c 'cd "$1" && echo "Spawning a shell in $PWD..." && sh' sh {} \;


Where is Composition ‣ Paper and Quality panel of QGIS?

A right-click on panel doesn't bring this up and not listed in View/Toolbars or View/Panels ... have a very specific page size so really need to change from default A4.


Missing dependency when installing Canon Pixma MX330 drivers from michael-gruz PPA

I am attempting to install a canon pixma mx330 (multi-function) all-in-one on Ubuntu 14.04.    I found a page with , and I have followed the instructions to the point of installing the actual driver without any errors.  When I attempt to install the mx330series driver I get the following error message:  charles@charles-GN689AA-ABA-m8277c:~$ sudo apt-get install cnijfilter-mx330series Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:    cnijfilter-mx330series:i386 : Depends: libtiff4:i386 (> 3.9.5-3~) but it is not installable E: Unable to correct problems, you have held broken packages   I have downloaded and attempted to install libtiff4, but my system tells me it is already installed.  What steps do I need to take to get the mmx330 driver installed?  Thank you.


Show that for any open subset of $\Bbb R$, there is a fraction with prime terms that belongs to it

Be $\Bbb P\Bbb Q$ the set of all fractions $f_{m,n}=\frac{p_m}{p_n}$ whose numerador and denominator are both prime numbers.  i) Show that for any open set $A\subset \Bbb R^+$, there is at least one fraction $f \in \Bbb P\Bbb Q$ such that $f \in A$   ii) Show that there are infinitely many elements of  $\Bbb P\Bbb Q$ that belong to any open  set $A\subset \Bbb R^+$


How do I suppress the whitespace above an equation block at the page top?

How do I suppress the whitespace above the equation block at the page top ? It is added to the top margin, and I don't want that to happen. I know that \abovedisplayshortskip controls this for the whole document, but how can I change this for this particular equation block and NOT for any others ? Negative vspace doesn't work.  \documentclass[pdftex,12pt,a4paper,english,dutch,leqno]{article} \usepackage[top=1cm,right=1cm,bottom=1cm,left=1.5cm,noheadfoot]{geometry}         \usepackage{babel} \usepackage{amsmath} \usepackage{amssymb} \usepackage{empheq}  \begin{document}  \abovedisplayskip=6pt \abovedisplayshortskip=3pt % This should NOT be changed \belowdisplayskip=6pt \belowdisplayshortskip=3pt  \begin{equation*} \left.\begin{array}{r} a_{31}'=a_{11}\cdot a_{31}-a_{31}\cdot a_{11}=0\\ a_{32}'=a_{11}\cdot a_{32}-a_{31}\cdot a_{12}\\ a_{33}'=a_{11}\cdot a_{33}-a_{31}\cdot a_{13}\\ a_{34}'=a_{11}\cdot a_{34}-a_{31}\cdot a_{14}\\ b_{3}'=a_{11}\cdot b_{3}-a_{31}\cdot b_{1} \end{array}\!\!\right\} \Longrightarrow\; \begin{matrix*}[l] \text{Pseudo-code :}\\ a_{11}\cdot b_{3}-a_{31}\cdot b_{1}\mapsto b_{3}\text{.}\\ \forall\;i\in\{4,3,2,1\} : a_{11}\cdot a_{3i}-a_{31}\cdot a_{1i}\mapsto a_{3i}\text{.} \end{matrix*} \end{equation*}  \end{document}


What is wrong with below code?  SELECT  first_name, last_name FROM    employees UNION ALL SELECT  first_name, last_name FROM    dependents ORDER BY  last_name LIMIT 6 OFFSET 1;   Even a simple query with LIMIT doesn't seem to be working :  SELECT  first_name, last_name FROM    dependents ORDER BY  last_name LIMIT 6 OFFSET 1;      Getting this error repeatedly: ORA-00933: SQL command not properly   ended


Where can I ask questions about good plugins or other solutions?

I've asked the same question here (I had not read the rules, sorry, I assumed this was more for general discussion.) and on the regular SO site, and both times the question was closed. "Don't ask about anything that is related to opinion" is pretty much what I've got from that.  The answer to this question:  doesn't answer the "where" portion of what I'm asking.  The answer to this question lists a lot of forums (or a link to the list anyway) but is not relevant to the question I have, and the answers are much slower coming in. One of my favorite things about SO is how quickly people answer.   I'm kind of at a loss here.


Set Windows Command Prompt with Unlimited Buffer Size

I am not sure whether Screen Buffer is the parameter which controls how much u scroll through the history in Windows Command Prompt.  I want to set Unlimited Buffer so that I can go past to at-least 1 day back what I have done in the command prompt. It's pretty annoying when I work so much on Command Prompt. It should set for any new command prompt which I launch and without executing any batch script/command.


Given that a,b,c are distinct positive real numbers, prove that (a + b +c)( 1/a + 1/b + 1/c)>9

Given that $a,b,c$ are distinct positive real numbers, prove that $(a + b +c)\big( \frac1{a}+ \frac1{b} + \frac1{c}\big)>9$   This is how I tried doing it:  Let $p= a + b + c,$ and $q=\frac1{a}+ \frac1{b} + \frac1{c}$.  Using AM>GM for $p, q$, I get:  $$\frac{p+q}{2} > {(pq)}^{1/2}$$ $$\sqrt{(a + b +c)\bigg(\frac1{a}+ \frac1{b} + \frac1{c}\bigg)} < \frac{\big(a+\frac1{a} + b+\frac1{b} + c+\frac1{c}\big)}2$$ And for any $x\in \mathbb{R}, \space \space x+\frac1{x}≥2.$ Thus,   $$(a + b +c)\bigg(\frac1{a}+ \frac1{b} + \frac1{c}\bigg)<9, $$ which is the opposite of what had to be proven. What did I do wrong?


Does developing on ARM Processors from different vendors differ much?

I have started developing applications on XMC 2 go evaluation board. I, more or less, got the idea. But what if I try to go for, lets say, STM32?   For XMC1100 setting pin 00 as output is   PORT1->IOCR0 &= ~PORT0_IOCR0_PC0_Msk; PORT0->IOCR0 |= 0x0 << PORT0_IOCR0_PC0_Pos;   But I don't think stm32 has a IOCR register. So, should an engineer learn all these different register names?


If $\lim_{x\to\infty} f'(x) = L$, prove that $\lim_{x\to\infty} f(x+c)-f(x) = cL$ and $\lim_{x\to\infty} f(x)/x=L$

Question:   Let $f:[0,\infty)\rightarrow \mathbb{R}$ be differentiable and such that $\lim_{x\to\infty} f'(x) = L$. Then for every $c>0$, $\lim_{x\to\infty} f(x+c)-f(x)=cL$ and $\lim_{x\to\infty} f(x)/x = L.$  What i think that may work: using mean value theorem for the first proof and l'hospital rule for the second proof. But i can't write this rigorously. How do i write those things in a rigorous way?


Replace mutiple strings with different values in a file using unix

I have a file in which the data is like below,  01,0000000,xxxxxxx/                         02,xxxxxxxx,yyyyyy/                                     03,test1,41203016,,/       01,0000000,xxxxxxx/                         02,xxxxxxxx,yyyyyy/                                     03,test2,41203017,,/      01,0000000,xxxxxxx/                         02,xxxxxxxx,yyyyyy/                                     03,test3,41203018,,/       I will not be knowing what values will be there In the file for test1,test2 and test3. I know that it will be in the line starting with 03 and also I have to dynamically derive the replace strings based on test string.  Is there a way to do this in unix? Is yes, please provide the command.


Let's say I have an infinitely long rod which I use to pass information to my friend on the other end. If the rod moves towards my friend, it means I sent a 1 and if the rod moves away from my friend, it means I sent a 0. Using this rod to transfer binary information to my friend, can I send information that travels faster than the speed of light? Or in other words, can I talk with my friend instantly irrespective of the distance between me and my friend?  Is this theoretically possible? My assumption is that push and pull of the rod is instant. Is it really instant or the push and pull also travels at the speed of light limiting the speed of my communication?


How to update an 'array' option using wp-cli

I'm trying to write a bash script to automate the syncing of a live site to a dev site. I have the basics figured out, like exporting the production db and importing / updating urls in the dev site, but I need help updating an option whose data is saved as an array.  Specifically, I want to change Woocommerce's Stripe setting using wp-cli.  I can see the option using wp-cli:  $ wp option get woocommerce_stripe_settings array (   'enabled' => 'yes',   'title' => 'Credit Card (Stripe)',   'description' => 'Pay with your credit card via Stripe.',   'testmode' => 'no',   'test_secret_key' => 'sk_test_xxxxxxxxxxxxxxxxxx',   'test_publishable_key' => 'pk_test_xxxxxxxxxxxxxxxxxx',   'secret_key' => 'sk_live_xxxxxxxxxxxxxxxxxx',   'publishable_key' => 'pk_live_xxxxxxxxxxxxxxxxxx',   'capture' => 'yes',   'stripe_checkout' => 'no',   'allow_remember_me' => 'yes',   'stripe_checkout_locale' => 'en',   'stripe_bitcoin' => 'no',   'stripe_checkout_image' => '',   'saved_cards' => 'yes',   'logging' => 'no',   'apple_pay_domain_set' => 'yes',   'statement_descriptor' => 'Statement From',   'request_payment_api' => 'no',   'apple_pay' => 'yes',   'apple_pay_button' => 'black',   'apple_pay_button_lang' => 'en', )   I tried to use the serialized value that got from querying the DB directly, updating the s:2:"no" to s:3:"yes" but that didn't seem to save the value correctly:  wp option update woocommerce_stripe_settings 'a:22:{s:7:"enabled";s:3:"yes";s:5:"title";s:20:"Credit Card (Stripe)";s:11:"description";s:37:"Pay with your credit card via Stripe.";s:8:"testmode";s:3:"yes";s:15:"test_secret_key";s:32:"sk_test_xxxxxxxxxxxxxxxxxxxxxxxx";s:20:"test_publishable_key";s:32:"pk_test_xxxxxxxxxxxxxxxxxxxxxxxx";s:10:"secret_key";s:32:"sk_live_xxxxxxxxxxxxxxxxxxxxxxxx";s:15:"publishable_key";s:32:"pk_live_xxxxxxxxxxxxxxxxxxxxxxxx";s:7:"capture";s:3:"yes";s:15:"stripe_checkout";s:2:"no";s:17:"allow_remember_me";s:3:"yes";s:22:"stripe_checkout_locale";s:2:"en";s:14:"stripe_bitcoin";s:2:"no";s:21:"stripe_checkout_image";s:0:"";s:11:"saved_cards";s:3:"yes";s:7:"logging";s:2:"no";s:20:"apple_pay_domain_set";s:3:"yes";s:20:"statement_descriptor";s:50:"                                                  ";s:19:"request_payment_api";s:2:"no";s:9:"apple_pay";s:3:"yes";s:16:"apple_pay_button";s:5:"black";s:21:"apple_pay_button_lang";s:2:"en";}'   Additionally, the only piece of information that I want to change is 'testmode' => 'no' to 'testmode' => 'yes' -- so a solution of doing something like hardcoding the whole serialized array won't work in my situation, and anyway feels really fragile to me anyway.   Is there a way to update just one value of an array using wpcli? In my mind it would look something like:  $ wp option update woocommerce_stripe_settings['testmode'] yes


Table with tabular, column type p grabbing available space

I have a table with one column which contains a longer description spanning multiple lines. Therefore I use the column type p, which requires me to specify a fixed column width. Is it possible to specify the column in such a way, that the table column simply "grabs" all available horizontal space?  \documentclass[ngerman]{scrbook} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc}  \begin{document}     % I would like to avoid hard coding the column width here     \begin{tabular}{l p{5cm}}         column 1 & column 2 \\         name & The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. \\     \end{tabular} \end{document}


Accidently ran "chown www-data:www-data / -R" as root

I just ran this a few seconds ago. I managed to do Ctrl - C as soon as I realized what I started doing.  So far the only directory it's started going through is /bin.  I'm afraid to do anything else. So far I realized I can't use su as my normal user anymore.  Luckily I still have another root terminal open. What do I do?


I recently start reading books on games theory, logic in order gain working knowledge in olympiad style logic question. I stumble upon this little puzzle, but I couldn't wrestle it down and couldn't beat it. I wonder what your strategy is to tackle such a question as this:  Alice and Charlie just became friends with Dottie, and they want to know Dottie's birthday. Dottie then gives them a list of $10$ possible dates:  May 15 - May 16 - May 19   June 17 - June 18  July 14 - July 16  August 14 - August  15 - August 17  Dottie then tells Alice and Charlie separately the month and the day of her birthday respectively.  Alice:   I don't know when Dottie's birthday is, but I know that Charlie does not know too.  Charlie: At first I don't know when Dottie's birthday is, but I know now.  Alice:  Then I also know when Dottie's birthday is.  Question: When is Dottie's birthday ?


How to clone Ubuntu 16.04 partition from triple booted HDD to SSD?

Just got a new SSD. It's a Samsung EVO 750 (120 GB). It's MBR. I have 3 operating systems in my HDD (1 TB) which is GPT (and has a loooot of partitions). One is the pre-installed Windows that came along with my laptop, I use it only for Photoshop now. The other two are Linux OSes. I am trying to create partitions in the SSD to have Ubuntu installed in one and the other have some Windows apps that need an SSD, only those apps and not the OS itself.   Ubuntu has too many settings and configs which I can't afford to lose or create again. So my best option is to clone the Ubuntu partition to one of the SSD partitions and leave the other partition as an NTFS for Windows to access.   How do I go on about it? I have checked the internet, but I seem to be lost.


How to include the same block in two regions?

I created a views block and have included it in the Content region for one of the pages... I would like to call the same block on a different region on the homepage. Is this possible?


EmojiOne Color font doesn't replace black and white emoji font in Firefox or Chrome

Just yesterday, I installed the  (fonts-emojione-svginot) for Ubuntu via the Launchpad PPA method. On the , all the emoji display in color on my laptop.    But emoji like 😂 (tears of joy) show up as their black and white counterparts rather than their EmojiOne counterparts in Firefox. On Chrome, all emoji show up as black and white icons.  Firefox:    Chrome (demo page):    Why is it that Firefox will display some emojis in colour, but other emojis in black and white? In Unity Tweak Tool, my default font is set to Bitstream Vera Sans Roman (I have no other types of Bitstream Vera fonts), which is said to display EmojiOne. My document and window font is set to the same one. Only my monospace font is different (Courier). In Firefox's about:config, I have "gfx.font_rendering.fontconfig.fontlist.enabled" set to "false". Also, my Serif and Sans-serif fonts are both set to Bitstream Vera in Firefox.  I've also noticed that sometimes my fonts will switch to DejaVu Sans. Why? Why can't I set my fonts to a Bitstream font permanently?


How to know which fonts are used in selected part of a PDF document

I'm using Foxit Reader as default PDF viewer. How can I see what type of font is used for a selected part of a PDF document?  (If this can only be done with another software, I'd prefer a freeware as I don't want to pay for just viewing selected fonts' types.)


Move all files into subdirectories named after part of file name

I have a directory that contains quite a lot of files with names made up of artirst's name and album e.g.:   Now the task is to go through each of the files, create a directory named after artist's name and album the file's name, and move the file into that directory.  The final structure should look like this:   how would I go about doing this with only basic shell commands?


What stands for `xxx.d` in home directory? daemon?

Like emacs.d, some programs have name like xxx.d for init files. What does this d means? Is this abbreviation of something?


I am new in development. I need to protect my application constant file from decompilation. How can I do this? Is there anyway, please help me out.


How to connect to ssh from ubuntu with putty generated key?

Used puttygen to make private.ppk for connecting in server with privatepublic.ppk In putty using private.ppk to connect works. How to connect with this key in ubuntu?


90s film about one alien controlling humans and making them act violently

I am trying to remember the name of a movie I saw when I was a kid (90s). This is about an alien (I vaguely remember being a black scorpion type) that was moving from human to human (as they got killed) and controlling their mind, making them act violently.  The only scene I can clearly remember is that the action takes place in the street at night, after one human was killed, the hero (a man) sees the alien quickly run on the ground and move onto another human.


I have many times come across this word. I even know a little about it but don't know exactly what it is.


auto-attach EBS volume to a Spot instance

I need some persistent storage across spot terminations.  My approach to solve the problem is    Write a startup script that attaches and mounts the persistent volume  Snapshot this state and register a private AMI Launch Spot instances based of the private AMI   searches in this forum [] suggests this is the correct procedure  My startup script:  #!/bin/sh  echo "executing startup script"  # attach the EBS volume to this machine aws ec2 attach-volume --volume-id vol-7bef1d96  --instance-id  $(wget -q -O - http://169.254.169.254/latest/meta-data/instance-id ) --device /dev/xvdg  sleep  10  # mount the attached EBS volume echo "mounting the  attached volume" sudo mount /dev/xvdg1 /home/ubuntu/persistent/  #run script echo "starting the  dummy program in background" python2 persistent/dummyProgram.py &   The script works perfectly if executed manually. However when it is executed by cron the  only the echo statement are executed  the crontab task is  @reboot /path/to/startupScript.sh   How do I solve this problem?  The corrected  crontab entry reads :  USER=username PATH=content of $PATH @reboot /path/to/startupScript.sh


The commands for Operators aren't working on realms in Minecraft. We've reset the server, de-opped and re-opped. It doesn't work. If anyone knows any reason or fix for this please let me know. We were developing our new map and now we can't do much to it...


confirm email or email verification later?

I have a registration form, name, email, password. I also offer the Facebook connection and in the future all other Open ID ways but for now I would focus on the regular process:  Currently, I require the password confirmation and then I send an email to confirm the email address.  But I really also like the Tumblr way which grants full functionality even without email confirmation, and so with your email+password entered you are into the site in literally 30 seconds...  So my question is: what are the best practices and in terms of metrics/stats if it is better to allow an easy process but with the risk of high volume of fake, wrong, incomplete accounts OR ask more initially so those users who complete the process are "quality users"?  (I hope my question was clear, sorry for my English.)


How to rename multiple folders at once to remove certain characters?

How can I rename all these folders at once to remove "-v4"?  My directories look like this:  drawable-hdpi-v4/ drawable-ldrtl-v4/ mipmap-mdpi-v4/


Colored borders around windows after update

After some gorgeous updates I witness this:


How do you properly align an elements vertical centerline with a childs vertical center line with CSS?

I have a menu (left navigation) which has sub menus that fly out when hovered over. It is comprised of unordered lists stacked like so:

Item

Item w/ Sub

sub 1

  This is really its most simple form. Right now the hovering works fine, what I would like to do is to make the vertical centers of the parent menu and the fly-out submenu line up. This image demonstrates the idea: Current State  Desired State  As you see in the image, the vertical centers (the line spanning halfway up the height of the elements), is basically in line with each. Right now, the green child is absolutely positioned, but when I add relative positioning to the parent child, it starts to exhibit some erratic and bizarre behavior. I was wondering if there was a way to do this with flexbox, but I have yet to find a solution. How can I get the vertical centers of a parent and child to align? Things to consider:  The submenus are variable height They are fixed width (260px) The parent menu (blue box) is a fixed height.


How to find a measurable but not integrable function or a positive integrable function?

For an arbitrary interval $I$, how can we find a positive on $I$ integrable function? And how does one construct a measurable but not integrable function. If not all measurable functions are integrable, what is the best way to determine if a function is L-Integrable?   thx in advance


Excel Count number of cells based on three dependent selects

I am looking to count the number of cells based on three dependent select statements. each select corresponds to a column.  For example,   Select nth-Day (Column A)   Select Issue Type (Column B)     Select Severity Level (Column C)  ColumnA, ColumnB, ColumnC  Day1, Backend, Sev1  Day1, Backend, Sev1 Day1, Frontend, Sev1  Day1, Frontend, Sev2  Day1, Frontend, Sev1  Day2, Backend, Sev3  Day2, Frontend, Sev3   So for Day1, Backend, Sev1 = 2 Day1, Frontend, Sev1 = 2 Day2, Backend, Sev1 = 1    I can start with countifs but I'm stuck after that.  Any gurus?


While installing the most recent version of the kernel, I ran out of disk space. How do I go back and delete all of the old versions of the kernel that are occupying my disk


Is it possible that I could see the mobile number of Facebook friends? I saw the following post, but I did not find it because Facebook has changed.


Why does echo "a" | wc -m echo 2? Other variations in which I try to reduce the number of spaces yield the same result.


I know this has been asked before. However, none of the solutions helped me. I have tried \notoccite and that did not work. My issue is that each figure with a citation in the list of figures counts so, List of Figures Figure 1 LoF Caption [1] ..........  1 Figure 2 LoF Caption [2] ..........  2 Introduction Sentence with citation [3] Figure 1: Figure 1 LoF Caption [1] Figure 2: Figure 2 LoF Caption [2] \documentclass{article}  \usepackage{graphicx, cite, caption, subcaption, notoccite} \begin{document}  \listoffigures  \section{Introduction}  Sentence with a citation \cite{first}  \begin{figure}     \caption{Figure 1 LoF Caption \cite{second}} \end{figure} \begin{figure}     \caption{Figure 2 LoF Caption \cite{third}} \end{figure} \end{document}  It is important to note that \autocite does not work and I am using a *.bib file for my references. I do not want any citations citations to count in the list of figures.


I have trouble making the Graph Drawing example on page 363 in the  Manual work.  To this end, I've read the question asked ealier,  but have not had any luck using the code suggested by user @JP-Ellis.  I'm getting the same error on my local install (MikTex 2.9 Fully updated, TexStudio 5.6.2) and on Overleaf.com  Here is my code example:  % !TeX program = lualatex \documentclass[tikz]{standalone} \usepackage{tikz} \usetikzlibrary{arrows} \usetikzlibrary{graphs} \usetikzlibrary{graphdrawing} \usegdlibrary{layered} \title{Tikz Graph Test} \begin{document} \tikz [nodes={text height=.7em,text depth=.2em,draw=black!20,thick,fill=white,font=\footnotesize},>=stealth',rounded corners,semithick] \graph [layered layout,level distance=1cm,sibling sep=0.5em,sibling distance=1cm] {"Femte" -> {"Sjette","Prise"};}; \end{document}    Here is the log from TexStudio () Here is the log from Overleaf ()   The main errors seem to be these:  ./main.tex:10: Undefined control sequence. \sa@placebox ->\newpage \global \pdfpagewidth                                                =\wd \sa@box \global \pdfpageh... l.10 ...tance=1cm] {"Femte" -> {"Sjette","Prise"};};   and this  ! You can't use a prefix with `the character ='. <to be read again> = l.10 ...tance=1cm] {"Femte" -> {"Sjette","Prise"};};


Where does Opera Mini save its "Saved pages"?

When you save a web page in Opera Mini, it must be saved somewhere.  I want to know where can I find these pages, specific path or anything?


Get attention to a new answer to an old question

It happened to me that I found a solution to an older question. This question was commented by many people with comments like "very interesting, important, ..." such that I thought that my answer has also some value. My answer was the only one. It was upvoted and accepted by the asker. However, I assume, that very few of the "commentators" saw my answer, because the system does not inform automatically about new answers.   I think it would have been helpful for me and the commentators when they would get informed. I could achieve this by adding my own comment to their comments, because this triggers a system message. My question is: would this action be considered admissible or not? Are there some other possibilities?


Why doesn't the Higgs give mass to neutrino?

We learn that elementary particles acquire mass through the weak interactions with the Higgs field. The photon and gluons do not interact weakly, do not coupe with the Higgs field and for this reason remain massles. Left neutrinos do interact weakly, but according to the diagram from  do not interact with the Higgss.  Why doesn't the Higgs interact with neutrinos and how do neutrinos acquire mass?


couldn't do sudo apt-get -f install due to kde-config-telepathy-accounts

When I'm trying update ubuntu packages using command sudo apt-get -f install I'm getting below error -  The following additional packages will be installed:   kde-config-telepathy-accounts The following NEW packages will be installed:   kde-config-telepathy-accounts 0 upgraded, 1 newly installed, 0 to remove and 602 not upgraded. 751 not fully installed or removed. Need to get 0 B/137 kB of archives. After this operation, 825 kB of additional disk space will be used. Do you want to continue? [Y/n] Y (Reading database ... 274324 files and directories currently installed.) Preparing to unpack .../kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_amd64.deb ... Unpacking kde-config-telepathy-accounts (4:15.12.3-0ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_amd64.deb (--unpack): trying to overwrite '/usr/share/accounts/services/google-im.service', which is also in package account-plugin-google 0.12+16.04.20160126-0ubuntu1 Processing triggers for libc-bin (2.23-0ubuntu3) ... Errors were encountered while processing: /var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   I use Ubuntu 16.04.  Please let me know if you need more details.


(Ubuntu/Linux)"find" command gives different results based on quotation marks

I was using   find -iname *prib*   and getting only one result "./prib09jack.pdf" with   find -iname "*prib*"    I get many more results that I was looking for such as  ./Dir1/PRIB09/prib09jackTFF1.pdf   and many more, but why did it matter that the quotation marks were around "prib"?   Best.


How do I reset my Ubuntu 12.10 password?

So my sister gave me this old laptop that has Ubuntu 12.10. The problem is that she has a username administrator password, but she forgot it. I've tried using GRUB and launching recovery mode and using the root shell prompt. And I type the "passwd username" command, and it tells me to type the new UNIX password, but when I try to type a new password it's like my keyboard doesn't even work. It types nothing. What's the problem? Why does my keyboard not type anything when I try to reset the UNIX password? It always works perfectly fine. I'm grateful for any help, thank you.


Create a document-libary with SharePoint rest api

Is it possible to create a document-library via SharePoint Rest API?


Custom Post Type rewrite url to /category/pagetitle

I know this questions has been asked a lot, but after working on it for 6 hours straight I can not find a good solutions anywhere.   My site has a Custom Post Type and taxonomy. My taxonomy are for example HP, Dell and Asus. Every product has checked there taxonomy. Now I need to rewrite my url to give me a different link (ie products/$taxonomy/$productname), so the outcome should be products/asus/n56jn. Asus is the taxonomy, n56jn is the product name.   Functions.php  Register Post Type  function site_add_cpt() {   register_post_type( 'cpt_products', array(   'labels'            =>  array(     'name'          =>      __( 'Products' ),     'singular_name' =>      __( 'Product' ),     'all_items'     =>      __( 'View Products' ),     'add_new'       =>      __( 'New Product' ),     'add_new_item'  =>      __( 'New Product' ),     'edit_item'     =>      __( 'Edit Product' ),     'view_item'     =>      __( 'View Product' ),     'search_items'  =>      __( 'Search Products' ),     'no_found'      =>      __( 'No Products Found' ),     'not_found_in_trash' => __( 'No Products in Trash' )     ),     'public'            =>  true,     'publicly_queryable'=>  true,     'show_ui'           =>  true,     'show_in_nav_menus' =>  true,     'capability_type'   =>  'page',     'hierarchical'      =>  true,     'rewrite'           =>  array( 'slug' => '%product_item%', 'with_front' => false ),     'menu_icon'         =>  'dashicons-cart',     'menu_position'     =>  21,     'supports'          =>  array( 'title', 'editor', 'page-attributes', 'revisions' ), ) );    ); } add_action('init', 'site_add_cpt');   Register Taxonomy  function site_add_tax() {   register_taxonomy(     'tax_products',     'cpt_products',     array(       'labels'            =>  array(       'name'              => __( 'Product Categories' ),       'singular_name'     => __( 'Product Category' ),       'search_items'      => __( 'Search Product Categories' ),       'all_items'         => __( 'All Product Categories' ),       'parent_item'       => __( 'Parent Product Category' ),       'parent_item_colon' => __( 'Parent Product Category:' ),       'edit_item'         => __( 'Edit Product Category' ),       'update_item'       => __( 'Update Product Category' ),       'add_new_item'      => __( 'Add New Product Category' ),       'new_item_name'     => __( 'New Product Category' ),       'menu_name'         => __( 'Product Categories' )       ),       'public'            =>  true,       'hierarchical'      =>  true,       'show_in_nav_menus' =>  true,       'show_admin_column' =>  true,       'rewrite'           =>  array( 'slug' => 'products', 'with_front' => false, 'hierarchical' => true )     )); } add_action('init', 'site_add_taxt');


I've had some unlucky bounty questions(unlucky means I didn't find the answer), but now my reputation has gone to someone his answer didn't help, in fact it sometimes went to someone who has answered before I started the bounty.    what I'm talking about here is awarding the bounty to an answer when the time of the bounty is gone which seems unfair to me especially if there are people who just answer to have the reward regardless of the question.    Unfortunetly if we made bounty goes back to OP when an answer not accepted, then some OPs will play with bounties without awarding it to anyone, so I came with a solution, here it is:    when OP starts a bounty, it's not recursive but only when OP award an answer the answerer gets the reward, if no answer is rewarded and time has gone, the reputation set on the bounty is just gone, doesn't go back to OP and doesn't go to anyone.    I think this is the best solution, people now will really answer the question while bounty will still be not something to play, also I agree with the two-days time before bounty can be set and I agree with the 7-day time limit.    EDIT  As some commented, sometimes OP doesn't care about reputation lost while a useful answer deserve it , so I don't know but maybe awarding an answer only when it is upvoted to some criteria would be more fair, for example , only answers higher than five votes get the reward because it is unlikely an answer like that is not useful(beleive me I had some bounty question awarded to only 1 scored answer and there was another answer which had the same score !)


Reduced Homology the same under Homotopy

I am currently doing Hatcher's problem 2.1.13:  Verify that $f \simeq g$ implies $f_* = g_*$ for induced homomorphisms of reduced homology groups.  By inspected of the regular and reduced chains, it is evident that $H_n(X) = \tilde{H}_n(X)$ for $n > 0$, so all that is left to prove is the case $n = 0$. Since $H_0(X) = \frac{\ker \partial_0}{\text{im } \partial _1}$ and $\tilde{H}_0(X) = \frac{\ker \epsilon}{\text{im } \partial_1}$, is it enough to show that $\ker\epsilon \cong \ker \partial_0$ to prove the statement? If so, how would you go about starting it?


Unwanted double quotes around server response in Python Flask-RESTful

I have an issue using python Flask-RESTful. Consider the code below:    Class ServiceAPI(Resource):     def post(self):         return 'Hello, World!', 200   Then the client receives:    "Hello, World!"       instead of    Hello, World!   the extra double quotes are undesired. How can I avoid them? I don't want to solve the issue by stripping/trimming the data received, in the client.


How to set Command Block(s) to test for a particular time and output a message?

I simply want one command block to test for the time of day or night (e.g. time = 18000) and output a message in the chat to everyone if that time returns true.  I was trying a simple set-up with two command blocks and a comparator in the middle, but I'm a beginner and am obviously missing the correct syntax (especially to test for a particular time of day, and if true, then trigger the say "message" block).  ETA: Kudos to @Ben for the Daylight Sensor/Redstone idea, but I'd really prefer a Command Block solution for the above, since my plan is to output several messages during the day and night cycle at very specific times in the world. Thanks.


Please add mobile version to the help center

Currently, the  does not have any mobile theme, except parts like .  We do have link to help center in the mobile theme footer:        So can we please have mobile version of the help center pages?


Maximizing a quadratic function subject to $\| x \|_2 \le 1$

Consider the $n$-dimensional quadratically constrained quadratic optimization problem  $$\begin{array}{ll} \text{maximize} & \frac12 x^T A x + b^T x\\ \text{subject to} & \| x \|_2 \le 1\end{array}$$  where $A$ is a symmetric $n\times n$ matrix that may be indefinite. Given the symmetry of the constraint, is there a nice closed-form solution, perhaps in terms of the eigendecomposition of $A$?


can someone explain the rule for using which and that

What is the correct grammar for use of the words, which and that?


How to deploy from a Developer Sandbox into Production

I used a Developer Sandbox that was created on developer.salesforce.com. I've been building on it for a while and recently purchased my own Salesforce instance. I was miffed when I realized the Developer Sandbox did not have a Change Set option in Setup. I assumed I would be able to connect the two and deploy one to the other or there would be a way to create my Production org off of the Developer org I've been building on. However, I have not found anything online.  Has anyone encountered this? Does anyone have any ideas on a solution?


Is StackExchange Just Hostile to New Users?

I am a new user, and posted my first question.  Judging by the speed from which the post was put on hold and the snide comments, the post was not given a fair chance.  Even though the comments where snide, I did not take offense and I accept that my question was too complex and needed to be dumbed downed.  So, I completely rewrote it, asking a very targeted question.  And its still on hold, which make me believe more was placed on hold quite hastily and without thought.    As a new user, what am I supposed to do to get answer I need?  Getting the right granularity can be hard, my post looks condemned and not going to get a fair change.  Keep posting different various of the question until someone for the off change someone might have time to answer it before its held?    Edit -- New Info I took my question elsewhere, and gotten a helpful answer right off the bat.  I really think "it's not a good question" is just a convenient excuse to justify the hostility.  Still my original question is on hold, with an additional hostile comment.


Should I use solid concrete or cement block for an egress window well?

I am having some contractors build a window well for an egress window at my house. I have the option of doing solid concrete walls for the window well, or cement blocks (which he said he will fill with cement anyways). The concrete walls are significantly more expensive (about 1k more) so I am thinking of just going with concrete blocks, but are there significant reasons why I should choose the concrete walls instead and suck up the extra cost?   Also, do people typically put some type of drainage system in the bottom of the egress window well (sump pump or otherwise)? Is it necessary?


How do I concatenate column data into a single field in SQL?

Here's my screenshot: How can I rewrite this query to display a single record but have all four "ColumnName" data fields in a single field?  So basically, I'm after a single row that looks like:  TableName: 20180301_Vitality  ColumnData: _CustomObjectKey | Email address | Subscriber key | opCoCode 2


Observe the non-round shape of the parenthesis using the fourier package \usepackage{fourier} . In particular they are not round :     compare this to lmodern parenthesis which are round in shape    I'd like to replace the  parenthesis used by the fourier  font with a suitable compatible replacement which has a round shape.   It seems not trivial since I would have to replace every parenthesis shape and not just an individual symbol. I would like the fix to be compatible with usage of e.g. \bigl and so forth.


Make stackoverflow.stackexchange.com redirect to StackOverflow

While I admit that it is a bit goofy, but because StackOverflow is a StackExchange site, it seems like it would be reasonable to expect that stackoverflow.stackexchange.com would redirect to stackoverflow directly. Could superuser.stackexchange.com, stackoverflow.stackexchange.com, and serverfault.stackexchange.com be updated to redirect people to the actual websites?


Recently Find my iphone has been sending emails after I log in to check my kids whereabouts.  Why is this now happening? Has there been a policy change?


How to convert a list of numbers into an integer?

I have a list like:     list = [1, 2, 3]  I need to convert it to a triple digit like:     "123"


If $B ∈ M_n(F)$ such that AB = BA, prove that $B = a_0 + a_1A + a_2A^2 + ··· +a_{n−1}A^{n−1 }$

$Let\ A ∈ M_n(F)$\ such that $A^n = 0$ but $A^{n−1} \neq 0.$  $If\ B ∈ M_n(F)$ such that $AB = BA$, prove that $B = a_0 + a_1A + a_2A^2 + ··· +a_{n−1}A^{n−1} $  for some $a_0,...,a_{n−1} ∈ F.$  I only know that $AB^n = B^nA$, and $\{v,Av,...,A^{n-1}v\}$ is a basis of $F^n$,  but I'm not sure if they are useful.


Alternative to the % symbol for commenting code?

I know that % can be used to make LaTeX ignore an entire line. However, suppose that I want LaTeX to skip 50 consecutive lines of code, is there a better way to do this than inserting % 50 times in front of each line?


Ubuntu 18.04 LTS   I suddenly had a problem booting into Ubuntu.   A start job is running for Hold unt...finishes up (32min 30s / no limit)  I'm not 100% sure it is snappy but I don't know what else it could be. The messages are displayed as  Started Snappy daemon  Stopped Snappy daemon over and over again.   Pressing cntl + shift + f1, f2 doesn't seem to do anything.   I've searched around but haven't found anything definitive as to how to work on it. I'd love any help.   Edit: I dual boot with windows 10 - fast startup is disabled. I've had this setup for more than six months without issues. I also uninstalled Ext2 File Manager from Windows because it was causing superblock errors. After I used fsck the errors would be fixed and I could boot into Ubuntu without issue.   Here is a photo of the screen from about 2 minutes.


Calculated value field not the correct value in the main list view column

so I want to make a counter in my list that stars from a custom number.  In the custom form I added a calculated value called CustomID and calculated the value for that field with: ID + 100 When I create a new item in a list CustomID is the right value when I look at that item, but when i look at the whole list all items in column CustomID has value 100. What can i do so the column match the items CustomID value.


Why does a body rotate faster if force is applied away from the pivot? I need an intuitive answer to this. Like why does a door rotate slower if I push at it closer to its hinge, or faster if I push at it farther away from its hinge? What actually makes that happen?


I was answering  question and was trying to post following url in comments but everytime it failed -    I searched on Meta and came across  post and tried the solution posted but url is already encoded and doesn't work.   Is there a way to make this work in comments?


I can't find the file 'transmission' on my computer with the search function

I went to download a torrent today and Firefox asked me to choose an application to do so (although the bit torrent files normally go to transmission per the permissions I've set in Firefox).  I go to search for transmission and the search function just turns up music files with the letters 'tran' in them. I'm very frustrated.  I literally can't find the path to a file that's on my computer.


Suppose I bought a call option and the stock rises above the strike price. That is, I now have an ITM call option. Also, I don't have enough money to exercise the option. So to make a profit off of the call option without having to exercise it, I go to the market and sell a call option for the same strike price and expiration date. My question is since I now have two different "trades" sitting in my account: one is the long call and second is the short call, do I have to "link" these two trades together somehow or how does it work? For example, a person who bought my short call option exercises it, which means I will have to procure 100 shares to give it to him. But I have a long call option and no money to buy the 100 shares to give it to him. What happens now? Do I necessarily need to exercise my long call and give it to the short call or does the commission "cancel" these two orders without me having to do anything? Also, what happens if I cannot find an exact same short call (with same strike price and expiration date on the market)? Since I cannot offset the trade, will I be in loss?


basic linux executable path does not show up

I am trying to find the path of basic commands like ls or cd using which command. I see the path for ls but not for cd. Of course both the commands work fine. Any idea?  $ which ls /bin/ls $ which cd $


Why char array and int array get printed as different things?

int main () {     int intarr [5] = {1,6,7,9,3);     char charr [7] = "Avneet";     std::cout << intarr << "\n";     std::cout << charr << "\n";     return 0; }   The first line this program prints is a memory address and second line, the whole string (Avneet). What's making the difference? One more question. In the int case, the address I get is what? The address of the entire array or just the address of the first element of that array.


What replaces meta keywords if Google doesn't use them anymore?

As a majority of webmasters already know that  anymore to help index a website properly. Which is understandable by people exploiting the system to try to gain a better ranking for keywords that they don't use with their sites.  My current thoughts of this questions are:   Writing good content. Meta description should still work Allowing for the site to be easily indexed thanks to HTML markup Google Webmaster Tools gives insight Google Analytics tells me where my users are going and why... ? HTML Breadcrumbs   What do we replace with the keywords to help Google index out sites accordingly and more accurately?


Dirichlet problem in the disk: behavior of conjugate function, and the effect of discontinuities

Dirichlet's problem in the unit disk is to construct the harmonic function from the given continuous function on the boundary circle. It is solved by the convolution with the Poisson kernel, and we know that the constructed function has uniform limit which is the given continuous function as $r\to 1$, and we can complexify the solution by taking the Schwarz integral formula. Now (in this very particular case) does the imaginary part has a uniform limit? If it does, why don't we prove the uniqueness of the solution by a simple application of the Cauchy integral formula? Here is the proof that I reckon to be reasonable(which is what I expose here to be criticised)  We construct the Schwarz integral, or $\frac{1}{2\pi}\int _{0}^{2\pi}\frac{\exp(it)+z}{\exp{(it)}-z}u(\exp{(it)})\mathrm{d}t$. This function is an analytic function in the interior unit disk, and is continuous in the closed unit disk(its closure). Let this analytic function denoted by $f$, and another analytic function that has the same uniform limit function on the circle be $v$. Then $u-v$ is an complex analytic function in the interior of the unit disk, continuous on the closure, with boundary value identically zero. An application of Cauchy's integral formula gives rise to the conclusion that $u-v$ in identically zero on the entire disk.   Another question being if the boundary function has finite jump discontinuities, what is the behaviour of the convolution with the Poisson kernel near the discontinuous points?


Change formatting of date from '(Dated: \today)' to '\today' in revtex4-1

In AIP template using revtex4-1.cls I want to renew correctly the command \date{}    I just want to replace the output by \today instead of (Dated: \today).  What is the best way to do it in this sample of code ?   \documentclass[  aip,  jmp,  amsmath,amssymb,  reprint, ]{revtex4-1}  \usepackage{graphicx}% Include figure files \usepackage{dcolumn}% Align table columns on decimal point \usepackage{bm}% bold math  \begin{document}  \title[Sample title]{Sample Title}% Force line breaks with \\ \thanks{Footnote to title of article.}  \author{A. Author}  \altaffiliation[Also at ]{Physics Department, XYZ University.}%Lines break automatically or can be forced with \\ \author{B. Author}%  \email{Second.Author@institution.edu.} \affiliation{  Authors' institution and/or address%\\This line break forced with \textbackslash\textbackslash }%  \date{\today}% It is always \today, today,              %  but any date may be explicitly specified  \begin{abstract} Your abstract \end{abstract}  \pacs{Valid PACS appear here}% PACS, the Physics and Astronomy                              % Classification Scheme. \keywords{Suggested keywords}%Use showkeys class option if keyword                               %display desired \maketitle  \begin{quotation} Your lead paragraph \end{quotation}  \section{First Heading}  Article content \cite{small}.  \end{document}


Is it less efficient to put a try-catch block inside of a loop as opposed to wrapping the loop with a try-catch in php if it is intended that the loop will end if an exception occurs? Or is there essentially no difference?  EDIT:  i.e.,  foreach (/*...*/) {     //...     try {         //...     } catch (/*...*/) {         break;     }     //... }   versus:  try {     foreach (/*...*/) {         //...     } }


How do I make hair particles appear on top of the emitter and not through it?

How to make grass appear on top of ground not in middle?


Cross product of the quantum mechanical operators $\textbf{p}$ and $\textbf{A}$

While reading Advanced Quantum Mechanics by J.J. Sakurai, chapter: Relativistic Quantum Mechanics of Spin-1/2 Particles, section 3.2 the Dirac Equation, the author states the following identity: $$\textbf{p}\times\textbf{A}=-i\hbar\left(\nabla\times\textbf{A}\right)-\textbf{A}\times\textbf{p}$$ where $\textbf{p}$ is the momentum operator and $\textbf{A}$ is the vector potential. Problem: We know that $\textbf{p}\equiv-i\hbar\nabla$. So $\textbf{p}\times\textbf{A}=-i\hbar\left(\nabla\times\textbf{A}\right)$. How then the second term appeared in the first equation? Could anyone please explain how this relation is derived?


Do 'I have had that experience' and 'I have experienced that' mean the same thing?

Do:     'I have had that experience'    and:      'I have experienced that'    mean the same thing? Can they be used interchangeably?  Or are they two different things?  For example:      Person 1: Have you ever dated a female cop?   Person 2: Nope   Person 1: I have had that experience / I've experienced that      I've had that experience implies that person 1 was dating a cop at sometime in the past. When is not important. The present relevance of his past experience is what matters (he knows what it's like to date a cop and the sequel of events that one has to go through when dating a cop).   I've experienced that is not even a likely response in this context as far as I think  Experience as a noun means "practical contact with a sequel of events." But as a verb, it means "to go through a situation." So I've had that experience implies that the experience wasn’t, perhaps, a pleasant one. But with I've experienced that there's no such implication.   In this case, I've experienced that is not a likely response because one could normally say "I have done that.” Present perfect is also used for past experience, so there's no need of saying, "I've experienced that,” whereas "I've had that experience" has some nuance.


Why won't Amanita move in and settle down?

I keep getting an alert that Amanita would like to settle down. I have a house ready for them however they still won't move in. Who is this NPC and why won't they settle down?


Calculate $\lim\limits_{x\to4} \frac {\sqrt {1+2x}-3} {\sqrt x -2}$

After I just learned there are ways to cancel out $0$s in the divisor of fractions onto limits I looked back at a task where I gave up when I got the result $\lim\limits_{x\to4} \frac {\sqrt {1+2x}-3} {\sqrt x -2}$ so I tried to find a way to get the $0$ out here, as well. Am I just not seeing the solution or is there no way to do it?


How can I make Safari cmd+number shortcut switch tabs instead of opening the bookmark associated with that number?

I'm used to switching tabs with cmd+x where x is a number and takes me to tab x in firefox and pretty much every other browser I've ever used. I like safari's speed and would like to try it a bit, but the cmd+x shortcut is burned in my brain and every time I use safari I end up screwing up. I'd like to know if its possible to change this behavior, because this simple thing is a stopper for me.


Let $\alpha , \beta \in \mathbb{Z}[\sqrt{d}]$. Prove that $\alpha$ is a unit $\iff N(\alpha) = 1$.

Where $N(\alpha)$ is the norm of alpha. I have proved in a previous question that $N(\alpha\beta) = N(\alpha)N(\beta)$. and I have no trouble proving the $\Rightarrow$ but I don't know how to prove the other direction where we start by assuming $N(\alpha) = 1$.  The norm of an element alpha (= $a + b\sqrt{d}$) is: $N(a + b\sqrt{d}) = |{a^2 - db^2}|$.There is a similar question to mine but it only deals with the direction I have already proved.


MathTime (mtpro2) contains a subscriptcorrection option, which is great.  Is there some way to get similar functionality for mathdesign?  In the MWE below the subscripts are too far from their `parent.'  Thanks!  \documentclass[12pt]{article}  \usepackage[subscriptcorrection]{mtpro2}         % pretty %\usepackage[nosubscriptcorrection]{mtpro2}      % ugly %\usepackage[utopia]{mathdesign}                 % ugly  \begin{document} \(  \omega_{jt} \) \end{document}


Cannot deal with multiple iterations of same form on one page

I am designing a site that has a variety of points in which I need to render "workflow" buttons that are used to send actions to an external application.   I used the form API to generate these buttons, and am using the #submit => option on my buttons to direct specific button types to custom functions. I am also using hidden fields to house data that I use to facilitate the action.   The problem I am having is that these buttons can and should show up multiple times per page, for different aspects of the application, and whenever I click one of the buttons Drupal attempts to submit all of the forms.   I guess what i am asking is, how can I have multiple instances of the exact same form on screen at any given time, and know with certainty that the submit buttons are only going to trigger actions for the specific instance of the form they belong to?  thanks in advance!!  Edit  So here is the crux of the problem - it appears that the getFormId needs to return a unique value, but I cannot figure out how to pass unique values into it.


Visa requirements for traveling to Germany as an Indian citizen/married to a German

I am a German citizen, my wife is an Indian national. We both live in the USA and are both permanent residents (green card holders) and are full-time employed.  What type of permission is needed for her to travel with me to Germany? Does she need a visa? If so which type (tourist, visiting family/friends, etc.).  More information: The purpose is visiting in-laws and tourism (vacation), the duration is two weeks.  Please note: This is different from the already answered "Non-EU spouse of an EU citizen - is visiting EU without needing a visa possible?" since neither one of us lives in the EU.


Should 'g' followed by 'e' and 'i' be pronounced with a soft or hard g?

In English, words with a 'g' followed by a front vowel (e, i, y) can be pronounced with a soft g or a hard g:   Words with Germanic roots are usually pronounced with a hard g: gear, get, gift, give Words with Latin and Greek roots are usually pronounced with a soft g: gem, general, giraffe, giant   But how should a purely English word (if such thing even exists) with a 'g' followed by a front vowel be pronounced? In other words, if an English speaker saw a new word of unknown origin (eg: a neologism) that starts with gi- or ge-, how would they pronounce it?


Deleting a specific element in an array of Vectors C++

I'm quite stuck on this function for a c++ program.   Instructions Write a function called RemoveGrades that takes the student array and grade vector as parameters, it asks the user for a valid assignment number, loops through each student, and removes the selected assignment from each student's grades vector.  I've searched a lot about deleting specific elements from vectors but can't seem to figure out how to get vector.erase() to work. I think the issue is that I'm working with a vector of arrays of ints.  code  given  // may be declared outside the main function  const int NUM_STUDENTS =3;   // may only be declared within the main function  string Students[NUM_STUDENTS] = {"Eric","Stacy","Mark"};  vector <int> grades[NUM_STUDENTS] {     {10,98,88,99,57},     {62,80,94,100,93},     {11,82,28,85,38} };  void RemoveGrades(string Students[],vector<int> grades[],int numstudents){     cout<<"Remove assignment"<<endl;     int assignmentNum;     assignmentNum=getValidAssignmentNumber();     for (int index=0;index<numstudents;index++) {            grades[index].erase(assignmentNum);      } }   If I put in two arguments in grades[index].erase clion tells me I need one argument, and if I put one it tells me I need two. Any help is appreciated. Thanks  Error messages  No matching member function for call to 'erase' candidate function not viable: requires single argument '__position', but 2 arguments were provided  In function 'void RemoveGrades(std::string*, std::vector*, int)': /cygdrive/c/Users/Ryan Foster/CLionProjects/arrays_and_vectors_second_try/main.cpp:191:56: error: no matching function for call to 'std::vector::erase(int&, int&)'          grades[index].erase(assignmentNum,assignmentNum);


Adjoint operator on a finite dimensional space

Let $V$ be a finite dimensional inner product space and $T: V \to V$ be a linear operator. Show that the range of $T^*$ is the ortogonal complement of the null space of $T$.  Since $V$ is finite dimensional I know that $T^*$ exists.  Now let $\alpha \in Im (T^*)$. Then $\alpha =T^*(\beta)$ for some $\beta \in V$. Let $\gamma \in ker(T)$ be arbitrary. It follows that $T(\gamma)=0$. Now  $0=\left<T(\gamma),\beta\right>=\left<\gamma,T^*(\beta)\right>=\left<\gamma,\alpha\right>$. Hence $\alpha \in (ker (T))^{\bot}$ and $Im(T^*)\subseteq (ker (T))^{\bot}$  I'm having trouble proving the other inclusion.


Appropriate post-hoc test after a mixed design anova in R

I have a mixed design ANOVA, with a 2 level between-subject and a 7 level within subject variable. What is the appropriate post-hoc test after a significant ANOVA?  I'd like to see R code in the response.


I recently installed the apache2 package using the Software Centre, I want to create an alias apacheres which will replace the more cumbersome command /etc/init.d/apache2 restart.  I opened the .bashrc file in my home directory, and it contains the following lines:  # Alias definitions. # You may want to put all your additions into a separate file like # ~/.bash_aliases, instead of adding them here directly. # See /usr/share/doc/bash-doc/examples in the bash-doc package.  if [ -f ~/.bash_aliases ]; then     . ~/.bash_aliases fi   So I created a .bash_aliases file in my home directory, and added only this line:  alias apacheres ='/etc/init.d/apache2 restart'  When I started my terminal, I get this error message:  bash: alias: apacheres: not found bash: alias: =/etc/init.d/apache2 restart: not found   The shell has obviously read the file, otherwise it wouldn't know of its existence. I have checked the directory path and I can find the file apache2 there. What do I need to do to make this alias work?


How would I submit my form data in a proper way by mailing in a simple HTML website?

I'm tried to get this type of mail from my HTML website.  Name: XYZ  Email: xyz@gmail.com  Message: msg  Can anybody help me to get this type of mail when somebody fills my HTML form, Remember I don't want to use any programming language like PHP. If anyone has javascript code for it then please share it.