Text automatically goes to the top of a table even if text position immediately after the table

This is the top   \begin {table} \caption {Table Title} \begin{center} \begin{tabular}{| l | l | l |} \hline Measurement& Uncertainty & Range  \\ \hline \hline \end{tabular} \caption*{What is going on} \end{center} \end {table}  This is bottom   When latex compiles,  This is bottom   came right after   This is the top   with the table beneath  This is the top   Is there a way I can fix this  Edit:  % Search for all the places that say "PUT SOMETHING HERE".   \documentclass[11pt]{article} \usepackage{amsmath,textcomp,amssymb,geometry,graphicx} \usepackage[english]{babel}  % Y \usepackage{mathtools} \usepackage{listings} \usepackage{color} \usepackage{fullpage} \usepackage{graphicx} \usepackage[section]{placeins} \usepackage{changepage} \usepackage{tabularx,ragged2e,booktabs,caption}   \setlength{\headsep}{0.5in}   \begin{document}   \textbf{Introduction}  Lorem ipsum dolor sit amet, te noster impetus vix. Bonorum suscipit te vis, ad mutat dissentiet eos, sea probo voluptatum no. Nullam ridens ex usu. An tincidunt posidonium est. Ut sed iriure nominavi expetenda, duo apeirian prodesset at, affert adolescens accommodare mel cu. Purto habemus sed an, qui voluptatibus conclusionemque et.  Ut brute labitur cotidieque sed, duo iudico erroribus suscipiantur ne. Mea illud ridens postea et. In ius quando partiendo aliquando, duo ei graece veritus disputando, sea iusto oportere philosophia at. Quo in ceteros assentior accommodare, sit quod modus et. \\\\  \section*{1.}  \begin{itemize}  \item[1.1)]  Lorem ipsum dolor sit amet, te noster impetus vix. Bonorum suscipit te vis, ad mutat dissentiet eos, sea probo voluptatum no. Nullam ridens ex usu. An tincidunt posidonium est. Ut sed iriure nominavi expetenda, duo apeirian prodesset at, affert adolescens accommodare mel cu. Purto habemus sed an, qui voluptatibus conclusionemque et.  Ut brute labitur cotidieque sed, duo iudico erroribus suscipiantur ne. Mea illud ridens postea et. In ius quando partiendo aliquando, duo ei graece veritus disputando, sea iusto oportere philosophia at. Quo in ceteros assentior accommodare, sit quod modus et. d, duo iudico erroribus suscipiantur ne. Mea illud ridens postea et. In ius quando partiendo aliquando, duo ei graece veritus disputando, sea iusto oportere philosophia at. Quo in ceteros assentior accommodare, sit quod modus et.  \begin {table} \caption {Table Title} \begin{center}     \begin{tabular}{| l | l | l |}     \hline     Measurement& Uncertainty & Range  \\ \hline     \hline    \end{tabular}    \caption*{Caption} \end{center}  \end {table}     Lorem ipsum dolor sit amet, te noster impetus vix. Bonorum suscipit te vis, ad mutat dissentiet eos, sea probo voluptatum no. Nullam ridens ex usu. An tincidunt posidonium est. Ut sed iriure nominavi expetenda, duo apeirian prodesset at, affert adolescens accommodare mel cu. Purto habemus sed an, qui voluptatibus conclusionemque et.  Ut brute labitur cotidieque sed, duo iudico erroribus suscipiantur ne. Mea illud ridens postea et. In ius quando partiendo aliquando, duo ei graece veritus disputando, sea iusto oportere philosophia at. Quo in ceteros assentior accommodare, sit quod modus et.   \end{itemize}    \end{document}


How to download a file from a website via terminal?

Suppose that we have a full URL of desired file e.g.        I would like to go without installing a new software. Is it possible?  Command   cp  'http://example.com/directory/4?action=AttachFile&do=get&target=file.tgz' hooray   doesn't work ;)


bash - get directory a script is in when run from a different directory

If I'm in /home/whatever and I run, say, $ bash /home/folder/subfolder/script1.sh, how can I get /home/folder/subfolder into a variable? $0 or $(readlink -f $0) give me the whole path and filename, i.e. /home/folder/subfolder/script1.sh, which isn't what I'm after. Thanks in advance.


Find polynomials such that $(x-16)p(2x)=16(x-1)p(x)$

Find all polynomials $p(x)$ such that for all $x$, we have $$(x-16)p(2x)=16(x-1)p(x)$$  I tried working out with replacing $x$ by $\frac{x}{2},\frac{x}{4},\cdots$, to have $p(2x) \to p(0)$ but then factor terms seems to create a problem.  Link:


How can I fully utilise all CPU cores for a hair dynamics bake?

I am working on a huge grassy field using a hair particle system that has 500,000 hairs. I have some forcefields blowing the grass around. When I bake this particle system to the disk, one of my CPU cores shoots up to 100 percent and the others stay around 5%. The grass blades don't interact with each other at all. Is there a way to make it use all 8 of my CPU cores, and if so how?  I have an i7-6900k and I'm on Ubuntu 17.10 using Blender 2.79. I have 16GB of RAM, but am considering an upgrade especially if it would help with this situation.


Creating arrays from variables of objects in list

I have a list of objects of a class with a string "name". I need to create a new string array of all "name" values of the objects in the list. Is that possible using linq? Can I also filter our some of the objects in the list by a different string variable of the class? As in getting an array of the values of 'name' where 'category'="something". public class druhPrace     {         public string category;         public string name;         public double workPrice;          public druhPrace(string category, string name, double workPrice)         {                      //...         }     } }


Why don't we have a theory of everything?

What is currently stopping us from having a theory of everything? i.e. what mathematical barriers, or others, are stopping us from unifying GR and QM? I have read that string theory is a means to unify both, so in this case, is it a lack of evidence stopping us, but is the theory mathematically sound?


Is it possible to use JQuery to hide the input elements plus the text after the input? The code is generated, so I cannot change the text, wrap it in a span or alter it in any way.  Event Location *
 <input type="radio" name="a22" id="a22_0" value="Lafayette  LA">Lafayette LA
 <input type="radio" name="a22" id="a22_1" value="Houston TX">Houston TX
 <input type="radio" name="a22" id="a22_3" value="San Antonio TX">San Antonio TX


I am trying to compile  but when I run ./autogen.sh the script terminates with these errors  Checking for required M4 macros...   libtool.m4 not found   glib-gettext.m4 not found   intltool.m4 not found   pkg.m4 not found   gtk-doc.m4 not found   yelp.m4 not found ***Error***: some autoconf macros required to build mate-desktop   were not found in your aclocal path, or some forbidden   macros were found.  Perhaps you need to adjust your   ACLOCAL_FLAGS?   What do I need to do to get rid of these errors? I tired installing the latest versions of inittool, glib, gtk, yelp, etc... but I still get the macros errors.


How to fake resolve a dependency in apt-get?

How can I trick apt-get to believe that a dependency of an about to be installed package is already installed, so that the referencing package can be installed without installing the dependency ? Do I have to edit /var/lib/dpkg/status ?  In my real-world case I want to install nagios without having to install mailx and postfix. I made a shell script /usr/local/bin/mailx that uses msmtp to send mail remotely and linked that to /usr/bin/mailx using update-alternatives. So I don't need and don't want a local mail infrastructure installed, but nagios3-common depends on bsd-mailx | mailx.    apt-get --force-yes install nagios3-common does not help, neither does defining a negative priority for *mail* packages in /etc/apt/preferences.


How to delete the second highest salary from a table

I am trying to delete the second highest salary of an employee from a table but I am not able to find out the correct answer.  delete FROM user  where salary =(select max(salary) from user where salary<(select max(salary) from user));


Why is it that when you break a brick it hurts less than when you don't break the brick? Consider the brick has a maximum force it can endure $F_\text{max}$. If you hit the brick and it doesn't break the impact force is less than $F_\text{max}$, and you feel a reactionary force equal to the impact force you exerted on the brick. However, if you hit the brick and it does break, the reactionary force should be equal to $F_\text{max}$, but $F_\text{max}$ is still larger than the force you used to hit the brick initially, but it did not break. Hence, you should still feel a larger force and more pain, right? Or maybe the reactionary force of the broken brick is somehow less than the impact force? Imagine you are standing on thin ice which is about to break. On solid ground, according to Newton's Third Law, if you jump you exert a force on the ground and the ground exerts an opposite force which accelerates you upwards. However, if you try to jump up from thin ice, you can't because the ice breaks as you are exerting more force than your body weight. However the fact that you can't jump up means the ice isn't applying an opposite force of equal magnitude. Does this mean if the ice breaks, the reactionary force exerted on you is less than the impact force you exerted on the ice?


Show that $1+2+...+(n-1)\equiv 0 \mod n$

Show that if $n$ is a positive integer, then $1+2+...+(n-1)\equiv 0 \mod n$  My attempt: If $n=1$, $0\equiv 0 \mod 1$ Assume that, $1+2+...+(k-1)\equiv 0 \mod k$ for some $k\in \Bbb{N}$. $1+2+...+(k-1)+k\equiv (0+k) \mod k $ $\equiv k \mod k$ $\equiv 0 \mod k$ But I want to show that $1+2+...+(k-1)+k\equiv 0 \mod (k+1) $, how can I Do it please?


Unknown error: '' ("The cache has no package named wine-staging-i386")

There is an error sign on my Ubuntu panel which states the error given in the title. I used sudo apt-get update but it gave me no errors. However the error sign persists.   How do I fix this?


I've been said that in the construct "kind of + noun", if the noun is singular, we should use either "kind of + singular form of the noun" or "kinds of + plural form of the noun".         And if the noun isn't countable we may use either of "kind of" or "kinds of" for it.  Do you agree with that? should we look upon it as a rule please?


When I put 'is' instead of 'be' in: "If she be found guilty"

If she be found guilty… ()   I got a curiosity what difference there is when I put ‘is’ instead of ‘be.’ The dictionary says ‘is’ is used in spoken language. Is that all? Is there no semantic difference at all?


A dog is tied to circular pillar by a rope. Radius of this pillar is $1m$ and length of rope is $\pi m$. What is an area where dog can roam?   I tried to find the area of all semicircles and then to find its sum. It is easy to find an area at front side of the pillar. It is $\displaystyle\frac12\pi^2\pi=\frac{\pi^3}{2}$. Problem is how to find remaining area. I tried to write this area using compass and straightedge, but I couldn't. Then I wrote this in AutoCAD and it looks like this: Is it possible to find the exact value of this area?


Sum of the infinite series $\sum_{n=0}^{\infty} \frac{(n!)^2}{(2n)!}$

I need to show that the sum of the infinite series $\sum_{n=0}^{\infty} \frac{(n!)^2}{(2n)!} = \frac{2}{27}(18+\sqrt{3}\pi)$. However, I don't know how to start, since this series does not fit a power series, and I can't find a rearrangement that makes the series a known power series. How can I do this?


How can I get into control panel without Admin privileges

I made an admin account on my computer but can't remember the password. now i can't get into my control panel.


Learning about father's WWII US Army military experience

I know he started as a bugler, he was in transportation and served in Italy and maybe ended the war in Germany. He was discharged as a second lieutenant. He also spent at least 20 years in the Army Reserve.  Where should I look to find out what unit he was in, his job, promotions, etc?


Do we really not know why atoms 'decide' to produce a photon?

I was watching the Cosmos documentary where Neil deGrasse Tyson explained how certain energy photons get absorbed by an atom, which causes the electrons of that atom to climb into a higher energy state.  He then says that an atom produces a photon when those electrons drop to a lower energy state, but that we don't know why this happens. I understood that as 'we don't know what triggers this to happen'.  Is that true? And if so, are there any feasible theories that explain this phenomenon?


Software for Plantronics Gamecom 788 Headset

I have a  7.1 emulated surround sound headset, and I'm trying to find out if anyone knows if there is a way to make this work in Ubuntu. Plantronics has the software for Windows that works great, I just don't know if there is anything for Linux that would make this work. Stereo works great, but not 7.1 surround.   If it doesn't work I can live with it, but if anyone knows of any software out there that'd be great!  Thanks!


C++ input conversion to lowercase for ignoring words written in upper case

I wanted to make a sample code that asks the user for the "secret" code. The user has 5 tries to type in the correct (secret) phrase, if the user fails, the program closes itself. I have done everything, I just have one problem. If the user types in the secret phrase in uppercase letters, the program interprets it as wrong. I have seen some conversion methods but none have worked. Here is the code I have at the moment. I only need it to convert the input to lowercase:  int nextReveal(){ std::string code; std::string answer = "sample"; for (int i = 1; i <= 5; i++){      //std::cout << " " << std::endl;     std::cout << "Type in the secret password" << std::endl;     std::cin >> code;     int tries = 5 - i;     if (code != answer && code != answer2 && code != answer3 ){         std::cout << "You have " << tries << " tries left before program self-destructs" << std::endl;         if (tries == 0){             std::cout << " You have used up all your tries. Program is closing" << std::endl;             return 1;          }      }      else if (code == answer){         std::cout << "Unlocked" << std::endl;         //i = 6;         return 0;     }    }   }


I want to put some checkmarks inside table cells.  I have put a cross sign using $\times$ but I really don't know how to write a checkmark in latex.   I used \usepackage{bbding} package and \checkmark but it doesnt work,  if it is \checkmark,  it shows nothing  if it is \Checkmark, it shows a !  an example source code: (there is an additional cls file IEEEtran.cls : mirrors.ctan.org/macros/latex/contrib/IEEEtran/IEEEtran.cls)      \documentclass[conference]{IEEEtran}      \ifCLASSINFOpdf        \usepackage[pdftex]{graphicx}        \DeclareGraphicsExtensions{.pdf,.jpeg,.png,.eps}     \else        \usepackage[dvips]{graphicx}        \DeclareGraphicsExtensions{.eps}     \fi        \usepackage{lscape}     \usepackage{subfigure}     \usepackage{dingbat}      \begin{document}      \title{0000}      \author{\IEEEauthorblockN{00000}}       \maketitle       \begin{abstract}     \end{abstract}      \IEEEpeerreviewmaketitle      \section{0000}     ffffffffffff \Checkmark       \begin{thebibliography}{1}      \end{thebibliography}      \end{document}


What are the special characteristics of a natural number X where any integral number Y divided by X yields a repeating number?

To start off, my apologies if this question may come off as illogical.  Let us take a natural number X and integral number Y and compute Y / X. We see that for values of X, such as 11 or 37, no matter what Y is, X will be a repeating number. Yes, I do realize that there are some values of Y that do not agree with this case, such as 3/12 (in which X = 12 and Y = 3). However, for the purpose of this question, we will consider 0.25 (the quotient of 3/12) as a repeating decimal (0.2500...). This is only for the purpose of the question.  Examples for 11 include 5/11 (0.4545...) and 22/11 (2.000...). 37 works as well. Examples include 9/37 (0.243...) and 11/37 (0.297). Now, moving onto the question:  What are the characteristics of numbers like X, beyond primes? Numbers such as 1, 2 (prime), 3 (prime), 5 (prime), 6, 8, 9, 10, 11 (prime), 12... even 37 (where any integral number Y produces a "repeating" decimal) but not 7, 13, 17, 19, 21, 23, 29...   Again, my apologies if this question seems badly worded/illogical. Curiosity formed this inquiry.


Guaranteed lifetime of temporary in C++?

Does C++ provide a guarantee for the lifetime of a temporary variable that is created within a function call but not used as a parameter?  Here's an example class:  class StringBuffer { public:     StringBuffer(std::string & str) : m_str(str)     {         m_buffer.push_back(0);     }     ~StringBuffer()     {         m_str = &m_buffer[0];     }     char * Size(int maxlength)     {         m_buffer.resize(maxlength + 1, 0);         return &m_buffer[0];     } private:     std::string & m_str;     std::vector<char> m_buffer; };   And here's how you would use it:  // this is from a crusty old API that can't be changed void GetString(char * str, int maxlength);  std::string mystring; GetString(StringBuffer(mystring).Size(MAXLEN), MAXLEN);   When will the destructor for the temporary StringBuffer object get called?  Is it:   Before the call to GetString? After GetString returns? Compiler dependent?   I know that C++ guarantees that a local temporary variable will be valid as long as there's a reference to it - does this apply to parent objects when there's a reference to a member variable?  Thanks.


I have a large table (with many columns), so that I decide to set its width = \paperwidth. I tried the following:  \documentclass{article} \usepackage{graphicx}  \begin{document}     \begin{table}[htb]         \caption{something}\label{t:something}         \centering           \noindent\resizebox{\paperwidth}{!}         {         \begin{tabular}{ccc}             1 & 2 & 3 \\             4 & 5 & 6          \end{tabular}         }     \end{table} \end{document}   The problem is, the table is shifted to the right (portion to the left is empty, whereas part of the table at right side is cropped). My question is, how to set it to center?


Solution Verification: Find Extrema points of the function $f(x,y)=2^{3x+8y}$ that are on $x^2+y^2=1$.

$f(x,y)=2^{3x+8y}$   $x^2+y^2=1$  Polar Coordinates approach:  Let $x=cos(t), y=sin(t), 0\le t \le 2\pi$ (We can see that this solved the circle equation).  Substituting them into my function:  $f = 2^{3\cos(t)+8\sin(t)} \Longrightarrow f=e^{(3\cos(t)+8\sin(t))ln(2)}$  Taking derivative to find critical points:  $f' = \ln(2)(-3\sin(t)+8\cos(t))e^{(3\cos(t)+8\sin(t))ln(2)}=0$  Now $e^x>0$, so I need to find when  $-3\sin(t)+8\cos(t)=0 \Longrightarrow 3 \sin(t)=8\cos(t) \Longrightarrow \tan(t) = \frac{8}{3} \Longrightarrow t=\arctan(\frac{8}{3}), \arctan(\frac{8}{3}) + \pi $ So I get two Points:  $(\cos(\arctan(\frac{8}{3})) ,\sin(\arctan(\frac{8}{3})))$  $(\cos(\arctan(\frac{8}{3}) + \pi), \sin(\arctan(\frac{8}{3}))$  and now I need to find $f_{xx}, f_{yy}, f{xy}$ in order to know which point is minimum and which is maximum:  $f_{x}=8^x3ln(2)$  $f_y = 256^y 8ln(2)$  $f_{xx} = 9\ln^2(2) 8^x$  $f_{yy} = 64ln^2(2) 256^y$  $f_{xy} = 0$  $f_{yx} = 0$.    for first point: $f_{xx} = 8.97$, $f_{yy} = 5530.131$.  So $f_{xx}*f_{yy} - 0 > 0$ , and $f_{xx} > 0 $, which means it is a local minimum point.   for second point: $f_{xx} = 2.03$ , $f_{yy} = 0.17$. and same as above, it is a minimum point.  Would appreciate any help in approving this solution or finding mistakes in it, and if there's any more efficient approaches, thanks in advance.   EDIT: Approach from Parcly Taxel answer:  Checking maximum and minimum for $3x+8y$:  $\phi (x,y,\lambda) = 3x+8y + \lambda(x^2+y^2-1)$  $\phi_x = 3 + 2\lambda x = 0 \Longrightarrow x= \frac{-3}{2\lambda}$  $\phi_y = 8 + 2 \lambda y = 0 \Longrightarrow y= \frac{-4}{\lambda}$   $\phi_{\lambda} = x^2 +y^2 -1 = 0 \Longrightarrow \frac{9}{4\lambda^2} + \frac{16}{\lambda^2}-1=0 \Longrightarrow 9+64=4\lambda^2 \Longrightarrow \lambda^2 = \frac{73}{4} \Longrightarrow \lambda = \pm \frac{\sqrt{73}}{2}$  So: $x= \pm 0.3511 $  $y = \pm 0.9363$  $(0.3511, 0.9363) , (-0.3511, -0.9364)$


Invalid identifier ' '. error on running code in anonymous window

I am trying to learning JSON Serialization from  in which i came accross a code snippet which i tried to run in anonymous window. Contact con = [SELECT Id, LastName, AccountId FROM Contact LIMIT 1];  // Set additional field con.FirstName = 'Joe';  String jsonstring = Json.serialize(con);  System.debug(jsonstring);  System.assert(jsonstring.contains('Joe') == true);  on executing i am getting error as  "Line: 1, Column: 69 Invalid identifier ' '. Apex identifiers must start with an ASCII letter (a-z or A-Z) followed by any number of ASCII letters (a-z or A-Z), digits (0 - 9), '$', '_'.".  Not able to understand why.


Programmatically sorting attribute table, adding field and sequentially numbering field based on that sort?

Basically, I have a bunch of photos from a field data capture software that I am exporting into Arc. I need to create a map for these photo locations labeled in the the order the photos were take.    I will have to sort on the timestamp, add a field and then sequentially number the field based on the sort.    This is a map that will be created after each inspection is done, so I would like to automate the process as much as possible.


How to avoid tons of `instanceof` in collision detection?

Consider a simple game with 4 kinds of entities: Robots, Dogs, Missiles, Walls.  Here's a simple collision-detection mechanism in psuedocode: (I know, O(n^2). Irrelevant for this question).  for(Entity entityA in entities){     for(Entity entityB in entities){         if(collision(entityA, entityB)){             if(entityA instanceof Robot && entityB instanceof Dog) entityB.die();             if(entityA instanceof Robot && entityB instanceof Missile){                 entityA.die();                 entityB.die();             }             if(entityA instanceof Missile && entityB instanceof Wall) entityB.die();             // .. and so on         }     } }   Obviously this is very ugly, and will get bigger and harder to maintain the more entities there are, and the more conditions there are.  One option to make this better is to have separate lists for each kind of entity. For example a Robots list, a Dogs list etc. And than check for collisions of all Robots with Dogs, and all Dogs with Walls, etc.  This is better, but I still don't think it's good.  So my question is:  The collision detection system spotted a collision. Now what?  What is the common way to react to the collision? Should the system notify the entity itself that it collided with something, and have it decide for itself how to react? E.g. entityA.reactToCollision(entityB).  Or is there some other solution?


install driver for ID 148f:7601 Ralink Technology, Corp. MT7601U Wireless Adapter on Lubuntu 20.04

i tried a lot of solutions but none seems work. For example this  two links:   The second link  suggest this solution: sudo add-apt-repository ppa:thopiekar/mt7601 The answer is:     Source code: (c) Copyright 2002-2013, MediaTek Inc. (released under GPLv2) GitHub: https://github.com/porjo/mt7601 Patches: @poma at linux-wireless mailing list  More info: https://launchpad.net/~thopiekar/+archive/ubuntu/mt7601 Press [ENTER] to continue or Ctrl-c to cancel adding it.  Ignorato:1 http://ppa.launchpad.net/thopiekar/mt7601/ubuntu focal InRelease Trovato:2 http://archive.ubuntu.com/ubuntu focal InRelease                      Errore:3 http://ppa.launchpad.net/thopiekar/mt7601/ubuntu focal Release           404  Not Found [IP: 91.189.95.83 80] Trovato:4 http://archive.canonical.com/ubuntu focal InRelease                   Lettura elenco dei pacchetti... Fatto E: Il repository "http://ppa.launchpad.net/thopiekar/mt7601/ubuntu focal Release" non ha un file Release. N: L'aggiornamento da tale repository non può essere eseguito in modo sicuro ed è quindi disabilitato come impostazione predefinita. N: Consultare la pagina man apt-secure(8) per la creazione di un repository e la configurazione utente.  At the end is written that the repository is note sicure and i have to go to the page "man apt-get secure" to make a repository and the id configuration Can someone help me? Thanks


Applying for UK visa while staying in Italy on a temporary Italian residence permit

I am a resident of India and I moved to Italy 3 weeks ago for my PhD. I have to visit the UK in the last week of November for which I'll need Italian residence permit for my visa application. I have already applied for my residence permit, but it will take another couple of months to receive (I might get it in December). Therefore, Italian police headquarters has agreed to give me a temporary residence permit which is valid for 3 months. Is it possible to apply for UK visa using the temporary residence permit?


Is it necessary to apply all transforms? Everything in my character breaks the second I apply transforms... My shader for my character's eyes, the hair, even the rotation of the eyelids ceases to function properly. I am making a character for a game, but what does applying transforms do? The scale is like 0.1, I had thought I applied it before  making the hair, but turns out I didn't , so I applied it and the hair grew out all over the place. I don't even understand why my eyelids fail to rotate properly after applying rotation.   Can anyone tell me how to apply transforms without having everything break, or is this to be expected? And what does applying transforms do?


How can I create bibliography in MLA format with BibTeX?

I know how to create a bibliography of the MLA style manually:  \begin{thebibliography}{9}   \bibitem{Poz}     Pozrikidis, C. \emph{Boundary Integral And Singularity Methods For Linearized Viscous Flow}. Cambridge [England] : Cambridge University Press, 1992. Print.  \end{thebibliography}   The link about BibTeX gives the following description:     If a document references this handbook, the bibliographic information may be formatted in different ways depending on which citation style (APA, MLA, Chicago etc.) is employed. The way LaTeX deals with this is by specifying \cite commands and the desired bibliography style in the LaTeX document.   It does not mention how can the bibliographic information be formatted in different style.  Question: How can I create the bibliography automatically with  with the same ? (Window Vista, MiKTeX, WinEdt 6.0)  [EDITED: ]Are there other ways to create the bibliography in MLA style in LaTeX?


What is the name of the property of some function, $G(x)$, such that $\mathbb{E}[G(x)]=G(\mathbb{E}[x])$? Thank you.


What is the meaning of 'under review' after making a minor revision?

Last week I received a minor revision decision letter from a journal's editor. I made revisions in accordance with the reviewers' comments and resubmit the manuscript to the ScholarOne system. And now the status still is 'under review'. I wonder whether it means the resubmitted manuscript is now reviewed by external reviewers, or by the editors.


Name of the archaic "F" character used for an "S"

Into the 19th century, accepted orthography often used a letter character that resembles an F (but is not in fact identical to an F) when today we would invariably use an S.   What is this character called?  What were the orthographic rules of its usage?  Was it inherited from the German language?


Why is this TreeSet passing by reference, in Java?

Why does this code change the value of set1 in the last print statement, I was under the impression that in Java arguments  were passed by value?  Am I missing something?  import java.util.Set; import java.util.TreeSet;      public class Testing {       public static void main(String args[]) {         Set<String> set1 = new TreeSet<String>() ;        set1.add("A") ;        set1.add("B") ;        set1.add("C") ;        set1.add("D") ;        set1.add("F") ;        set1.add("G") ;        System.out.println("set1, the tree set: " + set1) ;         Set<String> set2 = new TreeSet<String>() ;        set2.add("B") ;        set2.add("D") ;        set2.add("E") ;        set2.add("F") ;        set2.add("G") ;        System.out.println("set2, the tree set: " + set2) ;         Set set3 = difference(set1, set2);         System.out.println("Difference: " + set1 + " - " + set2                      + " = " + set3) ;        }     public static Set<String> difference(Set<String> x, Set<String> y)     {          x.removeAll(y);          return x;   }}


Shattered, rough WMTS image in QGIS 2.18.12

After updating QGIS i found that wmts layers are being rendered in way that makes them useless. It look's like tiles are downloaded in greater resolution and then scaled down what makes them rough and all captions unreadable.  I'm on windows 10.


I am trying to Show the Records based on Postcode using Geolocation Distance method

I am trying to Show the Records based on Postcode in the VF Page which has a Distance Filter as 10,15,25,50 and 100 miles. It works perfectly fine till 25 but then fails. If(postObj.Geolocation__c != null){                 for(postcode__c obj :  [SELECT Geolocation__c,Name ,Id , Geolocation__Latitude__s                                          FROM postcode__c WHERE DISTANCE(Geolocation__c, GEOLOCATION(:latitude,:longitude), 'mi') < :distance LIMIT 50000]){                     postalcodeIds.add(obj.Id);                 }                       }  Postcode is a Object which has 2 Million Records in SF. Errro Message - Too many query rows: 50001 Error is in expression '{!searchCall}' in page searchpage: Class.Database.QueryLocatorIterator.hasNext: line 41, column 1


Suppose that there are 100 buckets. Each time two balls are dropped into two buckets (i.e. they will never be dropped in the same bucket). I keep repeating the exercise.  Question is how many times do I need to do this exercise to say with 95% certainty that all the buckets would have been used atleast once.  Now I realise that for an individual bucket the probability of being empty after n iterations is $(1-p)^n$ where $p=0.02$ (from above) and $n$ is the number of iterations. However, I do not know how to extend this logic to 100 buckets.


I got a 6 months business visa for the UK. But I can't use it.   My relative lives in the USA. In the future, I want to go there to meet with her.  Is there any problem getting a US visa after getting, but not using, a UK business visa?


interpreting level-log model that has a percentage variable

If I have a level-log model, such as y= β0+β1log(x),  I know the interpretation is "If we increase x by one percent, we expect y to increase by (β1/100) units of y."  So, my questions are   If y is a percentage variable, what is the correct interpretation of the resulting regression? Is it still the same but has a unit of percentage instead of unit, so the interpretation becomes "If we increase x by one percent, we expect y to increase by (β1/100) percent of y"? Or we don’t have to divide β1 by 100, so the interpretation becomes "If we increase x by one percent, we expect y to increase by β1 percent of y"? Can I convert my variables (ex: interest rate and inflation rate) to logarithm if it has a unit of percentage? If it can be done, can I change my model into log-log model, although my variable y has a unit of percentage, so the model becomes  log(y)= β0+β1 log(x) ? What is the correct interpretation of this model?


Why is a new user able to create tables in PostgreSQL?

I followed two tutorials to create a DB with:   a fully privileged user  a read-only user    I then got a tip from  stating that "you may have inherited the ability to create tables even though we never explicitly gave it to our new user". Sure enough, the read-only user is able to create and own tables!  CJ Estel has pointed the root cause very well, namely a template database. But the ability to create tables undermines most tutorials you get from googling "read only user postgres" including . Your user has more than read-only privileges!  Why does a new user have this ability? After revoking this privilege, is the database truly read-only for that user?


Why can't our cognitive sense or five senses sense or fathom hyper-dimensional spaces?

Why can't our cognitive sense or five senses sense hyper-dimensional spaces?  Is it because of the way our human body is built?


Change user account name in Windows 8 without losing desktop settings?

I have inherited the computer of a former employee. My office is on a small network. I log onto the domain with his old credentials. I have tried changing it in Control Panel under user account settings but it does not give me that option. Maybe because it is the admin account? I've been using it for a while as is, but would prefer to see my name instead of old employees, but I would also like to keep all my account settings, files, docs, etc. I've also just upgraded to Windows 8. Thanks in advance for the input.  My user account properties:    Old user account properties, note, there is only one tab:    Computer name:


Is it posible to define a structure with a pointer to that type of structure? What I mean is:  typedef struct {     char* name;     node* parent; } node;   As far as I tried or read, I don't know how to do this or if it's even possible.


Teaching myself differential topology and differential geometry

I have a hazy notion of some stuff in differential geometry and a better, but still not quite rigorous understanding of basics of differential topology.  I have decided to fix this lacuna once for all. Unfortunately I cannot attend a course right now. I must teach myself all the stuff by reading books.  Towards this purpose I want to know what are the most important basic theorems in differential geometry and differential topology. For a start, for differential topology, I think I must read Stokes' theorem and de Rham theorem with complete proofs.   Differential geometry is a bit more difficult. What is a connection? Which notion should I use? I want to know about parallel transport and holonomy. What are the most important and basic theorems here? Are there concise books which can teach me the stuff faster than the voluminous Spivak books?  Also finally I want to read into some algebraic geometry and Hodge/Kähler stuff.  Suggestions about important theorems and concepts to learn, and book references, will be most helpful.


How to use MacOS Screen Sharing to access second account on same machine

I have two user accounts, personal and work. I used to have two machines, a desktop and a laptop. Laptop had personal account, and I would use the work desktop with Screen Sharing to have both accounts accessible to me with a simple four finger swipe (with Screen Sharing in full-screen mode).  Now I have only one machine with both accounts on it. I can no longer use the above trick to have quick access to both user accounts, because Screen Sharing doesn't allow me to access localhost. I cannot use Fast User Switching, as it is not fast, but more importantly it logs me out of an important App I use each time I switch.  Is there some way to trick Screen Sharing into thinking I'm not trying to reach localhost and let me connect to my second user account? I do have access to an Ubuntu desktop on my network, if that helps any...  Thanks in advance for your help.


Trying To Identify The System That Coordinates Belong To

I have architectural drawings of a bus terminal in Rochester, NY done in 1974 that lists the coordinates of the corners of each building. But I don't recognize the system of these coordinates. For example, instead of the usual "North" and "West," the first number is identified as "South," the second as "East." A full example is 49,876.06 South, 41,834.17 East. I need to convert these to lat/longs (degrees, mins, seconds) to relate to coordinates reported by the on-board GPS system of buses moving about the terminal. I thought these might be State Plane Coordinates, but I've found those have a different format. Can anyone identify the system these coordinates belong to?


So I have a function which shall return the variable "ergebnis" but only if the operator is "/" it shall also return the rest called "rest". How do I accomplish that?  unsigned int (unsigned int zahl1, unsigned int zahl2, char operat) {     unsigned int ergebnis;     unsigned int rest;     switch (operat)     {     case '+':         ergebnis = zahl1 + zahl2;         return ergebnis;     case '-':         ergebnis = zahl1 - zahl2;         return ergebnis;     case '*':         ergebnis = zahl1 * zahl2;         return ergebnis;     case '/':         ergebnis = zahl1 / zahl2;         rest = (zahl1 % zahl2);         return ergebnis, rest;     } }


Is there a possible reason for having index on (a) and on (a,b) at the same time

Suppose I have a table with several column, among them - columns a and b.  Is there any use case for which having both multi-column index on (a,b) and a single-column index on (a) is beneficial?  AFAIU for simple equality check using first column of multi-column index is equally good as using the single-column index.


How to rename all files which end with ".BAK"

I have a windows file system where a hiccup in our backup software renamed hundreds of files.   The change looks like this: "ABC.PDF" -> "ABC.PDF.BAK"   This happened to some, but not all files in a directory.  I would like to rename such files to their old name, but the script should output or ignore cases where this is not possible, because a "ABC.PDF" already exists.  I am not familiar at all with batch scripts, but powershell is available too.


"known unknown" and "familiar unfamiliar" - is there a term to describe this?

Is there a term to describe when we put two words together like this, like a reduplication? However, the difference they are two opposites or contradictions?]  For example, this quote here:   Thanks


It possible to convert java source file to a .exe file?

I have tested followed by this : Created the jar file and "right click" it, one new window opened than click "properties " menu than click the"change" button  to choose the program you want to use to open this file as  java installed directory path and double click it,run correctly.  1.Any other than this way to convert Java source file as(.java) or a class file (.class),need to use any third party jar file?   how can I convert it to a .exe file?   Thanks in advance for your reply...!


I posted this to Psychology because it is a broad question that happens to be a current issue for me.  Apparently that's not allowed. Is there a better place for this question?


Combination of multirows and multicolumns table


Would anyone be able to help me with the following question? Thank you.   Point 1: When there is 1 car passing the road, the average speed is 50km/h. Point 2: When there are 5 cars passing the road, the average speed is 45km/h. Point 3: When there are 12 cars passing the road, the average speed is 38km/h.   A traffic engineering company decides to model the average speed (shown by u) as a linear function of the number of cars (shown by n). So we want to have  u(n)=α+βn.  Use Point 1, Point 2 and Point 3 information: write a system of linear equations to calculate α and β using all three points; i.e. we will have three equations with two unknowns.


intel WIFI AC 9560 don't work in ubuntu 18.04

I don't know how to solve the problem , I'm fresh in linux and have googling whole night didn't get any clue.  the wifi info detail in this link    ~$ dmesg | grep iwl [    3.328734] iwlwifi 0000:00:14.3: loaded firmware version 38.c0e03d94.0 op_mode iwlmvm [    3.365312] iwlwifi 0000:00:14.3: Detected Intel(R) Dual Band Wireless AC 9560, REV=0x318 [    3.419871] iwlwifi 0000:00:14.3: base HW address: 18:1d:ea:72:e8:ae [    3.490239] ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs' [    3.491152] iwlwifi 0000:00:14.3 wlp0s20f3: renamed from wlan0


How to adjust operator settings after leaving the settings panel

I've added a torus knot using the the "Add Curve: Extra Objects" addon. I've done some work on the scene, and now would like to go back change the knot parameters that were in the operator settings when I first added the curve.   How do I get back to that panel to adjust operator settings?


How can I update/comment on a locked/closed question

There is a question which was raised almost 7 years ago which should probably be updated.    It should be noted that the answer is no longer accurate IMHO as the compiler has advanced in the last 7 years.  I suspect it was even inaccurate at the time, but it was so long ago it is hard to say.  Is there a process for handling answers which are locked but become in accurate over time as people still follow this advise even if the language and compilers have moved on.


Remove duplicate values from query result

I am using Postgres 9.3.9. I have 2 tables :  f_agent :  CREATE TABLE f_agent (   f_agent__id bigserial NOT NULL,   f_agent__total_users integer NOT NULL,   f_agent__dim_time_id integer NOT NULL,   .... other unnecessary columns );   dim_time :  CREATE TABLE dim_time (   dim_time__id bigserial NOT NULL,   dim_time__date date NOT NULL,   dim_time__month_start_date date NOT NULL,   dim_time__week_start_date date NOT NULL,   dim_time__quarter_start_date date NOT NULL,   dim_time__year_start_date date NOT NULL,   dim_time__guid uuid NOT NULL DEFAULT uuid_generate_v4(), );   Now, f_agent__dim_time_id field in f_agent is FK referencing dim_time__id of dim_time.   My dim_time table has a date and its related week_start_date, month_start_date etc. For example: if dim_time__date is 14-07-2015 then dim_time__week_start_date will be 13-07-2015 (monday is start of week) and start_of_month is 01-07-2015 (always the first).   I have to find  f_agent__total_users from f_agent given a date range and a dimension (week / month / quarter).  What I've tried:   SELECT dim_time__week_start_date, f_agent__total_users  FROM f_agent JOIN dim_time      ON f_agent__dim_time_id = dim_time__id  WHERE dim_time__week_start_date IN (     SELECT generate_series('2015-07-06', '2016-07-03', '7 day'::interval) );   The output:   dim_time__week_start_date   f_agent__total_users "2015-07-13";                      3 "2015-07-13";                     33 "2015-08-10";                     12   But I only need the first value in case 2 week_start_dates are same. The output I am expecting here is:    dim_time__week_start_date   f_agent__total_users "2015-07-13";                      3 "2015-08-10";                     12   How can I do this?


Why some phrases auto recognised as tags and other not

In Stackoverflow when I search for angular it show me the tag [angular] and so I can follow it and when I search for vue or react it isn't. Angular search:  Vue search:  When I search for [vue] it is working and show the Vue tag and let me follow it.


Can anyone explain what are this numbers `echo -ne "\033]0;Title\007"`

I'm using them for setting the terminal title or terminal tab title but want to know what the numbers refer to. Could anyone please give me a hint on where I can find that info?


I heard some sentences with this form from English speakers: "what I do know is that..." or  " We do share the same..." The question is: what is the applicant of do in these sentences? Why they use it before main verbs?


I have a few dozen feature classes, one of which contains the field I am looking for. They are stored in several different file geodatabases.  Is there a quick way of searching each feature class to find the one that has my field? Or do I have to check each one's attribute table in Catalog? Some of the files have the same names but are stored in separate locations.  I would like to be able to do this inside a Calculate Value tool in ModelBuilder, so that each time I needed to, I could run the model on a single file gdb and it would search through all the feature classes within that gdb and look for the field.   So far, I have a feature class iterator which iterates over all the feature classes in the file gdb recursively. Inside the Calculate Value I have the following code:  findField(r"%Feature%", "%Search Field%")     def findField(fc, fi):   lst = arcpy.ListFields(fc)   for f in lst:     if f.name == fi:       return fc     else:       return "not found"   The returned values are collected in Output Values as strings. The output for all the feature classes has been "not found", even though the field exists in at least 4 of them.


How does USB Power Delivery work with voltages above 5V without damaging 5V peripherals?

I have a  for my phone, powered via a micro-usb port. The markings on it indicate that it will accept the typical 5V that nearly every USB port provides, or it will accept 9V for "fast charge".  I was under the impression that USB standards allowed for no more than 5V. My research shows that  has several profiles (up to 20V), and Revision 2.0 Version 1.2 includes a 9V profile.  Now I'm wondering: How can voltages above the usual 5V be provided without worry of damaging an expensive phone when connecting them directly (no wireless pad)? If things are running at different voltages, wouldn't that cause an issue?  In this example, 9V is used for fast charging, but could that 9V be sent to my phone? Do phones have a safeguard for this? The USB standard allows for up to 20V. That's a lot when expecting only 5V. Some "dumb" devices are powered directly off of USB, like cheap LEDs and fans that have no IC. Surely they would blow upon 20V!  I'm guessing there is data exchanged between the power source and the peripheral, ultimately telling the power source whether or not it's okay to provide more than 5V. Some USB charging cables don't have data pins though, which can allow for faster charging. In this case, it seems that not having data pins would be a restriction. Maybe the power source would have to default to 5V?. Unfortunately I cannot find an explicit protocol/explanation of how the different potentials are managed.


I have this code which works:  public async Task<IActionResult> OnGet() {     var workbook = GenerateClosedXMLWorkbook();     MemoryStream memoryStream = new MemoryStream();     workbook.SaveAs(memoryStream);     memoryStream.Position = 0;     return File(memoryStream, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "hello.xlsx");     }   private XLWorkbook GenerateClosedXMLWorkbook() {     var workbook = new XLWorkbook();     var worksheet = workbook.Worksheets.Add("Sample Sheet");     worksheet.Cell("A1").Value = "Hello World!";     worksheet.Cell("A2").FormulaA1 = "=MID(A1, 7, 5)";     return workbook; }   However, it seems to me that I somehow need to be closing or disposing of the memoryStream.  Is that correct?  Or is it getting automatically closed?


I have a brand new HP Envy 17-j020us Core i7 w/Win8 laptop that I cannot boot on any live DVD. I,ve tried 12.04,12.10 and 13.04. I've tried Secure boot off and on, Legacy boot off and on. Grub loads fine but the screen goes black after selecting "Try" or "Install". DVD runs for several minutes but video never appears. I suspect a video problem on boot but it could be anything? I have a rough idea how to edit boot options in grub but I dont know what those video options would be? Any help is greatly appreciated. EDIT: found another post similar that mentions option"nomodeset", will try that when I get home tonight. Other post however mention my intel HD4600 graphics being supported, so my initial thought of it being video related seems unlikely. EDIT: Boot disks were turning screen brightness to ZERO! This is known bug from what I've read? And its on all three versions...12.04-12.10-13.04. Now If I can figure out how to mark this solved///  HP Envy 17-j020us


Let $A, B$ be $n\times n$ with $n\ge 2$ nonsingular matrices with real entries such that $A^{-1} + B^{-1} =(A+B)^{-1}$

Let $A, B$ be $n\times n$ with $n\ge 2$ nonsingular matrices with real entries such that $$A^{-1} + B^{-1} =(A+B)^{-1}$$   then prove that $\operatorname{det}(A)=\operatorname{det}(B)$.   Also show that this result is not valid for complex matrices.   I'm not getting any way out to solve this. Can anybody solve the problem? Thanks for assistance in advance.


Show that $\operatorname{rank}(A) = \operatorname{rank}(B)$

Let $A$ and $B$ be $n\times n$ real matrices such that $A^2=A$ and $B^2=B$. Suppose that $I-(A+B)$ is invertible .    Show that $\operatorname{Rank}(A)=\operatorname{Rank}(B)$.     I proceed in this way: Note that $A(I-(A+B))=A-A^2-AB=A-A-AB=-AB$ and similarly $B(I-(A+B))=-AB$. So $A(I-(A+B))=B(I-(A+B))$. Since $I-(A+B)$ is invertible we get $A=B \Rightarrow \operatorname{Rank}(A)=\operatorname{Rank}(B)$.


Real projective space $\mathbb{R}P^1$ is diffeomorphic to $S^1$?

I am reading Lee, Manifolds and Differential Geometry, and I am a bit confused. It is seen that the real projective space $\mathbb{R}P^n$ is homeomorphic to $S^n/ \sim$, where $p \sim q$ iff $p = \pm q$.   However, in one of the exercises (1.48) one is asked to prove that $\mathbb{R}P^1$ is diffeomorphic to $S^1$.   Is this really true (is there a simple proof of this) and does this imply something for the relation between $S^1$ and $S^1/\sim$?   Does this also mean that $\mathbb{R}P^1$ is homeomorphic to $S^1$ (since diffeomorphism is a stronger condition)?


Consider the following code:  #include <stdio.h> int main(void){     char *p="A for Apple";     char q[15]="B for Ball";     printf("x=%c y=%c\n",*(p+10)-2,*(&q[4]-2));      printf("u=%c v=%c w=%d\n",p[8],*q+8,8[p]-q[8]);     return 0; }   Output:  x=c y=f   u=p v=J w=4   Problem, I am having here is determining how w=4 was evaluated.  What does 8[p] means?


Sorting txt file to create a leaderboard

I'm trying to create a txt file each time someone loses in the game (to save their score)  I succeeded and I now have a list of number which I want to sort, biggest first. Then I will use the 5 first lines each time it will be refreshed.  My txt file (for example):  10 1 5 4 3 2   What I want:  10 5 4 3 2 1   Thanks  #Saving the score     Scorefile = open('Scoreboard.txt','a')     Scorefile.write(str(score))     Scorefile.write('\n')     Scorefile.close()      #Sorting the file    Scorefile = open('Scoreboard.txt','a')


How to remove the number of the page in latex?

I am a newbie in Latex. I know there are many manuals where I can learn how to use Latex but I am facing a problem I can't manage to solve simply. The structure of my document is this:   title page abstract table of contents   The problem is that I don't want that the abstract page to have the page number at the bottom. To do this in the title page I simply used the command \pagestyle{empty} . Now if I try to do the same with the abstract page it doesn't work. Here it is the code of my document:  \begin{document}  \pagestyle{empty}  \begin{figure}[t] \centering \includegraphics[scale=.40]{Sapienza.png} \vspace{3em} \end{figure}  \begin{center} %%%% here there are many sentences \end{center}  \clearpage{\pagestyle{empty}\cleardoublepage}  \pagestyle{empty} %%in order to delete the number at the bottom of the page  \chapter*{Abstract} %%sentences  \pagestyle{plain}%%to insert again the number of the page  \tableofcontents   The problem is that the abstract page keeps showing the page number and I can't manage to delete it. Can you please help me?


High Elf Racial Cantrips: Do they improve for non-Wizards?

For example if a High Elf Rogue chooses Ray of Frost for his or her racial cantrip, does that cantrip improve as his or her Rogue level increases? Ray of Frost gets better damage as you advance in level, does it only advance for taking Wizard levels or can any class levels improve racial cantrips?


I have an issue that needs the help of everyone. I created the page in view to filter the node. I created a filter Date created in "view exposed filter" for filter by  Date created.   I configured for the Filter granularity is check month,  that filter will display 2 dropbox to me to choose, i.e. month and year dropbox. But I want to change label in this two dropbox. Example: "- Month -" replace for "-Month". Do not know if anyone can help me handle the matter.


Running a Python script from a button push

Im making a web interface for a RFID reader and trying to make it so there is a button to push then it waits for the user to scan a card and retrieves the UID of the card.  I was thinking of using ajax to call a php script which calls the python script, but it doesnt wait for the card to be scanned.  Heres the ajax:  <script type = "text/javascript"> function scancard () {     $.ajax( { type : 'GET',                         data : { },                         url    : 'scancard.php',                         success: function (data) {                             var card_id = document.getElementById('card_id');                             card_id.value = data;                         },                         error: function (xhr) {                             alert( "error");                         }                     });     } </script>   And the button html:  <button onclick="scancard()">Scan Card</button>   Testing with a simple echo cmd it fills in the field but then refreshes the page and the field is blank again.  The next problem I have is when I put in this for the php script to call the python code:  <?php   exec('sudo python scancard.py', $output, $return);   echo $return; ?>   It doesnt wait for the python code to finish before it does the echo command. The python code has a while loop in it that is waiting for a RFID card to be read and then returns the uid code.   # Lots of configuration and setup stuff above this...it works when run via command line # Main loop to detect cards and read a block. while True:     uid = pn532.read_passive_target()     if uid is None:         continue     else:         if not pn532.mifare_classic_authenticate_block(uid, 4, PN532.MIFARE_CMD_AUTH_B,                                                    [0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF]):             continue         uid = '0x{0}'.format(binascii.hexlify(uid))         sys.exit(uid)   I might be going about this in a roundabout way as well so if there is a better way to do this, please let me know


Do comic characters sometimes get drawn like the actor playing them?

I noticed in Spider-Man's recent cameo in Captain Marvel, he appeared an awful lot like Andrew Garfield who is playing Spider-Man in the recent movie.    Irrelevant of whether it is just my imagination, do some depictions of comic characters morph to be more like an actor who plays them around the time a corresponding movie is released?  By comparison, here is Spider-Man's depiction in the Spider-Men crossover:


Is there any way to add pasta to soup without the pasta doubling in size and getting mushy in the fridge later.I've even tried putting uncooked pasta in with the same result.


consider $r>0 , p>1$ and $K \subset B(x_0 , 2r) \subset R^n$ . $K$ compact. Define the sets :  $$A = \{ u \in C^{\infty}_{0} (B(x_0 , 2r)); \textit{ such  that }  \  u=1 \textit{ in a open  neighborhood of K} \}$$  $$ B =  \{  u \in  H^{1,p}_{0} (B(x_0 , 2r)) \cap  C (B(x_0 , 2r))  : u=1 \  on \  K  ,  \  0 \leq u \leq 1\}$$  I want to show that   $$ \displaystyle\inf_{u \in A} \displaystyle\int_{B(x_0 , 2r)} |\nabla u|^p  \ dx= \displaystyle\inf_{u \in B} \displaystyle\int_{B(x_0 , 2r)} |\nabla u|^p   \ dx$$  For this i am trying to aproximate (in the sense of the  norm of $H^{1,p}$) the function of B , by function of $A$.  Somenone can give me a hint ?  thanks in advance


How do I prepend a line read from STDIN with an epoch timestamp?

I'm wanting to prepend the  to a single line of arguments. My desired output is:  $ echo foo bar baz | some_bash_awk_sed_date_program_or_something_else 1491146539 foo bar baz   The actual output I'm getting can be seen below:  $ echo foo bar baz | awk -f time_stamper.awk 1491146539 0 foo bar baz   My time_stamper.awk:  BEGIN {  OFS=" " printf "%s ", system("date +'%s'") } { print }   I think the leading 0 is coming from the return value from . I was expecting setting the OFS=" " would at least return 1491146539 0 foo bar baz changing the newline to space.  Some questions about my current attempt:   What is wrong with my usage of the OFS ? Why is the 0 printing in front of foo bar baz?   More importantly, I'm not sure if awk is the right tool for the job. Maybe I should use sed, date or some other utility.    How do I print the desired output?   Note: This question is more specific and therefore different from . Also, the  requires the installation of  which seems like an interesting addition the Unix toolset; however, I'd rather stick with more traditional Unix utilities to perform my task.


Ordered N-Tuples as Cartesian Products of Indexed Families

In Introduction to Topology, Mendelson defines the Cartesian Product of an Indexed Family as follows:     DEFINITION  Let $\{X_\alpha\}_{\alpha \in I}$ be an indexed family of sets. The product  of the sets $\{X_\alpha\}_{\alpha \in I}$,    written  $\prod_{x\in I}X_\alpha$ consists of all functions $x$ with domain the indexing set $I$ having the property that for each $\alpha \in I$, $x(\alpha)\in X_\alpha$.    Halmos, in Naive Set Theory, makes the following observation about this sort of product:     Ordered triples, ordered quadruples, etc., may be defined as families whose index sets are unordered triples, quadruples, etc.   However, it is not immediately apparent to me why this is true. It makes sense if we understand the prior assertions in Halmos that $\prod_{i \in I} X_i = X_i$ and that $\prod_{i \in I} X_i = X_a \times X_b$ when $I = \{a, b\}$, but these already pose difficulty for me.  Let $I = \{0, 1\}$, let $X_0 = \{A, B\}$, and let $X_1 = \{C, D\}$. Then by Mendelson's (and Halmos's) definitions, it would seem to me that . . .  $$\prod_{i \in I} X_ i = \{\{(0, A), (1, C)\}, \{(0, A), (1, D)\}, \{(0, B), (1, C)\}, \{(0, B), (1, D)\}\}$$  This would appear to me to be the set of all functions matching the definition given, but it is not equal to $X_0 \times X_1$. Moreover, extending this to a case where the index set $I$ is a triple, we would not end up with ordered triples, but with each subset of the product containing three ordered pairs.  When Halmos posits the equalities he does, the idea seems easy to grasp, but the peculiar wording of Mendelson's definition suggests something different to me.


I don't understand why I get a nil error. I created the setter properly. But it does not accept -=, +=, or itself behind the = operator. Why?  class Test   def var; @var || 0; end   def var=(value)     @var = value   end    def initialize     @var = 2.4 # Sample value   end    def test     puts var     var -= 1 # <<< crash: undefined method for nil class     puts var     var = var - 1 # <<< crash: undefined method for nil class     puts var   end end  a = Test.new a.test


How to limit text length for a textfield in a UIAlert iOS.

How would I limit the amount of text, that can be entered in a text field in a UIAlertView with my existing code?   I am new to iOS app development.  My code is as following:  if(indexPath.row== 1){     [tableView deselectRowAtIndexPath:indexPath animated:YES];     UIAlertView *alertView = [[UIAlertView alloc]                               initWithTitle:@"Enter Novena Day"                               message:@"Please enter the day of Novena:"                               delegate:self                               cancelButtonTitle:@"Cancel"                               otherButtonTitles:@"Ok", nil];     [alertView setAlertViewStyle:UIAlertViewStylePlainTextInput];     UITextField *textField = [alertView textFieldAtIndex:0];     textField.keyboardType = UIKeyboardTypeNumberPad;      [alertView show];  }


Is it possible to solve this system of equations?


Recently our svn server was changed and we did a svn switch.  Since the working copy had a huge amount of unversioned resources, the working copy got locked and we started switching folder by folder for all folders under svn, which works perfectly fine.  But at the top most level of the repository, when I try to update files, I get the svn: Working copy '.' locked error and cleanup is not helping either. When I do cleanup, I get errors like these - svn: 'content' is not a working copy directory  Fresh checkout is NOT an option at all. Are there any other ways to cleanup and release the locks and do the switch completely ?  EDIT:  The last paragraph in JesperE's answer     If you get a "not a working copy" when   doing a recursive "svn cleanup" my   guess is that you have a directory   which should be a working copy (i.e.   the .svn directory at the toplevel   says so), but it is missing its own   .svn directory. In that case, you   could try to just remove/move that   directory and then do a local update   seems to be the solution to the problem in the repository. I have identified those folders and did a fresh checkout of those specific folders alone and wow, the locks are released in the subsequent cleanup! Thanks a lot JesperE !!  But, I still cannot figure out the svn switch error which now reads something like,     svn: The repository at   'svn://repourl/reponame/foldername'   has uuid 'm/reponame', but the WC   has 'b5b39681-0ff6-784b-ad26-2846b9ea8e7d'   Any ideas ?


Cross-referencing between different files

I want to cross-reference between different .tex files, just because I want to put every chapters separately.  Let's say in file chapterI.tex I have \label{a} and I want to access this in file chapterII.tex using something like \ref{a}. How to do this exactly in LaTeX, moreover if LEd have an easy feature to cover this, it will be better (I have put those both files in the same project).  I found another question with similar title, but I just didn't really understand. It's here: .


I don't have permission to chown the mounted directory /mnt/hdd. I am currently logged in as root. The ls -l output is:  rwxrwxrwx 1 root root 131072 Jan  1  1970 hdd   I am mounting it via fstab config:  /dev/sda1 /mnt/hdd exfat-fuse defaults 0 0   I am trying to assign the owner of that drive to www-data via that command:   root@owncloud:/mnt# chown -R www-data:www-data hdd   and it says I don't have permission to do that.  mount command output:  /dev/sda1 on /mnt/hdd type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)


I'm new to Ubuntu, it looks like it is better than Windows. Last day I tried to install Kget (the download manager) but during the process my computer suddenly stopped working. So I had to switch it off. After I logged into Ubuntu again I can't install any program. The Ubuntu Software Center says:  Items cannot be installed or removed until package catalog is repaired. Do you want to repair it now?   After I clicked repair it says (after few seconds):  Package operation fails - The installation or removal of a software package failed   I've tried several times, but the same problem occurred. Can anyone tell me a solution for this problem?


Many times, when I copy&paste an email address into the "To" field in a Gmail message, it refuses to send the email, saying that “the address has not been identified”. This is very frustrating. Is there any solution other than just manually typing the address?


Can I go Mexico as a tourist on a C1D visa?

I'm from India and working on a ship. I will sign off in San Francisco and from there I wanted to go for vacation to Mexico, but I don't have a visa. Can I go on a C1D visa to Mexico? It will expire in 2020. Please help me.


How to calculate the partitions of a concrete number?

This might be a super stupid question, but my math courses are long gone and I am stuck completely solving some math puzzles for fun. Just as a hobby, no homework involved.  I want to calculate the number of ways N coins can be partitioned. I have learned that there is an extra section of  for this and Euler was involved too, of course.  I can calculate the generalized pentagonal numbers using  $$ g_k = k(3k-1)/2 $$  but I have no clue how to calculate an actual value for $P(n)$. I see a lot of endless series but no solution. Could someone point to to some resources on how to work actually with these?


How is "Humans need not apply" a correct sentence?

I saw this expression as a title of a short documentary on Youtube and was wondering, because it makes no sense to me grammatically.


Who was "The Chosen One": Luke or Anakin?

Most would say that Luke is because he is the focus of the first movies (4-6), but Qui-gon said Anakin was "The Chosen One".   Who was the real "Chosen One"?


When can verbal passives be used in secondary predicates?

In a , on the fifth page (labelled "359"), it says resultative secondary predicates can only be stative adjectival passives. For example, "John hammered the metal flat" is valid but "John hammered the metal flattened" is not. However, there are other secondary predicates that don't follow this rule. "I prefer my food salted" uses "salted," a resultative, as a secondary predicate. Also, "This software comes pre-installed by the manufacturer" is a valid sentence, but I don't think "pre-installed" is an adjectival passive, so I am not quite sure about the rules on secondary predicates and passives.


Thought experiment: Tethered galaxies - to the extreme

If two rocks were tied together with a tight, absurdly long, non-elastic rope, and placed on planets at either end of Earth's observable universe - or beyond - What would happen?   Is the structural integrity of the rope enough to "overcome" the expansion of the universe all along the rope, causing the rope to break, or the rocks to "slide off" the planets? Or will the rope expand? If the rocks slide off the planets, and the planets were far enough apart, why would the rope not be able to move away from either planet faster than the speed of light?


When is accuracy a good metric (as opposed to precision, recall, F1)?

Suppose you have a perfectly balanced data-set.  In which applications is accuracy a good metric?  Are there applications where it's preferable to precision, recall, and F1 (all at the same time)?


Finding variance-covariance of $\hat\beta$ from $\hat\beta = (X^TX)^{-1}X^Ty$

I was reading from The Elements of Statistical Learning (Section 3.2) and they were able to find $Var(\hat\beta)$ Given $$\hat\beta = (X^TX)^{-1}X^Ty \qquad (3.6) $$ The answer they had was $Var(\hat\beta) = (X^TX)^{-1}\sigma^2$ Please how do I find $Var(\hat\beta)$ from $ (3.6)$


Is it ok to upvote or downvote all the posts of one person regardless of their content?

I was wondering if it was ok to downvote or upvote all the threads made by one person for personal reasons regardless of the threads content ?


Is there any 'Ubuntu 10.04 desktop' theme available to make it look like Windows 7 or Windows8?

I want to know is there any theme available make it 'Ubuntu 10.04 desktop'  look like Windows 7 or Windows8 ?


How much detail should we give in an answer to a rudimentary question?

If a user asks a question that is rudimentary and shows that perhaps they are new to programming, is it better to give a complete, working solution or point them in the right direction so they can teach themselves?  More specifically, I mean in a situation where the user seems to want 'codehereplz' instead of at least giving something a try after being given 'hints' or a partial non-code solution.  I know that I learn best by doing something myself after being pointed in the right direction, but is that the best thing to do?


I am writing a script to replace three lines for input in a C++ code.This is the snippet of the C++ code whose inputs I want to change: char outputFileName_ForBlueEdge[50] = "BlueEdge_SetA_PeriodRange1.dat"; //File with model parameters on the blue edge     char outputFileName_ForPositiveGrowthModels[50] = "PostiveGrowth_SetA_PeriodRange1.dat"; //File with model parameters that have positve growth rates     char log_directory_prefix[30] = "LOGS_A/LOGS_A"; //Prefix to log_directory, suffix is model number. This is where LINA file should be  And here is a minimal reproducible version of the bash script: dir=$PWD cplusplus_plotter="$dir"/BlueEdge_Plotter_V7.cpp  #Set B   sed -i \     -e "s/^\([[:blank:]]*char outputFileName_ForBlueEdge[50]\).*/\1 = "BlueEdge_SetB_PeriodRange1.dat"/i" \     -e "s/^\([[:blank:]]*char outputFileName_ForPositiveGrowthModels[50]\).*/\1 = "PostiveGrowth_SetB_PeriodRange1.dat"/i" \     -e "s/^\([[:blank:]]*log_directory_prefix[30]\).*/\1 = "LOGS_B/LOGS_B"/i" \     "$cplusplus_plotter"  However, the C++ file never changes and I keep getting the error: sed: -e expression #3, char 59: unknown option to `s'


I am looking at SVM, and reviewing Lagrange multiplier. Let's say with the constraint function $$g(x,y) = x^2 + y^2 -1 > 0, $$ I am maximizing $$f(x,y) = x + y -1 .$$ Intuitively, since the constraint function does not provide a finite constrained region, there is no solution, and $f(x,y)$ can infinitely increase.  However, if I just plainly proceed with Lagrange multiplier calculation,  $$L(x,\lambda) = (x + y -1) +\lambda(x^2 + y^2 -1)$$ I get the solution: $$y,x = -\sqrt{2}/2, \lambda = 1/\sqrt{2}$$ And this still satisfies KKT conditions although the solution is wrong.  $$g(x) => 0 , \lambda =>      0, \lambda g(x) = 0.$$  I expected that I would have some result that conflicted KKT conditions, but nothing was violated.   Does this mean that Lagrange multiplier under KKT conditions can produce a solution that cannot be solved, without giving any indication of intractability?  If functions are complicated, what's the systematic way to confirm that the optimization with inequality constraint functions is solvable using Lagrange multiplier?


How does rsync know which files are changed and which are not?  Does it log its data anywhere in the file?  Because I want to do incremental backups, but first it will transfer all files.  So my main question is: if I upload the initial files via FTP but not by rsync. Will rsync still skips those existing files or it will upload everything on the first run.


Dear all,  I have a problem with justifying text. The last word in a sentence, for example "Keynesian" is cut into "Key-" at the end of the first sentence and "nesian" at the beginning of the following sentence.   As I send the paper for review, some reviewers do not agree with this presentation. How can I still justify the text but keep the whole word?   Thanks for your comments. Another example to illustrate the problem. If I add some letter before "Keynesian", as you can see, the word "Keynesian" jumps to next line without being splitting.


how to grant user privilege on specific schema?

The situation is I have two schemas: A and B. I have a restricted user that I need to give a privilege do SELECT queries in B schema and just it. How can I grant this user?


An example of subset $A$ such that $A \cap K$ is open in $K$ for each compact set $K$, but $A$ is not open.

Let $X$  be a topological space. For any $A \subseteq X$, consider two possible conditions on $A$:  1) $A$ is open in $X$;  2) $A \cap K$ is open in $K$, for each compact set $K \subseteq X$.   Then $(1)$ implies $(2)$. but, necessarily $(2)$ doesn't imply $(1)$. Give an example of $A$ such that $A$ satisfies in $(2)$ but $A$ is not open in $X$.


Remove all special characters recursively from filename

I have multiple files in directories and subdirectories that have special characters not supported by Microsoft file shares and SharePoint. The types of characters run the gamut from tildes to ampersands to who knows what. I have used commands such as:  find . -type f -print | while read file do   file_clean=$( echo ${file} | tr " \~()&'" "_____" )   mv $file $file_clean done   and see that some have suggested using globstar. But I am still not able to find a relatively simple command to remove all special characters, leaving only A-Z, a-z, 0-9 recursively (recursively appears to be the hardest part).


Commands executed:      cat a1.txt | grep a | wc -l >> a.txt     cat b.txt | grep a | wc -l >> a.txt     cat c.txt | grep a | wc -l >> a.txt   I want count and the command to append to a.txt.   like  Expected file output: Assume 100,200,300 are counts.  cat a1.txt | grep a | wc -l  100 cat b.txt | grep a | wc -l 200 cat c.txt | grep a | wc -l  300


How do I calculate this limit: $\lim\limits_{n\to\infty}1+\sqrt[2]{2+\sqrt[3]{3+\dotsb+\sqrt[n]n}}$?

I have seen this question on the internet and was interested to know the answer.  Here it is :  Calculate $\lim\limits_{n\to\infty}(1+\sqrt[2]{2+\sqrt[3]{3+\dotsb+\sqrt[n]n}})$?  Edit : I really tried doing it but wasn't able to get somewhere.  I know how to do questions like  $ y =  (1+\sqrt{1+\sqrt{1+\dotsb+\sqrt 1}}) $ and then we write $ (y-1)^2 = y $ and solve.   But for this I have no method. So I would like even a sort of a hint to try to get me started, no need for answer.


Continuous probability distribution with no first moment but the characteristic function is differentiable

I am looking for an example of a continuous distribution function where the first moment does not exist but the characteristic function is differentiable everywhere.  Cauchy distributions do not fulfill this, as their characteristic functions are not differentiable at $0$. Does anybody here have an example?


Show all final 2-digit numbers of the decimal expansions of squares are to be found among those of $0^2, 1^2,...25^2$

I'm not really sure where to begin. The first part of the question states that "every positive integer has a unique representation in the form $50k+l$, with $-24\lt l \le 25$," which isn't even true, so...


Here is the proof problem: Prove that: $$\forall a \in \mathbb{N} \ \ \forall p \in \mathbb{N}\setminus \{0\} \ \exists x \in \left\{ a+k \ | \ k \in 0.. (p-1)\right\}(p|x)$$ First, I need some help translating this. I think I've done it correctly. $x$ would belong to the set cardinality $1$ of $a+k$, which would mean x is either the one element, or the empty set, which doesn't work. Then, I know that this isnt true of all a and p, plenty of counterexamples. So, what strategy would I use to tackle this nonexistence proof?


Why must I source .bashrc every time I open terminal for aliases to work?

I added this line into my ~/.bashrc file.  alias myserver='ssh davidfaux@davidfaux.com'   However, when I open terminal and run myserver, terminal complains that  -bash: myserver: command not found   When I source my .bashrc file, however, (. .bashrc), the alias works.   Nonetheless, I do not want to source the file every time I open terminal for the alias to work. How do I make that happen?


subcaption vs. subfig: Best package for referencing a subfigure

On , a comment by Martin H says: that one should forget about the subfigure and subfig packages and use subcaption. As subfig replaces subfigure, no argument there.  I am currently using subfig for displaying my subfigures and quite content with it. So I am wondering, what the advantages of using subcaption instead would be or if and why the use of subcaption is generally preferable to subfig.


When and where did the  present tendency begin for interviewees on the radio to preface many answers to questions with the word 'So'?


The cartesian product of a finite amount of countable sets is countable.

I want to prove that the cartesian product of a finite amount of countable sets is countable. I can use that the union of countable sets is countable.   My attempt:  Let $A_1,A_2, \dots, A_n$ be countable sets.   We prove the statement by induction on $n$  For $n = 1$, the statement clearly holds, as $A_1$ is countable. Now, suppose that $B := A_1 \times A_2 \times \dots A_{n-1}$ is countable.  We have: $$B \times A_n = \{(b,a)|b \in B, a \in A_n\}$$ $$= \bigcup_{a \in A_n} \{(b,a)|b \in B\}$$  and $\{(b,a)|b \in B\}$ is countable for a fixed $a \in A_n$, since the function $f_a: B \to B \times \{a\}: b \to (b,a)$ is a bijection, and $B$ is countable by induction hypothesis. Because the union of countable sets remains countable, we have proven that $(A_1 \times \dots A_{n-1}) \times A_n$ is countable, and because $f: (A_1 \times \dots A_{n-1}) \times B \to A_1 \times \dots A_{n-1} \times A_n: ((a_1, \dots, a_{n-1}),a_n) \mapsto (a_1, \dots, a_{n-1},a_n)$ is a bijection, the result follows.  Questions:        Is this proof correct/rigorous?     Are there other proofs that are   easier?    Someone pointed out that we can prove this theorem using the   'zigzag'-argument. Can someone provide this proof? I think this   zigzag-method is too graphical, and therefore not rigorous, so if   someone can clarify why this method is completely rigorous, I would be   more than glad to award him the bonus.


What's the meaning of 'off' in this context?

"But we don't feet like leaving, do we, boys? We've eaten all our food   and you still seem to have some."        Goyle reached toward the Chocolate Frogs next to Ron - Ron leapt forward, but before he'd so much as touched Goyle, Goyle let out a   horrible yell.        Scabbers the rat was hanging off his finger, sharp little teeth sunk deep into Goyle's knuckle - Crabbe and Malfoy backed away   as Goyle swung Scabbers round and round, howling, and when Scabbets   finally flew off and hit the window, all three of them disappeared at   once. (Harry Potter and the Sorcerer's Stone)   Scabbers the rat still attached to Goyles’s hand. And yet why the preposition off, that means coming off the finger, is used?


I have a Galaxy Nexus with the stock firmware, it's a device that has been powered off for a long time. Currently I can't update any existing apps nor can I install new ones. I have tried with Chrome, Firefox Beta and Opera Mini, I also tried updating existing ones with no luck. Also there are apps that have updates available but Play Store doesn't offer the option to update (for example the version of Firefox is 16), others (actually just one) are listed as having available updates.  There are two different behaviors that occur.  When trying to install  Chrome  The Google Play says that the app is not compatible with the device, i don't think is the case. The same happens with Firefox which is listed as a supported device in the    When trying to update an app or install Opera Mini  When trying to update an app with updates available or installing Opera Mini my device is recognized as supported but after clicking install and accepting the permissions an error occur, it says:  Error retrieving information from server. [RPC:S-3]   I have already deleted the Google Account and recreated it (password works)  Android version is 4.1.2 build number JZO54K. No carrier and no SIM, connected over a working wifi (I can surf the net with firefox)  Any ideas?


Why are there a lot of users with Reinstate Monica in the username?

Across all Stack Exchange network sites I have seen a lot of users with "Reinstate Monica" in the username, and I am not sure what this means.


Given a parameter $1, I want to subtract 5 minutes from that time, and echo it (later reuse the variable).  echo $1 time5=date -d "$1 5 minutes ago" +'%H:%M' echo ${time5}   Call with: ./script.sh 16:55  Result:     prints  16:50      ./script.sh: line 2: -d: command not found   Why can't I assign the date to the variable time5?


When my print rep talks about five-colour printing, what does he mean? I know you have cyan, magenta, yellow and black - but what's the fifth?


How to cite a reference in another reference?

I am reading the literature review of an article and the review article mentioned that the second article found positive relationship.  Now, should I cite both or just the second article that found the positive relationship?


Probability that $7^m+7^n$ is divisible by $5$

If $m,n$ are chosen from the first hundred natural numbers with replacement, the probability that $7^m+7^n$ is divisible by $5$ is?   $$7^m+7^n=7^m(1+7^{n-m}), n\ge m$$ The above expression is divisible by $5$ only if $n-m=4k+2$. The max value of $k$ is $24$.  So is the number of possibilities $48$? ($24$ for each $n>m$ and $m>n$)


Find explicit formula and prove by induction

For $n \ge 1$, let  $$\frac{1}{1 \cdot 5} + \frac{1}{5 \cdot 9} + \cdots + \frac{1}{(4n - 3)(4n + 1)}$$  Guess a simple explicit formula for $a_n$ and prove it by induction.  How do I actually guess a explicit formula for $a_n$? I'm confused, can anyone show me how to solve?


why geometric multiplicity is bounded by algebraic multiplicity?

The algebraic multiplicity of $\lambda_{i}$ is the degree of the root $\lambda_i$ in the polynomial $det(A-\lambda)$. The geometric multiplicity is the dimension of the eigenspace of eigenvalue $\lambda_i$.  For example: $\begin{bmatrix}1&1\\0&1\end{bmatrix}$ has root 1 with algebraic multiplicity 2, but the geometric multiplicity 1.  My question is : why geometric multiplicity is always bounded by algebraic multiplicity?  Thanks.


Write a JavaScript function that changes behavior based on optional arguments

I want to write a function that takes an optional argument and changes its behavior depending on whether or not that argument is provided. This is the first way I thought to do this:  function foo(optionalArg) {     if (optionalArg) {         // do something with the optionalArg     } else {         // do something different     } }   Is this the best way to do this, or is there a safer/better way?  EDIT: If you actually read the question, you'll notice that it's different than the "duplicates" some claim this is. I know how to provide default values to a function's arguments; I found those links when I was trying to figure this out on my own first. But I'm not looking for how to do that. I'm looking for the best way to change my function's behavior based on whether or not the argument was provided.


How to prevent extra text while using /tellraw

I'm using the following command to ask the nearest player if they want to spend 750 points to open a door.   /tellraw @p ["",{"text":"Buy Door: 750","color":"blue","clickEvent":{"action":"run_command","value":"/scoreboard players set @a door1 2"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Buy this door for 750 points?","color":"light_purple"}]}}}]   The problem is when it runs the command it will make an output, like a command block, but it's completely white. It states:     Set score of door1 for Player CaolanMC to 2   Is there any way to remove this? Or, must I, find an alternative way to do this?


Iteration over std::vector: unsigned vs signed index variable

What is the correct way of iterating over a vector in C++?  Consider these two code fragments, this one works fine:  for (unsigned i=0; i < polygon.size(); i++) {     sum += polygon[i]; }   and this one:  for (int i=0; i < polygon.size(); i++) {     sum += polygon[i]; }   which generates warning: comparison between signed and unsigned integer expressions.  I'm new in the world of C++, so the unsigned variable looks a bit frightening to me and I know unsigned variables can be dangerous if not used correctly, so - is this correct?


Does Visual Studio 2013 Express require space on the system drive? I have only ~5GB free on C:/. I ask because I remember that VS2012 takes lots of space on system drive even if you choose to install to another drive. Hardware requirements():   1.6 GHz or faster processor 1 GB of RAM (1.5 GB if running on a virtual machine) 4 GB of available hard disk space 5400 RPM hard drive DirectX 9-capable video card running at 1024 x 768 or higher display resolution


What order should a dialog boxes options appear in?

With dialog boxes, I find that you usually have two options:   "Cancel", "disagree", "No, go back" - an option to close the dialog box without performing an action. "Agree", "Yes, I'm sure" - an option that performs the intended action.   I've always thought you should present the action first "yes, I'm sure" followed by an option to cancel "No, go back". However, looking around there seems to be conflicting ways of presenting this.   One of the reasons I feel like the action should be first (left) as it is the first thing the user will read and therefore be the primary action you want them to achieve. Although considering mobile, the primary action wants to be as close to the thumb as possible so you would want to present it on the right [I realise this is favoring right-handed people].


I am trying to remote the server of my company from my home.  I enter the router of the company and I get this info:  Internet, IPv4 POST LuxFibre LAN1 NG, IP address: 10.244.149.239   But I also Google my IP address, and google tells me that my IP address is 88.207.251.1  I am confused now.  For the LAN of my company, the IP of the router is something like 192.168.1.1. So I consider that the 10.244.149.239 is the IP address of the router in outer net. But Google tells me that the outer IP is 88.207.251.1. Why?  Besides, I cant ping 88.207.251.1 from outer but I can ping 10.244.149.239.  Why do I seem to have two outer IP addresses?  If I want to remote the server from my home or even from other countries, which IP should I use?


Find the rank of the matrix with ones on the main diagonal and $x$ off the main diagonal

In a linear algebra book, I found the following problem.  Find the rank of the matrix $$\begin{bmatrix} 1 & x & x & \dots & x\\ x & 1 & x & \dots & x\\ \vdots & \vdots & \vdots & \ddots & \vdots & \\ x & x & x & \dots & 1\end{bmatrix}$$  I used four pages of my scrap notebook to find some patterns for the $3 \times 3$ and $4 \times 4$ cases, where the matrix is reduced to triangular ones, and maybe prove by induction. As I need to read ahead, I stopped spending time on this. Besides, I have a job. I guess there got to be a simple way to solve this problem. Does anyone have an idea? Suggestion: As this is known to be duplicate, I might like to edit. Many solution to this problem  I see in stackexchange uses the determinant of the given matix. Unfortunately, the problem appears before the section where the determinant is defined in a book I read (This is not a lie.) Thus, I would like to know a solution which doesn't use determinant or eigenvalues or orthogonal space of {1, 1, ..., 1}.


How did Smaug transport all of his gold and jewels?

Smaug first appeared in TA 2770 as a mature Fire-drake. I'm not sure if there are canonical sources which say his age or maturity, but he must have been quite large and quite old at the time in order to destroy the city of Dale and capture Erebor.  Since it is safe to assume that Smaug would have been attacking towns and stealing all of the gold and jewels he could get his claws on for most of his life, then he must have amassed a huge fortune prior to taking residence at Erebor. How did he transport his existing horde to Erebor? It seems unlikely that he would have simply abandoned all of his treasure that he had previously accumulated.  EDIT: It has been established that Smaug was not a mature drake at the time of his appearance. However, he may have already had a small horde (compared to Erebor).


Java: Input got from JOptionPane has isn't equal to same String

I wanted to make simple Notepad program that can be used with password, I mean that it can only run if correct password is typed. However, it looks like it appends some trailing spaces! Here are some screenshots:   Here's my code: File passFile = new File(System.getProperty("user.dir")+"\\jdata\\password.txt");                 if (passFile.exists()) {                     if (passFile.length() != 0) {                         String password = JOptionPane.showInputDialog(window, "Enter password or Click 'Cancel' to quit:", "Password", JOptionPane.QUESTION_MESSAGE);                         password = password.replaceAll(System.getProperty("line.separator"), "");                         try {                             Scanner scan = new Scanner(passFile);                             String correct = scan.nextLine();                             if (password != correct) {                                 System.out.println(password);                                 System.exit(0);                             }                             scan.close();                         } catch (Exception e7) {                             if (e7.getClass().getCanonicalName() != "java.util.NoSuchElementException") {                                 System.exit(-1);                             }                         }                     }                 }  Any ideas?


SQL Server Maximum and Minimum memory configuration

What are the correct settings for min-memory and max-memory in this use case?  The server has 8GB ram, dual Intel Xeon processors, running Windows Server 2008 R2 / Sql Server 2008 Standard Edition. It's running several databases ranging from 30GB - 5GB in size.  Originally the memory usage was set to the default settings (min=0 max=2,147,483,647). On these settings most of the memory usage was taken up by sqlservr.exe and the server would eventually need to be restarted every day or two. It would run normally at first but within a day start to timeout on simple operations like looking up a record using the primary key.   I have changed min=4,096 and max=6,144. This results in only 1.4GB memory usage. However now all four cpus are running at 50-60% cpu usage constantly. Tasks are taking roughly 1/3rd longer to execute, although the server is much more stable.


Material based in mesh and not on verices

I want to create a T-Shirt, that has this pattern on it, like shown in the picture, my problem is that I want to have the image texture based on the mesh, and not on the density of the vertex.  So that the pattern is evenly distributed. I have made a UV Map node connected to Vector from a Mapping node with a scale's factor on X and Y, which is connected to a Image Texture, connected to the material output.  I'm sorry, but i cant take a picture of it.  When I take a vertex and grab it on the Y axes, the image is also scaled in the Y-axis, so that my pattern is scaled on the Y-axis.  I don't want my pattern scaled, but increased in numbers, so that it fits.


Why isn't this new comment environment working ? "Illegal parameter number", "can't use macro parameter # in horizontal mode"

I wanted to create a new comment environment with special format of comments to a text. Here is the MWE:  \documentclass[french, 11pt, a4paper, titlepage]{report} \usepackage[T1]{fontenc} \usepackage[utf8x]{inputenc} \usepackage{fontawesome}  \newenvironment{commentaire}[1] { \paragraph{\faCommentsO} } { ~(#1) }  \begin{document}     text above     \begin{commentaire}{author}         comment     \end{commentaire}     text bellow \end{document}   Got those two errors   Illegal parameter number in definition of \endcommentaire line 12 You can't use 'macro parameter character #' in horizontal mode. line 18   I don't understand, especially because my new environment seems to feature  Thank you !


How to unfreeze after accidentally pressing Ctrl-S in a terminal?

It's a situation that has happened quite often to me: after I press (with a different intention) Ctrl-S in a terminal, the interaction (input or output) with it is frozen. It's probably a kind of "scroll lock" or whatever.  How do I unfreeze the terminal after this?  (This time, I have been working with apt-shell inside a bash inside urxvt--not sure which of them is responsible for the special handling of Ctrl-S: I was searching the history of commands backwards with C-r, as usual for readline, but then I wanted to go "back" forwards through the history with the usual--at least in Emacs--C-s (, , ), but that caused the terminal to freeze. Well, scrolling/paging to view past things still works in the terminal, but no interaction with the processes run there.)


How to prevent my child from being indoctrinated with Christianity?

Context: We are living in a Germany and have a small child (15 months) who will go to a public kindergarten at the age of 24 months.  Problem: In our region, all public funded kindergartens also have a denomination, typically catholic. All kindergartens inform the children of god, will sing religious songs, hold festivities, and may even pray with them. As an atheist, I find this abhorrent and deeply offensive, but there is not much choice - it's one of these kindergartens or no child care at all.  So how can I help my child to understand that most of this is, at best, just a funny story without relevance?  I want him to be able to make a conscious choice when he is able to - but I do not want him to believe simply because he has to ingest this at this impressionable age.  On the other hand, I fear negative consequences for him if I denounce this too openly and he says "Daddy says your god is just your big imaginary friend and not real" at the kindergarten.


Why is Wormtail treated worse than the other death eaters?

Is he a Death Eater? And why is it he is treated worse than the others even though it was he who did the most when helping the dark lord to return


I made a class:  class configurations {     public double lowColumn1 = -1;     public double highColumn1 = -1;     public double lowColumn2 = -1;     public double highColumn2 = -1;     public double lowColumn3 = -1;     public double highColumn3 = -1; }   I want to make an array (con1), and make a copy of it (con2). I would like to change con2 so it  will not change con1.  I think it is called deep copy, is it?  It is important that the copy will not consume a lot of running time, efficiency is important.  I tried .Clone() function which didn't help me.  Please tell me what is the most efficient way to adjust my code.  private void button8_Click(object sender, EventArgs e) {     configurations[] con1 = new configurations[3];     con1[0] = new configurations();     con1[1] = new configurations();     con1[2] = new configurations();     configurations [] con2 = new configurations [3];     con2 = (configurations[]) con1.Clone();     con2[0].highColumn1 = 999; }   please do not make this as a duplicate. my program is very heavy and in other topics they do not discuss time efficiency. in addition to this aspect. i am very new to programming, and i couldn't made adjustments from other answers of other questions.


I am trying to change the stroke width of an icon in Inkscape but, unlike other times I have done this, this time the stroke width appears to be 0 px and I am not allowed to make it thinner:    The stroke width is actually quite large already, is there another setting I should edit to make it thinner?  You can download the file I am working on .  BTW: sorry for the potato quality of the screenshot, this is what you get using Inkscape on a retina screen :/


How can I find whether I am a sudo user or not

I am asked for sudo password frequently while entering sudo commands in the terminal, but I can't remember whether I am a sudo user or not. Similarly I don't know any superuser do password. I am confused in this password matter.  EXAMPLE:  $ sudo aplay -l [sudo] password for deepak:   I don't know what to do in the previous password asking command. Similarly like above example, for many times I am asked for sudo password. How can I resolve it?


Is it possible to change the default style used by CAST/CONVERT when converting DATETIME?

When you attempt to CAST a DATETIME as VARCHAR in SQL Server, the default date formatting style is a fairly inaccurate date format that loses the precision of both seconds and milliseconds. For example:  SELECT CAST(GETDATE() AS VARCHAR) -- May  8 2015  9:13AM   Is there a way to change the default style used? For example, I would like to use style 126 so that the results look more like this:  SELECT CAST(GETDATE() AS VARCHAR) -- 2015-05-08T09:14:19.437   If possible, I would like to only change the default style for the current process or statement; however, I am also willing to change it at the database or schema level.  I should note: I am aware of CONVERT and the ability to manually specify the style. However, in this particular situation, I am unable to use CONVERT. I am CASTing a SQL_VARIANT parameter to a scalar-valued function as VARCHAR.


Error in floating point calculation in Java

Normally, we know that 0.5-0.4 is 0.1. But when I run the code, I get some wrong calculation or the result is not clear to me. Please, may you explain how compiler handle the floating point calculation in Java.  System.out.println(0.5-.4);   // my expected output 0.1 System.out.println(0.5f-.4f); //  my expected output 0.1   Output:  0.09999999999999998 0.099999994


In Star-Gate SG-1, ep.1, how did the invaders dial out?

In the first episode of SG-1, the base is attacked by aliens. After they arrive, the gate closes. How were they able to dial out again? They apparently did not access the control room.


how can I designate number length? I mean for 1234 = 4, 303 = 3 or 32131 = 5, What is with general n? I mean I want designate C(n)


Let Z be a standard normal R.V.. Show that Sgn(Z) and $\lvert Z\rvert$ are independent.

This seems intuitively obvious, but I'm struggling with showing it explicitly. My attempt is to shatter $\lvert Z\rvert \in  B$ over the possible outcomes of $\mathrm{Sgn}(Z)$. It goes something like:  Let $B$ be a Borel set.  $$P(\lvert Z\rvert \in  B)= P(\lvert Z\rvert \in  B\mid \mathrm{Sgn}(Z)=1)P(\mathrm{Sgn}(Z)=1) + P(\lvert Z\rvert \in B\mid \mathrm{Sgn}(Z)=-1)P(\mathrm{Sgn}(Z)=-1)$$  I know $P(\mathrm{sgn}(Z)=1)=P(\mathrm{sgn}(Z)=-1) = 1/2$ and that combined with the symmetry of $Z$ leads to the result I want, but only for $\mathrm{Sgn}(Z)= \pm 1$.  Am I even close with this approach? Thanks in advance.


How can I change the default audio device from command line?

Ubuntu's desktop gui is great for changing audio settings (System->Preferences->Sound), like the default input/output device and setting the volume.  However, I would like to be able to do these things from the command-line. What tool is the gui using behind the scenes?


Word to describe "beautiful but worthless"

I have a family member who worked at a cat boarding facility. There, she met a couple who jokingly described their cat as "beautiful but worthless." Is there a word in the English language to describe such a purrradox? (Sorry, couldn't resist.)