How to make a simple app from an applescript!

I've got an applescript that I use to open files such as test.txt in vim, using the terminal.  I usually open a file by right-clicking it an selecting the service open in vim (this service is created by me and basically runs the applescript).  How do I build an actual program, that can be set in the "open with" option for a file?  This way, when I double click test.txt, the applescript gets run and the file gets opened in my vim in terminal.app.  I would also like to create custom icons that will be applied to all files I open using this app (using the "Change All..." button).  Where would I begin? Is this easy, because I'm just a novice -although I love programming and would spend much to to get to know all that is needed to do this.  the code is:  on open this_item      tell application "System Events"         if (count (processes whose name is "Terminal")) is 0 then             tell application "Terminal"                 activate                 do script with command "vim " & (POSIX path of this_item) in front window             end tell         else             tell application "Terminal"                 activate                 tell application "System Events" to tell process "Terminal" to keystroke "t" using command down                 do script with command "vim " & (POSIX path of this_item) in selected tab of the front window             end tell         end if     end tell  end open


Which expression is more apt? "I met him a few days back." Or the following, "I met him a few days ago"?


Can someone explain Metropolis Hastings algorithm with simplest possible example?

I am just beginning to learn about Metropolis Hastings algorithm and MCMC techniques. I have a basic understanding of Markov chains and stationary distributions and need for the Metropolis Hasting but can someone really break down how MH works ? I believe some clear examples will really help me understand. Thanks !


Say I have 2 dictionaries:              var dict1 = new Dictionary<string, int> {                 { "key1", 1 },                 { "key2", 2 },             };               var dict2 = new Dictionary<string, int> {                 { "key2", -3 },                 { "key3", -4 },             };   Is there a simple way to "add" them? The result would be:              var dict3 = new Dictionary<string, int> {                 { "key1", 1 },                 { "key2", -1 },                 { "key3", -4 },             };   Keys are merged and values are summed up by key


Proving that $(T S^n) \times \mathbb R$ is diffeomorphic to $S^n\times \mathbb R^{n+1}$

I'm asked to show a diffeomorphism $\psi$ between  $(T S^n) \times \mathbb R$ and $S^n\times \mathbb R^{n+1}$.  I'm not sure on how to proceed here. I have written down $(T S^n) \times \mathbb R$ and $S^n\times \mathbb R^{n+1}$ as  $$(T S^n) \times \mathbb R= \big\{ (x, v, r): x\in S^n, v\in x^\perp, r\in \mathbb R \big\}, $$  $$S^n\times \mathbb R^{n+1}= \big\{ (x, w): x\in S^n, w\in  \mathbb R^{n+1} \big\} $$  Can you help me in finding such diffeomorphism?


Let n be a natural number, show that at least one of $(n^5)-1$, $(n^5)$ and $(n^5)+1$ is divisible by $11$.  I started by considering two cases: $n$ is even. $n=2k$, so the three numbers become $32(k^5)-1$, $32k^5$, and $32(k^5)+1$ In mod $11$, it is equal to $-(k^5)-1$, $-k^5$, and $-(k^5)+1$  If $n$ is odd, $n^5=32k^5+80k^4+80k^3+40k^2+10k+1$ in mod $11$ it is $-k^5+3k^4+3k^3+7k^2-k+1$  And I want show that one of them eventually become $0$ in mod $11$, but it doesn't seem to help...


When is it appropriate to use this instead of prototype?

function A() {   this.foo = function() {     return "bar";   }; }  A.prototype.foo = function() {   return "bar"; };   I mostly go by the second approach for adding "instance methods". Mostly because of habit and it's a little memory saver. But when is it appropriate to use the first approach?  NOTE: This question has almost been asked before but they mostly talk about the different and this question is more when to use each.


Make hyperref take pdfinfo from \title and \author

I once read about an option for hyperref that automatically takes the info provided via the standard \author and \title, and puts it into the pdfinfo. Now I want to implement it in my template and can't find it anywhere in the hyperref manual nor anywhere else.  Did I dream about this or can someone help me out here?  (A similar, but more general question: )


$|G|<\infty$. $p$ the smallest prime dividing $|G|$. $|G:H|=p$. then H is normal.

Since $p$ is the smallest prime dividing $|G|$, and $|G:H|=p$, we know that $H$ is the largest proper subgroup of $G$. So the normalizer $N_G(H)$ must be equal to either $G$ or $H$.  If $N_G(H)=G$, then $H$ is normal, so we are done. If $N_G(H)=H$, I have to show that it leads to a contradiction.  If we let $G$ act on conjugates of $H$ by conjugation, then the stabilizer of $H$ becomes $N_G(H)$ and it is equal to $H$ so by the orbit-stabilizer theorem we obtain the order of orbit of $H$ must be equal to $p$. This is where I have figured out so far, but don't know how to proceed from here. Any hint would be greatly appreciated.


hi,I am pretty new to the blender and trying to render a scene by using a free vehicle model that I have downloaded,the model seems very detailed and texture ready,however I have noticed lot of grain around edge of the celling window.I have switched between eevee and cycles and crancked sample number to 1000 but unfortunately the grain still remain,does anybody has had similar problems?I'm here for a help,thanks in advance!


How can you show that if $p$ is prime then the numbers with maximum possible order modulo $p^2$ is $\phi(\phi(p^2))$.  I tried finding order(a) modulo 9, and obtained the following: $1$ is $1$, $2$ is $6$,$3$ doesn't exist, $4$ is $3$, $5$ is $6$, $6$ doesn't exist, $7$ is $3$, and $8$ is $2$.  So maximum possible order is 6, and 2 and 5 have maximum possible order. Also $$\phi(\phi(3^2)) = \phi(6) = \phi(2)\phi(3) = 2$$ and so I verified that this is true. Now how do I go about proving the statement? Where do I even start?


Open terminal and run command, from the command line

I am looking for a way to launch a terminal session from the command line on Ubuntu, something like this:  #/usr/bin/env bash  terminal -c 'node server.js'   if there is some cross-platform tool that also works on MacOS that'd be nice.  So I tried this:  gnome-terminal -- 'echo "foo" | bash'   and I got this:    And when I try this:  gnome-terminal --tab -- echo 'ts-node /home/oleg/codes/typeaware/doc-gen/lang/typescript/api/src/.test/express.test.ts' | bash   nothing happens, the gnome-terminal never opens.


I run 10.12.6 and I'm wondering how I can rename a Bluetooth device. The function Bluetooth Preferences > Right click > Rename seems to be a no-op, see below gif.    Is there a configuration file that I can edit manually with a text editor? I don't mind getting my hands dirty in .plist files and stuff.


Show that $\lim_{n\rightarrow\infty} \frac{\binom{n}{k}}{2^n} =0$

Show that the following limit holds $$ \lim_{n\rightarrow\infty} \frac{\binom{n}{k}}{2^n} =0  $$ for a fixed value of $k$ I really am just stuck at the first step here. Normally I would consider tackling this using L'Hopitals rule, however $\binom{n}{k}$ is not differentiable. I was considering using the binomial theorem, but that is for sums, not just the single scenario. Any help appreciated!


Trying to identify science fiction story: world with extreme seasons

I'm trying to identify a short story, which was set on a world with extreme seasons.  In the story summer was so wildly extreme that at its peak the only habitable region on the world was the pole. As midsummer approached, the world's inhabitants sailed to the pole, where they took refuge in caves until midsummer was past.  I think that the population were the last descendants of the planet's original colonists, and had either no high technology left or very little, and just legends of how their ancestors had come to the world. I also think (but I'm not sure) that the story was told from the point of view of someone from off-world secretly studying the people.


Proving determinant of a triangular matrix

Prove that if $M \in M_{n,n}(F)$ can be written in the form   $M=\begin{pmatrix} A & B\\ O & C \end{pmatrix}$, where $A$ and $C$ are square matrices, then $\det(M)=\det(A)*\det(C)$   I am not sure the rigorous way of proving, and I see some proof goes by block matrix, which is something not yet learned about.   My idea is constructing a triangular matrix, then by cofactor expansion, we lead to a linear combination of the form of the determinant. Is that doable?  Another thing is should I separate by cases, when the matrix is invertible or when not invertible?


Ubuntu 14.04 LTS installation completed but after click on restart button it doens't restart

I have problem with Ubuntu 14.04 installation. I have a Dell Inspiron 15 7559 notebook and UEFI.  Specs:   15.6-inch (3840 x 2160) 282ppi IPS touchscreen, glossy finish Windows 10 Home 2.6GHz Intel Core i7-6700HQ (3.5 GHz Turbo) 4 cores 8 threads Nvidia GeForce GTX 960M with 4GB GDDR5 + Intel HD Graphics 530 8GB 1600MHz DDR3L RAM   I wanted to dual boot Windows 10 alongside Ubuntu, so I step by step did the installation of the latest version. It was successful (but only when I changed parameters and added nomodeset), but after some time I noted that some programs froze or there were error messages (with some internal errors).  I found advice on the internet that said that 14.04 is a better version for my notebook, so I uninstalled the newest version (through Windows (remove partitions) and with program dual boot Repair Windows 10 repair boot and tried again to install an older version of Ubuntu.  It went normally without an error and again as previously separate HDD on two blocks and use the second on 3 partitions as in the guide. When I did all this it finally showed a message that everything was finished and restart your computer.  When I clicked the button the system didn't restart. It got stuck at a screen with mouse animation doing something, so it didn't finish the whole installation which should end by restarting (after clicking). It was just stuck at that screen and nothing else, so I had to force shutdown.     After many things from both pots and another I could successfully login to the desktop without errors or parameters, but got international errors from xorg after login /usr/bin/xorg -> which after some other research maybe is fixed by updates and reinstalling apport.  I have another big problem and it's that I still can't reboot or shutdown without sometimes CPU stuck (NMi watchdog). This stuck I previously when I had 16.04 fixed by swap on Nvidia but the 2nd post didn't work, moreover I can't without black screen swap to Nvidia driver. I tried 4x different driver versions.  I know that have many errors and better I would just format block with Ubuntu and have only Windows with 1TB HDD, and after some time buy a second HDD or SSD, but I still didn't want to give up, however after another try I admitted my inexperience with Linux, so I decided to uninstall it with OS-Uninstaller using a live USB. Maybe after some time I'll try again to install Ubuntu. Maybe when I have another HDD/SSD.


Elementary proof that $\mathbb{R}^n$ is not homeomorphic to $\mathbb{R}^m$

It is very elementary to show that $\mathbb{R}$ isn't homeomorphic to $\mathbb{R}^m$ for $m>1$: subtract a point and use the fact that connectedness is a homeomorphism invariant.  Along similar lines, you can show that $\mathbb{R^2}$ isn't homeomorphic to $\mathbb{R}^m$ for $m>2$ by subtracting a point and checking if the resulting space is simply connected. Still straightforward, but a good deal less elementary.  However, the general result that $\mathbb{R^n}$ isn't homeomorphic to $\mathbb{R^m}$ for $n\neq m$, though intuitively obvious, is usually proved using sophisticated results from algebraic topology, such as invariance of domain or extensions of the Jordan curve theorem.  Is there a more elementary proof of this fact? If not, is there intuition for why a proof is so difficult?


When is it better to write "ad hoc sql" vs stored procedures

I have 100% ad hoc sql through out my application. A buddy of mine recommended that I convert to stored procedures for the extra performance and security. This brought up a question in my mind, besides speed and security is there any other reason to stick with ad hoc sql queries?


Allow only 1 taxonomy per custom post type

Wordpress allows Admin to select more than one category for a post , I would like to change that so user is allowed to select only 1 category for a custom post type.  Please note I cannot remove category selection box due to requirement of the project. Any help appreciated


Is it a bad practice to import all the sub classes of a class at a time?

It may seem, compact & specific but specifying each essential subclass is time consuming, more over it needs to be remembered.  To be specific, what exactly is the difference between import java.applet.*; & import java.*;


Show (or disprove) that this series converges

Let $a_n$ be a sequence of real numbers with $a_n>0 $ $ \forall n\in\mathbb{N}$. Show (or disprove) this statement:  If $\sum_{n=0}^\infty a_n$ converges, then there exists a sequence $c_n$ of real numbers with $c_n \geq 0$ and $\lim_{n\rightarrow\infty}c_n=\infty$, so that $\sum_{n=0}^\infty c_na_n$ converges.   I tried many examples and I always found a $c_n$, I have a good feeling that this statement might be true, I can be wrong tho. Does someone have a tip, how to show this? I tried applying several Convergence-Criteria, but it didn't really work out that well. Thanks in advance!


I do not know if it's possible but I would factorize functions like      // wiki   if(command === "wiki"){     bangSearch('wikiSearch','_',args);   }    // afr amazon fr   if(command === ("afr")){     bangSearch('amazonSearch','+',args);   }    function wikiSearch(recherche){     var url = "https://fr.wikipedia.org/w/api.php?action=opensearch&search="+recherche+"&limit=1&namespace=0&format=json";     request(url, function(err, resopnse, json){       //some code     });   }    function amazonSearch(recherche){     var url = "https://www.amazon.fr/s/ref=nb_sb_noss?__mk_fr_FR=%C3%85M%C3%85%C5%BD%C3%95%C3%91&url=search-alias%3Daps&field-keywords="+recherche;     message.channel.send('Recherche amazon pour: '+recherche+'\n'+url);   }    function bangSearch(searchFunctionName,keywordSeparator,args){      if(args.length > 1){       searchFunctionName(args.join(keywordSeparator));     }else if (args.length == 0) {       searchFunctionName(/*some args*/);     }else{       searchFunctionName(args[0]);     }   }     But when i run the code, I have this error: TypeError: searchFunctionName is not a function  So, I understand that the code does not call searchFunctionName like wikiSearch or amazonSearch but it only understands that the called function is searchFunctionName.  So I can not call the argument function which is either "wikiSearch" or "amazonSearch"  Is it possible to do this? Can you help me ?  The entire code: Here is the entire code. It's for a discord bot and i use Discord.js     // wiki   if(command === "wiki"){     console.log(args);     bangSearch(wikiSearch,'_',args);   }    // afr amazon fr   if(command === ("afr")){     bangSearch(amazonSearch,'+',args);   }     function wikiSearch(recherche){     var url = "https://fr.wikipedia.org/w/api.php?action=opensearch&search="+recherche+"&limit=1&namespace=0&format=json";     request(url, function(err, resopnse, json){       try {         var name = JSON.parse(json)[1];         var link = JSON.parse(json)[3];         if(name ==='undefined'){           message.channel.send('Aucun résultats');         }else {           message.channel.send('Recherche wikipedia pour: '+recherche);           message.channel.send('Nom: '+name[0]+'\n'+link[0]+'\n\n');         }       } catch (e) {         callback('ERREUR: '+e);       }     });   }    function amazonSearch(recherche){     var url = "https://www.amazon.fr/s/ref=nb_sb_noss?__mk_fr_FR=%C3%85M%C3%85%C5%BD%C3%95%C3%91&url=search-alias%3Daps&field-keywords="+recherche;     message.channel.send('Recherche amazon pour: '+recherche+'\n'+url);   }    function bangSearch(searchFunctionName,keywordSeparator,args){      if(args.length > 1){       searchFunctionName(args.join(keywordSeparator));     }else if (args.length == 0) {       message.channel.send('tu veux quoi ?').then(() => {         message.channel.awaitMessages(response => response.content.length > 0 , {           max: 1,           time: 10000,           errors: ['time'],         }).then((collected) => {           searchFunctionName(collected.first().content);         }).catch(() => {           message.channel.send('T\'as pas trouvé les touches sur ton clavier ou quoi ?');         });       });     }else{       searchFunctionName(args[0]);     }   }


How many equal partitions of the set are trivially unequal?

Suppose we have set $S=\{x_1,x_2,....,x_{2n-1},x_{2n}\}$ , where $x_1 < x_2 ..... <x_{2n-1}< x_{2n}$ We have non-empty disjoint subsets $A$ and $B$ both having size $n$. Question is, how many pairs of such subsets will be trivially unequal? (By "unequal" we mean that sum of elements in subset $A$ doesn't equal to the sum of elements in subset $B$) e.g. consider $S = \{x_1,x_2,x_3,x_4\}$ For $S$ with size $4$, three pairs are possible (ignoring duplicates), i.e: $$1.\{x_1,x_2\}, \{x_3,x_4\}$$ $$2.\{x_1,x_3\}, \{x_2,x_4\}$$ $$3.\{x_1,x_4\}, \{x_2,x_3\}$$ As we can see, two pairs above will be trivially unequal: $\{x_1,x_2\}, \{x_3,x_4\}$ (because $x_1 < x_3$ and $x_2 < x_4$ so $x_1 + x_2 < x_3 + x_4$) $\{x_1,x_3\}, \{x_2,x_4\}$ (because $x_1 < x_2$ and $x_3 < x_4$ so $x_1 + x_3 < x_2 + x_4$) To solve that using code is pretty straightforward, but I'm interested in purely mathematical solution. Being unable to come up with the anything myself, I looked up the answers provided by the other users. A lot of them came up with the solution which uses "grid" method, for example one of the answers provided by the user:  First, some observations.  If elements of the set are assigned in ascending order to subset A, subset B, or discarded, and every element of A can be paired with an element of B that was selected later, then A's sum will be smaller than B's, and the comparison will not be necessary. If you imagine a walk on a grid from upper left to lower right, where selecting an element for subset A is like walking East, and selecting an element for subset B is like walking South, and selecting an element for neither subset is effectively the same as selecting it for both (East, then South), then a walk that crosses the diagonal from north to south (with this direction being the first diagonal crossing) corresponds exactly to a subset pair that must be compared.  Can someone explain what this "grid" logic is?


change IE and Chrome settings to do a silent printing

How can i change IE and chrome setting to achieve a silent printing in IE when using this code :  function print(){    window.print(); }  <button onclick="print();">Print</button>


How do I derive the formula for curvature through differentiation?  $$ k(t)= \dfrac{(x'y''-x''y')}{(x'^2+y'^2)^\frac32} $$  I know that $k(t)=$ the modulus of $ T'(s) $ where $T$ is the unit tangent vector


Thunar files view, date format "today, yesterday"

The detail view of Thunar shows the modification time as localized date (dd.mm.YYYY for my location), which is fine, but I would like to see the time, too.   And it doesn't show the recently modified files in the same manner, butnew years new years  decorates them as 'yesterday, today, monday' and so on, which is a nice programming etude, but not really useful to me.   Au contraire - it is pretty annoying to have this mixture in the interface. The next version will look into my calender and mark some files 'easter 2007, moms birthday 2002' and 'third monday of last month'. Thank you!   But if ohters prefer it - I'm fine. I just want to know whether I can modify the setting somehow. This is Xubuntu 12.04 LTS, Thunar 1.2.3.


What is the limit of the sequence n!/4^n?

I am trying to find the limit of the sequence by using root test and I don't understand why the limit is not zero? (the answer is inf).


unicode decode error: how to skip invalid characters

Is there any way to preprocess text files and skip these characters?  UnicodeDecodeError: 'utf8' codec can't decode byte 0xa1 in position 1395: invalid start byte


Navigation items with only icons, icons and words, or only words for a website?

Like on for example a header, would having only icons be confusing for the user, or would having words and icons take up too much space? I think that the icon only design is really clean, but don't know if the users would know what the icons mean.  Here is an example of what I am talking about


Q) $x^{2}+x+1$ is a factor of $(x+1)^{n} - x^{n} - 1$, whenever  (A) $n$ is odd  (B) $n$ is odd and a multiple of $3$  (C) $n$ is an even multiple of $3$  (D) $n$ is odd and not a multiple of $3$    My Attempt :- I don't know the formal approach to prove it. I have taken some small values of $n$ and I have eliminated options (A),(B) and (C) as :-  Here, I can rewrite $(x+1)^{n} - x^{n} - 1$ as :-   $[\binom{n}{0}x^{n} + \binom{n}{1}x^{n-1} + \binom{n}{2}x^{n-2} +......+\binom{n}{r}x^{n-r}+.....+\binom{n}{n-1}x^{1} + \binom{n}{n}x^{0}]  – x^{n} - 1$  $\binom{n}{1}x^{n-1} + \binom{n}{2}x^{n-2} +......+\binom{n}{r}x^{n-r}+.....+\binom{n}{n-1}x^{1}$  Now, if $n=3$ then it becomes $3x^{2} + 3x$. Since , $x^{2}+x+1$ does not divide it. So, $x^{2}+x+1$ is not a factor of $(x+1)^{n} - x^{n} - 1$ when $n=3$ , So, I have eliminated options (A) and (B)  Now, when $n=6$ then it becomes $\binom{5}{1}x^{5} + \binom{6}{2}x^{4}+\binom{6}{3}x^{3}+ \binom{6}{4}x^{2}+\binom{6}{5}x^{1}$ $=6x^{3}(1+x+x^{2}) + 6x(1+x+x^{2}) + 9x^{4}+8x^{3}+9x^{2}$.So, $x^{2}+x+1$ is a not a factor of $(x+1)^{n} - x^{n} - 1$ when $n=6$. So, I have eliminated option $(C)$.   So, I am getting answer as $(D)$ but I don't know how to prove it formally for all $n$=odd which should also not be multiple of $3$. Please help.


can we directly upgrade the ubuntu from 14.04 to 18.04? or do we have to first make it to 16.04 and then 18.04? What should be the procedure? What are the packages that need to upgrade.


Insert long Matlab code in beamer with scrolling window

I need to insert a quite long Matlab code in a presentation (for a course on numerical methods) and I would like to insert it using a rolling window, is it possible to do something like this in beamer? I sniffed a little the internet on what it says on this topic but I didnt find a smart solution.


How to include an image in a LaTeX class?

So I have an image and I want it to be part of the class (this is going to be a class for letters, and the image is the logo of my University).  Is it possible to configure graphicx so that it can include an image located somewhere in my ~/texmf local TeXlive tree?


If we take the group $G={a,a^2,a^3,a^4,a^5,a^6=e}$, then number of generators will be $2$ as $1$ and $5$ are the positive integers less than and coprime to $6$. What are the generators?  It may be a very easy question. However, I don't know what the generators are. There's nothing in my book about it.


Show that $a^m$ is in $H$ for every $a$ in $G$

Let $H$ be a normal subgroup of $G$, and let $m=(G:H)$. Show that $a^m  \in H$ for every $a \in G$.   I have been thinking about this question for a few days but I get something informal.  What am I missing?   There are $m$ $H$-cosets. If we consider the cosets of $e$, $a$, $a^2$, $\cdots$, $a^{m-1}$, we get $m$ distinct cosets(actually I claim this without a valid proof, any hints?) Then the coset of $a^m$ should be one the above coset. (Then why must it be $eH$?)   Thanks in advance.


Permittivity can be described as the opposition of an electric field (and accordingly flux) by a medium through which the field passes. I understand this opposition is generally produced by dipole moments of the atoms within the medium, but in the absence of these atoms and thus the dipole moments (as in free space), what causes the opposition?  In other words, what opposes an electric field in a vacuum and gives rise to $\epsilon_0$, the permittivity of free space?


What is the purpose of a Windows Workgroup?

In Microsoft Windows, what is the purpose of a Workgroup? I understand that a Domain allows the administration of security (user names, passwords, file access, etc.) to be centralized. But what does a Workgroup give you?


Two subspaces  $\ W = \{ 1+ x + x^3 , -2x+x^2+x^3 , 3+ x + x^2 + 4x ^ 3\} $ and $\ U = \{ a+bx-bx^2+2ax^3 \mid a,b \in \mathbb R \} $   so $\ W = \{ w_1 = (1,1,0,1), w_2 = (0,-2,1,1), w_3 = (3,1,1,4) \} , \\ U = \{ u_1 = (1,0,0,2), u_2 = (0,-1,1,0) \}  $  and I need to find basis for $\ U \cap W $ so if $\ v \in U \cap W $ this means $\ 0 = \alpha_1 w_1 + \alpha_2 w_2 + \alpha_3 w _3 - \alpha_4 u_1 - \alpha_5u_2$  so I should just rank it in matrix and  so $\ \begin{bmatrix} 1 & 0 & -1 & 0 \\ 0 & 1 & -1 & 2 \\ 0 & -1 & 0 & -1 \\ 2 & 0 & - 1 & -1 \end{bmatrix} \Rightarrow \begin{bmatrix} 1 & 0 & -1 & 0 \\ 0 & 1 & -1 & 2 \\ 0 & 0 & -1 & 1 \\ 0 & 0 & 0 & 0 \end{bmatrix} $  so it means $\alpha_1 = \alpha_3 = \alpha_4 $ and $\ \alpha_2 = - \alpha_3 $ so it means any $\ v \in U \cap W $ is $\ v= \alpha_1u_1 -\alpha_1u_2 $ or $\ v = \alpha_3w_3 - \alpha_3 w_4  $  and how do I show by which vectors the space $\ U \cap W $ is spanned??


How do I resize my current ubuntu partition?

I've got Ubuntu 10.10 installed to use my whole hard-disk, but would like to use the 130GB of free space I've got to create a new partition and do some development on Unity and Natty.  Can I use gparted to do this?  If so how?


How to compare features and classifiers which achieve perfect accuracy?

So I'm looking to compare different combinations of features and classifiers. But I'm getting a lot of combinations that achieve 100% cross validation accuracy. I'm trying to figure out how I would compare the usefulness of each combination.  For example I can both train an SVM using Features 1, 10, 15 to get 100% accuracy. But at the same time I can train a logistic regression classifier only using Feature 7 to get 100% accuracy. Also this is a binary classification problem.


I have a site where I created a page that takes the gallery images from a post and puts them into a slider.   I used the following code:  // gets the gallery info $gallery = get_post_gallery( $post->ID, false ); // makes an array of image ids $ids = explode ( ",", $gallery['ids'] );   Then I inserted the images using wp_get_attachment_image().   Unfortunately, with WP 5.0 and Gutenberg, get_post_gallery no longer works with newly added content. It seems that get_post_gallery used a shortcode that no longer works with Gutenberg.   I am still getting up to speed on Gutenberg and the block system. Until I understand that all better, I was wondering if anyone has any advice on how to get the image ids from a gallery in Gutenberg?


What to do when a question asker clearly hasn't googled?

What do you do when someone asks a question on a Stack Exchange site and that person clearly has not even attempted to google the answer? Downvote it? Something different?


Does anyone know of a good VPN client that is not the official one from Cisco for Linux?


Why did the wampa put Luke Skywalker upside down in the ice cave on Hoth?


Can I do a "Complete PC Backup" in Windows 8?

I had an older SSD that I installed Windows 8 on while waiting for a newer, larger SSD. I'd like to move the OS onto the larger SSD.  Windows Vista and Windows 7 came with a "Complete PC Backup" feature which essentially created a disk image, which could be restored using Windows installation media.  Does this feature still exist in Windows 8? If so, how can I access it?


Joining a Stack Exchange site for the single purpose of an upvote

I have read many questions asked in SEs I have not joined yet; the sidebar advertises new hot questions and the top questions of many SEs are worth reading.  Whenever I read an really awesome answer (or a question) on such a SE site, I wonder whether I should join the SE just in order to upvote the answer (or the question, respectively). I know my behavior will have only a minor impact on SE sites, but I look for a general policy which is, in some way, good for SE if followed by all persons who are in such situation.  Is there any such policy? Or should I just do not care about voting and do whatever feels right at the moment. (In the past I have both joined the SE site and simply ignored the upvote button.)


The question is very simple:  Is there another type of bracket that can grow as the equation increases in size?  I wish it could look like this:    But unfortunately I only got this:    \documentclass{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb}  \begin{document} \begin{equation} \int\int_D[\int_0^{16-x^2-y^2}(8+x+y)\,dz]\,dA \end{equation}  \end{document}


In Ubuntu 16.04 clock missing in System Settings

Clock is missing from System Settings in Ubuntu 16.04:


Why do lmodern and textcomp inhibit display style?

MWE 1 The following MWE is doing what I want: \documentclass[b4paper,14pt,english,twoside]{memoir} \usepackage[english]{babel} \usepackage[utf8x]{inputenc} % For French accents \usepackage[T1]{fontenc}  %%%%%%%%%%%%%%%% MATH et TiKZ %%%%%%%%%%%%%%%%%%%%%%%%%%%%% \usepackage{amsmath} \usepackage{amssymb}  \begin{document}     \begin{align}          V_{ijk} &= \int \int_D (x-y)f_{ik}(x)f_{jk}(y)dxdy     \end{align}     \end{document}  Output of MWE 1  MWE 2 However, adding: \usepackage{lmodern, textcomp} destroy my math output, especially the integrals: \documentclass[b4paper,14pt,english,twoside]{memoir} \usepackage[english]{babel} \usepackage[utf8x]{inputenc} % For French accents \usepackage[T1]{fontenc} \usepackage{lmodern, textcomp}  %%%%%%%%%%%%%%%% MATH et TiKZ %%%%%%%%%%%%%%%%%%%% \usepackage{amsmath} \usepackage{amssymb}  \begin{document}     \begin{align}          V_{ijk} &= \int \int_D (x-y)f_{ik}(x)f_{jk}(y)dxdy     \end{align}     \end{document}  Output of MWE 2  My question is, how can I have displaystyle in math mode, using \usepackage{lmodern, textcomp}. Note  I need \usepackage{lmodern, textcomp} in my preambule, otherwise my all memoir won't compile. I also tried \displaystyle, but that didn't change anything


Template issues certificate with longer validity than CA Certiicate, what happens?

I am wonder what will happen as a certificate template with a 2 years validity period (for example) will issue a certificate when the CA certificate expires in 1 year.  I can think of 2 things that could possible happen, but this is just guessing, thats why I would like to know. I think possibly the following will happen:   You can a notification of some sort. The issued certificate will get an expiration date of 1 year, not 2.   Can anyone tell me what will happen?


SF Short Story: alien apes invade during nuclear war

Trying to identify a science fiction short story from an anthology likely published before 1991.  Aliens invade during a nuclear war (which would be World War III, WWIII, WW3). The warring nations then turn their nukes on the landing sites, but the invasion succeeds.  Believe the setting is in the U.S., possibly Pacific Northwest, but definitely a mountainous region.  Based on negative inference from the aliens' description of humans as fur-less, no-tail, bipeds (or similar), the aliens are apes or monkeys.  The aliens describe Earth as worse than the Hell planet they previously conquered. They see our tanks and think that we can't have more than a few of those to fight with.  Yet the aliens are somewhat benign, as they take some children back to their parents for a stern talking-to after the children run an alien convoy off the road into a chasm by stringing a rope across the road.


'Daily vote limit reached' only for comments

Possible Duplicate:          I'm not completely sure but when I want to vote a comment I get the message:  Daily vote limit reached; vote again in 10 hours   but for answers I can still vote.  Does this mean there is a separate limit for comment votes and answer votes? If so, from my point of view it would be a nice idea if the message was written more precisely.


How to find such limits : $\lim_{m \to \infty} \lim_{n \to \infty} cos^{2m}(n! \pi x)$

How to find such limits :   $$\lim_{m \to \infty} \lim_{n \to \infty}  cos^{2m}(n! \pi x)$$  Please suggest not getting any idea how to approach such problems, will be of great help thanks.


Python - Sorting a specific piece of a dictionary from least to greatest number

My output:   What it's supposed to look like:   My code:   My output:  Jersey number: 84, Rating: 7 Jersey number: 4, Rating: 5 Jersey number: 66, Rating: 9   Asking for:  Jersey number: 4, Rating: 5 Jersey number: 66, Rating: 9 Jersey number: 84, Rating: 7   I am not sure how to get the jersey numbers in the desired order, I've tried a variety of ways and I'm still unsure. The specific order is where it's getting me. Any ideas? Thank you for reading!


How to convert standard IP address format string to hex and long?

Does anyone know how to get the IP address in decimal or hex from standard IP address format string ("xxx.xxx.xxx.xxx")?  I've tried to use the inet_addr() function but didn't get the right result.  I tested it on "84.52.184.224"  the function returned 3770168404 which is not correct (the correct result is 1412741344).  Thanks!


I am a bit confused about the terminology when using subscripts in expectations and probabilities. I was reading about the reparameterization trick from the following link: "" Where i stumbled upon the following:  $$ \begin{array}{l}{\boldsymbol{\epsilon} \sim p(\boldsymbol{\epsilon})} \\ {\mathbf{z}=g_{\boldsymbol{\theta}}(\boldsymbol{\epsilon}, \mathbf{x})}\end{array} $$ $$ \nabla_{\theta} \mathbb{E}_{p_{\theta}(\mathbf{z})}\left[f\left(\mathbf{z}^{(i)}\right)\right]=\nabla_{\theta} \mathbb{E}_{p(\epsilon)}\left[f\left(g_{\theta}\left(\epsilon, \mathbf{x}^{(i)}\right)\right)\right] $$  What do the subscripts of the expectations mean here? And also the subscripts of the probabilities, I can't really see how $$p_\theta(\mathbf{z})=p(\epsilon)$$ given the above, but I think it's because i don't fully understand the subscripts. Where can I find the terminology of these subscripts? Any links or useful books that introduce them? Thanks for the help!


Wifi adapter did not work in hp pavilion 15-au172tx laptop

I have installed ubuntu 16.04 for hp pavilion 15-au172tx laptop but wifi did not work. This laptop is 7th gen and is there any problem with it? I also tried to get wifi adapter type but i can't and i also tried additional driver application to add drivers but wifi adapter is not see in that application. Please help me  Output of lspci -knn | grep Net -A3; uname -a  05:00.0 Network controller [0280]: Intel Corporation Device [8086:24fb] (rev 10)     DeviceName: Intel Dual BandWireless-AC 3168 802.11 ac 1x1 WiFi + BT 4.0 Combo Adapter     Subsystem: Intel Corporation Device [8086:2110] Linux HP-Pavilion-Notebook 4.4.0-93-generic #116-Ubuntu SMP Fri Aug 11 21:17:51 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux


I have a server room about 12 feet square with an unfinished ceiling (exposed ducts and wiring).  It houses a few servers (about ten, 1U and 2U) and some networking gear (four 1U switches, three routers, three modems, two cable boxes).  With the door closed, it runs around 80 degrees Fahrenheit with half the servers turned on.  When I turned on all the servers it reached 86 before I chickened out and propped the door open.  The room is adjacent to air-conditioned office space, but does not itself have dedicated air conditioning.  The ventilation for this room seems to be limited to one duct coming in at ceiling level, with a powered fan to draw air in, and one duct at ceiling level to allow air to flow out (it seems like it may just go into the drop ceiling cavity in the adjacent room).  The adjacent office space stays fairly cool, but I'd prefer not to leave the door propped open all the time.  There is both 110v and 208v service in the room, and plenty of power available.  But there are no windows, and no floor drains (in a pinch we might be able to run a condensation hose through a small hole we'd drill in the wall to a nearby sink area, but only if absolutely necessary).  I've considered portable A/C units, but I'm not sure on sizing and a lot less sure how we would run the exhaust hose(s).  I suppose we could point one at the existing room exhaust duct (air return), but substantially modifying the duct is probably a no-no.  I've also considered installing a fan box in the door of the room, but I'm concerned that this will only drop the temperature a little.  Even right now, with all the equipment on, the room is at 83 degrees with the door open.  And the main building A/C turns off daily at 6 PM to conserve energy, so the adjacent room temperature rises at night.  How would you cool this room?  Let's say the goal is to bring the temperature with everything running from a steady state of around 90 degrees down to 75 (equivalently, to offset the heat produced by ten 1U servers).


Let $R$ be a ring with unity, and suppose $x\in R$ is nilpotent $(i.e. x^n=0$ for some positive integer $n$ $)$. Prove that $1-x$ is a unit in $R$.  Any hints or proofs are greatly appreciated. Rings are really new to me.


I have a very basic question concerning QGIS symbology:  How do you invert a color ramp for a hexbin layer? I could do the inversion to get reds to be the higher values in the raster equivalent of the dataset but can't seem to get the hexbin color ramp to invert. I am using a Spectral ColorBrewer ramp so blue is low value and red is high value.


I've lately become hooked into building computers in Minecraft and today I decided to build a giant hard drive. I've built HDDs before, but not at the scale I'm currently attempting, and I anticipated problems. As I was wiring some pistons, they activated and pushed forward oddly. As far as I can tell, there's nothing powering them.    I thought at first that it might be the redstone torches (top left of above pic) but they aren't powered.   Here's a top view of the same pistons. I also thought the line of redstone above  them might be the problem (middle of above pic), but when I destroy it, the pistons stay extended.  Is there a reason why my pistons are extending? If so, is there a way to get them to power (when I want them to) without disturbing the pistons above?


Glitch in chat that allows me to produce a backspace character literal

I was editing a post over in the Math Stack Exchange chat. I clicked in chat once (like to click off the box) and hit backspace to go back a page. Weirdly enough, a weird symbol appeared. I could replicate this arbitrarily to produce blank messages. I searched the ascii character code and apparently it is ascii code 8 which corresponds to the "backspace character". Apparently, the box in chat interprets that as a symbol being typed instead of as an actual command to erase.  UPDATE    Cause I happen to know a bit of html, I decided to use an html interpreter thingy to try and narrow down the lines of code that are producing the bug. I might make a duplicate over on stack overflow later to see if they can help get everything broken down.  The code I am currently breaking down piece by piece (i.e. controlled erasure of lines of code) is as follows:    <!DOCTYPE html>

                     <textarea id="input"></textarea>


How to print objects specific member using only object name?

string var = "Hello"; cout << var << endl;  We get the result using only the object, without the help of a member variable. I want to implement a class that will work like string. For example: class Test { public:     int x = 3; };  Test var2; cout << var2 << endl;  How can I get implement the class so the cout line prints the value of x without referring to it?


Is it possible to say in English, "With us this morning is Peter"?  What is the Subject in the quoted part of the sentence?


Difference between Prior/Posterior density and Prior/Posterior distribution

I am confused about the difference between the prior/posterior density and distribution. In my lecture notes the posterior density is:  $$ f(\theta | x_1, \ldots, x_n) = \frac{f(\theta) L(\theta)}{\int f(s)L(s)ds}, $$  where $L$ is the likelihood function and the prior density is $f(\theta)$.  But my notes also say that the posterior distribution is the same as above, with the prior distribution being $f(\theta)$.   So is the prior/posterior distribution and density calculated the same way? Are they the same thing? If not, can someone elaborate on this a bit?


I've seen similar questions  and .  But am not getting how to left pad a String with Zero.  input: "129018" output: "0000129018"  The total output length should be TEN.


Why does the series $\sum_{n=1}^\infty\frac1n$ not converge?

Can someone give a simple explanation as to why the       $$\sum_{n=1}^\infty\frac1n=\frac 1 1 + \frac 12 + \frac 13 + \cdots $$   doesn't converge, on the other hand it grows very slowly?   I'd prefer an easily comprehensible explanation rather than a rigorous proof regularly found in undergraduate textbooks.


When should the word "master's" or " bachelor's" be capitalized with apostrophe s?

When I'm specifically not mentioning if its MS or MEngg degree. What is the correct way to say -  pursuing master's/masters/Masters/Master's in Electrical Engineering and during my bachelor's/bachelors/Bachelors/Bachelor's in Electrical Engineering at Univ f Gotham?


Fit wide correlation table on page using siunitx

I'm trying to fit a very wide table on one page. Landscape does not do the trick and latex is cutting off half of my columns. Also...I'm having trouble to define the first S-Column (Cases) separately from the other 22 columns to specify, that decimals do not need to be displayed in that column. \documentclass[10pt,ngerman,english]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage{siunitx} \usepackage{geometry} \usepackage{rotating} \usepackage{booktabs} \usepackage{longtable} \usepackage{pdflscape} \usepackage{multirow,booktabs,setspace,caption} \usepackage{tikz} \usepackage{soul} \usepackage{caption} \usepackage{tabularx} \usepackage{threeparttable} \usepackage{float}    \pagestyle{empty}  \DeclareCaptionLabelSeparator*{spaced}{\\[2ex]} \captionsetup[table]{textfont=it,format=plain,justification=justified,   singlelinecheck=false,labelsep=spaced,skip=0pt} \captionsetup[figure]{labelsep=period,labelfont=it,justification=justified,   singlelinecheck=false,font=doublespacing}    \begin{document}  \sisetup{detect-mode,         tight-spacing           = true,         group-digits            = false,         input-signs             = + -,         input-open-uncertainty  = ,         input-close-uncertainty = ,         round-mode              = places,         table-number-alignment  = center,         round-precision         = 2,         add-integer-zero        = true}           \begin{landscape} \begin{table} \setlength\extrarowheight{2pt}  \centering \begin{tabular}{l*{23}{S[table-format=3.2,                         table-space-text-post={***}]}}   \hline & \multicolumn{1}{c}{Cases}&    \multicolumn{1}{c}{\textit{M}}&    \multicolumn{1}{c}{\textit{SD}}&   \multicolumn{1}{c}{(1)} &     \multicolumn{1}{c}{(2)} &     \multicolumn{1}{c}{(3)} &    \multicolumn{1}{c}{(4)} &     \multicolumn{1}{c}{(5)} &     \multicolumn{1}{c}{(6)} &     \multicolumn{1}{c}{(7)} &     \multicolumn{1}{c}{(8)} &     \multicolumn{1}{c}{(9)} &     \multicolumn{1}{c}{(10)} &     \multicolumn{1}{c}{(11)} &     \multicolumn{1}{c}{(12)} &     \multicolumn{1}{c}{(13)} &     \multicolumn{1}{c}{(14)} &     \multicolumn{1}{c}{(15)} &     \multicolumn{1}{c}{(16)} &     \multicolumn{1}{c}{(17)} &     \multicolumn{1}{c}{(18)} &     \multicolumn{1}{c}{(19)} &     \multicolumn{1}{c}{(20)} \\    \hline   D & 856 & .5 &.5 \\    A& 856 & .5 &.5 &.29***  \\    I& 856 & .5 &.5 &  .17*** &.22*** \\    C & 856 & .5 &.5&  .03     &  .02     &  .12***    \\    O & 856 & .5 &.5&  .10**   &  .20*** &  .13***  &  .15***  \\    A & 856 & .5 &.5 & -.03     &  .00     &  .09**   &  .17*** &  .24*** \\    C & 856 & .5 &.5 & -.08*    & -.05     & -.10**   & -.24*** & -.06     & -.09*    & -.51*** & -.49*** & -.54*** & -.35*** & -.37*** & -.32*** & -.47*** & -.46*** & -.42*** & -.42*** & -.45*** & -.47*** & -.10**   &  .01 \\  \hline \end{tabular} \end{table} \end{landscape}                  \end{document}  Thanks in advance for any help.


pgf-blur shadow glitch using different node sizes and XeLaTeX

Here's my MWE:  % !TeX program = XeLaTeX \documentclass[9pt]{beamer}    \usepackage{tikz} \usetikzlibrary{shadows.blur} \usetikzlibrary{backgrounds}  \tikzstyle{blurredShadow} = [rectangle, thick, draw=none, minimum width=1.5cm, minimum height=0.5cm, fill=green!50, blur shadow={shadow opacity=40}]  \begin{document}  \begin{frame} \begin{center} \begin{tikzpicture}[node distance=2cm] tikzstyle{every node}=[font=\scriptsize]  \node (one) {Blabla}; \node (two) [right of=one]{   \begin{tabular}{c}         Blabla \\         \& Blublu \\     \end{tabular}     };  \begin{scope}[on background layer] \node [blurredShadow, above of=one, yshift=-2cm] { }; \node [blurredShadow, above of=two, yshift=-2cm, minimum height=1.5cm] { }; \end{scope}  \end{tikzpicture}  \end{center} \end{frame}  \end{document}   gives me this:    The glitch does not occur when compiling with pdfLaTeX. However, I need to use XeLaTex because I need to use the fontspec package.  Linux 64bit Ubuntu 16.04. Tex version: TeX 3.14159265 (TeX Live 2015/Debian)   The following  to a similar problem did not work for me: Define driver by setting\def\pgfsysdriver{pgfsys-dvipdfmx.def}  Does anyone know a solution?


How to use if-then-else structure in LaTeX? I need an example of odd and even page.  if odd then   command 1 else   command 2


With the sample MWE below, TikZ generates the following diagram:  1. Drawing an arc  \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}   \coordinate[label=below:$a$] (a) at (0,0);    \draw (a) arc(0:180:2); \end{tikzpicture} \end{document}      2. Drawing a circle  \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}   \coordinate[label=below:$a$] (a) at (0,0);   \coordinate[label=below:$b$] (b) at (5,5);    \draw (a) arc(0:180:2);   \draw (b) circle [radius=2cm]; \end{tikzpicture} \end{document}      With \draw <coordinate> circle command, TikZ draws a circle, with the <coordinate> at its center.  With \draw <coordinate> arc command, TikZ draws an arc, with the <coordinate> as one of its endpoints.  I wish to understand, why this difference of behavior and how is TikZ drawing the arc with \draw (a) arc(0:180:2);.  Why does TikZ does not use (a) as its center point while drawing an arc similar to drawing a circle.  How does TikZ actually draw the arc with point a.  What is the reference and center point, when TikZ draws an arc.


I recently installed the 3.2.2 version of QGIS but the interface seems to be weird     How can  make the map canevas occupy the rest of the window?


Do you lose in 8 ball pool if the 8 ball hits another ball

Regular 8 call pocket pool you are on the 8 ball for the win. You call your pocket. You shoot and hit the 8 ball. It's going for the pocket you called, but hits another ball on the way and still goes in the pocket that was called. Do you lose the game


Deal with highly unbalanced data classes

I got this horrible(hope you'll find the good in it) dataset, with 15 classes.  Any suggestion to deal with it?  I was wondering to group at least into 3 classes, however the first one is tremendously populated. Thanks            CLASSES   tot             <int> <int>  1              1  3122  2              2   716  3              3   481  4              4   288  5              5   216  6              6   150  7              7   106  8              8    86  9              9    47 10             10    40 11             11    34 12             12    27 13             13    13 14             14    19 15             15    18


AIC versus Likelihood Ratio Test in Model Variable Selection

The software that I am currently using to build a model compares a "current run" model to a "reference model" and reports (where applicable) both a chi-squared p-value based on likelihood ratio tests and AIC values for each model.  I know that one advantage of AIC over likelihood ratio tests is that AIC can be compared on non-nested models.  However, I am not aware of any reason why AIC couldn't or shouldn't be compared on nested models.  In my model, when comparing nested models for variable selection, I'm finding several cases where the likelihood ratio test and the AIC comparison are suggesting opposite conclusions.  Since both are based on likelihood calculations, I'm struggling to interpret these results.  However the documentation of my software says (without explaining),   "If two models are nested (i.e. one is a sub-set of the other) then the more usual chi-squared test is the most appropriate to use. If the models are not nested, the AIC can be used..."  Can anyone elaborate on this and/or explain why AIC is not as helpful as likelihood ratio tests on nested models?


Would the One Ring have stayed hidden if Bilbo hadn't turned up?

Gollum managed to keep the One Ring safe in his possession for . His cave is very well hidden, the goblins living nearby appear to be unaware of it and aside from Bilbo's visit there doesn't seem to have been any threat to him continuing to hold onto it .  Did Tolkien highlight what would have happened if Bilbo hadn't recovered the Ring (or if Gollum had somehow died in his cave)? Would the Master Ring have simply remained undetected for the foreseeable future?


To perform a bit flipping attack, the previous block is modified by using XOR. This results in an altered plaintext. However, now the ciphertext of the previous block is altered, hence it will result in an invalid format. Am I correct or am I missing something?   For example, suppose I have the following plaintext name=jcconvenant;photo=picture.jpg;admin=false;colour=red;  and the correspoding ciphertext c26a5697689463d662f540e55e2a1ecef9c5df20133dfe49d6d3c369679a95ff4f4c5a490f530b2a2f25db40da64f1e9302724ce61b9a435e23f4d600252a143  Suppose we perform a bit flipping attack and get the following ciphertext c26a5697689463d662f540e55e2a1ecef9c5df20133dfe49d6c1d07071c495ff4f4c5a490f530b2a2f25db40da64f1e9302724ce61b9a435e23f4d600252a143  Then the resulting plaintext will still look corrupted.   ¶ä╚°  h8ì│►Nƒz│Ioé¤ßkü2KÀQiý4I@pg;admin=true;;colour=red;  Is there a way to perform bit flipping while still obtaining a valid plaintext?


Automatically reducing spacing before punctuation in math mode

It often happens that after a variable in math mode, some punctuation in text mode follows (both display and inline). Depending on what the variable letter was, the spacing between letter and punctuation can look rather odd:   $A$, looks like  - which is fine $V$, produces  - here, the distance between V and comma is far to big.   There are lots of other letters that are not very well-spaced, U, W and others which end "too italic".  Is there any way to automatically fix this spacing? So far, I was inserting negative kernings all over the way, e.g. $V$\kern-1.5pt, giving . Of course, the kernings have to be adjusted for every letter (and font) manually once; perhaps there is some functionality in microtype (pdflatex only is fine) that allows for this?  Edit: For me, it is not possible to include the punctuation in the math ($A,$), since I do use different fonts for text and math (which might not be too conspicuous for the fullstop, but can be seen for larger punctuations, especially the double colon - which, if in math mode would need extra treatment anyway).  Completely subjective MWE (here, same font):  \documentclass[preview]{standalone}  \usepackage[utf8]{inputenc} \usepackage{amsmath, microtype, lmodern}  \begin{document}    Proper spacing: $A$, $E$, $Q$, $R$. \\    Acceptable spacing: $B$, $C$, $D$, $G$, $O$, $S$, $Z$. \\    Poor spacing: $F$, $H$, $I$, $J$, $K$, $M$, $N$, $P$, $T$, $U$, $V$, $W$, $X$, $Y$. \end{document}


What is the difference between a witch and wizard?

In Harry Potter, what makes a wizard a wizard and a witch a witch? Apparently, wizards can be both men and women. But I'm not sure if men can be witches. So in this universe what is the distinction?  According to the sci fi stack exchange :     "Wizard" can be used for males and females.   According to this question:      Well, when Hagrid describes Muggles to Harry as "non-magic folk" it   might imply that 'magic' is a collective term used to describe witches   and wizards. An example sentence might be, "All the non-magic folk to   the right, the magic to the left." Also, 'magic' is the word I've most   commonly seen/heard as used to describe the genetic attribute that   makes a person a witch or wizard. Either a person has the magic gene   or they don't.   Because magic means both witches and wizards, this means there is a difference. Women can be wizards and in history men can be witches.  Therefore there is a difference between the magic abilities of witch and wizard.  I'm not seeing the clear definition though of what makes one or the other. The question related to a term for both wizards and witches, however, reports it as two separate entities, therefore there exists a distinction between witch and wizard, in the Potterverse anyway, but what makes one or the other according to J.K. Rowling I have not found an explanation that she gives.


Keyboard, trackpad stops functioning on Yosemite when USB smartphone plugged in

I am using a Retina MacBook Pro 15" Mid 2014 with Mac OS X 10.0 (Yosemite) installed. When I plugin my Android phone via USB, the trackpad and keyboard stop working. Things are still happening on the screen, though, so it's not completely frozen. The only button that works is power button. It happens like 20% of the time I plugin a smartphone. Tried various phones and the issue is still there.  dmesg:


If my data is overdispersed when binomial but not when Poisson does that alone mean I should use Poisson GLM?

Top is Poisson, bottom is Binomial Source of variation is different people observed over a week long period. 118 people to be exact.  want to make predictions about the proportion of days/week one exercises if they wake up at a given time.  > summary(FMR7)  Call: glm(formula = No.Days.Ex ~ WaketimeStand, family = poisson, data = PSD)  Deviance Residuals:       Min        1Q    Median        3Q       Max   -2.99043  -0.64677  -0.03492   0.67393   1.51943    Coefficients:               Estimate Std. Error z value Pr(>|z|)     (Intercept)    1.36991    0.04689  29.218   <2e-16 *** WaketimeStand -0.08309    0.04806  -1.729   0.0839 .   --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1  (Dispersion parameter for poisson family taken to be 1)      Null deviance: 124.55  on 115  degrees of freedom Residual deviance: 121.51  on 114  degrees of freedom AIC: 479.71  Number of Fisher Scoring iterations: 4  > summary(FMR6)  Call: glm(formula = cbind(No.Days.Ex, No.Days.NotEx) ~ WaketimeStand,      family = quasibinomial(link = logit), data = PSD)  Deviance Residuals:      Min       1Q   Median       3Q      Max   -3.7483  -0.9585  -0.0625   1.0428   2.9739    Coefficients:               Estimate Std. Error t value Pr(>|t|)   (Intercept)     0.2595     0.1009   2.571   0.0114 * WaketimeStand  -0.1869     0.1020  -1.832   0.0695 . --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1  (Dispersion parameter for quasibinomial family taken to be 2.015388)      Null deviance: 288.42  on 115  degrees of freedom Residual deviance: 281.57  on 114  degrees of freedom AIC: NA  Number of Fisher Scoring iterations: 4  Quite clear that there is much more overdispersion on the quasibinomial than the poisson. The response variable is no.days exercise per week and so my original thought was to analyse with binomial GLM as it is the proportion of days in a week someone exercises. However, when modelled with a Poisson GLM it is much less overdispersed. Is this a sign I am using the wrong distribution.


Evaluating definite integral by products?

Let $f:[0,1]\to \mathbb{R}$ be a continous function. Show that $\displaystyle\lim_{n\to \infty} \Pi_{k=1}^n  (1+ \frac 1n f\big( \frac kn\big))=e^{\int_0^1 f(x) dx}   $ My attempt :- The exponential on RHS compels me to take ln both sides but keeping in mind the terms could be negative , I tried the following . Since the function is continous on $[0,1]$ , there  exist $N\in \mathbb{N}$ such that $|f(x) | \lt N, \forall x \in [0,1]$ Now let $n\gt N$ Then $1+\frac 1n f\big( \frac k n\big) \gt 0 $ for $1 \le k \le n$ Let $P_n =\Pi_{k=1}^n  (1+ \frac 1n f\big( \frac kn\big))$ be the partial product sequence for $n\gt N$ Then, taking $\ln $ both sides, and using the fact $e^x \ge 1+x, \forall x \in \mathbb{R}$ $\ln (P_n)=\sum_{k=1}^n\ln (1+ \frac 1n f\big( \frac kn\big))\le \sum_{k=1}^n \frac 1n f(\frac kn )$ $\lim \sup  (\ln (P_n)) \le \int_0^1 f(x)dx$ How do I show $\lim\inf (\ln (P_n))\ge \int_0^1 f(x) dx$ ? Pleae help. Thanks for your time.


I just noticed that trying to visit one of the per-site metas using HTTPS will (after confirming the security exception due to the ) give a 403 error:    Yes, I know that .  But the per-site metas used to work over HTTPS, so this is a regression.  I did some extra testing, and it appears that this error shows up only for the per-site metas with a four-part hostname of the form meta.sitename.stackexchange.com.  That is, the following meta sites with custom domains work fine over HTTPS:           but any other per-site metas, (like, say, ) are broken.  From the error message, I suspect this regression has something to do with the use of the CloudFlare CDN.  Perhaps something needs to be (re)configured in SE's CloudFlare settings to make this work again?


Why aren't the Sunset Squad doing their jobs?

The Sunset Squad's objective is to take old people whose lifespan exceeds 160 years, and take them to a secret location in space where they then live in a simulated world waiting for the children to call. In two occasions I can think of, they haven't being doing their job right:   Farnsworth escaped, and the Reaper bot doesn't capture him after he escaped. Mom is obviously over the normal age. Given that Mom was at least 20 before establishing MomCorp, she would have been over the age limit. Another thing would be that she had grey hairs before Farnsworth was completely bald.   Why hasn't the Sunset Squad been doing their jobs regarding these two cases?


What event log should I check for Hardware Changes

Approximately every 10 seconds my PC seems to be adding new hardware then instantly removing it. For example, you know the sound when you insert a new USB device and it starts to look for drivers? It is playing that sound and then the associated device removal sound instantly afterwards. It is doing this approx. every 10 seconds.  Device Manager also does a refresh but it is too quick to see any changes.  I did a  to show what I mean. The second time in the video it doesn't look like Device Manager refreshed - it did but for some reason my screen record software seemed to miss it.  I had a look in Event Viewer but couldn't see anything - probably partly because I'm not entirely sure where to be looking. Hardware Events under Applications and Services Logs is empty.   Running Windows 10 Enterprise with all available updates.


Let $G$ be a group such that for all $x,y \in G, (xy)^3 = x^3y^3$ and there's no element with order $3$. Show that $xy^2=y^2x$ and $G$ is abelian. Any idea or some hints? Thanks in advanced.


Why my decorator running without calling it?

Please look at my chapp function. I never called it but it runs formatting decorator def formatting(lowerscase=False):     print('called')     def formatting_decorator(func):         def wrapper(text=''):             if lowerscase:                 func(text.lower())             else:                 func(text.upper())         return wrapper     return formatting_decorator  @formatting(lowerscase=False) def chaap(message):     print(message)  How can I solve it?


Have all the zeros of the Riemann Zeta function real part smaller than 1?

I think that all the zeros of the Riemann-Zeta function ${\zeta}( z ) = \frac{1}{1-2^{1-z}} \sum_{n = 0}^{\infty} \frac{1}{2^{n+1}} \sum_{k = 0}^{n} (-1)^k \binom{n}{k} (k+1)^{-z}$  have real part smaller than 1, but I don't know how to prove it. If Re(z) > 1 than  ${\zeta}( z ) = \sum_{n = 1}^{\infty} \left( \frac{1}{n} \right)^z$


I want use or in EntityFieldQuery query, I search and found  but I dont understand how can I implement this, please instead of refer to another link or article tell me how can I add or condition on propertyCondtion my job dont handle with IN operation .


How can you run android apps on ubuntu?  I have seen that there is some way to run ubuntu on the phone, but I want it the other way.


A  is the structure resulting from the explosion of a giant star. The supernova remnant is surrounded by an expanding shock wave that is formed from material ejected by the explosion and interstellar material swept away during the process.  When this material collides with the circumstellar or interstellar gas, it forms a shock wave that can heat the gas at high temperatures up to 10 million K, forming a plasma.  The first question is: exactly what is the material ejected by the supernova?  The other issue is: if we consider for a moment the idea that a "human" might be witnessing the exact moment of the explosion of a supernova, the "superhuman" would hear the explosion? That is, does the explosion produce some kind of sound?


Upslope and downslope distance or area using ArcGIS Desktop?

Is there a possibility to determine the surface area above the road and the surface of the terrain below the road or between two or more roads? I want to pull the trees down the hill and up the hill to the roads. The price of skidding trees is different so I would like to know what the surface (ha) is above and below the road?    Here is an example, orange is uphill and red is downhill. I think this is solved with a raster calculator    Here is the method, but I do not know how to solve it in ArcGIS Desktop


Monitor keywords from my Twitter contacts

I know it is possible to subscribe to keywords searches by saving them within Twitter's app as a . There doesn't seem to be a way to get notified by email of these searches nor scope the searches to my followers or followees, e.g. An RSS feed or daily email  If this isn't possible, us there any service that would alert me when a follower or followee mentions a keyword? I realise there are services like  and  which monitor keywords, but none on the basis of an individual account.


A question regarding specific heat capacity

If an object requires energy $E$ to change its temperature by $1K$ and I provide it a kinetic energy of magnitude $E$, does the temperature increases or does the temperature changes only when the energy provided is heat energy?


How is the charge concentrated at the centre of shell for calculating potential from it?

While calculating electric potential due to a spherical shell at a point outside the shell, why do we say that the entire charge is present at the centre of shell? Is this true even if the charge on the shell is distributed non-uniformly?


LyX doesn't show boldface letters in MacOS Mojave

This is a bit strange but LyX installed on my system which has now MacOS Mojave has stopped showing boldface letters. It was working perfectly on MacOS Sierra. Initially, I had LyX 2.3.0, I tried upgrading it to 2.3.1 but that didn't work either. I tried searching it on Google but found no relevant information. Does anyone have any idea of what's going on?


Instantiate class with or without parentheses?

#include <iostream> using namespace std;  class CTest  {     int x;    public:     CTest()     {         x = 3;        cout << "A";      } };  int main () {   CTest t1;   CTest t2();    return 0; }   CTest t1 prints "A" of course.  But it seems like nothing happens at t2(), but the code runs well.  So do we use those parentheses without argument? Or why can we use it this way?


W:Failed to fetch http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu/dists/vivid/main/binary-amd64/Packages  404  Not Found W:Failed to fetch http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu/dists/vivid/main/binary-i386/Packages  404  Not Found E:Some index files failed to download. They have been ignored, or old ones used instead.   This is the error output. What's reason for this and what is a good solution?


Python: Break vs fulfilling while loop condition?

I understand to stop iterating a while loop you can either fulfill a condition or you can use a break command. For example  apples = 10  while apples > 0:     apples -= 1     or  while True:    if apples == 0:       break    else:       apples -= 1   However this is obviously a very basic example, and I'm not sure what is more useful, easy or professional in much larger examples of code. I get the feeling this might end up being more of a situation to situation thing, but still, I can't seem to find an answer on google. Thanks.  edit:  example of using the first example in a past project:  finished_adding_object = False                       while finished_adding_object == False:              print "System >>> Please enter new " + cls.__name__ + " name. If the user doesn't want to create a new " + cls.__name__ + ", please enter \"exit\"."                pending_new_object = raw_input("User >>> ")              while pending_new_object == "exit":                                                         print "System >>> Please confirm, the user wishes to abandon creating a new " + cls.__name__ + "? (y/n)"                 abandon_confirmation = raw_input("User >>> ")                  if abandon_confirmation == "y":                                                   pending_new_object = None                     finished_adding_object = True                  elif abandon_confirmation == "n":                                                                            pending_new_object = None                  elif abandon_confirmation != "n" or "y":  # User told if input is invalid.                                      print "System >>> " + abandon_confirmation + " is an invalid command."


what does "line 1 column 2, missing "}" or object member mean?

I tried /give @p diamond_sword 1 0 {ench:["minecraft:knockback"{id:lvl,1000} and it gave me that upsetting error. does this command not work on xbox? am I doing it wrong?


How do I get to my profile on the iOS app?

I tried clicking on my profile user/picture but nothing happens.  How do I view my profile on the app?


I'm creating a report that uses roman numeral section numbers (requirement for the conference that I'm submitting to). When I create the table of contents, I'm having the following problem:   With the section numbers overlapping the section names. Is there a simple fix for this, perhaps by adding more spacing between the number and name for every section? I'm no expert with style files, but with some instruction I could find what I need and change it.


If we let $T : R^2 \to R^2$ be a linear transformation. Consider two bases $B$ and $D$ of the vector space $R^2$

Having trouble with this problem and not only looking for a answer but some explanation of what is going on in the problem. If we let $T : R^2 \to R^2$ be a linear transformation. Consdider two bases $B$ and $D$ of the vector space $R^2$, where $B=\{v_1,v_2\}$ with $ v_1 =  \left(\begin{bmatrix} -2 \\1   \end{bmatrix}\right)$ and  $ v_2 =  \left(\begin{bmatrix} 1 \\1   \end{bmatrix}\right)$ and where $D = \{w_1,w_2\}$ with  $ w_1 =  \left(\begin{bmatrix} -1 \\4   \end{bmatrix}\right)$ and  $ w_2 =  \left(\begin{bmatrix} 0 \\1   \end{bmatrix}\right)$. Suppose that  $ A =  \left(\begin{bmatrix} 1&2   \\-1 &4    \end{bmatrix}\right) = M_{D_<-D(T)}$. I need to find the matrix $B = M_{B<-B}(T)$


In an image, I want to shrink the light green ring (outside of the black inner circle) inward, radially, towards the edge of the inner circle (dark green). After the transform, the light green ring should be narrower, but still attached to the dark green edge around the inner black circle. The black circle remains static. Is there a way perform such a transformation in any common 2D graphics software? [edited for more clarity]


Can a question be migrated to a site on which the user has been manually suspended by a moderator?

Technically, a user does not even need to have an account on a site for one of their questions to be . There is a specific provision in Stack Exchange code to  migration of a question to a site on which the user has received an automated question ban.  If a user has received a manual site suspension from a moderator (the one which fixes the user's rep at 1 and blocks posting, commenting, editing, and chatting), can a question posted by them on another site be migrated to the site on which they are suspended?  I'm not asking whether this sort of migration is a good idea. Except in the most blatant cases of an extremely high quality, but off-topic question, it is probably not a best practice to migrate a question to a site where the question asker will not be able to further contribute. My question is whether such a migration is preemptively blocked by the system the same way it is for a question-banned user or whether such a migration is left to the judgment of moderators or closevoters.  For what it's worth, this question is inspired by a real case of a question I recently saw on a SE site that could arguably be considered a candidate for migration (off-topic on the site where asked, marginally on-topic elsewhere) and where the question-asker actually was suspended on that elsewhere site, but I am asking in the general sense, rather than asking for a judgment on whether that specific question should be migrated.


Generating (pseudo)random alpha-numeric strings

How can I generate a (pseudo)random alpha-numeric string, something like: 'd79jd8c' in PHP?


What does "more extreme" mean when talking about p-values?

As far as I understand it, the p-value is the probability of obtaining the observed data or more "extreme" values under the null hypotesis, concluding that if this probability is small enough the null hypotesis is likely false.   Why are we interested in the probability of more "extreme" values as opposed to, for instance, the probability of some small interval around the obtained value? (i.e. the probability of obtaining a value in the interval [obtained_value - sigma/2, obtained_value + sigma/2] ) What does "more extreme" actually mean? Sure, if we are talking of a test statistic following a normal distribution, "more extreme" can mean farther away from the mean. However, what about a bimodal distribution? Is there some formal way of stating what "more extreme" means?    Thank you!


Difference between "does have" and "has"

Possible Duplicate:                 What is the difference between does have and has? For example, compare she does have a car and she has a car.


Do "Parabolic Trigonometric Functions" exist?

The parametric equation  $$\begin{align*} x(t) &= \cos t\\ y(t) &= \sin t \end{align*}$$  traces the unit circle centered at the origin ($x^2+y^2=1$).   Similarly,   $$\begin{align*} x(t) &= \cosh t\\ y(t) &= \sinh t \end{align*}$$  draws the right part of a regular hyperbola ($x^2-y^2=1$).  The hyperbolic trigonometric functions are very similar to the standard trigonometric function.  Do similar functions exist that trace parabolas (because it is another conic section) when set up as parametric equations like the above functions?  If so, are they also similar to the standard and hyperbolic trigonometric functions?


Should one set the paper size twice, when using KOMA-script and geometry?

This question continues my .  My code:  \documentclass[paper = a4, pagesize, usegeometry = true]{scrartcl} \usepackage[a4paper, margin = 5mm]{geometry}  \begin{document}    \section{Test section}     Test text.  \end{document}   Intuitive is it enough to set the paper size globally as the document class option. But I wish to know it for sure. How is it?  Thank you for your effort in advance!


What is the opposite for the straight talk idiom? How do I best call the activity when someone makes a very long preamble before he says what he wants?


Let $g(x)=a_1\sin x+a_2\sin 2x+\ldots+a_n\sin nx$, where $a_1,a_2,\ldots,a_n\in \mathbb{R}$ such that $|g(x)|<|\sin x|\;\forall x\in\mathbb{R}$. Then, can we prove that $|a_1+2a_2+\ldots+na_n|<1$.   I think yes, because we may apply the triangle inequality repeatedly and the boundedness of $\sin$ function. Any ideas. Thanks beforehand.


Problem. If $(x_i)$ is a net converging to a point $x$, show that $(x_i)$ converges to $x$ along any nonprincipal ultrafilter.   I will define these things below.    A directed set is a poset $(I,\leq)$ such that any two elements have an upper bound.  A net in a topological space $X$ is a function $I\rightarrow X$, where $I$ is a directed set. This is typically denoted $(x_i)_{i\in I}$ to indicate $i\mapsto x_i$. I will use $(x_i)$, omitting the index when convenient.  A (classical) limit of a net $(x_i)$ is a point $x\in X$ such that: for all neighborhoods $U$ of $x$, there exists an index $i_0\in I$ such that $x_i\in U$ for all $i\geq i_0$. Notation: $$\lim_{i\in I} x_i = x$$  Now let $p$ be an ultrafilter on $I$. An ultralimit of $(x_i)$ is a point $x\in X$ such that: for all neighborhoods $U$ of $x$, the set $\{i\in I : x_i\in U\}$ belongs to $p$. Notation: $$\lim_{i\rightarrow p} x_i = x$$ In a compact Hausdorff space, every net has a unique ultralimit along any ultrafilter, regardless of whether the classical limit exists. Now I claim that if the classical limit exists, then it is equal to the ultralimit along any (nonprincipal) ultrafilter.     Claim. If $(x_i)$ has a classical limit $x$, then $x$ is also an ultralimit of $(x_i)$ (along any nonprincipal ultrafilter).     Proof in the case of sequences  I can prove this when $(x_n)_{n\geq 1}$ is a sequence (i.e. $I=\mathbb{N}$). This simply because the "tail-end" $[i_0,\infty)$ is cofinite for all $i_0\in \mathbb{N}$, so it belongs to any nonprincipal ultrafilter. The argument generalizes to any directed set in which all tail-ends are cofinite.  Here are the details of the argument. Suppose $(x_n)$ converges classically to $x$; we must show that $(x_n)$ converges to $x$ along any nonprincipal ultrafilter $p$. For any neighborhood $U$ of $x$, there exists $n_0$ so that $x_n\in U$ for all $n\geq n_0$. Thus $\{n\geq 1 : x_n\in U\}$ contains the tail-end $[n_0,\infty)$. But since $[n_0,\infty)$ is cofinite, it belongs to $p$ since $p$ is nonprincipal. By upper-closure of ultrafilters, this implies $\{n\geq 1 : x_n\in U\}$ also belongs to $p$. QED.    I don't know how to generalize the above argument unless $(I,\leq)$ has the property that every tail-end is cofinite. This seems like a pivotal part of the argument though, so I suspect that my claim is not true in general. Any thoughts?


I have a 2TB external hard drive from Seagate that will not show up on Windows 10, but it will on Mac OS. I have followed the steps on , in particular populating the disk and noted the disk number (3). Then under Disk management I have found the following . Are the 2TB too big for the disk and is there a way to resolve this? EDIT: The drive is formatted APFS, which is not supported by Windows 10.


Is there an official rule on "setting up" your deck before play?

It never occured to me that this might not be an action sanctioned for tournament, but me and my friends have always done it as long as I can remember.  Every time before a new game, we look through our decks and separate the lands from the non-lands, shuffle the non-lands, and build a deck (assuming a 2:1 ratio of non-lands to lands) 2 non-lands then 1 land -- repeat until no cards are left. Then give a light shuffle and begin. This is used to ensure that there's no long strings of only land or no land.  I've done a quick search for others doing this behavior but I can't seem to locate any reference to it. But based on a couple games in Magic online, I've noticed that quite frequently I'll mulligan a hand and then get back an unhealty ratio of lands to spells and I basically lose the game right away because of it. This leads me to think that the official tournament rules are that you just shuffle your deck and play.


Do supernovae produce an appreciable amount of lithium?

David Z's answer to  got me wondering - is any appreciable amount of lithium produced as the result of a supernova explosion, either by fusion (which seems unlikely to me, but I don't have great intuition for this), or by the decay of unstable species produced by the supernova? If so, what decay chains end with lithium?


Compilation problem with siunitx (returning error regarding ifnum)

I'm trying to get siunitx working. For some reason I keep getting this error:  ! Missing = inserted for \ifnum. <to be read again>                     - l.3 \begin           {document}^^M   I have tried a minimal document to make sure it is not some kind of compatibility issue. And I get that same error in the most minimal document possible.  I'm using pdfLaTeX to compile, and have tried both from TeXWorks and from bash. I'm using TeXLive, if that matters. I have also tried reinstalling siunitx, l3packages, and l3kernel. There was an issue with l3kernel before this, due to an apparently old version. But all three packages are now up to date. I've also reinstalled expl3 while trying to debug the original issue.  My minimal document is:  \documentclass{article} \usepackage{siunitx} \begin{document} \end{document}   The output I get is:  This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015/Debian) (preloaded format=pdflatex) restricted \write18 enabled. entering extended mode (./untitled-2.tex LaTeX2e <2016/02/01> Babel <3.9q> and hyphenation patterns for 81 language(s) loaded. (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls Document Class: article 2014/09/29 v1.4h Standard LaTeX document class (/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo)) (/home/<name>/texmf/tex/latex/siunitx/siunitx.sty (/home/<name>/texmf/tex/latex/l3kernel/expl3.sty (/home/<name>/texmf/tex/latex/l3kernel/expl3-code.tex) (/home/<name>/texmf/tex/latex/l3kernel/l3pdfmode.def)) (/home/<name>/texmf/tex/latex/l3packages/xparse/xparse.sty) (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty)) (/usr/share/texlive/texmf-dist/tex/latex/tools/array.sty) (/home/<name>/texmf/tex/latex/l3packages/l3keys2e/l3keys2e.sty) (/usr/share/texlive/texmf-dist/tex/latex/beamer/translator/translator.sty (/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty) (/usr/share/texlive/texmf-dist/tex/latex/beamer/translator/translator-language- mappings.tex))) ! Missing = inserted for \ifnum. <to be read again>                    - l.3 \begin          {document}^^M ?   Does anyone have any idea what might be going wrong here?


When I'm referencing a undefined person, when should I use "she" or "he"?

This is something I realized in some text I read (books and articles), I don't identify it when speaking to people. When a pronoun is used replacing an undefined person sometimes "he" is used (I would say most of the time) and others "she" is used. Like in the sentence "The user is very clever, she found an error.", in formal Portuguese writing the pronouns for undefined person are always masculin, is it optional for English?


Must a degree $6$ field extension with Galois group $S_3$ be the splitting field of a cubic?

Prove (or disprove by example) the following: If $F$ is a field extension of $K$, not necessarily a Galois extension, with $[F:K]=6$ and $\mathrm{Aut}_K F \simeq S_3$, then $F$ must be the splitting field of an irreducible cubic in $K[x]$.   This is a question from a qualifying exam at my university. I think the requirement that the extension be Galois is necessary for this to be true. Like, if $F$ doesn't have to be Galois over $K$, then there must be an example where $F$ isn't a splitting field at all, right? I've yet to come up with such an example though.


I have an HiDPI screen on my laptop. Nautilus was great until now.  See how it is now:   It can look ok for you but on fullscreen on my computer, the text is so small it's unreadable. I don't know how to fix that, the only thing I did is installing java8 (but I don't think it's related).  Any thought about ?


Prevent Google Chrome from remembering window position on close

There's a computer that is only used for the youth service at my church. Sometimes, Google Chrome is used to display a web page during the service. The problem is, next time someone opens Chrome, it remembers that it was closed on the second monitor and pops up over there, which can interrupt the program. I need to force Chrome to always open on the primary monitor.


Why Can Objects Fly and People (other than Dark Wizards) Can't?

While looking into broomsticks and their use in Harry Potter, I found that there was no spell or charm that would make a human fly.  Originally, once they found ways to make objects fly, they needed to use objects that they could have handy and keep in the house, but which would not seem suspect to muggles.  One easy choice was the broom, since it'd be inconspicuous in any home and would always be handy.  But I can't find any mention of spells, charms, or enchantments are used to make brooms fly.  However, Voldemort and Snape have both flown on their own.  So the only examples of flying people are two dark wizards.  What is it about the magic used to make a broom fly but that only dark wizards seem to want to use it on themselves?  (Or, perhaps, did Snape and Voldemort use magic on, say, their clothes or something different?)    Addendum: In Quidditch Through the Ages it specifically states that there is no known spell that makes a human fly.


I am looking to find out how the derivation went in this computation  $$ \frac{1}{n-1} \sum (x_i - \bar{x})^2 = \frac{1}{n-1} \left( \sum x_i^2 - n\bar{x}^2  \right) $$  The exercise belongs to sample distribution section but that's not what bothers me. As you can see there's a square notation inside a summation notation. Now I would take square of sum's here as in $(a-b)^2 = a^2 - 2ab + b^2$ . Yet the result in the picture seems to ommit $2ab$ or probably say simplify. My question is how does he get to such a derivation. Is there any sort of special formula or some point that I am severely missing :/ ?


UK visa refusal under Appendix V Section 3.6

Because my company didn't verify information in a call they received, it resulted in my visa being refused. It was a mistake made by the company employee. He was new and couldn't respond properly to the Embassy.   Should I reapply and include a letter from the company chairman explaining the massive mistake?


Installing Outlook 2019 without installing all of Office?

I just bought Outlook 2019 from Microsoft, downloaded it, and attempted to install it.  All of Office installed, which is not what I expect or want.  I tried to stop it while it was happening, but closing the window only minimized it (there was no cancel, or anything sensible like that).  The progress bar never budged from the left edge.  After waiting for a long time, I pulled up Outlook from the Start Menu and Uninstalled it.  I did the same from the Control Panel, then noticed that the system notification area still showed an icon for Office downloading.  I rebooted and found Word, Powerpoint, and Outlook installed.  I have four questions.  (1) How do I rein in this malware behaviour of the installer and just install what I bought?  (2) How do I go about uninstalling the suite of apps which were imposed upon me?  (3) Is there actually a way to install Outlook alone, or does buying Outlook mean installing all of Office and only enable Outlook?  That seems incredibly disrespectful and wasteful of user resources.  (4) When I eventually get to starting Outlook properly, is there a way to create a profile that doesn't connect to a Microsoft account?  I bought it (instead of Office 365) in order to manage my personal information locally, and avoid Microsoft's cloud.  With regard to #4, there was a point in the installation process where I was asked for my email address and there was one button  -- to connect.  I checked off a box to manage/setup my account/profile manually (something to that effect).  Nothing happened, but that might be due to my interruption of the unwanted Office setup.  It's never clear what state the installer is in.  The installer seemed to be designed to railroad you into the cloud, and to go sideways for anything else.  Also regarding #4, I saw this page on setting up Outlook as a PIM without email:    I can't follow it, as outlook.exe is not recognized.  Even though it shows up when I click Start, I can't right-click it to get it properties & location like in Windows 7.  Would anyone know how to get at this in Windows 10?  Thanks.  2nd attempt, 2 days later  I uninstalled all things Office and re-ran the installer *.exe file.  It did not ask for my key, so I assumed that the key was requested when I downloaded the installer. Most of the windows in the installation process referred to Office rather than Outlook:      I invoked Outlook in the Start menu, but quit when it didn't give me an option to manually set up my account:    This is in line with John's suggestion to set up accounts using Mail in the control panel.  Depending on where I look, however, I might have Outlook 2016 or Outlook 2019.    Now I'm more confused than before. I don't want to launch Outlook 2016 because that is not what I purchased.


How to change the default views of quad view?

How do I change the TOP ortho view to BACK ortho view for my BACK image?   check out the pic I uploaded to see what I'm talking about.


What is the relationship between philosophy and science?

While philosophy and science as held as separate disciplines (and often taught in completely different colleges within a university [i.e. College of Liberal Arts vs. College of Science]), it is patently clear that there is an immutable relationship between philosophy and science. Philosophy can often be seen as providing justification for particular scientific theories -- but why/how is this so?  In science:   A theory must have observable consequences that can be tested and be falsified.   Theories also must agree with previous theories in the domains where they had been successfully tested.   For example,  special relativity reduces to Newton mechanics in the domain of velocities much less than the speed of light.  In philosophy, while new theories must comply with existing theories, there is clearly much less testing/retesting.  So, how does philosophy fit into this framework while maintaining the rigor required for scientific inquiry?  Are there any examples of philosophical discussions that have significantly influenced or changed scientific theory?


Can I use Skydrive to sync a folder of my chosing?

I want to sync c:\mydir to the cloud using SkyDrive. Can it be done?  During the SkyDrive install it allowed me to pick a folder so I chose c:\mydir but now SkyDrive syncs c:\mydir\SkyDrive not c:\mydir.  Is there any way to get SkyDrive to sync a folder of my chosing?  I'm on Windows 7.


Need help with Proof by Strong Induction question

So, here is the question:  For any position integer $n$, let $T(n)$ be the number 1 if $n<4$ and the number $T(n-1) + T(n-2) + T(n-3)$ if $n \geq 4$.  We have $T(1)=1, T(2)=2, T(3)=3$ $$T(4)=T(3)+T(2)+T(1) = 1+1+1+1 = 3$$  $$T(5) = T(4)+T(3)+T(2) = 3+1+1 = 5$$  Prove that: (Universal n is an element of all positive integers), $T(n)<2^n$  Any suggestions?


Is it possible to break a long line to multiple lines in Python?

Just like C, you can break a long line into multiple short lines. But in , if I do this, there will be an indent error... Is it possible?


How to do DIY repair of rubber grips on Nikon cameras?

The rubber grip is peeling away from my D700, just near the autofocus mode selection switch.   That whole (tiny) section of the grib is pretty much coming away.   How can I do a DIY repair?   What glues should I avoid using?   If I need to replace the grip itself (there's another that's a little bit loose) where can I get them?  I'd like the grips to look, after the repair, quite a lot like they did before there was a problem.  It's OK if they're not entirely identical, but very similar would be good.


if p is odd prime such that $p \equiv 1\,(\text{mod } 7)$ then $p \equiv 1\,(\text{mod } 14)$

Prove :  if $p$ is odd prime such that $$p\equiv 1 \ (\bmod 7)$$ then $$p \equiv 1\ (\bmod 14)$$  my prove for it that let $p$ is odd prime and $p\equiv 1 \ (\bmod 7)$ so every odd prime number can be written as $p\equiv 1 \ (\bmod 2)$ so by multiple the  $p\equiv 1\ (\bmod 7)$  and  $p\equiv 1\ (\bmod 2)$   we get  $$p\equiv 1\ (\bmod 14)$$   is that right please?


Are there any non-soy, non-dairy infant formulas?

Background  For a child who is allergic to dairy, there are soy-based formulas. However, soy has phytoestrogens, estrogen-like hormones, to which infants are sensitive*, **.  Question  Are there any non-soy, non-dairy infant formulas or formula recipes available?      *, under infants and breasfeeding.  **


I am making a chess application in wpf. I am currently creating the UI. This is my first time using WPF and i am a little confused how to bind the 2D array to a suitable xaml container in a simple manner.   For example, this is the code for the UI:  public partial class GameView : Window {     private Game game;     private const int tableSize = 8;     ChessCell[,] chessMatrix = new ChessCell[tableSize, tableSize];     public GameView(bool loadGame)     {         InitializeComponent();                 game = new Game(loadGame);         GenerateEmptyGrid();     }      private void GenerateEmptyGrid()     {            for (int i = 0; i < tableSize; i++)         {                            for (int j = 0; j < tableSize; j++)             {                 chessMatrix[i, j] = new ChessCell();                 if ((j + i) % 2 == 0)                 {                     chessMatrix[i, j]._tileColor = Color.FromRgb(255, 255, 255);                 }                 else                 {                     chessMatrix[i, j]._tileColor = Color.FromRgb(0, 0, 0);                 }             }         }          chessGrid.ItemsSource = chessMatrix;     }      public class ChessCell     {         public string _piece { get; set; }         public Color _tileColor { get; set; }     } }   This generated the error: System.ArgumentException: 'Array was not a one-dimensional array.'  On the line: chessGrid.ItemsSource = chessMatrix;  Chess grid is a datagrid:  chessGrid:    <Grid>         <DataGrid Name ="chessGrid" SelectionMode="Single" SelectionUnit="Cell">          </DataGrid>  </Grid>   So obviously it accepts only a 1D array. I have looked some but i cant seem to find a xaml container that you can easily bind a 2D array too? Any suggestions on such a container or are there any other simple way to view a 2D array?


Example: Continuous function having a limit along every arithmetic sequence but having no limit over the reals

The following question seems to be very elementary and must be a folklore, but we are not able to find an answer.  Let $f: [0,\infty)\to \mathbb R$ be a continuous function such that for every $a>0$, $$ \lim_{n\to+\infty} f(na) = 0, $$ where $n$ is restricted to be integer.   Does this imply that  $$ \lim_{t\to+\infty} f(t) = 0, $$ where $t$ is allowed to be real?


Omitting "While + subject + verb to be"?

" I hurt my knee playing soccer " Is this sentence right? If yes, how come?


How to show out of bounds texture from a modulo operation

Does anyone know how to show the cut parts? I used a modulo operation with random coordinates and rotation for each cell, but when I try to randomly move them I get some parts of the texture getting cut, but I would prefer them to overlap.


email is missing from my settings on iphone 5c.  The icon is also missing.  I don't know how it disappeared.


Subject-Verb Agreement with Singular and Plural subjects

I'm trying to figure out how to word the following hyperbolic statement regarding dodgy building construction:     The only sturdy thing about that building [is/are] the nails holding it together.   Which is correct in this case, is or are? Neither sounds correct.  Even if I reword the sentence, it still sounds awkward:     The nails holding that building together [is/are] the only sturdy thing about it.   We have three subjects; two singulars and a plural. Grammatically, the main subject is the "sturdy thing", but the nails are the punchline (the context is supposed to be funny).  What's the rule here?


StructureMap error when invalid controller

I am using Structure map like the MVC storefront by Rob Conery does and I have an AdminController and so to get to it I just type:  website/Admin/action   however if I miss spell the controller name I get the error below:  Exception Details: System.ArgumentNullException: Value cannot be null. Parameter name: key  There error occurs on this line:  Controller controller = ObjectFactory.GetInstance(controllerType) as Controller;   Does anyone have any ideas on how I can handle this error or not allow it to happen at all and maybe just goto a 404 page??  Cheers in advance


For I school project, I have to implement a shell/terminal app. But I am wondering how are command line options parsed, because it appears abit weird to be. For example for the command paste (and I believe other utilities behave similarly)  [jiewmeng@JM tmp]$ paste --help Usage: paste [OPTION]... [FILE]...   Behavior when combining multiple options into one  [jiewmeng@JM tmp]$ paste -ds file1 file1 xxx file1 d aaws dafd a   Here it appears options are just ignored ...   [jiewmeng@JM tmp]$ paste -sd file1   It behaves the same as paste -, waiting for stdin. But when its valid combination  [jiewmeng@JM tmp]$ paste -sd. file1 file1 xxx.file1.d aaws dafd a   It works. Shouldn't the invalid one give an error instead of waiting for stdin?  [jiewmeng@JM tmp]$ paste -d paste: option requires an argument -- 'd' Try 'paste --help' for more information.   Ok, makes sense d requires an argument, but ...   [jiewmeng@JM tmp]$ paste -d file1   ... waits for stdin. why?


Is there a way to run less without reverting the screen afterward?

I much prefer less over more for paging output since it has a much nicer command interface. However, it has the very annoying feature of clearing the screen back to its original state on exit. The one feature of more that I like is that it leaves the screen alone so you can see the state it was in when you decided to exit (usually at the end of the file).  Even running less in the LESS_IS_MORE emulation mode, the screen is cleared. Is there a way to prevent less from doing this?


I try to filter some files I don't want to copy to another folder (a123*.zip in this case) and want to copy all other *.zip files  if [[ ! -f ./a123*.zip ]];   then      # copy all files without a123*.zip  fi   How do I trigger the copy?


The smallest backup possible ... with SQL Server

Daily we ship our SQL Server backups across the WAN. We need to minimize the size of these backups so it does not take forever.   We don't mind if our backup process takes a bit longer; as it stands we need to move 30gigs of compressed backup across the WAN that takes over 10 hours.   There are 2 options we have to get smaller daily backups.    Log shipping, which would mean we would have to restructure DR process.  Strip information out of the db and rebuild on the other side (drop non clustered indexes, pack clustered indexes at 100% - rebuild on the other side)   Both would involve a fair amount of work from our part. We are using SQL Server 2008 pro, all backups are compressed.   Are there any commercial products that can give us similar backup size to option (2)?    Is there a comprehensive script out there that will allow us to accomplish (2)? (handling indexed views, filtered indexes, foreign keys and so on)


Can someone recommend me a backup solution that can be used for an educational institution?

The online university where I study is constantly experiencing data loss, including students’ files and literature, so I want to recommend them an effective solution.


Is it Safe to Delete Files From /var/tmp?

The root filesystem ran out of space, so I'm deleting all the extraneous junk. I already deleted everything in /var/log and /var/cache/apt/archives and did sudo apt autoremove.  This /var/tmp is using 18.5 GiB. What is it used for? Is it safe to delete the contents?  UPDATE  I found these 2 swap files:  474M    10112015.tgz.swp 19G     10022015.tgz.swp   Those swap files were generated by opening tar files in vi.   Is there a way to limit the amount of storage space used by /var/tmp?


Ubuntu 18.04 is slow to boot, 53 seconds to reach multi-user target

Ubuntu noob here. How can I speed up boot of this system?  The time after the unit is active or started is printed after the "@" character. The time the unit takes to start is printed after the "+" character.     graphical.target @53.066s └─multi-user.target @53.066s   └─snapd.seeded.service @37.351s +31ms     └─snapd.service @30.360s +6.987s       └─basic.target @29.615s         └─sockets.target @29.615s           └─snapd.socket @29.539s +75ms             └─sysinit.target @29.538s               └─cryptsetup.target @29.497s                 └─systemd-ask-password-wall.path @3.649s                   └─-.mount @3.630s                     └─system.slice @3.649s                       └─-.slice @3.630s


THE English language or English Language?

Which is correct?  I have been successful in teaching the English language


flash player plugin 11.2.202.442 over 11.2.202.440 update

How do I install flash player 11.2.202.442 over 11.2.202.440?  Using Ubuntu 12.04.  This is my wife's computer, and she just told me she can't see any videos using Flash Player. Message says She needs to update...  I'm not sure about the "right" procedure.  I need step by step info (or tutorial), so that I can show her how it's done.