He can watch me clean the car.   In this sentence, the pronoun me is used as the object of the verb watch. But isn't me also acting as the subject of the verb 'clean' and therefore should be I instead? Obviously 'he can watch me clean the car' sounds correct but why is it this way?  Is there a rule that governs this?   Reopen note  This question has been linked to this question here:      However, that question is clearly about whether to use an infinitive or a gerund-participle form after the verb hear. This question is as described above. It is about the function of the pronoun me in sentences like the one described.

"Heard me [infinitive]" vs. "heard me [present participle]"             At that time, you wouldn't have heard me talk about it.   At that time, you wouldn't have heard me talking about it.         At that time, you wouldn't have heard me condemn it.   At that time, you wouldn't have heard me condemning it.         Which one of the above sentences are incorrect and why?


I have LaTeXTools installed and I'm trying to figure out how to install the moderncv package (or for future reference, how to install packages in general). Is this done through Sublime Text's package control?   I'm fully aware I can download it straight from , but I don't know what to do with it after I open the file. Where is the proper place to put it? If possible, I would prefer to take a non-hands-on approach so that I don't mess things up.  Another concern is that I this is contained in MiKTeX and TeXLive, does this mean it won't work with MacTex?

I'm trying to compile a document that only works with an up-to-date distribution, so I'd like to know: how do I update my distribution? Please provide screenshots where appropriate.  List of answers           To keep an eye on what’s going on at CTAN you may subscribe to the  or the RSS feed feed://www.mail-archive.com/ctan-ann@dante.de/maillist.xml


I am trying to insert a node into my tree using Node as a nested class. I can't figure out why the tree.root won't save the node using my method insertNode  public class Tree {   Node root;    private class Node {     int value;     Node(int value) {       this.value = value;     }   }    public static void main(String[] args) {     Tree tree = new Tree();     tree.insertNode(4, tree.root);     System.out.println(tree.root);    }    public void insertNode(int value, Node n){     if(n == null ){       n = new Node(value);     }   }     }  >> null   What am I missing? Thank you for your help

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


I would like to install Python 3.5 in my new 18.04 Ubuntu release. I don't want it to be my default version. I just need it to run a specific app. Can anyone help?

Python virtual environments are used to create isolated python environments to avoid dependency and version conflicts, and also indirectly take care of permission issues. But what is the easiest way to set it up, and use it, in Ubuntu?


"TouchID requires your Password after 48 hours"     Update July 2016   Since posting this question, the message has changed to   Your passcode is required to enable Touch ID   & now   has a documented answer at       I just spotted the above message for the first time today. I've had the phone 3 weeks [new 6s] & never spotted it before.  It's not something I need to 'fix' but I wonder if anyone knows what may trigger it; & why it took 3 weeks to ask me for the first time.  .. or, incidentally & totally opinion-based - why it thinks a 6-digit code is more secure than my fingerprint.  Late thought: Does it do it 2 days after a reboot or OS update? It's done it just one more time, which was perhaps 48h+ after the 9.1 update.  Current guess is it's "new to iOS 9" which is why people have been seeing it on older devices too. I'm still convinced I get it once after every update - but it's something I just dismiss without thinking until later, when I've lost the train of thought that would allow me to 'accurately guesstimate' when it was last rebooted.

Occasionally, when unlocking my iPhone or iPad, I get the following message:     Your passcode is required to enable Touch ID   Now this is not after a number of failed attempts or turning the device off. The device was used within the last 12 hours. Two of the devices are less than 2 months old, and one is a year old. Everything is up to date. It appears to be happening more-or-less at random.  Does anybody know why this message might appear?


I've got a simple and fundamental question regarding the atom-light interaction Hamiltonian: How do we handle the dipole moment term in this expression? The atom-light interaction Hamiltonian, $H_{AL}$, takes the following form: \begin{align}     \hat{H}_{AL} &= -\hat{d} \cdot \hat{E}&&\\  %&=d \cdot E\left(\sigma_{-} + \sigma_{+}\right)  \end{align} where $\hat{E}$ is the electric field and $\hat{d}$ is the dipole moment operator. The latter is the operator I'm interested in. We can evaluate the matrix elements of this operator as $\hat{d}=q\hat{r}$, where q is charge and $\hat{r}$ is the position operator. Let's take the case of a two-level system with ground and excited states $|0\rangle$ and $|1 \rangle$ respectively, if we move from position to the energy basis: \begin{equation} \hat{d} = |0\rangle d_{01} \langle 1| + |1 \rangle d_{10} \langle 0| \end{equation} where $d_{01} = \langle 0| \hat{d}|1 \rangle$. Thus, if $d_{01} = d_{10} = d$ then: \begin{equation} \hat{d} = d \sigma_{x}. \end{equation} Returning to the atom-light interaction Hamiltonian, now lets say that we have $N$ two-level systems, each treated as a dipole, coupled to a single cavity. If the electric field is treated as a quantum harmonic oscillator we find the following expression: \begin{equation} \hat{H}_{AL}= \sum^{N}_{i=1} d_{i} \sigma_{x} \otimes \sum_{k} g_{k} (\hat{a}_{k} + \hat{a}^{+}_{k}). \end{equation} Where $g$ is the coupling strength and $a_k$ are the ladder operators. Now consider if I were to physically calculate this interaction, here's my problem: In terms of the position basis I understand the dipole moment as a vector, relating to the dipoles position and charge. But it is also, as shown above, a quantum operator whose elements correspond to the coupling between two states. Say, for example, I was given a list of dipole moment vectors and wished to construct the atom-light Hamiltonian interaction Hamiltonian for that system, how would I convert those dipole moment vectors into $d_{i}$ coefficients? If $d_{i}$ were just a number then I'd understand the maths but not the physics and if $d_{i}$ were a vector then I understand the physics but not the maths.

I have been studying the semi-classical light matter interaction from the book, "Light matter interaction" by Weiner and Ho. They have defined the total Hamiltonian of a two level atom placed in an EM radiation as $$\hat{H}=\hat{H_{0}}+\hat{V}(t)$$ where $H_0$ is the unperturbed Hamiltonian of the two level atom and $\hat{V}(t)$ is the dipole interaction term given by $\hat{V}(t)=\hat{\vec{d}}\cdot\vec{E}$. $\vec{d}$ is the dipole moment of the atom given by $\vec{d}=-e\vec{r}$. The eigenstates of $H_0$ are $|1\rangle$ and $|2\rangle$. Now, it has been argued that since $V(t)$ has an odd parity with respect to $\vec{r}$, the diagonal terms $V_{ii}=\langle i|\hat{V}|i \rangle=0$. However, I am not able to understand why this should be so. Some thoughts Without loss of generality, we can take the dipole moment to be $\hat{\vec{d}}=-e\hat{x} \mathbf{e_x}$ and the driving field $\vec{E}=E_0 cos(\omega t) \mathbf{e_n}$, so that $\hat{V}(t)=-e\hat{x} E_0 cos(\omega t) cos(\phi)$ where $\phi$ is the angle between $\mathbf{e_n}$ and $\mathbf{e_x}$. In such a case, we have $$V_{ii}=\langle i|\hat{V}|i \rangle=e E_0 cos(\omega t)cos(\phi)\int_{-\infty}^{\infty}\phi^{*}_i(\vec{r}) x \phi_i(\vec{r}) d\vec{r}$$ If the wavefunction $\phi^{*}_i(\vec{r})$ has a definite parity(assumption 1), then indeed this integral is $0$. In case of a spherically symmetric potential with no interaction between electrons in the atom, assumption 1 indeed holds. However, in the presence of interaction between electrons, I am not so sure if it will hold true! Am I thinking about it the right way? Is there a way to prove this without assumption 1? Or is the assumption 1 always true?


MWE  \documentclass[a4paper,11pt]{report} \begin{document} $0\!\!\!/$ \end{document}   Hi, I will use zero but its inside slash.    Is it possible?  SOLVE:  It is work for me.  Related to:    \newcommand*{\pmzeroslash}{% \nfss@text{% \sbox0{0}% \sbox2{\bf\tiny{/}}% % <----- added the \bf\tiny{/} \sbox4{%   \raise\dimexpr((\ht0-\dp0)-(\ht2-\dp2))/2\relax\copy2 % }% \ooalign{%   \hfill\copy4 \hfill\cr   \hfill0\hfill\cr }% \vphantom{0\copy4 }% correct overall height and depth of the symbol }% } \makeatother     But it is must be corrected by you.

In TeX, how is computing zero sign written with slanted vertical line on it?


What does this long listing mean?   $> ls -l developer.haml   -rw-rwSr-- 1 humon apache ......  I know what a usual listing means and I know all about what it means to be read 'r', write 'w', and executable 'x'.  But what is 'S'?

When I ls -la, it prints many attributes. Something like this:  -rwSrwSr-- 1 www-data www-data   45 2012-01-04 05:17 README   Shamefully, I have to confess I don't know the exact meaning of each attributes. For example, what's the meaning of big S in the string -rwSrwSr--? What's the following 1? I know others roughly.


I am working at some problem related to non abelian exterior square $G\wedge G$ of a finite abelian group $G$. My question is that:     Is there any abelian group whose Schur multiplier is $\mathbb{Z}_p\times \mathbb{Z}_p$.   It is well known that Schur multiplier of $\mathbb{Z}_p\times \mathbb{Z}_p$ is $\mathbb{Z}_p$ and Schur multiplier of $\mathbb{Z}_p\times \mathbb{Z}_p\times \mathbb{Z}_p$ is $\mathbb{Z}_p\times \mathbb{Z}_p\times \mathbb{Z}_p$ itself. Then for which abelian group $G$, $M(G)$ will be isomorphic to $\mathbb{Z}_p\times \mathbb{Z}_p$?

Let $G$ be an abelian group such that the Schur multiplier $M(G)=\mathbb{Z}_p\times \mathbb{Z}_p$.     Can we say that $G$ has a subgroup isomorphic to $\mathbb{Z}_p\times \mathbb{Z}_p.$   I have seen in many groups this relation holds, what can we say in general? I don't know that how to prove this or contradict. Please help me.


I've written a simple C++ macro for use with the CERN ROOT data analysis framework. It takes in a data file (essentially a spreadsheet) with day, hour, minute, second, and sub-second columns. My goal here is to convert that data into a file of timestamps, in seconds. Everything works fine up to adding the sub seconds. For some reason, it seems to be rounding the result. For example, one timestamp is: 804267 + 0.5606663227081298828125 = 804267.5625 Another is: 155034 + 0.0958281949540391919293 = 155034 ROOT::RDataFrame d("N", "mydata1.root"); TFile *rfout = new TFile("./mydata2.root", "recreate"); TNtuple *N = new TNtuple("N","N","TIMESTAMP");  vector<float> timestamp; int i;  d.Foreach([&](float day){timestamp.push_back(day*86400.00);},{"day"}); d.Foreach([&](float hr){timestamp.at(i) = timestamp.at(i)+(hr*3600);i++;},{"hr"}); i=0; d.Foreach([&](float min){timestamp.at(i) = timestamp.at(i)+(min*60);i++;},{"min"}); i=0; d.Foreach([&](float sec){timestamp.at(i) = timestamp.at(i)+sec;i++;},{"sec"});  i=0; float j; d.Foreach([&](float sub){     while(sub > 1){         sub = sub/10;     }     j = sub + timestamp.at(i);     N->Fill(j);     std::cout << std::setprecision(100) << j << " " << sub <<std::endl;     i++; },{"subsecond"});  rfout->Write(); rfout->Close(); abort();  }`

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


Dicas para instalar skype no 64bits  Gostaria de instalar o skype 64bits e inicializá-lo junto com o sistema.  Além disto gostaria de deixar links para fazer ligações com atalhos visíveis com imagem  Machine-translation to English:     Tips to install skype on 64bit      I would like to install skype 64bit and initialize it with the system. In addition you want to make links to make calls with visible shortcuts with image.

I want to install Skype, but I can't locate it in Software Center or by using Synaptic Package Manager. Can anyone help me?


I know how to create a simple header:

My Website

   then in the css:  #footer { bottom: 0px; }   This code makes a footer be at the bottom of the page. What I want to do is make a footer that no matter how far up the page you are, it is displayed. For example, if I scroll right to the top of the page, my footer is shown at the bottom of the screen. No matter where I scroll to, the footer will be pinned to the bottom section of my screen. Thanks for the help.

I have a simple 2-column layout with a footer that clears both the right and left div in my markup.  My problem is that I can't get the footer to stay at the bottom of the page in all browsers.  It works if the content pushes the footer down, but that's not always the case.


Hi I have a table StudentNote with three fields 'StudentID','Notes','Date'.i have the following values    Now my requirement is ,i wanted to group the above table on StudentID  and Concatenate Note and Date Fields like    How can i write a sql to achieve this.  Thanks in advance

I'm trying to migrate a MySQL-based app over to Microsoft SQL Server 2005 (not by choice, but that's life).  In the original app, we used almost entirely ANSI-SQL compliant statements, with one significant exception -- we used MySQL's group_concat function fairly frequently.  group_concat, by the way, does this: given a table of, say, employee names and projects...  SELECT empName, projID FROM project_members;   returns:  ANDY   |  A100 ANDY   |  B391 ANDY   |  X010 TOM    |  A100 TOM    |  A510   ... and here's what you get with group_concat:  SELECT      empName, group_concat(projID SEPARATOR ' / ')  FROM      project_members  GROUP BY      empName;   returns:  ANDY   |  A100 / B391 / X010 TOM    |  A100 / A510   So what I'd like to know is: Is it possible to write, say, a user-defined function in SQL Server which emulates the functionality of group_concat?   I have almost no experience using UDFs, stored procedures, or anything like that, just straight-up SQL, so please err on the side of too much explanation :)


I'm struggling with this text book question    "Suppose $d$ is a Gaussian random variable with zero mean and unit variance. What is the probability density function of: $E$ = $d^2$?    Hint: Since the sign of d gets lost when it is squared, you can assume that p(d) is one-sided, that is, defined for only $d \geq 0$ and with twice the amplitude of the usual Gaussian."  Intuitively this is the way I would attempt it:  if $E=d^2$ then $d=\sqrt{E}$ (considering only when d is positive),  then substituting this into the equation for the normal distribution $2*N(1,0)$ returns: $\large{ \frac{2}{(\sqrt(2*\pi))}\exp{(-x/2)}}$  Taking the derivative of this would give me p(d). This sort of feels right since the derivative will be negative everywhere and tends to zero.   If some one could shed some light on the concepts here it would be greatly appreciated I don't have much if any experience with probability (or latex for that matter).  Thanks if advance!

How can we derive the chi-squared probability density function (pdf) using the pdf of normal distribution?  I mean, I need to show that   $$f(x)=\frac{1}{2^{r/2}\Gamma(r/2)}x^{r/2-1}e^{-x/2} \>, \qquad x > 0\>.$$


In C, if we declare an array, we can use sizeof() to get the length of the array. If I get a pointer, sizeof() will return the size of pointer to me, so how I can get the size of array pointed by the pointer or how to set the pointer to the last position? I know char * can use strlen, what about other type?  Thanks

First off, here is some code:  int main()  {     int days[] = {1,2,3,4,5};     int *ptr = days;     printf("%u\n", sizeof(days));     printf("%u\n", sizeof(ptr));      return 0; }   Is there a way to find out the size of the array that ptr is pointing to (instead of just giving its size, which is four bytes on a 32-bit system)?


I have a problems to use properties between two classes in C++. I created two classes: Board and Player.  In the Board class I have this function:  Decision makeMove(Move *move, Player::Side side); and I need to pass as a parameter a variable of this type: enum Side{BLACK,WHITE}; Side side; which is in the Player class below the file.  I add the errors:  Engine.h:55:35: error: ‘Player’ has not been declared      Decision makeMove(Move *move, Player::Side side);                                    ^~~~~~ Engine.h:55:48: error: expected ‘,’ or ‘...’ before ‘side’      Decision makeMove(Move *move, Player::Side side);                                                 ^~~~ Engine.h:56:36: error: ‘Player’ has not been declared      vector <Move*>getAllValidMoves(Player::Side side);                                     ^~~~~~ Engine.h:56:49: error: expected ‘,’ or ‘...’ before ‘side’      vector <Move*>getAllValidMoves(Player::Side side);                                                  ^~~~   These are the Board and Player classes:  class Board { private:     enum Type {EMPTY, WHITE, BLACK, WHITE_KING, BLACK_KING};     vector<Type>cell;     vector<vector<Type>>board;     int numWhiteNormalPieces;     int numBlackNormalPieces;     int numBlackKingPieces;     int numWhiteKingPieces; public:     enum Decision {COMPLETED,FAILED_MOVING_INVALID_PIECE,FAILED_INVALID_DESTINATION,ADDITIONAL_MOVE,GAME_ENDED}; public:     Board();     Board(vector<vector<Type>>board);           Type getPiece(int row, int col);     Type getPiece(Point *point);     vector<vector<Type>>getBoard();     int getNumWhitePieces();     int getNumBlackPieces();     int getNumWhiteKingPieces();     int getNumBlackKingPieces();     int getNumWhiteNormalPieces();     int getNumBlackNormalPieces();     Decision makeMove(Move *move, Player::Side side);     vector <Move*>getAllValidMoves(Player::Side side);     // Point* findMidSquare(Move *move);     // bool isMovingOwnPiece(int row, int col, Player::Side side);     // vector <Move*>getValidMoves(int row, int col, Player::Side side);     // vector <Move*>getValidSkipMoves(int row, int col, Player::Side side);     // bool isOpponentPiece(Player::Side current, Type opponentPiece);     Board clone();     // bool contains(vector<Move*> possibleMoves,Move *move); private:      void setUpBoard();     void setUpTestBoard();     void populateEmptyOnBoard();   }; class Player { public:     string name;           enum Side{BLACK,WHITE};     Side side;     Player(string name, Side side);     Player(Side side);     Board::Decision makeMove(Move *m, Board b);     Board::Decision makeRandomMove(Board b);     string toString();       };   I need to be able to access the properties of the classes regardless of the order in which they are located in the file. (Like Java or C#)

I am looking for the definition of when I am allowed to do forward declaration of a class in another class's header file:  Am I allowed to do it for a base class, for a class held as a member, for a class passed to member function by reference, etc. ?


If I add a longtable or longtabu environment directly after a \section command a very big space is set between the header and the table. In case of the second example where some text is in between these two elements, that's no problem. But in the other cases the big space bothers me. Anyhow, with a regular tabular-environment this problem does not occur.  I already tried to use things like \raggedbottom. A \vspace{-1em} solves the problem, but that seems like a very sloppy solution to me.  Can anyone tell me how to get rid of that space?  EDIT: After another round of extensive search and studying the log file, I was able to figure it out: the space is specified by \LTpre and adding \setlength{\LTpre}{0pt} resulted in the desired output. Afterwards I found a previous question about the same problem:   MWE:    \documentclass[10pt]{scrartcl} \usepackage{longtable} \usepackage{tabu}   \begin{document} \section{First section with longtabu} \begin{longtabu} {rX}     cell1-1 & cell1-2\\\\     cell2-1 & cell2-2\\\\ \end{longtabu}   \section{Second section with longtabu} Some text prior to the table \begin{longtabu} {rX}     cell1-1 & cell1-2\\\\     cell2-1 & cell2-2\\\\ \end{longtabu}   \section{Another section with longtable} \begin{longtable}[l]{rl}     cell1-1 & cell1-2\\\\     cell2-1 & cell2-2\\\\ \end{longtable}   \section{Last section with tabular} \begin{tabular}{rl}     cell1-1 & cell1-2\\\\     cell2-1 & cell2-2\\\\ \end{tabular}   \end{document}

I am using longtable instead of tabular environment and noticed that it puts some additional whitespace at the top and at the bottom of the table. Is there some way to remove it (something less hacky than \vskip -\baselineskip before the table)?  Small piece of code for illustration:  \documentclass[12pt]{book} \usepackage{longtable}  \begin{document}  Linelineline  \begin{longtable}{l l} cell1 & cell2 \end{longtable}  Linelineline  \begin{tabular}{l l} cell1 & cell2 \end{tabular}  Linelineline  \end{document}   And that's what I am getting:    Common tabular environment does not have any additional margins, but longtable does.


Where is the complete, canonical list of magic links to the Help Center? The  seems quite short.

Ask yourself how many times you typed the following in a comment:  [meta](https://meta.stackexchange.com)   Me, personally, I'm sick of it. Can we have some data.stackexchange.com-style "magic links" in comments?  (inn~iff)


I have made some edges on this face, but want a quick way to apply the same vertices/edges on the opposite face. I have tried extruding inwards and through the mesh and have been clicking buttons to see if I can stumble across this, but no success so far. I have researched a bit and understand I could look into the boolean modifier some more and get the result I want, but if there any trick to achieve this with my inward extruding? It seems like this would be a fast method if possible. Or some sort of copy&paste vertices to a face?

In Sketchup, if have a shape that I want to cut a section out of, I can use the pencil tool to draw an area and then extrude the area down (using the push / pull tool). The outside edges are removed:     In Blender, I'm trying to do the same thing but it isn't working in the same way. I used the Knife tool to draw the area I want to remove and extrude down, but the outer edges are still remaining:     I haven't yet figured out a way to manipulate the mesh to get the desired result after this extrusion.  Is there a faster / better way to do this in Blender? Is there a tool that behaves similarly to Sketchup's push / pull tool?


Yesterday my computer stayed open all night and then when battery was empty it turned off. Its normal for my computer. But when at morning I turned it on, there wasn't login screen. It crashed everytime. After reinstalling Xorg, lightdm, ubuntu-desktop and doing some other things login screen appeared. But after login I can see only my desktop and System crashed warnings that appears in ubuntu from times when unity came. In guest mode everything works well. I created new user and assigned him as admin (All privilages) and logged in to his account. Now I'm writing from that user account and everything works very well. So, How I can restore my main account?  Selecting Unity Plugin from ccsm not worked (login to user account, go to tty1 and entering export DISPLAY=:0 and then ccsm + switching to F7). + reinstalled ccsm Half of space in SSD is empty, so its not memory problem. Wallpaper in its place :D

When I login, nothing happens.   I am presented with my desktop wallpaper.    No Dash, no Launcher, nothing.


I bought some fresh champignons from the supermarket. What's the proper way to clean them before cooking (or rather frying) them?  Should I just wash them with cold water? Should I peel them?

Some people say cleaning with water removes the taste from mushrooms.   But if I don't use water the mushrooms will carry a lot of dust.  Do you have any techniques for cleaning mushroom so I don't eat crap but don't spoil the mushroom?


I want know model and characteristics of my wifi card. How to do it in ubuntu?

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


I want to set a box register so I use \setbox180=\hbox{TEST} under the function tex.print and then use directlua to get its width. So This programme: \documentclass{article} \usepackage{luacode}  \begin{document}  \directlua{     function w(obj)         if obj == nil then             return "nil"         else             return obj.width         end     end }  I make three box that have widthes in% \setbox200=\hbox{TEST AND TEST}% \directlua{     tex.print("\string\\setbox180=\string\\hbox{AB}")     tex.print(w(tex.box[180]).." sp and "..w(tex.box[200]).."sp") }.  I make two box that have widthes in \directlua{     tex.print(w(tex.box[180]).." sp and "..w(tex.box[200]).."sp") }.  \end{document}  But the output is: I make three box that have widthes in nil sp and 5434245sp. I make two box that have widthes in 955515 sp and 5434245sp.  that means that the box in the directlua cannot be made in time but after when it exits the command. How can I make it? Is there other ways to assign the box register? Thank you a lot. (I edit it to make it run.  looks have the answer that I want)

The usual way to interleave Lua and TeX in generating documents is by invoking Lua from Tex through the \directlua facility and generate Tex from Lua using tex.print().  For example, consider the Plain LuaTeX:  \directlua{     es=""; someluatex = function () tex.everypar="PAR!" end     tex.print("one", es, "two")     someluatex()     tex.print("three", es, "four") } five\bye   Looking at the document LuaTeX generates for that input, we see that someluatex() is run before the Tex backend does anything with the output: the PAR!s will be inserted before "one" and "two", as well as after "three".  Is there best practice for ensuring that TeX code issued by some Lua code is issued before some other LuaTeX code?  There are several ways to do this: with some code I am working with I am trying the following scheme:   Wrap the code executed by the \directlua in a coroutine, call it myco; At the point we want to ensure the Tex so far tex.print-ed is executed, use:  tex.print("\\directlua{coroutine.resume(myco)}") coroutine.yield()  If everything is in order, the Lua will resume after the Tex is processed.   This is not ideal, however: we must ensure that the TeX backend is in the right state to understand the \directlua command, which may not always be the case.  Is there a better way to achieve this?


I am making some slides for a presentation. I am copying parts of a texfile which I made earlier. The \emph{} command is not working in beamer (even though it is working in my original texfile).  For example, this code which is working in the original file is not working in beamer:  \begin{theorem} {  |\emph{Gal}(L|K)|=[F:K] } \end{theorem}   But this is working:  \begin{theorem} {  |Gal(L|K)|=[F:K] } \end{theorem}   But the 'Gal' is italic  (I want it to be straight).

Lets say I have something like:   \[ Let x = number of cats \]   (This is a contrived example, but pretend we are actually inside a long align environment block...) "Let" and "number of cats" need to be written like normal text, while x= needs to be math type text.  I've seen this:  \[ \mbox{Let } x = \mbox{ number of cats} \]   and this:  \[ \textrm{Let } x = \textrm{ number of cats} \]   They seem to produce equivalent output, but I'm not sure which is the "correct" one. Also, they are not ideal in that the extra space needs to be placed inside the text mode block, otherwise it is ignored as math mode and butts the text right up against the math.  Ideally there would be some command which allowed embedding text into an equation, which correctly inserted leading and trailing space around the block as required without adding space inside the text block.  How does one do that "correctly"?


Please, can you help me to find the limit of the example  where n goes to infinity ?

Task is to find $$\prod_{k=0}^{\infty} \cos(x \cdot 2^{-k}).$$  I tried to make it with double-angle formula: $\prod_{k=0}^{\infty} \cos(x \cdot 2^{-k}) = \frac{\prod_{k=0}^\infty \sin(x2^{1-k})}{2^\infty \cdot \prod_{k=0}^\infty \sin(x \cdot 2^{-k})} $ I'm sad to admit, that I'm stuck with that one. So I would appreciate any help, such as pointing the right direction.


I'm trying to print plain html from javascript and can't figured out how to do so.  Example:  $('#elem').html('This is a normal string'); // --> This is a normal string  $('#elem').html('This contains html') //Current-> This contains html   (contains is bold) //Wanted-> This contains html   I want to do this because I'm working with comments written by users and don't want html tags to apply if they put some in their comments. But for other reasons I need to see the tags.  Thanks for your help!

Does anyone know of an easy way to escape HTML from strings in ?  I need to be able to pass an arbitrary string and have it properly escaped for display in an HTML page (preventing JavaScript/HTML injection attacks).  I'm sure it's possible to extend jQuery to do this, but I don't know enough about the framework at the moment to accomplish this.


How do I get to the VBA editor in MS Word 2013? All my searches return information on Excel.

I've seen posts showing answers which use VBA () code/macros, however, I've also noted additional comments afterwards about how to use the VBA (how to implement and execute it). I'm hoping this will help just to get the code executed.   So, my question is:  I have some VBA code. How do I add VBA to my MS Excel or Word or Outlook project?


Related-key attacks can break AES-192 and AES-256 with complexities 2^176 and 2^99.5, respectively.   Quote from:   It seems that more bits/key length doesn't necessarily mean more (confidence in) security (At least above a certain minimum key length).

From a paper via Schneier on Security's  (emphasis mine):  In the case of AES-128, there is no known attack which is faster than the 2128 complexity of exhaustive search. However, AES-192 and AES-256 were recently shown to be breakable by attacks which require 2176 and 2119 time, respectively. While these complexities are much faster than exhaustive search, they are completely non-practical, and do not seem to pose any real threat to the security of AES-based systems. In this paper we describe several attacks which can break with practical complexity variants of AES-256 whose number of rounds are comparable to that of AES-128.  Is the implication here that AES-192 is stronger than AES-256? If so, in simple terms, how is that possible?  The attack exploits the fact that the key schedule for 256-bit version is pretty lousy -- something we pointed out in our 2000 paper -- but doesn't extend to AES with a 128-bit key.  Again, in simple terms, what does that mean? In practice, does this mean I should drop AES-256 in favor of its 128-bit counterpart, like Schneier recommends in the comments?  That being said, the key schedule for AES-256 is very poor. I would recommend that people use AES-128 and not AES-256.


I've gotten used to the "Open In Terminal" option when right clicking in Nautilus.  I used it a lot in 12.04, but it seems to have disappeared in 14.04.  $ sudo apt-get update [...] $ sudo apt-get install nautilus-open-terminal Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package nautilus-open-terminal $ sudo apt-get install nautilus-actions Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package nautilus-actions   How do I get this feature in 14.04?

I am working on Ubuntu 12.04 64bit.  I want to add "Open terminal here" to Nautilus context or right-click menu but it tries to download 32bit version from Internet.


is there a function in Python which can find out how much memory takes a certain attribute or a variable?   EXAMPLE:   a='ThisTakesSeveralBitesOfMemory' print(a.memoryTaken())  >> 20 b

I want to know how to get size of objects like a string, integer, etc. in Python.  Related question:   I am using an XML file which contains size fields that specify the size of value. I must parse this XML and do my coding. When I want to change the value of a particular field, I will check the size field of that value. Here I want to compare whether the new value that I'm gong to enter is of the same size as in XML. I need to check the size of new value. In case of a string I can say its the length. But in case of int, float, etc. I am confused.


This question comes from a .  One user asked a question:     Given $p=0.05$ in one study, what is the likelihood of $p \ge 0.05$ if the same study was repeated under the exact same condition in the same population?   With a set of possible answers: 5%, 10%, 50%, 95% and 99%.    The most common and most accepted answer seemed to be that you don't have enough information to tell.  However this seems wrong. My reasoning is the following:  0.05 is an arbitrary p-value. So the question really asks - when you obtain a p-value, what's the probability that the second p-value will be greater than the first one? And when rephrased that way 50% looks like an obvious answer.    The question is - what is the correct answer and how to derive it in a more rigorous way?

I have been reading Geoff Cumming's 2008 paper  [~200 citations in Google Scholar] -- and  am confused by one of its central claims. This is one in the series of papers where Cumming argues against $p$-values and in favour of confidence intervals; my question, however, is not about this debate and only concerns one specific claim about $p$-values.   Let me quote from the abstract:     This article shows that, if an initial   experiment results in two-tailed $p= .05$, there is an $80\%$   chance the one-tailed $p$-value from a replication will fall in   the interval $(.00008, .44)$, a $10\%$ chance that $p < .00008$,   and fully a $10\%$ chance that $p > .44$. Remarkably, the   interval—termed a $p$ interval—is this wide however large   the sample size.   Cumming claims that this "$p$ interval", and in fact the whole distribution of $p$-values that one would obtain when replicating the original experiment (with the same fixed sample size), depend only on the original $p$-value $p_\mathrm{obt}$ and do not depend on the true effect size, power, sample size, or anything else:     [...] the probability distribution of $p$ can be derived without   knowing or assuming a value for $\delta$ (or power). [...] We do not assume any prior knowledge   about $\delta$, and we use only the information $M_\mathrm{diff}$ [observed between-group difference] gives about $\delta$ as   the basis for the calculation for a given $p_\mathrm{obt}$ of the distribution of   $p$ and of $p$ intervals.      $\quad\quad\quad$    I am confused by this because to me it seems that the distribution of $p$-values strongly depends on power, whereas the original $p_\mathrm{obt}$ on its own does not give any information about it. It might be that the true effect size is $\delta=0$ and then the distribution is uniform; or maybe the true effect size is huge and then we should expect mostly very small $p$-values. Of course one can start with assuming some prior over possible effect sizes and integrate over it, but Cumming seems to claim that this is not what he is doing.  Question: What exactly is going on here?    Note that this topic is related to this question:  with an excellent answer by @whuber. Cumming has a paper on this topic to:  -- but that one is clear and unproblematic.  I also note that Cumming's claim is repeated several times in the 2015 Nature Methods paper  that some of you might have come across (it already has ~100 citations in Google Scholar):     [...] there will be substantial variation in the $P$ value of repeated experiments. In reality, experiments are rarely repeated; we do not know how different the next $P$ might be. But it is likely that it could be very different. For example, regardless of the statistical power of an experiment, if a single replicate returns a $P$ value of $0.05$, there is an $80\%$ chance that a repeat experiment would return a $P$ value between $0$ and $0.44$ (and a $20\%$ change [sic] that $P$ would be even larger).   (Note, by the way, how, irrespective of whether Cumming's statement is correct or not, Nature Methods paper quotes it inaccurately: according to Cumming, it's only $10\%$ probability above $0.44$. And yes, the paper does say "20% change". Pfff.)


I'm using a website -  - to teach my child how to count American coins, amongst other activities. The site also has .  One thing that doesn't seem right - and perhaps I'm missing something here - is their conjugation of the response to "How much money is there?"  Here is an example of what I'm referring to:   I've never encountered the question where there's only a single penny (1¢) displayed. Thus there are always several cents. I would have thought that the answer should be conjugated with the plural conjugation.  Is the correct answer to "How much money is there?" (in the case of the three 1¢ coins and the 5¢ coin shown in the image) "There are eight cents."? Or am I missing something?  EDITED: There might be a previous question on this site whose answer would be applicable to this OP's question, but neither of those two threads cited to mark this OP's thread as a "duplicate" has an answer for the OP's question: the 1st "duplicate" thread discusses "A total of X" and its number when it is a subject, the 2nd thread involves a possible subject-dependent inversion with a measurement phrase with a sentence beginning with "Here". This OP's specific question deals with numerous topics, and its sentence also involves a leading "There", which ends up making the issue even more involved. Please get the duplicate mark off this thread so I can give the OP an answer. -- F.E.

I read the following sentence on YouTube and initially thought it was grammatically incorrect:     Here are 10 minutes of the movie Black Hawk Down!   I thought "are" should have been "is" but then I realized minutes is plural so the plural form, are, is used correctly. I also thought how most people would naturally say "Here is ten dollars in change" but is the use of the singular form, is, correct since dollars is plural?   Am I misunderstanding a rule?


I am using SharePoint designer 2013. I have a task and I would like to assign this task to some SharePoint user or group. I click on "people/groups from sharepoint site" and than SharePoint designer crashes.

SharePoint Designer 2013 is stopping unexpectedly when click to People/Groups from SharePoint Site.  As an example,  Send an Email action and I want to send the email to a SharePoint Site Collection User Group but i cant select it.   I installed SharePoint Designer 2013 64 bit on Windows Server 2012. I run SharePoint Designer 2013 under administrator.  In my workflow email action I click on People/Groups from SharePoint Site.   And now you see SharePoint Designer 2013 64 bit crashes.


I have blown up the brother of steel and I cant do arcades quest is their any other ways of getting power armour traning

I've found some power armor, but I can't use it yet without training. I assumed that the Brotherhood of Steel would train me, if they like me enough.  I've completed the Brotherhood of Steel quest series for the overseer (the original one, I did not overthrow him), but I did not get any Power Armor training. What do I have to do to be able to wear Power Armor?


I have a Python script which reads the Safari browser history by opening ~/Library/Safari/History.db and parsing the SQLite database.  Unfortunately, on some Macs, the System Integrity Protection  access to the ~/Library/ directory. It gives a Operation not permitted error. Users can manually go to this directory and copy the History.db file to the Desktop, and get full access to the database. But is there a way to access ~/Library/Safari/History.db using only Python or Shell scripts and without the user having to disable SIP, reboot or change any complicated configuration?

After upgrading to 10.14, I am unable to access the ~/Library/Mail directory, either as the user or as root.  [~/Library/Mail 14:01:42]$ ls -l ls: .: Operation not permitted [~/Library/Mail 14:04:11]$   So that's pretty weird. It happens even if I am root.  No system flags are set on the directory.  So presumably, this is another system integrity or sandboxing thing. Unfortunately, I have code that wants to access the sqlite3 database inside the ~/Library/Mail directory.  So how do I grant my software access to my mail?  This seems to be related to the 10.14 privacy protections.


I am trying to use Appendix for some proofs in the thesis. The appendix looks like this:  \chapter{Proofs for Chapter ABC}  \section{Proof of \thmref{thm:some_theorem}}   While the "Proofs for Chapter ABC" shows up correctly, the proof section seems to mess up the appendix header (see image). I double checked and the reference is correct. Any reason why it might be the case ?

I am currently writing a manuscript using \documentclass{book}.  I would like to devote one of the chapters in the manuscript to a proof of an earlier result.  I have named the Chapter:  \chapter{Proof of Theorem \ref{Theorem1}}   and the actual chapter itself (including the chapter name in the table of contents and the chapter title) looks fine.  I have include an image below.    However, in the even numbered pages of the chapter at the top right-hand side of the page is an all-capitalized version of the chapter title, and the reference there does not seem to go through:     I have compiled the code multiple times, so I am sure it is not a compiling error.  Is there any way I can keep the Theorem reference in the title and have it properly show up at the top of the even pages of the chapter?


Let $\{B_i\}$ be iid Bernoulli$(\frac{1}{2})$ random variables and consider the number in $[0,1]$ whose binary expansion corresponds to the infinite sequence $\{B_i\}_{i=1}^{\infty}$, i.e. the number   \begin{align*} \sum_{n=1}^{\infty} 2^{-n} B_n. \end{align*}   Let $X_n$ be the $n^{th}$ partial sum, i.e.   \begin{align*} \sum_{k=1}^{n} 2^{-k}B_k. \end{align*}   Show that $X_n$ converges in distribution to a continuous Uniform$[0,1]$ random variable.   To show convergence in distribution, we can show that the CDF's of the $\{X_n\}$, which we can denote $\{F_n\}$, converge to the CDF of Uniform$[0,1]$, which is $F(x) = x$.  I tried to compute $F_n(x)$, which is \begin{align*} P(X_n \leq x) &= P(\sum_{k=1}^n 2^{-k}B_k \leq x) \\ &= P(\sum_{k=1}^n 2^{n-k} B_k \leq 2^n x)  \end{align*} I don't know how to simplify this expression.  Another approach I took was to compute the characteristic function of $X_n$ and show that it converges to the characteristic function of the uniform$[0,1]$ random variable. After some calculations, this amounted to showing that \begin{align*} 2^{-n} \prod_{k=1}^{n} (1 + e^{2^{-k}it}) \to \frac{e^{it} - 1}{it} \end{align*}  for each $t \in \mathbb{R}$. Again I am stuck here. Can anyone find a slick way to prove this intuitive result?

I know that the finite sum of Bernoulli i.i.d. random variables is a binomial distribution, but what is the distribution of $$\lim_{n \to \infty}\sum_{k=1}^{n} \frac{x_k}{2^k}$$ where $x_k$ is a Bernoulli random variable with parameter $\frac12$?


In physics as we understand it today,  can an electron be made to move faster than the speed of light in vacuum?  Whether by natural causes, or man-made means?

In Lawrence Krauss's book "A Universe From Nothing"; page 62 mentions that for a very short period of time, so small it cannot be measured, an electron due to the uncertainty principle can appear to be moving faster than the speed of light; another way to interpret this is that it's moving back in time.  It further proceeds to say that Feynman used this to suggest that what happens was that an electron and a positron were created, the positron will annihilate with the original electron while the new electron will continue on its merry way.  It finally says that this behavior is confirmed by the spectrum of the Hydrogen atom, among other things.   My question is, how does this not violate special relativity? How is it possible to get an electron moving faster than light? And how did we say it's okay to assume that and simply consider it moving back in time?   (Note, I do not have a degree in Physics so please take that into account while explaining the basic idea).


We have 3 HDDs, same capacity (2TB). Which RAID level allows me to use 4TB of space and in case any of the 3 HDDs fails (but only one) I have all the 4TB untouched and safe?

This is a  about RAID levels.    What are:   the RAID levels typically used (including the RAID-Z family)?  deployments are they commonly found in? benefits and pitfalls of each?


I need to add a path in a bash script, but it may be executed several times:  export PATH=${OPENSHIFT_HOMEDIR}/app-root/runtime/bin/:${PATH}   I don't want that path to be added over and over. How can I add it if it is not in $PATH yet?

I have the following code that's source-d by my .shellrc  PATH="${PATH}:${HOME}/perl5/bin" PATH="${PATH}:${HOME}/.bin" export PATH   but if I make changes to other code and then source this file, my path continues to get longer and longer with each source, each time appending these when they're already there. What can I do to prevent this?


problem  Many sites (like Wikipedia) offer versions of their pages made for fullscreen-devices, and for each of those pages they offer a second version with the same content, but with a special reduced layout for mobile devices with a smaller screen.  There are many techniques to create and deliver those versions, one of them is to create different URIs (URI = Unique Resource Identifier = string starting with “http://”) for the same content, which will deliver different styles for the same content.  When users with mobile devices navigate to one of those sites that are not optimized for them (like ) they will be redirected to the version for mobile devices, which is in this example is  (see the “m.” between “en.” and “wikipedia”?)  But the reverse behavior will not occur. When you follow a link to a version for mobile devices, you always get the mobile version, even when you use a 27" desktop monitor, which looks pretty weird.  When ever users of mobile devices post links here on StackExchange, they will post a link to the version for mobile devices, because they have no other link. But this is suboptimal for users of fullscreen devices.  solution = feature request  Therefor I suggest, to automatically replace URIs that link to mobile-only pages by their all-device-counterpart (which means for links to wikipedia: delete the “m.” that precedes “wikipedia.org”) as soon as the link is posted. Because then everybody who follows this link is happy:    the widescreen-user gets the widescreen version the mobile user will be redirected to the version that is optimized for him. nobody needs to worry about if he/she posted the correct link.

This issue came up  on Worldbuilding:  If somebody is on a mobile device and wants to cite, e.g., Wikipedia, they usually insert a link to the  instead of the regular one. This is annoying for users with immobile devices, while it poses no benefit to users with mobile devices, who should get redirected to the mobile Wikipedia anyway.  I thus request that links to mobile versions of popular web pages are automatically converted to regular ones either in the post source or when rendering the page.  As  mentioned, an author may sometimes explicitly want to link to the mobile version of a webpage but as far as I can tell, this should be the exception. At least for Wikipedia, an automatic conversion would do much more good than harm, because it is very often cited as a resource. For example, until recently, there were at least 82 posts with links to the mobile Wikipedia on Worldbuilding alone (going by  edit spree to remove them)


I want to delete all data from SQLite table when I click the button then It create pdf file and then delete the data from the table I have created pdf file but not able to delete to the complete record it show error //Dbhandler code   public void deleteAll() {     SQLiteDatabase db = this.getWritableDatabase();     db.execSQL("delete from "+ TABLE_Users);     db.close(); } //main activity code   document.close();  if (myPath.exists())     myPath.delete();  openPdf(path); // here I want to call the delete all user  dbHandler.deleteAll();          logs  2021-04-08 08:22:00.213 13776-13803/com.j.usamaelectronics E/EGL_adreno:   CreateContext rcMajorVersion:3, minorVersion:0  2021-04-08 08:22:00.288 13776-13803/com.j.usamaelectronics E/EGL_adreno: tid   13803: eglSurfaceAttrib(1582): error 0x3009 (EGL_BAD_MATCH)    2021-04-08 08:22:09.227 13776-13803/com.j.usamaelectronics E/EGL_adreno:    tid 13803: eglSurfaceAttrib(1582): error 0x3009 (EGL_BAD_MATCH)   2021-04-08 08:45:31.035 13776-13776/com.j.usamaelectronics    E/AndroidRuntime: FATAL EXCEPTION: main  Process: com.j.usamaelectronics, PID: 13776  java.lang.NullPointerException: Attempt to invoke virtual method 'void   com.j.usamaelectronics.DbHandler.deleteAll()' on a null object reference at com.j.usamaelectronics.ShowallsaleitemActivity.createPdf(ShowallsaleitemActivity.java:197) at com.j.usamaelectronics.ShowallsaleitemActivity.takeScreenShot(ShowallsaleitemActivity.java:163) at com.j.usamaelectronics.ShowallsaleitemActivity.access$000(ShowallsaleitemActivity.java:46) at com.j.usamaelectronics.ShowallsaleitemActivity$1.onClick(ShowallsaleitemActivity.java:107) at android.view.View.performClick(View.java:5637)

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


so I made this command to test for if a player has a $50 dollar check on my minecraft server so i can then link that up to a command that will clear the check and pay them. My issue is I can't seem to figure out how to add an enchant to the command. The checks are all enchanted with Unbreaking 10 but I can't seem to figure out how to add that constraint in the command. The command (so far) is:  /testfor @p {Inventory:[{id:"minecraft:paper",tag:{display:{Name:"$50 Check"}}}]}   If anyone would be willing to help me add an enchant constrain so players can't just use anvils to forge checks that would be awesome. (It is a 1.12.2 server btw)  EDIT This question has changed to combining my command   /testfor @p {Inventory:[{id:"minecraft:paper",tag:{display:{Name:"$50 Check"}}}]}    and the enchantment constraint, [{id:34s,lvl:10s}. If someone could help me I've searched to try to find how to do this but I really can't find a way that works.

What I have now is:  /testfor @a {SelectedItemSlot:0,Inventory:[{Slot:0b,id:"diamond_pickaxe"}]}   How can I use the /testfor command to test a specific slot for a specific item that is enchanted?


The most I have ever done with software is clicking the download button for something like Adobe and then clicking through the installer. I am way over my head here. I am trying to download and use PGF and TikZ on my Windows 10 system, and I've followed instructions to download MiKTeX console and added PGF, TikZ, and xcolor to the root directory. I can use MiKTeX fine, but I don't know how to create diagrams. Please advise, and please use instructions that a dim-witted five-year-old could follow.  This is not my forte.

I feel intimidated in learning TikZ. I was wondering if there are some nice materials (or just your replies) at different level:   for providing big picture, which is important to beginners to not lose direction during learning. for comprehensive reference.   Examples are important, but only examples are not always clear for understanding the big picture and organization.


Question:   $\ $Prove or disprove that   $$\int_0^1\sin(\pi x)\,x^x\,(1-x)^{1-x}\ dx\ =\ \frac{e\pi}{4!}$$   The numerical integration by Matlab showed that $$\left|\ \int_0^1\sin(\pi x)\,x^x\,(1-x)^{1-x}\ dx\ - \ \frac{e\pi}{4!}\ \right|\ <\ 10^{-15}$$ which made me kind of believe that the equality holds.  Therefore, I tried to prove it by contour integration, integration by parts and all other methods I could come up with. However, it seems that none of them would work.  Could anyone help me with this question? Any hint will be much appreciated.

I've found  the following integral.  $$I = \int_{0}^{1}\sin{(\pi (1-x))}x^x(1-x)^{1-x}\,dx=\int_{0}^{1}\sin{(\pi x)}x^x(1-x)^{1-x}\,dx=\frac{\pi e}{24}$$  I've never seen it before and I also didn't find the evaluation on math.se. How could we verify it?  If it is a well-known integral, then could you give a reference?


I'm traveling to the US from Malaysia and I will be bringing my computer desktop and monitor. Will I face any issues with US customs?

I am moving from Malaysia to the US, and planning to bring my desktop computer with me. I plan to pack it in my checked-in luggage. Will the computer risk being damaged? Any precaution should I take to reduce this risk? Will there be any trouble with the airline or immigration about bringing computer?


I have some data that- in its raw form - represents group binomial data.Y vector is the probability of an event. Using logistic regression I get one set of parameter coefficients.   Turning the data into a longer form - Bernoulli format (i.e. Y vector is 1 or 0), I use logistic regression again and get a different set of parameter coefficients from before, why is this?

I want to perform logistic regression with the following binomial response and with $X_1$ and $X_2$ as my predictors.      I can present the same data as Bernoulli responses in the following format.    The logistic regression outputs for these 2 data sets are mostly the same.  The deviance residuals and AIC are different.  (The difference between the null deviance and the residual deviance is the same in both cases - 0.228.)  The following are the regression outputs from R. The data sets are called binom.data and bern.data.  Here is the binomial output.  Call: glm(formula = cbind(Successes, Trials - Successes) ~ X1 + X2,      family = binomial, data = binom.data)  Deviance Residuals:  [1]  0  0  0  Coefficients:             Estimate Std. Error z value Pr(>|z|) (Intercept)  -2.9649    21.6072  -0.137    0.891 X1Yes        -0.1897     2.5290  -0.075    0.940 X2            0.3596     1.9094   0.188    0.851  (Dispersion parameter for binomial family taken to be 1)  Null deviance:  2.2846e-01  on 2  degrees of freedom Residual deviance: -4.9328e-32  on 0  degrees of freedom AIC: 11.473  Number of Fisher Scoring iterations: 4   Here is the Bernoulli output.  Call: glm(formula = Success ~ X1 + X2, family = binomial, data = bern.data)  Deviance Residuals:      Min       1Q   Median       3Q      Max   -1.6651  -1.3537   0.7585   0.9281   1.0108    Coefficients:             Estimate Std. Error z value Pr(>|z|) (Intercept)  -2.9649    21.6072  -0.137    0.891 X1Yes        -0.1897     2.5290  -0.075    0.940 X2            0.3596     1.9094   0.188    0.851  (Dispersion parameter for binomial family taken to be 1)  Null deviance: 15.276  on 11  degrees of freedom Residual deviance: 15.048  on  9  degrees of freedom AIC: 21.048  Number of Fisher Scoring iterations: 4   My questions:   I can see that the point estimates and standard errors between the 2 approaches are equivalent in this particular case.  Is this equivalence true in general? How can the answer for Question #1 be justified mathematically?   Why are the deviance residuals and AIC different?


I have a questions for SEO experts. We have an international website catalogue translated into different languages. The cataloue also slightly changes results by user's country (enlisted pages support only users from certain countries and have localization only to certain languages). We have spanish, russian, turkish, slovak and english version. Which sollution do you consider best? 1. One domain for all versions. xxx.com/en, xxx.com/tr, xxx.com/es, xxx.com/ru 2. Domain per language xxx.com, xxx.es, xxx.tr, xxx.ru, xxx.sk 3. Or even domain per country xxx.es, xxx.cl, xxx.com.ve, xxx.com.mx, xxx.com.ar, etc.  Currently we have mix of 2. and 3. English domain has specific page for each bigger country (xxx.com/en-US, xxx.com/en-CA). Each page is correctly linked to others with link rel="alternate" hreflang="XY. Which sollution do you consider better for domain authority. Does rel="alternate" transfer authority in a desired way or you think that it's better to collect authority for only 1 domain?

When I set up a site in multiple languages, how should I set up my URLs for search engines and usability?  Let's say my site is www.example.com, and I'm translating into French and Spanish. What is best for usability and SEO?  Directory option:  http://www.example.com/sample.html http://www.example.com/fr/sample.html http://www.example.com/es/sample.html   Subdomain option:  http://www.example.com/sample.html http://fr.example.com/sample.html http://es.example.com/sample.html   Filename option:  http://www.example.com/sample.html http://www.example.com/sample.fr.html http://www.example.com/sample.es.html   Accept-Language header:  Or should I simply parse the  header and generate content server-side to suit that header?  Is there another way to do this? If the different language versions don't have different urls, what do I do about the search engines?    UPDATE 2011-12-06  Google has new recommendations for meta tags for explicitly pointing to other language content: .  UPDATE 2012-05-25  Related but not precisely:   UPDATE 2013-06-12  includes discussion of several URL schemes directly relevant to the question.


Busybox v1. 22. 1 (Ubuntu 1:1. 22. 0-19ubuntu2) built-in shell (ash) enter 'help' for a list of built-in commands.

When I turn my PC on, it asks me if I want to boot Ubuntu 16.04 or Windows 10. When I choose Ubuntu 16.04, it look like it is booting, but then it just show me this screen:  BusyBox v1.22.1 (Ubuntu 1:1.22.0-15ubuntu1) built-in shell (ash) Enter 'help' for a list of built-in commands  (initramfs)   I was installing Ubuntu by CD. First time, when was installation complete, the system was running without any problems, but when I turned my PC off (there wasn't any problems or messages during the shutdown) and then turned it on and choosed Ubuntu this happend.


I've been wanting to read Soul Eater for awhile, but I've already seen the anime. Supposedly it leaves off somewhere around Chapter 10-12, but I've not been able to find where it clearly leaves off.   Where does the anime stop in the manga?

From what I've heard, the anime version of Soul Eater was fairly faithful to the manga up to a certain point (excluding a few fillers). However, the ending of the anime was nothing like the manga (which is still ongoing), and in my view the end of the anime was its weakest point. I want to start reading the manga at the point where the two diverged.  What is the last manga chapter that was adapted in the anime, and what episode does that correspond to? Also, are there any chapters before that which I would have missed from the anime (especially those which have important plot points)?


I just installed QGIS 3.6. How can I update OpenLayers plugin? I tried to georeferenced Google Earth but I was not able to source Google OpenLayers plugins. I wish I can get a link to download.

I can't find OpenLayers Plugin to install in QGIS 3.6.  I want to open Google Earth in order to add coordinates and open satellite image to start mapping.


I am using kali linux 2.0 and i am connected to both ethernet and wifi at the same. Wifi (from TPlink router) has internet access and ethernet is used to configure mikrotik router. but i am facing problem while browsing internet. I need internet access and mikrotik access simultaneously.I am accessing mikrotik with winbox through wine. I have given manual ip:192.168.1.20/24 for lan and dhcp enable for wifi.

I have a debian machine with two interfaces, configured by dhcp:  allow-hotplug eth0 iface eth0 inet dhcp  allow-hotplug eth1 iface eth1 inet dhcp   On boot, a default route is added to eth1:  0.0.0.0         10.200.10.253   0.0.0.0         UG    0      0        0 eth1 10.0.2.0        0.0.0.0         255.255.255.0   U     0      0        0 eth0 10.200.10.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1   But I need the default route to be a gateway on eth0 instead.  Deleting the default route and running dhclient after boot works:  $ sudo route del default $ sudo dhclient -v eth0   I know I can put this on rc.local, but is there a more "clean" way to do it?  I can't use a static address.


In the Android project in which I'm working on now, object serialization is used for store the activation status. In it a Device object is created and all the data relevant to the activation are stored in it and the object is stored in a file on the memory. At this point the serialization comes to the scene and the object is serialized and stored in a file. So what is serialization, and what does that word mean actually? Is it a best practice regarding the security? Can't I store an object in a file directly?

What is meant by "object serialization"? Can you please explain it with some examples?


What is the correct way to write a question you would verbally ask in a higher tone of voice?     How is this possible?!   OR     How is this possible!?   The subtlety lies in the punctuation.  Thanks

We've all wanted to express certain questions, rhetorical or not, with annoyance, excitement, surprise, frustration and so on. What better way than with both a question mark (?) and an exclamation mark (!), right? I've seen two ways of punctuating such questions:  Where is this place?!    Who do you think you are!?  (Things like ?!?, !?!, ?????!!!!!, ??!?!!?!?!!??, etc are irrelevant here.) Which is the proper way to order the two symbols? Or does each of the above two have a distinct and grammatically correct meaning? Or is the interrobang (‽) the clear winner here? ;)


I would like to ask if there is a way to set the optimization level for SQL Server like it can be done on DB2/Sybase ASE/Oracle. The reason for this question is that I belive that SQL Server may not be choosing hash join for some cases.  Examples for other DBMS:   DB2 -  Sybase ASE -   Oracle -

Based on Paul White's , there are three optimization phases in SQL Server, search 0 (Transaction Processing), search 1 (quick plan) and search 2 (full optimization). Each phase has entry and termination conditions. My question is, can we force the optimizer to run at one optimization phase?


Turkish character problem. I'm using PHP 5.4 version. Php page  <?php  mysql_connect("127.0.0.1","android_project","mypassword");  mysql_select_db("android_project"); mysql_query("SET NAMES 'utf8_turkish_ci'"); $q=mysql_query("SELECT * FROM product");  while($e=mysql_fetch_assoc($q)) {  $output[]= $e;  } header("Content-type: application/json; charset=utf8_turkish_ci"); print(json_encode($output));  mysql_close();  ?>   Akıllı=Ak?ll? ,  Hafıza=Haf?za  etc.

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


Our app gets lots of NullPointerExceptions in DeviceMotionService. We don't have a WebView in our app; it seems this is related to the Admob SDK. How can I work around the problem to prevent crashes?  java.lang.NullPointerException at android.webkit.DeviceMotionService$2.run(DeviceMotionService.java:103) at android.os.Handler.handleCallback(Handler.java:605) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:734) at java.lang.Thread.run(Thread.java:856)   DeviceMotionService.java is part of the Android SDK. This doesn't appear to be something I can fix using the answers at

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


Given $A \in M_n(\mathbb{R})$ with $A+A^t=2I_n$ prove that $\det(A)\geq 1$.  This is what I tried to do:  $$A+A^t-2I_n=0  \Rightarrow \det(A+A^t-2I_n)=0$$   and then I considered $f:\mathbb{C} \rightarrow \mathbb{C}$ with $f(x)= \det(A+A^t+xI_n)$.  It is known that  $f(x)=x^2+\mathrm{Tr}(A+A^t)x+ \det(A+A^t)$.  So this means $f(-2)=0$ but I don't know what to do next.. Thanks in advance!

Let $A$ be a $n \times n$ real matrix such that $$ A + A^t = 2I, $$ where $I$ is the $n \times n $ identity matrix. Prove that $\det(A) \geq 1$.  It is obvious that tr$(A) = n$. Furthermore, we also have that $$A - 2I = -A^t, $$ so we get that $$\det(A-2I) = (-1)^n \cdot \det(A).$$ Now, we let $\lambda_1, \lambda_2, \cdots, \lambda_n \in \mathbb{C}$ be the  eigenvalues of $A$, so we get that $$(\lambda_1 - 2)(\lambda_2 - 2) \cdots (\lambda_n - 2) = (-1)^n\lambda_1\lambda_2 \cdots \lambda_n, $$ but I couldn't derive anything about the product $\lambda_1\lambda_2 \cdots \lambda_n = \det(A)$ (the only known thing is $\lambda_1 + \cdots + \lambda_n = n$). Also, I tried the same approach for $2 \times 2$ and $3 \times 3 $ matrices, but it didn't lead to anything (especially since the eigenvalues can be complex numbers).


what's the name of the surface? Is it a $C^2$ smooth surface? Its implicit equation is: $(x−2)^2(x+2)^2+(y−2)^2(y+2)^2+(z−2)^2(z+2)^2+3(x^2y^2+x^2z^2+y^2z^2)+6xyz−10(x^2+y^2+z^2)+22=0$

I've plot two implicit surfaces which are shown in the above, I only know their expression, but I don't know how to call them.


There is a planet with a straight tunnel through it which does not pass trough the center.    I want to solve how a mass will move in that tunnel.  This is what i have done  By Gauss' law, the gravity for some $r<R$ is $\mathbf g(r) = -k r\mathbf{\hat r} $, where $k$ is a constant.  By Newton's second law,  $\begin{align} m\ddot r &= mg\\ &=-mkr \\ \Rightarrow & \ddot r + kr=0 \end{align}$  Since the tunnel does not pass though the center, $r$ satisfies that $r\cos\phi=a$. Where $\phi$ is the angle measured from $x$-axis (the origin is in the center of the planet).  Using chain rule, $\ddot r$ can be written as \begin{align} \ddot r =  \dfrac{d}{dt}\dfrac{dr}{dt}=   \dfrac{d}{dt}\left(   \dfrac{dr}{d\phi}  \dfrac{d\phi}{dt}\right)= \dfrac{dr}{d\phi} \dfrac{d^2\phi}{dt^2}=r'\ddot\phi \end{align}  Then, taking the derivative of $r$ with respect to $\phi$ and substituting into the equation of motion gives,  \begin{align} r'\ddot\phi+kr&=a\ddot\phi \sec\phi \tan\phi + ka\sec\phi=0 \\ \Rightarrow & \ddot\phi\tan\phi+k=0 \\ \Rightarrow & \ddot\phi+k\cot\phi=0 \end{align}  My question  I ask for if my condition for $r$ ($r\cos\phi=a$) is correct, or there is something that i missing. Does not the differential equation for $\phi$ must lineal or similar to an harmonic oscillator eq?  In the case in which my equations are right. How to solve that kind of eqs.?  Any suggestion will be helpful.

Special mention to the  that kicked this off:  Anyway, the host points out that a tunnel that connects a pair of points on the earth's surface can be thought of as a gravity train - where the force of gravity along the tunnel allows an object to fall through it and emerge on the other side. Any force perpendicular to the tunnel (in case the tunnel doesn't pass through the center of the earth) is ignored.   I worked it out and the equation is $a = -\frac{4}{3}\pi\rho G d$, where $d$ is the distance from the center of the tunnel and $\rho$ is the density of the earth.   Clearly, it is simple harmonic and therefore the period is constant and has no dependence on which two points were used to make the tunnel.   Does anyone have an intuition for why this should be the case? I imagine some Gauss' law type of argument should work here, but I cannot see it.  EDIT: More to the point, why even when the tunnel does not pass through the center, one obtains the same period. Is there any deeper explanation as to why this should be the case?


I run the process below to gather all product attributes and options from an object, in order to update a product. For some strange reason, the main array categoryUrls get changed, and I can't seem to understand why. After the following process, categoryUrls[random key].attributes.options gets new values added. const {categoryUrls} = require('./helpers/categoryUrls.js')  getCategory = function (categoryUrls) {      let att = []          for (const key in categoryUrls) {         if (categoryUrls[key].attributes) {// check if has attribute              att = att.concat(categoryUrls[key].attributes)                          for(var i=0; i<att.length; ++i) {// check if attribute ID already exist and remove duplicates                 for(var j=i+1; j<att.length; ++j) {                     if(att[i].id === att[j].id){                         for (let k = 0; k < att[j].options.length; k++) { // if attribute ID already exist unite options                             let exist = att[i].options.find(option => option == att[j].options[k]) // check if option no already exist                              if (!exist) {                                 att[i].options.push(att[j].options[k])                             }                         }                         att.splice(j--, 1);                     }                 }             }         }     }     return att }   let data = getCategory(categoryUrls) productData = productData.concat(data)

The primitive types (number, string, etc.) are passed by value, but objects are unknown, because they can be both passed-by-value (in case we consider that a variable holding an object is in fact a reference to the object) and passed-by-reference (when we consider that the variable to the object holds the object itself).  Although it doesn't really matter at the end, I want to know what is the correct way to present the arguments passing conventions. Is there an excerpt from JavaScript specification, which defines what should be the semantics regarding this?


My maternal grandmother (b. 1911/d. 1940) was of mixed race (white father and black mother, her father left and she was raised by her mom) Her husband (my maternal grandfather) was born in the 1890's in Northern Central Mexico , which  consists of European/ Mestizo Mexicans.  My brother (we have several other siblings and we all share the same parents) did a DNA test and it reads: 27% Great Britain, 15% Cameroon/Congo, 14% Iberian Peninsula, plus a small percentage from 14 other regions. The estimate is:  43% Africa, 11% Mali , 6% Native American,  3% Asia , 46% Europe.  My dad was Black. My mom always referred to herself as colored because her own mixed race mother did.  I grew up being questioned as to my race and bullied and teased by certain kids, which made me ask my mom about her family, all she would say was "tell them you're part colored and part Mexican."  was as far as she went , another one of her responses was "you're father is colored and you always go by your father's race."  Mexican is a nationality and not a race (unless you were born in the  actual country) Me and my siblings were raised in a Black household and always identified ourselves as Black, but as I got older and learned a lot more about my mom's lineage I know better and identify with all 3 races.  Most of my life (and to this day) my race has been an issue with certain people putting me on trial with questions ( although they are  kind) but that has really gotten old.

My sister, cousins, and other relatives speculate that my mom's grandmother was Jewish (for various reasons). I've heard people say at times things like, for example, "I'm 50% German" or "I'm 25% Swedish." This has to do with their ancestry. But, how exactly is this calculated? Say for example that my mother's paternal grandmother was indeed 100% Jewish, what would that make me and my siblings, and how is it calculated?


My Seagate  500 GB external HDD stopped working few days ago for unknown reasons. I don't really care about the data on it anymore. I just want it to work properly again but I cant format it in Gparted or Disk Utility. In fact, I can't even see my drive in both places. I get this error when I connect it via USB:  Error mounting /dev/sdb1 at /media/sourabh/Backup: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sdb1" "/media/sourabh/Backup"' exited with non-zero exit status 13: The disk contains an unclean file system (0, 0). The file system wasn't safely closed on Windows. Fixing. ntfs_attr_pread_i: ntfs_pread failed: Input/output error Failed to read NTFS $Bitmap: Input/output error NTFS is either inconsistent, or there is a hardware fault, or it's a SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows then reboot into Windows twice. The usage of the /f parameter is very important! If the device is a SoftRAID/FakeRAID then first activate it and mount a different device under the /dev/mapper/ directory, (e.g. /dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation for more details. Failed to sync device /dev/sdb1: Input/output error Failed to close volume /dev/sdb1: Input/output error   How can I force format this drive?

In Windows there is a straightforward "Format" option in a flash drive's right-click pop-up menu. Where's that in Ubuntu?


Then point $(3, 3)$ transformed into what point?  I couldn't solve this problem, I need step by step solution to understand and learn. Does it matter two dimensional or three dimensional? What if rotation angle other than $45^\circ$.?

So I was practicing for an exam, and through my studying I found this problem. I really don't know how to solve it although the answer must not be too complicated since the question that came with this one were fairly simple. I first thought that maybe I could use vectors to solve this problem. I tried using this equation:    I noticed that this wouldn't help since I would then have the following equation :. I would have two variables to solve for using only one equation so I couldnt solve it.   I also thought of using geometry thus making a triangle with two sides equal to sqrt(5) thus it would have an angle of 45 degrees and two of 67.5 degress. I could then proceed to use sine rule but this wouldn't work out for me since I am supposed to do the problem with calculator.   Can someone help me?


Let $M$ be a square $N\times N$ matrix with linearly independent columns.   I was wondering why the $QR$ decomposition is unique in this case and how to show it? The linked question below does not explain why $Q$ is also unique and I didn't quite understand its explanation of why $R$ is unique also.

I'd like to know for positive diagonal elements why is $R$  in $QR$ decomposition unique.  My guess is it must have something to do with linearly independence of the column of $R$, but then I can think of a property that lead me to uniqueness of $R$.


I have a question about the sentence in bold below. It's from the novel .     The boy with fair hair lowered himself down the last few feet of rock   and began to pick his way toward the lagoon. Though he had taken off   his school sweater and trailed it now from one hand, his grey shirt   stuck to him and his hair was plastered to his forehead. All round   him the long scar smashed into the jungle was a bath of heat. He was   clambering heavily among the creepers and broken trunks when a bird, a   vision of red and yellow, flashed upwards with a witch-like cry; and   this cry was echoed by another.   Which is the subject of the sentence "All round him the long scar smashed into the jungle was a bath of heat"?  Which is the predicate of the sentence "All round him the long scar smashed into the jungle was a bath of heat"?  Which is the object of the sentence "All round him the long scar smashed into the jungle was a bath of heat"?  Is "the long scar" all around him?  Does the word smash mean "to hit (something) violently and very hard"?  Does "a bath of heat" mean "a bath's heat"?

All round him the long scar smashed into the jungle was a bath of heat.   English is my second language, my first language is Spanish.  I don't understand this sentence at all. Please explain.


I need to prove that the series $\sum_{n=1}^{\infty}\sqrt{a_n\cdot a_{n+1}}$ converges given that the series $\sum_{n=1}^{\infty}a_n$ converges when $(a_n)_{n=1}^{\infty}$   is a non negative sequence. Does anyone have an idea?

suppose that $\sum_{n=1}^{\infty}a_n$ is a convergent series of positive terms. Prove that $\sum_{n=1}^{\infty} \sqrt{a_n \cdot a_{n+1}}$ is also convergent. Demonstrate that the converse is false.


Wanting to find for files except for those, that are in /home directory (directly or in one of subdirectories of any level), I run the following command: find / ! -path '/home/*'  However, I get error messages with "Permission Denied" message, like the following: find: '/home/user/here/is/some/file': Permission denied  I don't care that it is "permission denied" per se, what I don't like is that it even tries to search there. At first I thought that could be because there is some symbolic link from other places on FS, that references a directory inside /home/user/, but then I tried with -H option like this: find -H / ! -path '/home/*'  and it still listed those files/directories inside /home/*. Any ideas, how to rectify that?

I am using find -type f command to recursively find all files from a certain starting directory. However, I would like to have some directories prevented from entering and extracting names of files inside. So basically I am looking for something like:  find . -type f ! -name "avoid_this_directory_please"   Is there a functioning alternative to this?


I do a classical JavaScript object initialization like this, it works like a charm:  function Hero(a, n) {                                                                 this.nom = a;                                                                     this.job = n;                                                                     this.quiSuisJe = function() {         return "Mon nom est "+this.nom+" et je suis un "+this.job;     }  }                                                                                var x = new Hero("Joe", "Ninja");                                                 var y = new Hero("Jinx", "Carry AD");                                             console.log(x.quiSuisJe());                                                       console.log(y.quiSuisJe());    But if I change the quiSuisJe function like this:  function Hero(a, n) {                                                                 this.nom = a;                                                                     this.job = n;                                                                     this.quiSuisJe = function() {         return "Mon nom est "+a+" et je suis un "+n;     }  }                                                                                var x = new Hero("Joe", "Ninja");                                                 var y = new Hero("Jinx", "Carry AD");                                             console.log(x.quiSuisJe());                                                       console.log(y.quiSuisJe());    It works. Why?

How would you explain JavaScript closures to someone with a knowledge of the concepts they consist of (for example functions, variables and the like), but does not understand closures themselves?  I have seen  given on Wikipedia, but unfortunately it did not help.


Sometimes an entity's (be it a person, company, or a government) predictions/choices/decisions seem to be completely arbitrary (based on no evidence or observation).  A very colorful example of this is . When learning that a bank is going bankrupt, a board of judges or whatever decapitate a chicken, and throws its beheaded body into a pit divided into different areas with actions written on them, such as "Bail out", "Do nothing", "Pay $10000", "Sue", etc. The headless chicken runs around for a while until it finally drops motionless on one of the areas in the pit. The judges' verdict is based on where the dead chicken lands.   In Armenian we have an idiom "մատից հոտ քաշել", which literally means "to smell one's finger". Smelling one's finger, of course, does not give one any useful informations, so basing one's forecasts/choices on the "results" of smelling one's finger is completely random and arbitrary. For example, in Armenian one could say:     You can't trust the weather forecast. I think they simply smell their finger and come up with a prediction.   or     How does he know all this?   He doesn't, he just smelled his finger. (i.e. his claims are based on nothing)   or (in a maths class)     Teacher: Can a rational number raised to the power of an irrational number be a rational number?   Student: Yes.   Teacher: See, you have to prove it, you don't get to just smell your finger and answer yes or no.   Hopefully the South Park example and the մատից հոտ քաշել examples fully convey what situations I am talking about. So what idioms are there in English that can describe the arbitrary decision-making/choices?

I was born and raised in South Africa. We frequently used the term "to suck out of one's thumb", implying that an answer was just a wild guess or the notion had no evidence but was rather just surmised. At best it was the product of a personal thought experiment.   Is the phrase used elsewhere? I live in the USA and almost never hear it. Do Americans understand it? Can they figure it out or will they conjure up graphic literal images of my thumb in my mouth?


On the emerging IoT.SE which is in private beta I have the privilege to approve tag wikis but have not yet reached the free tag wiki editing privilege. Today another user edited a tag wiki excerpt I edited before. My version was the last and active one. Apparently 1 put that edit into effect.  I have moderator tool access and checked, there was no other person approving that specific edit suggestion. However I am not a moderator, so my vote alone shouldn't be binding, should it?  Is my vote binding because I was somehow the owner of the previous version?    1: The site is in private beta and whoever wants to follow that link likely has to detour via  to get there.

was declined by the user who created the tag wiki excerpt, who doesn't yet have the reputation to be a trusted user. (The site is still in beta, and the reputation necessary to be a trusted user is 4000.)        Should the user who first proposed a tag wiki, or a tag wiki excerpt be the one who can unilaterally decide about a proposed edit for a tag wiki? The user who first proposed it isn't necessarily the one who knows if the tag's purpose can be better described with different words, nor does that user necessarily know if the tag has been lately used differently from how it was first used. Since a tag wiki is different from other posts, there should be an exception to the rule "the author of a post can unilaterally decide about any edits."  The paradox is then that the creator of a tag wiki still needs two users to approve their suggested edit. That's what happened in .        The funny fact is that in the revisions for the tag wiki, or tag excerpt (as in the screenshot), the tag wiki/excerpt is said to be created from the Community user.        This bug is  definitely .


The app stopped during getting the location from Gps. PrayerTimes Class The app stopped during getting the location from Gps. in these two lines     public static Mazhab getDefaultMazhab(String countryCode) {         countryCode = countryCode.toUpperCase();          if("AF, AL, EG".contains (countryCode)) return Mazhab.PTC_MAZHAB_SHAFEI;          return Mazhab.PTC_MAZHAB_HANAFI;     }      public static Way getDefaultWay(String countryCode) {         countryCode = countryCode.toUpperCase();          if("CM, CF, CD, CG, CI, EG, GH, IQ, KE, LY, MY, ML, SN, SO, SD, TN".indexOf(countryCode)>=0) return Way.PTC_WAY_EGYPT;          if("AF, AL, BD, IN, PK, WF".indexOf(countryCode)>=0) return Way.PTC_WAY_KARACHI;          if("CA, US".indexOf(countryCode)>=0) return Way.PTC_WAY_ISNA;          if("BH, KW, OM, QA, SA, AE, YE".indexOf(countryCode)>=0) return Way.PTC_WAY_UMQURA;          return Way.PTC_WAY_MWL;     } }  LogCat from LogCat Attempt to invoke virtual method 'java.lang.String java.lang.String.toUpperCase()' on a null object reference  at at mindtrack.muslimorganizer.calculator.prayer.PrayerTimes.getDefaultMazhab(PrayerTimes.java:282)         at mindtrack.muslimorganizer.ui.activity.MainActivity.onLocationChanged(MainActivity.java:324)

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


It was many years now since I stopped using std::endl to end lines when writing to std::cout, and started using "\n" instead.  But now I start seeing more snippets of code using '\n' instead, and I started wonder what might be best.  Besides the obvious that one is a string, and the other a character, is there any advantage to using this:  std::cout << variable << '\n';   Over this:  std::cout << variable << "\n";     Late addition:  When I asked this question I seemed to think that newline '\n' flushed the buffer. Now I know that it depends.  By default std::cin is tied to the old C stdin FILE* stream, and std::cout is tied to stdout. The flushing on newline comes from this tying. By default stdout, if connected to a terminal, is line-buffered. That means a new line will flush its buffers. So when printing a newline using std::cout, that will lead to stdout being flushed.  If stdout is not connected to a terminal (for example the output has been redirected or is piped), or if the tie between std::cout and stdout is broken, then newlines will not flush anything.

Many C++ books contain example code like this...  std::cout << "Test line" << std::endl;   ...so I've always done that too. But I've seen a lot of code from working developers like this instead:  std::cout << "Test line\n";   Is there a technical reason to prefer one over the other, or is it just a matter of coding style?


I am currently designing a board where there is a UART, as well as SPI and I2C, should I length match or take care of differential pairs on those interfaces?

I am assuming the answer would be yes since Tx/Rx pins are used to send data back and forth, or is it of such a low frequency that such thing is not required?


We get different definition of time? the indefinite continued progress of existence and events in the past, present, and future regarded as a whole. Time in physics is defined by its measurement: time is what a clock reads. In classical, non-relativistic physics it is a scalar quantity and, like length, mass, and charge, is usually described as a fundamental quantity.  But in physics can we have a deep answer?

This is an attempt to gather together the various questions about time that have been asked on this site and provide a single set of hopefully authoritative answers. Specifically we attempt to address issues such as:   What do physicists mean by time? How does time flow? Why is there an arrow of time?


How are kx-wt and kx+wt in terms of the direction of the wave. I have been stuck at this or an hour, still can not find a definitive answer.

In the textbook, it said a wave in the form $y(x, t) = A\cos(\omega t + \beta x + \varphi)$ propagates along negative $x$ direction and $y(x, t) = A\cos(\omega t - \beta x + \varphi)$ propagates along positive $x$ direction. This statement looks really confusing because when it says the wave is propagating along $\pm$ x direction, to my understanding, we can drop the time term and ignore the initial phase $\varphi$ while analyzing the direction, i.e. $y(x, 0) = A\cos(\pm\beta x)$, however, because of the symmetry of the cosine function, $\cos(\beta x)\equiv \cos(-\beta x)$, so how can we determine the direction of propagation from that?  I know my reasoning must be incorrect but I don't know how to determine the direction. So if we don't go over the math, how to figure out the direction of propagation from the physical point of view? Why $-\beta x$ corresponding to the propagation on positive x direction but not the opposite?


Let's say I'm interested in buying some shares, and I place an order to buy at 80c. At the same time, someone is willing to sell his shares at 40c.  Now I'm told by the bank that they have a best execution policy: i.e. if I want to buy at 80c but it can be bought at a lower price, then the actual price may be lower than what I specified. However, the seller's bank most likely has a similar execution policy.  With that reasoning, although a match is made and the deal may be done, it may be executed at any price between 40c and 80c. How does the stock exchange determine which price to use?

Let's assume a very simplified situation. There is only one seller asking for 10$ and there is only one buyer bidding 20$. At what price would the transaction go?   Some answers say it won't, because the ask price has to match the bid price. () Other answers say, that the time ordering is important. () Which answer is correct? What is the final price in the presented situation?


So, we know that in physics, units matter. 2 cm is different from 2 newtons which is different from 2 seconds. But what if the number is 0? Is 0 of any unit the same as 0 of any other unit?

Is $0 \, \mathrm m = 0 \, \mathrm s = 0 \,\mathrm {kg} = 0$? How do we define $[0 \, \mathrm m]$?  I once was given an assignment where I was asked to deduce and write down some physical quantity. It turned out that this quantity was $0$ in one unit or another, so I decided to drop the physical units because I figured that it didn't matter anyhow.  But I got to thinking:  If $0 \, \mathrm m = 0$, then we could add units of different dimensions (an operation not normally defined) like so: $5 + 0 \,\mathrm m = 5$.   Does $[ \cdot ]$ map $0 \, \mathrm m$ to both $0$ and $L$? Is there an established regime of thinking about physical quantities as an abstract algebra? Perhaps as a vector space where formal sums such as $5 \, \mathrm m + 10 \, \mathrm s$ are allowed? Would it be improper to drop the units of measurement of $0 \,\mathrm m$ like this in an academic paper?


I recently came upon  in the close-vote queue and I'm struggling to figure out what to do with it. As @gnat correctly points out in the comments, this is obviously a "name that thing" question, which Jeff Atwood calls "guessing game" questions in . All of the reasoning in Jeff's post is accurate: this question is unlikely to help anyone else, may not even have a real answer, and is practically impossible to find via a search, or Google, or whatever. My experience on scifi, which seems to be bearing itself out in this question, strongly suggests that we'll get a bunch of "I think it might be x" answers that will be not quite what the OP wants and start endless comment debates. But as much as I do think this question should be closed I can't find a good close reason for it. None of the close reasons seem to fit this question: it's about a specific programming problem that (in theory) has a single, objectively correct answer, and provides all the information we need to give that answer. (You might argue that "I want to know what this pattern is called" is not a "problem" but I think that's a stretch, since knowing the name of design patterns is a big part of modern development.) Of course, we can enter custom close reasons, as @gnat did, but (Jeff's argument aside) these type of questions are generally not considered off-topic on other sites, so I don't know that they should automatically be off-topic here. And if so, should we find a way to roll that idea into an existing close reason (too broad or opinion based seem the closest)? UPDATE: Just to add some additional data points, this question has come up on scifi (more than once I think) and as of right now,  questions are considered on-topic there; I'm also pretty sure  are on topic on english.

For example, how should one pose questions concerning what a programming concept should be called? I am not talking about naming within code.  The general purpose of such questions would be to enable users to find the right terminology to use to make further enquiries such as searching on Google / Stack Overflow.  For example, what is the name for combining two tables?  By this question I mean are there common terminologies for this? Are there specific methods of combining tables that certain phrases refer to?  Is this an appropriate Stack Overflow question?  I'm not even sure if this meta-question makes sense.


I want to write that I have saved the file on the server. What should I write, on the server or at the server?

I've seen both these forms used and I was wondering, is either of them incorrect or are they interchangeable?     You can download something ON your device.      You can download something ONTO your device.


Cauchy's induction principle states that:     The set of  propositions  $p(1),...,p(n),...$ are all  valid if:           $p(2)$ is true.   $p(n)$ implies  $p(n-1)$ is true.   $p(n)$ implies $p(2n)$ is true.      How  to prove  Cauchy's induction principle? Can we use it to  prove what we  can prove with weak  and strong induction?  If yes how  to  prove using Cauchy's induction principle  $$ 1+2^1+2^2+...+2^n=2^{n+1}-1 $$

I was reading a blogpost here:  () One thing that threw me off was that after the first four large displayed equations, there is the statement "it is sufficient to prove that if the theorem holds for $n=m+1$, then it holds for $n=m$." How is this type of induction valid? I browsed around for things like backward induction, reverse induction, and Cauchy induction, but couldn't find a justification for how this is valid. With the usual forward induction of verifying a base case and proving $P(n)\implies P(n+1)$, it's easy to intuitively understand how induction will show a property holds for all natural numbers (or at least starting at the base case). But with this reverse induction, it seems to me that if you prove $P(m+1)\implies P(m)$, then if you were able to verify a specific case like $P(15)$, then you would only know it's true for numbers up to $15$. How does it actually prove the property for all naturals?


I am trying to delete a node from the linked list. Node has a name that user enters. But I couldn't figure out how can I ignore the uppercase/lowercase in while loop. Here is my code.  void del(string e) {     temp=new node;     temp=head;     temp2=new node;     temp2=temp->next;     if(temp->info==e)     {         head=temp->next;         delete temp;     }     else     {         while(temp2->info!=e)         {             temp=temp->next;             temp2=temp2->next;         }         temp2=temp2->next;         temp->next=temp2;     } }   And I get the string by this   cout<<"Enter the name to delete"<<endl; ws(cin); getline(cin,e); del(e);   So is there any way to ignore uppercase/lowercase in while loop and if statement?

What is the best way of doing case-insensitive string comparison in C++ without transforming a string to all uppercase or all lowercase?  Please indicate whether the methods are Unicode-friendly and how portable they are.


I assume there is no possible way to edit a completed manor wing built in Skyrim, and I made the mistake of adding a greenhouse wing. Now I have bees overrunning that half of the manor, and the buzzing is loud, obnoxious, and driving me nuts! Is there a possible way to eliminate them permanently? I would simply remove that wing and add a bedroom or enchanting tower, but I reckon ya only get one go 'round when you add a wing, which is really kinda idiotic this option is not made available. So I am stuck with buzzing bees unless there is a fix? Game system I use is PS3.

I currently have Windstad Manor and built it all. Now I regret some choices and I'd like to rethink and rebuild it.  Is there any console way to "nuke" the manor and rebuild it from ground up?


Prove that there are no natural numbers to satisfy the equation: $a^2+b^2=3(c^2+d^2)$. I tried to factorize it: $a^2 + b^2 - 3 (c^2 + d^2)=0$  but I am not getting anywhere. I can't think of anything else!!

Prove that: $$  x^2 + y^2 = 3(z^2 + m^2)  $$ has no solutions in integer Except $0 0 0 0$


I've done all the objectives in Barclay Mills, but it only took the damage scale down to $2550.  I've scoured the map for leftover objectives but no dice.  People tell me to find some enemies in Barclay Mills to kill, but I can't find them.

I did most of the barclay mills missions and brought the damage down to 2550 but now I can find anything else to damage or steal, so the meter is stuck at 2550 and the objective says "find and destroy garbage barges" but when I click it, no waypoint.  Please help.