When I use calc2latex I receive the error message "BASIC Runtime Error: Object Variable not set"  Using Ubuntu 16.04

This question led to a new package:      Suppose you have an localc spreadsheet myspread.ods and you want to insert the content of the range H4:I40 as a table into your latex document. I know that I can export the table or just do some copy and paste. However is it possible to write something like:  \includespread{file=myspread.ods,range=H4:I40}  Then the table in my LaTeX-document changes when the corresponding spreadsheet changes.  Would be nice to have also the possibility to modify global appearence properties of the table as optional arguments of \includespread.


Let $(X, d)$ be a compact metric space. Let $f:X\rightarrow X$ be such that  $d(f(x), f(y)) < d(x, y)$ for all $x, y\in X$ with $x$ not equal to $y$. Show that $f$ has a fixed point, that is, there exists $x_0\in X$ such that  $f(x_0) = x_0$. Is the fixed point unique? My work: first i prove that $f$ is uniformly continuous on $X$ and if possible $f(x) \neq x$ for all $x \in X$ Considering a function $x\rightarrow d(x,f(x))$. Then i showed that this function is continuous by sequential criteria of continuity. Since it is continuous on a metric space then it is also uniformly continuous and attains it's infimum at some point $x_1 \in X$ so $d(x_1,f(x_1))>0$. But after that I cannot proceed. I think it will contradict the given condition. But ran out of ideas how to show that.

Assume $K$ is a compact metric space with metric $\rho$ and $A$ is a map from $K$ to $K$ such that $\rho (Ax,Ay) < \rho(x,y)$ for $x\neq y$. Prove A have a unique fixed point in $K$.  The uniqueness is easy. My problem is to show that there a exist fixed point. $K$ is compact, so every sequence has convergent subsequence. Construct a sequence ${x_n}$ by $x_{n+1}=Ax_{n}$,$\{x_n\}$ has a convergent subsequence $\{ x_{n_k}\}$, but how to show there is a fixed point using $\rho (Ax,Ay) < \rho(x,y)$?


Is it possible to create matter? In a recent discussion I had, it was suggested that with enough energy in the future, "particles" could be created.   It seems like this shouldn't be possible due to conservation but perhaps I could be wrong. Would any of you Physics masters care to elaborate?  (Note... I will understand the basics, I am by no means an expert.)

I understand the energy and mass can change back and forth according to Einstein. It is fluid; it can go from one to the other. So, what keeps mass from just turning into energy? Is there some force holding a subatomic particle together? What keeps mass in it's state? I hope this is not a silly question but I am clueless. Thanks


I have multiple raters providing categorical ratings.  What makes this slightly different from other posted questions is that each rater can provide three, unique categorical ratings.  Each rater had a set of survey questions and it was of the form "pick your top 3 choices" from a list.  So, multiple raters with three ratings each for each question on my survey.  I've only ever dealt with inter rater reliability with some number of raters choosing a single rating.  What would be the best measure of inter rater reliability for this?  Thanks for any help.

I have over 400 open-ended responses. The total has been coded by one rater, and a 10% identical sample of the total has been coded by 2 raters. There is a choice of 14 nominal codes, of which the rater can use any number per case, though most cases have between 1-4 codes. Which statistical test is the most appropriate to determine if I have inter-rater agreement on the 10% sample?   Also am I right in assuming that I will need to treat each code as a variable and look for the level of agreement for each variable?   I'm using SPSS 21.  Much thanks, Kellie


Basically I want to begin migrating my Macbook Pro to Ubuntu Touch, while only making changes in the GUI. I need to expose the apple touchpad to the desktop as a touch surface, rather than mouse.

I'm interested in using my laptop trackpad as a drawing tablet, i.e. using absolute rather than relative coordinates, similar to  for OSX.  The same question was asked in  in May 2010, but the question was never answered. I'm wondering if this has been done on Linux. I'm also trying to figure out which search terms to use. I searched for 'linux laptop touchpad absolute mode', and came up with  which put the trackpad in absolute mode. but I'm really looking for a program which uses the absolute positions rather than a driver setting.


''There exists a point in a closed set which is at minimum distance from a point not in the set.''  I have no idea why this is true.  Any help will be appreciated.

Which says that $\mathbb R^n$ the distance between a point $b$ and a set $X$ defined by$$ \inf \left\{ d(b,x) \mid x \in X \right\} $$  The proposition:      If $X$ is closed, this distance is reached at some point in the set $X$.    To prove it I assumed without loss of generality that $X$ is also bounded, because if not, it intersected with (e.g.) $$ B_b (n) = \left\{ x \in \mathbb R^n \mid d(b,x) \leqslant n \right\}, $$ where $n$ for example, can be chosen as the first natural number such that the intersection is not empty, and obviously the rest of the points of $X$, are at a greater distance, and will not be candidates.  Then define $$ f(x) = \left| x - b \right| \quad \text{for }x \in X $$ and since the domain is compact we conclude the result, that reaches its minimum at some point in the set. This demonstration clearly not true for any metric space, because  being closed and bounded is not enough to be compact in general, but anyway maybe it can be shown in a more general way. That is my question, is this true?


For a symmetric positive semi-definite matrix $A = Q\Lambda Q^T \in \mathbb{R}^{n\times n}$ and $\lambda_1 \geq \lambda_2 ....\geq \lambda_n$ find $$ \max \ (x^TAx+y^TAy) \ \ \text{s.t} \ x^Tx = y^Ty = 1, x^Ty = 0 $$ and corresponding $x, y$.  My approach was to define $a = Q^Tx$ and $ b=Q^Ty$. $$ \max \ (x^TAx+y^TAy) =\max \ (a^T\Lambda a+b^T\Lambda b)\\ =\max (\sum_{i=1}^{n}\lambda_ia_i^2+\sum_{i=1}^{n}\lambda_ib_i^2) $$ Clearly, $\sum_{i=1}^{n}\lambda_ia_i^2$ is maximized when $a=e_1$. Since $a^Tb=x^Ty=0$ the same maximization $b=e_1$ is impossible as  $b^Ta=b^Te_1 = e_1^Te_1\neq 0$. The next possible maximum for $\sum_{i=1}^{n}\lambda_ib_i^2$ is $b=e_2$.   Therefore, $$ x = Qe_1 = q_1 \\ y = Qe_2 = q_2 \\ \max \ (x^TAx+y^TAy) = \lambda_1+\lambda_2 $$  This is my intuition for what should be the solution, but I can't think of a way to definitely show that $x=q_1$, $y=q_2$ maximizes $x^TAx+y^TAy$. How can I show that $x=q_1$, $y=q_2$ is the optimal solution?

Let $C \in \mathbb{R}^{d \times d}$ be symmetric, and   $$Q = \begin{bmatrix}       \vert & \vert &    & \vert \\       q_1   & q_2   & \dots & q_K  \\       \vert & \vert &    & \vert       \end{bmatrix} \in \mathbb{R}^{d\times K}$$  where $d \geq K$. Using Lagrange multipliers,   $$\begin{array}{ll} \text{maximize} & \mbox{tr} \left( Q^T C Q \right)\\ \text{subject to} & Q^T Q = I\end{array}$$    I am unfamiliar with these kind of constraints with this method, and after reading  I believe the same specific and simple result given is also applicable, and therefore the lagrangian would be:  $$\mathcal{L}(Q,\lambda)=\mathrm{tr}(Q^TCQ)-\left<\lambda,Q^TQ-I\right>$$  where $\lambda\in\mathbb{R}^{K\times K}$, and $\left<\cdot,\cdot\right>$ is the element wise inner product (what kind of makes sense to me since we're actually adding as many constraints as there are elements in these matrices.  In attempting to do that I start taking $\frac{\partial \mathcal{L}}{\partial Q}=O\in\mathbb{R}^{d\times K}$, and compute that LHS element by element; for the $(l,m)$ one:  \begin{equation} 0=\frac{\partial \mathcal{L}}{\partial Q_{lm}}=(CQ+C^TQ)_{lm}-\underbrace{\frac{\partial}{\partial Q_{lm}}\sum_{i,j}\lambda_{i,j}(Q^TQ-I)_{ij}}_{=\lambda_{lm}\frac{\partial (Q^TQ)_{lm}}{\partial Q_{lm}}}=2(CQ)_{lm}-\lambda_{lm}\frac{\partial (q_l^Tq_m)}{\partial q_m(l)} \tag{1}\end{equation}  where in the last step I've used the definition I made at the beginning for $Q$, and $q_m(l)$ denotes the $l$-th component of the column vector $q_m$.  In trying to compute the very last term:  $$\frac{\partial (q_l^Tq_m)}{\partial q_m(l)}=\frac{\partial \left[q_l(1)q_m(1)+ \ldots + q_l(d)q_m(d)\right]}{\partial q_m(l)}= \begin{cases}     q_l(l)\equiv Q_{ll}    & \text{if } l\neq m\\     2q_l(l)\equiv 2Q_{ll}  & \text{if} l=m \end{cases}$$  The whole equality (1) then can be written:  $$0=2(CQ)_{lm}-\lambda_{lm}Q_{ll}(1+\delta_{lm})$$  where $\delta_{lm}$ is the Kronecker delta.  The equation for the other stationary point of the lagrangian, $\frac{\partial \mathcal{L}}{\partial \lambda}=O\in\mathbb{R}^{K\times K}$, for the $(l,m)$ element as well:  $$ 0=\frac{\partial \mathcal L}{\partial \lambda_{lm}}= \frac{\partial }{\partial \lambda_{lm}}\sum_{i,j}\lambda_{i,j}(Q^TQ-I)_{ij}=(Q^TQ-I)_{lm}\tag{2}$$  what obviously leads to $(Q^TQ)_{lm}=\delta_{lm}$.  All this should tell that the columns of $Q$ are eventually the $K$ first eigenvectors of $C$, but I don't know how to continue from here to prove that, supposing I didn't make a mistake. Please I would sincerely appreciate any help.    Edit:  I have rewritten the inner product as a trace of a product of matrices (after seeing ):  $$\left<\lambda,Q^TQ-I\right>=\sum_{i,j}\lambda_{i,j}(Q^TQ-I)_{ij}=\mathrm{tr}(\lambda^TQ^TQ) $$  and have thus managed to do the derivative without losing the matrix format (using formulas from the ):  \begin{align} O=&\frac{\partial \mathcal{L}}{\partial Q}=\frac{\partial}{\partial Q}\mathrm{tr}(Q^TCQ)-\frac{\partial}{\partial Q}\underbrace{\mathrm{tr}(\lambda^T(Q^TQ-I))}_{\mathrm{tr}(\lambda^TQ^TQ)-\mathrm{tr}(\lambda^T)}\\=&(CQ+C^TQ)-(Q(\lambda^T)^T+Q\lambda^T)=2CQ+Q(\lambda+\lambda^T) \end{align}  And this leads to:  $$CQ=Q\underbrace{\left(-\frac{\lambda+\lambda^T}{2}\right)}_{:=\widetilde{\lambda}};\quad CQ=Q$$  If the defined matrix $\widetilde{\lambda}=Q^TCQ$ were diagonal we would already have the result.


it seems that everybody believes it is "start from nothing" but I cannot pinpoint the start of this usage. I used both OED and A dictionary of English etymology by By Hensleigh Wedgwood ...

I've heard the saying "made from scratch" many times in my life from living in the southern part of the United States. What is scratch in this context and how did this saying come about?


How do I store binary data in a MySQL database?


It seems that $\sqrt{ab}=\sqrt{a}\sqrt{b}$ is only defined for $a,b\geq 0$, because it doesn't work for $a,b<0$.  I can see that it doesn't work. I would like to know why it doesn't work. Is there a less circular reason than "by definition"?  This comes up in Khan Academy's  and wikipedia's  faulty proof:  $$ \begin{align*} -1&=ii\\ &=\sqrt{-1}\sqrt{-1}\\ &=\sqrt{(-1)(-1)}\\ &=\sqrt{1}\\ &=1 \end{align*} $$  They say $ii=\sqrt{-1}\sqrt{-1}$ is OK, and the faulty step is $\sqrt{-1}\sqrt{-1 }=\sqrt{(-1)(-1)}$, because $\sqrt{ab}=\sqrt{a}\sqrt{b}$ is only defined for $a,b\geq 0$.

I've been following a series on understanding about how imaginary numbers came to be, and in the series, it mentions that imaginary numbers mostly follows the algebra rules for real numbers, such as adding or multiplying by real numbers. However, it specifically mentions this "inconsistency(?)" about multiplying square roots of imaginary numbers do not follow the rule for multiplying square roots of real numbers, namely $\sqrt{a} \times \sqrt{b} = \sqrt{ab}$. For example, why can't I do this: $\sqrt{-2} \times \sqrt{-3} = \sqrt{(-2)(-3)} = \sqrt{6}$, which I know is the wrong answer. In the past, I've just memorized to factor out the imaginary parts first, and that $i^2 = -1.$ However, can anyone show me an explanation for this, or tell me where I could learn more about it?


What is the correct way to put string in a condition statement? I tried this, but it won't print x.      String c = "c" ,d = "d";     Scanner in = new Scanner(System.in);     String selection = in.next();     if ( c == selection){         System.out.println("x");   Assume I input c.

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


If virtual particles cancel out after being created from spacetime flunctuations because they come in matter-antimatter pairs, how do virtual photons cancel out, due to a photon being its own antiparticle?

If virtual particles sometimes add more mass/energy to a system then was inputed or comes out in the output, how do they not violate conservation of mass/energy.


I have my bachelors in electronics and instrumentation and a research experience in the field of image processing and computer vision and some publications in the same.Can i go for a MS in computer science, robotics or signal processing. Also tell me some other Ms options available for me.Thanks in advance.

Having done bachelors in electronics and instrumentation and a research experience in the field of image processing and computer vision and some publications in the same, what are the possible MS options where I can study computer vision and image processing? Can I opt for MS in robotics, computer science, signal processing?  My confusion is regarding the fact that I was a bachelors student in a different field. Would it be difficult for me to change to a masters program in this other field?


I install .zip / .tar.gz programs in ~/.local/bin, but Ubuntu have /usr/local directory with content same as in ~/.local.   So, what is difference between this directories except for sudo access?

Echoing path in ubuntu returns following colon separated paths,  /home/stack/bin:/home/stack/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin   In these paths at some places there is local while at others .local is used what is the difference between both?


I have $$\tan (\frac{2.05 × 10^{-4}± 2.89 × 10^{-6}}{2})=\frac{x}{667.6 × 10^6}$$   $$\therefore x = (667.6 × 10^6) \cdot \tan(\frac{2.05 × 10^{-4}± 2.89 × 10^{-6}}{2})$$   As described in the title, I am trying to find the absolute uncertainty. Please include working out.

I have $$tan (\frac{2.05 × 10^{-4}± 2.89 × 10^{-6}}{2})=\frac{x}{667.6 × 10^6}$$   $$\therefore x = (667.6 × 10^6) \cdot tan(\frac{2.05 × 10^{-4}± 2.89 × 10^{-6}}{2})$$   I want to find $x$ with the absolute uncertainty. I don't know how to start, as I am unsure how I would propagate uncertainties with $tan$. Please include your working out when you explain the method of propagating uncertainties in this case.


Let $X_n\sim\mathcal N_{\mu_n,\sigma_n^2}$ for some $(\mu_n,\sigma_n^2)\in\mathbb R\times(0,\infty)$ and $X$ be a real-valued random variable with $$X_n\stackrel{\text{in probability}}\to X\;.\tag 1$$     How can we prove that $X\sim\mathcal N_{\mu,\sigma}$ for some $(\mu,\sigma)\in\mathbb R\times(0,\infty)$?   That's what I've done: By $(1)$ and  we obtain $$X_n\stackrel{\text{in distribution}}\to X\tag 2$$ and thereby $$\operatorname E\left[f(X_n)\right]\stackrel{n\to\infty}\to\operatorname E\left[f(X)\right]\;\;\;\text{for all bounded }f\in C^0(\mathbb R)\tag 3$$ by the . Especially, since $$\mathbb R\ni x\mapsto e^{{\rm i}x}=\cos x+{\rm i}\sin x$$ is continuous and bounded, $$\varphi_{X_n}(t):=\operatorname E\left[e^{{\rm i}tX_n}\right]\stackrel{n\to\infty}\to\operatorname E\left[e^{{\rm i}tX}\right]=:\varphi_X(t)\;\;\;\text{for all }t\in\mathbb R\tag 4\;.$$ $\varphi_{X_n}$ and $\varphi_X$ are the characteristic functions of $X_n$ and $X$, respectively. Now, we should be close since a finite measure on $\mathbb R^d$ is uniquely determined by its characteristic function.  However, I'm not able to conclude. Please note that I'm not primarily interested in $(\mu,\sigma)$ and the relationship to $(\mu_n,\sigma_n)$. I just want to show that $X$ is normally distributed. However, if it's easy to obtain, I wouldn't be angry if someone could prove the relationship too.

I'm trying to prove this conclusion but have some problems with one of the steps.  Assume $X_1,\ldots,X_n,\ldots$ is a sequence of Gaussian random variables, converging almost surely to $X$, prove that $X$ is Gaussian.  We use characteristics function here. Since $|\phi_{X_n}(t)|\leq 1$, by dominated convergent theorem, we have for any $t$  $$ \lim_{n\rightarrow\infty}e^{it\mu_n-t^2\sigma_n^2/2}=\lim_{n\rightarrow \infty}\phi_{X_n}(t) = \lim_{n\rightarrow \infty}\mathbb{E}\left[e^{itX_n}\right] = \mathbb{E}\left[e^{itX}\right] = \phi_X(t) $$  this is the step that I cannot figure out: $e^{it\mu_n-t^2\sigma_n^2/2}$ converges for any $t$ if and only if $\mu_n$ and $\sigma_n$ converges.   Let $\mu=\lim_n \mu_n$, and $\sigma=\lim_n\sigma_n$, then $\phi_X(t)=e^{it\mu-t^2\sigma^2/2}$, which proves that $X$ is a Gaussian random variable.  Why can we get that $\mu_n$ and $\sigma_n$ converge? This looks intuitive for me, but I cannot make a rigorous prove.


I have a simple question, I want to know how can I get the decimal part from a double/float number without the dot. Example: a=0.75 and b=3231.0131 So I would like to set those decimal values in two new Integer variables: m=75 and b=0131.  I'm going to clarify some things, I want to create a new int variable, that variable will storage the decimal part from the original number.  double a = 0.75 double b = 12.033 int x = decimalofa int y = decimalofb  System.out.println("the decimal of"+a+"is"+x+"and the decimal of"+b+"is"+y) //the decimal of 0.75 is 75 and the decimal of 12.033 is 033   The thing is that i'm not sure if 033 could be considered as an integer number, so in other words I just want to take all the numbers next to the point and save them in a new variable.

How do I get whole and fractional parts from double in JSP/Java ? If the value is 3.25 then I want to get fractional =.25, whole = 3  How can we do this in Java?


I think that this might be a stupid question, but I never figured this out. I think this might be a stupid question. If I get rid of the that, is it a run on? I see it a lot, so I think that it is right, but I can't figure out what it's called or the exact rules of it since "I think" and "This might be a stupid question" both seem like independent clauses, so why can they go together? I remember also seeing the following sentence in a book too. I want to tell her I would've known. Thank you! This is my first time using Stack Exchange, so please tell me if I did something wrong.

In general, when can I omit that from a sentence?   Can I omit that (emphasized) in sentence (2) below?        We say that such algorithms handle concept drift and can learn from time-changing data streams.   When the statistical properties of the target variable change, we say that concept drift has occurred.   She told me that some of her classmates failed.      To me, sentences (1) and (3) sound better without that. If I omit that from (2), it just doesn't sound right when I read it out loud. (I should point out I'm not a native speaker.)  How do you decide when to omit it? Is it just a matter of taste? (I know that is sometimes mandatory.)  Can you think of sentences that "sound better" with that? Can you think of sentences that "sound better" without that? Can you think of a few sentences where it is wrong to omit that?


How to prove $\mathbb{R}\times \mathbb{R}$ is equipotent (i.e. there is a 1-1 map between the two) to $\mathbb{R}$? The way to prove $\mathbb{N}\times \mathbb{N}$ is equipotent to is to $\mathbb{N}$ is to construct a function of two independent variables and one dependent variable, e.g. $g(m,n)=(m+n)^2+n$, and prove that it is bijective. How can we construct such a function for $\mathbb{R}\times \mathbb{R}\to\mathbb{R}$, or $\mathbb{C}\to\mathbb{R}$? It seems that we can use fractals to cover a two dimensional plane with a line. But what exactly are such fractals? And how can we write them with functional expression?

Could any one give an example of a bijective map from $\mathbb{R}^3\rightarrow \mathbb{R}$?  Thank you.


I have a question about a sentence pattern.  Sentences along the lines of these:       The store is a half hour's drive away.   The park is ten minutes' walk from my house.      , could be found on the web.  Is the use of of lengths of time to denote distances slightly non-standard?

I got a sentence like the below on VOA site. what does "quick walk away" means? Does it means "near" or "close"?      One of Lou Malnati’s downtown locations is a quick walk away from another Chicago institution


My original image taken on my mothers new canon is 4650 x 5829. I am looking to print this image on a fleece blanket 60x80 in size, to give to my father but when i input it into the computer it tells me poor quality image of 72 dpi. Will this image be of good quality to print to give to my father or should i find another method? Please help!!!!

For wall-sized graphics and large banners (e.g. 3m × 5m), what is an acceptable PPI for print? As I understand it 300 ppi is the typical for 'small' artworks (esp. for clean text resolution). However, for small artworks, the audience usually engages at a much closer distance. Therefore, in the interests of keeping a bitmap file down to a reasonable size, can you get away with a much-reduced PPI for a large format/banner print?


I have a problem, after first submit form success and load div,Form no submit update data second time.  Here code, please help me, thanks.  $(document).ready(function() {   $('.edit_gv').click(function() {     var id = 'modal_' + $(this).val();     $('#' + id).modal({       backdrop: 'static',       keyboard: false     });   });    $('.editgv_form').submit(function(e) {     /*$('.editgv_form').on('submit', 'input[name=submit]', function (e) {*/      e.preventDefault(); // Prevent Default Submission      $.ajax({       url: $path + 'edit_gv.php',       type: 'POST',       data: $(this).serialize() // it will serialize the form data      })      .done(function(data) {         $('#modal_edit_gv').modal('hide');         $('body').removeClass('modal-open');         $('.modal-backdrop').remove();          $("#all_giang_vien").load($path + '/giang_vien_load.php');       })       .fail(function() {         alert('Ajax Submit Failed ...');       });     return false;   });  });

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


I could not enter my mac, because I did not remember the password and then I changed it and tried to enter several times, but it does not let me.  I only have the close button and the password box.  I have written several times the new password and it does not take it and the other thing that I do is close the screen.  I have shutdown and restarted and nothing happens.  What can I do?  please help me :(

My sister bought a used MacBook about 6 months ago and she has lost her password.  Here is the procedure I tried to use to reset the password:   Boot into single user mode (press Command-S at power on) Type fsck -fy Type mount -uw / Type launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist Type dscl . -passwd /Users/username password, replacing username with the targeted user and password with the desired password. Reboot   But when I try the step 4, it says launch_msg(): Socket is not connected.  I would like to know what command to enter in the single user mode to know what version the Macbook is running and the right command to reset the password. Thank you.


I wanted to align the four images in a grid of 2x2, but the images are getting arranged vertically. I'm working on a template of IEEE format. This is the code that I'm working on:  \begin{figure}[!tbp] \centering  \begin{subfigure}{0.25\textwidth} \includegraphics[width=0.7\linewidth,height=5cm,center]{MobileApp/Menu.png} \caption{Menu} \label{fig:menu} \end{subfigure}  \begin{subfigure}{0.25\textwidth} \includegraphics[width=0.7\linewidth,height=5cm,center]{MobileApp/Cart.png} \caption{Cart} \label{fig:cart} \end{subfigure}  \begin{subfigure}{0.25\textwidth} \includegraphics[width=0.7\linewidth,height=5cm,center]{MobileApp/Address.png} \caption{Address selection} \label{fig:address} \end{subfigure}  \begin{subfigure}{0.25\textwidth} \includegraphics[width=0.7\linewidth,height=5cm,center]{MobileApp/Payment.png} \caption{Payment screen} \label{fig:payment} \end{subfigure}  \caption{Main screens of the application} \label{fig:main} \end{figure}   Any suggestions as to what needs to be done to get them arranged in a grid?

In this example,  \documentclass{article} \usepackage{graphicx} \usepackage{subcaption} \begin{document} \begin{figure}   \centering   \begin{subfigure}[t]{0.33\textwidth}     \centering     \includegraphics[width=\textwidth]{example-image-a}     \caption{a}   \end{subfigure}   \begin{subfigure}[t]{0.33\textwidth}     \centering     \includegraphics[width=\textwidth]{example-image-b}     \caption{b}   \end{subfigure}   \begin{subfigure}[t]{0.33\textwidth}     \centering     \includegraphics[width=\textwidth]{example-image-c}     \caption{c}   \end{subfigure} \end{figure} \end{document}   I chose the subfigure width equally 1/3 with the rationale that the figure span \textwidth exactly. From the result,    one can deduce that there is some overhead.  How do I optimally chose subfigure width so that the figure span textwidth exactly for N = 2, 3, 4, ... subfigures?


We are probably all familiar with this one: How come Fred and George don't realize the long-dead Peter Pettigrew is alive? They had the map for many years while Wormtail was at Hogwarts (he was Percy's rat first).

Fred and George stumbled upon the Marauder's map in their first year. They passed it on to Harry while in their fifth year. Also note that, while talking to Harry on the train, Ron described Scabbers as being "Percy's old rat".   Hence, we can safely assume that the twins had the Marauder's Map for about five years. How could they not see Peter Pettigrew on the map, with Percy for first two years and with Ron for the next three years?  How come Harry didn't see Peter? How was Lupin the only one able to see Peter on the map?


For example, in the sentence:     This is because he was smart, and he worked hard, and so he was very rich.    Is this structure correct? If not, how can the sentence be corrected?

According to the grammar I know, I only use either "because" or "so", but I do not use them in one sentence at the same time. I found that a translator always renders in this way. Sometimes the translator uses "because... and so," "not because...so," or "some say because... and so." My editing team are confused about that and don't know if it is a grammar error.  Is "because... and so" proper in written English?  Examples:     "Throughout history there has been no mention of extra terrestrial   beings living on the planet. Because they do not appear to us, and so   many feel they do not exist."      "And because she was young, and so damn clever and amusing and   wonderful, wherever she made her home, there would be some man who   would fall in love with her." (Crown of Midnight)      "Finitude is implicit in being limited, therefore, because being   limited, and so coming to a stop, is itself part of a thing's ownmost   being." (The Opening of Hegei's Logic: From Being to Infinity)   A quick google search shows 339,000 instances and of which 279,000 in the 21st century (supposedly). I want to make sure is "Because...and so..." proper grammar?


i want to sent my app java to clients but they dont have to install JVM to run. They just click double in app and run.  How do i have to adjust my app ? i hope everybody guide. Thank you!

If I have a Java source file (*.java) or a class file (*.class), how can I convert it to a .exe file?  I also need an installer for my program.


As I have come to understand, SSH always goes through the process of reverse DNS lookups whether you are connecting to user@example.com or a local server calleduser@192.168.0.56. I do not know, however, why the SSH command performs a reverse dns lookup for IP addresses regardless. Like, I had to change my DNS server configuration on my Pi to Google's open DNS so that my client machine wouldn't take so long to actually handshake with the server through DNS lookup with my ISPs DNS servers. Even when my Pi is on my local network.  tl;dr - Why does SSH do reverse DNS lookup for local IP addresses?

I've seen many other questions on this subject but none seem to actually solve my problem. Like any other day, I connect to my LOCAL Raspberry Pi server from my client machine at 192.168.0.5 with ssh pi@192.168.0.4. I then have to wait around 4 to 5 seconds before getting a Password: prompt.  By reading other questions I have found various papered fixes such as setting UseDNS to No in Server SSHD_CONFIG file. This does work and fixes my problem, giving me the password prompt almost instantly but this does not fix my problem in the sense of fixing the actual DNS. I thought because this was on my local network that it did not require reverse lookup?


     <button>generate new element</button>     I was trying to generate a new tag with class name test in the
 by clicking the button. I also defined a click event associated with test. But the event doesn't work.  Can anyone help?


So far, tutorials I have found create databases and tables inside Android applications.  Usually, (in other languages) I created a database and tables, then simply used them in an application.  Can I do it in an Android application?  I do not want to create them in an application, however, I want to create a database and tables beforehand I use them in the application.  For example, can I access to SQLite of an application (in a device) from the terminal?  How can I do?  Thank you!

If your application requires a database and it comes with built in data, what is the best way to ship that application? Should I:   Precreate the SQLite database and include it in the .apk? Include the SQL commands with the application and have it create the database and insert the data on first use?   The drawbacks I see are:   Possible SQLite version mismatches might cause problems and I currently don't know where the database should go and how to access it. It may take a really long time to create and populate the database on the device.   Any suggestions? Pointers to the documentation regarding any issues would be greatly appreciated.


If someone from Russia is leaving to visit the US, do they need plane tickets before applying for a visa?

On Travel.SE we often see questions about a person (usually a love interest) asking for money to pay for airfare, visas, permits and other expenses. For example        What general advice can be given in such situations to the person asking the question? Is it all a scam or can there be legitimate situations in which an online friend could be asking for money?


The render size for the project appears to be small in the QGIS 3.2 for MacOS.   Any tips how to increase this/make it wider?

In this screenshot of QGIS, you can see that the map is not filling the window. I have tried resizing the window in various ways.   Am I missing something obvious, or is this a bug?  Versions:   MacBook Pro MacOS High Sierra 10.13.5 QGIS version 3.2.1-Bonn QGIS code branch Release 3.2 Compiled against Qt 5.9.6 Running against Qt 5.9.6 Compiled against GDAL/OGR 2.2.4 Running against GDAL/OGR 2.2.4 Compiled against GEOS 3.6.2-CAPI-1.10.2 Running against GEOS 3.6.2-CAPI-1.10.2 4d2925d6 PostgreSQL Client Version 9.6.6 SpatiaLite Version 4.4.0-RC0 QWT Version 6.1.3 QScintilla2 Version 2.10.7 PROJ.4 Version 493 Python 3.6.6


I want to format my SD card for use within a SKY3DS+ Flashcart for the Nintendo 3DS, it needs to be formatted to FAT with a 64kb cluster size. The Disks Utility is not giving me the option to choose cluster size and the recommended DiskWriterV203b4.exe supplied does not run on Wine.   Is there any kind of format utility for Ubuntu 16.04 that will give me this option??

I want to format and set a single partition in an external hard drive with GParted (Ubuntu 12.04) and would like to set the Allocation Unit Size. I don't see any options to do this with GParted. Is there a way to set AUS in Ubuntu?


I use mac OS X Yosemite. Getchar() works fine, but getch() does not work. It says "Implicit declaration of function 'getch' is invalid in C99.

I am using getch() and my app crashes instantly. Including when doing:  int main() {     getch(); }   I can't find the link but supposedly the problem is that it needs to turn off buffering or something strange along those lines, and I still want cout to work along with cross platform code.  I was told to use std::cin.get(), but I'd like the app to quit when a key is pressed, not when the user typed in a letter or number then press enter to quit.  Is there any function for this? The code must work under Mac (my os) and Windows.    Linking/compiling is not an ; I include <curses.h> and link with -lcurses in XCode, while Windows uses <conio.h>.


Could you please explain to me why they use the Simple Future "I'll see" in Sentence 8? (in the attached picture).  I answered "I'm seeing" because i thought that "the meeting is set (tomorrow) and they have already planned it". And for arranged actions, we use Present continuous"   Please help me clarify this case. Thank you so much!

Can present progressive statements be use at present or for the future? or both?


I have to vrite an override function for my function DajGlos(), but I get back error CS0120 (An object reference is required for the non-static field, method, or property). How can I fix this? My code:  static void Main(string[] args)         {             Pies pies = new Pies("Reksio", "ssaki", "lądowe", 50);              Pies.Przedstaw("Reksio", "ssaki", "lądowe");             Pies.DajGlos();         }       abstract class Zwierze     {         private static string Rodzina { get; set; }         private static string Grupa { get; set; }         private static string Imie { get; set; }          public static void Przedstaw(string Imie, string Rodzina, string Grupa)         {             Console.WriteLine("Jestem " + Imie + ", rodzina: " + Rodzina + ", grupa: " + Grupa);         }          public abstract void DajGlos();      }      class Pies : Zwierze     {         public Pies(string Imie, string Rodzina, string Grupa, int dlugoscOgona)         {                      }         int dlugoscOgona;          public override void DajGlos()         {             Console.WriteLine("Bark!");         }     }```

Consider:  namespace WindowsApplication1 {     public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();         }          private void button1_Click(object sender, EventArgs e)         {             //int[] val = { 0, 0};             int val;             if (textBox1.Text == "")             {                 MessageBox.Show("Input any no");             }             else             {                 val = Convert.ToInt32(textBox1.Text);                 Thread ot1 = new Thread(new ParameterizedThreadStart(SumData));                 ot1.Start(val);             }         }          private static void ReadData(object state)         {             System.Windows.Forms.Application.Run();         }          void setTextboxText(int result)         {             if (this.InvokeRequired)             {                 this.Invoke(new IntDelegate(SetTextboxTextSafe), new object[] { result });             }             else             {                 SetTextboxTextSafe(result);             }         }          void SetTextboxTextSafe(int result)         {             label1.Text = result.ToString();         }          private static void SumData(object state)         {             int result;             //int[] icount = (int[])state;             int icount = (int)state;              for (int i = icount; i > 0; i--)             {                 result += i;                 System.Threading.Thread.Sleep(1000);             }             setTextboxText(result);         }          delegate void IntDelegate(int result);          private void button2_Click(object sender, EventArgs e)         {             Application.Exit();         }     } }   Why is this error occurring?     An object reference is required for the nonstatic field, method, or property 'WindowsApplication1.Form1.setTextboxText(int)


NOT A DUPLICATE!  The other question only asks about parenthetical phrases, not slash phrases.  The other question's parenthetical phrase (answer(s) explained that it's not really a parenthetical phrase) is a separate word. Mine is an intra-word parenthetical prefix. That's different!       Extreme votes on a Stack Exchange post often indicates that there was a(n) (dis)agreement.        When you see spam on Stack Exchange, you should cast a(n) upvote/flag.        The ship traveled across a(n) sea/ocean.   The first example's parenthetical thingymajigger is equivalent to the slash phrase "agreement/disagreement."  What's the correct singular indefinite article to use before slash phrase (this/that) and parenthetical phrases ((a)sexual, (de)criminalize)?

When a/an precedes a parenthetical aside (sometimes seen in informal/conversational writing), should the vowel rule depend on the first word in parentheses, or the next word in the "regular" flow of the sentence?     I need a (memorable) idiom (preceding an m word; use a)   or     I need an (memorable) idiom (preceding an i word; use an)


I assigned a variable map to null:  public static void main(String[] args){     Map map = null;     createMap(map);     System.out.println("map is:" + map); }  and I pass the variable map to the method createMap and re-assigned it:  public static void createMap(Map map){     if(map == null){         map = new HashMap();         map.put("key", "value");     } }    And the Variable map still is "null", could someone tell me why?

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 attempted to solve this problem by taking the two out of the integral. Then, I changed $\sec^3(x)$ to $\frac{1}{\cos^2(x)\cos(x)}$ and attempted to replace $\cos^2(x)$ with $1 - \sin^2(x)$.   However, I do not know where to go from here. Any insight, hints, tips, or answers would be fantastic.   Thank you for your time.

I need to calculate the following indefinite integral:  $$I=\int \frac{1}{\cos^3(x)}dx$$  I know what the result is (from Mathematica):  $$I=\tanh^{-1}(\tan(x/2))+(1/2)\sec(x)\tan(x)$$  but I don't know how to integrate it myself. I have been trying some substitutions to no avail.   Equivalently, I need to know how to compute:  $$I=\int \sqrt{1+z^2}dz$$  which follows after making the change of variables $z=\tan x$.


Problem:  If $a_0,a_1,a_2,a_3,....a_n$ are the set of residues modulo $n$ and $\gcd(a,n)=1$, prove that $aa_0,aa_1,aa_2,aa_3,....,aa_n$ is also a complete set of residue modulo $n$.  I have trouble in identifying what exactly should I show in order to prove this statement. In my opinion, the condition for having a complete set of residues is:    $aa_i\neq aa_j$ for any $0\leq i,j\leq n.$ $aa_i$ is not congruent to $aa_j$ for any $0\leq i,j\leq n.$   It is trivial to prove $1$ and $2$, but I would like to know whether both the conditions are sufficient or not.

I have this problem assigned for homework and I'm struggling with the proof of it:  If $a_1,a_2,\dotsc,a_n$ is a complete set of residues modulo $n$ and $\gcd(a,n)=1$, prove that $aa_1,aa_2,\dotsc,aa_n$ is also a complete set of residues modulo $n$.  (Hint: It suffices to show that the numbers in question are incongruent modulo $n$.)  I'm in elementary number theory so I'm not allowed to use an high-level theorems to prove this, I pretty much have to use the basics of modulo.  Thanks!


How many solution forms does the equation $X^{10}=I_2$ have in $M_2(\mathbb{R})$?   It seems one form of solutions is $X=\left[\begin{matrix}0&a\\\frac{1}{a}&0\end{matrix}\right]$.

How many solutions $X^{10} - I=0$ has in $M_2(\mathbb{R})$? Where $M_2(\mathbb{R})$ denotes the set of $2 \times 2$ real matrices.  I absolutely have no idea of where I should start from. $I$ and $-I$ solve the equation, but are there any other non-trivial solutions? Are there infinitely many solutions?


I'm baffled. I'm working on a project that requires the use of strcmp and it doesn't seem to be working at all. Above you see an example in gdb where two characters are said to be unequal. Obviously similar results when I compare my two char arrays. Further, when I compare the arrays with themselves I also get false (name above is a char[8]). When I run strcmp within my code on the same array it produces the correct results but not in gdb (seen in the third image) I just need a lead on where to look/what to do.  Thanks.  edit: the two code fragments from the images:  print strcmp("S", "S")==0   print strcmp(name, name)==0

When I make a call to the C string compare function like this:  strcmp("time","time")  It returns 0, which implies that the strings are not equal.  Can anyone tell me why C implementations seem to do this? I would think it would return a non-zero value if equal. I am curious to the reasons I am seeing this behavior.


I am using Debian. I tried to give a permissions to /opt/folder by using   chmod -R 0755 / filename   Unfortunately it changed the permissions of a lot of folders in the root filesystem. So it leads into a lot of problem.  Now I can't open any application (i.e) Terminal, Browser or even I get errors on restart.  How to open a Terminal? (starting and stopping)  How to resolve this whole problem?

I was trying to run chmod -R 777 ./ but ended up typing chmod -R 777 / and set 777 on my entire machine. What can go wrong? How can I fix it?


Let $(u_n)$ be a non increasing sequence of reals such that $\sum u_n$ converges.  I'm investigating the question: do we always have $u_n = o(1/n)$? I suspect not and I'm trying to build a sequence $(u_k)$ defined by $u_k = 1/\varphi_{n+1}$ for $k \in (\varphi_n, \varphi_{n+1}]$ where $(\varphi_n)$ is an increasing sequence of natural numbers. For the time being, I'm not succeeding in my construction...  Do you think that it is possible to build a sequence based on the construction above and satisfying the required assumptions? If yes can you provide such an example?

I'm studying for qualifying exams and ran into this problem.  Show that if $\{a_n\}$ is a nonincreasing sequence of positive real numbers such that $\sum_n a_n$ converges, then $\lim_{n \rightarrow \infty} n a_n = 0$.  Using the definition of the limit, this is equivalent to showing \begin{equation} \forall \varepsilon > 0 \; \exists n_0 \text{ such that } |n a_n| < \varepsilon \; \forall n > n_0 \end{equation} or \begin{equation} \forall \varepsilon > 0 \; \exists n_0 \text{ such that } a_n < \frac{\varepsilon}{n} \; \forall n > n_0 \end{equation} Basically, the terms must be bounded by the harmonic series. Thanks, I'm really stuck on this seemingly simple problem!


I declare a global variable pos, anyway the method printArr() doesn't see it. The interpreter says: undifined variable pos. Why? Thanks  import nltk   class Analyzer():      """Implements sentiment analysis."""          def __init__(self, positives, negatives):         global pos         global neg         positives=[]         negatives=[]         i=0         file = open("negative-words.txt","r")         for line in file:             h=file.readline()             if h!="":                 if h[0]!=';':                     negatives.append(h)                     i=i+1                     print(h)          i=0         file = open("positive-words.txt","r")         for line in file:             h=file.readline()             if h!="":                 if h[0]!=';':                     positives.append(h)                     i=i+1                     print(h)         neg=negatives         pos=positives       def printArr (self, arr):         print (pos[2])     """Initialize Analyzer."""   I'll try to make it easier: The next code does not work properly, the program still prints out "0", not "5"  import os import sys global x x=0  def func1():     x=5 def func2():     print (x)  func2()

How can I create or use a global variable in a function?  If I create a global variable in one function, how can I use that global variable in another function? Do I need to store the global variable in a local variable of the function which needs its access?


I'm new to blender and hit a bug probably.  I checked the material/texture/rendered view but the material is not being applied. I also created a new project and tested with a simple cube and tried the voronoi texture. The texture doesn't seem to work while I successfully applied bevel. I have checked the documentation and saw some tutorials and the followed the same steps as the videos but the material won't work.  EDIT:  OS is Ubuntu 16.04 LTS.  Using cycles render, it didn't work in blender render either. I was using 2.76 when I posted the question upgraded to 2.79 and the issue persists.  I assume material will be applied when I left click or press enter by selecting a certain material. Here's a screenshot

I was making a scene in blender and I wanted to change the texture from "Material_1" to "Material_2". It lets me change it but when I go to rendered view the part looks the same. can someone please help me


I opened a new account and attempted to post a question and this was the error that I got:    You can only ask 50 questions in a 30-day period.   Why should it happen with new account? What is the reason?

I have only asked 2 questions ever; when I now try to ask a question, it says that I have exceeeded the limit of 50 questions/30 days.  What's going on? How can I fix it?


I need to prove through a proof or disprove through a counter example that if $a_n$ is a sequence which has three sub-limits ( $a_n$ has three sub-sequences that each one of them have different limit)and $b_n$ is another sequence that has  two sub-limits( $b_n$ has two sub-sequences that each one of them have different limit) then could it be that there is a sequence $c_n$ that happens to be  $c_n$=$a_n$+$b_n$ and is convergent ? (convergent here means that $c_n$ has only one limit!!) any piece of advice is appreciated!!

I think it has to do with $\sin$ and $\cos$ because most of them have three limits but I couldn't find a good example that it is wrong although I think that it is indeed wrong.


I am coding a little program that prompts the user to enter in a password, if the user enters the incorrect password, then the program will keep prompting the user to enter in the password. Once the user enters in the correct password, then the program exits. I created a do-while loop to keep looping until the correct password is entered, but when the correct password is entered, the program continues to loop and does not exit. The variable value does not seem to reach the while clause of the program. Can someone please show me where I am going wrong? My code is as follows:      import java.util.*;     import javax.swing.*;      public class do_whilePassword     {  public static void main ( String [] args ) {    String choice = "";       do         {             choice = JOptionPane.showInputDialog("Please enter in a password");          }while(choice != "John" );  } }

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I am trying to set my project to use C# v7.3, but I am not able to get that version in to my language version list    I've got all these installed    I must be missing something obvious?!

What are the correct version numbers for C#? What came out when? Why can't I find any answers about C# 3.5?  This question is primarily to aid those who are searching for an answer using an incorrect version number, e.g. C# 3.5. The hope is that anyone failing to find an answer with the wrong version number will find this question and then search again with the right version number.


my device is ondo vi10. it is a android tablet i bought from a IT Fair. The current android version is 4.0.3. What are some ways i can update it?

This Community Wiki question is designed to be the "canonical question" for questions asking how to upgrade one's device to a new Android version.   I want to get a newer version of the OS for my Android device. How can I do that?  See also:


I had Ubuntu (150 gb) and zorin os (150 gb). In a hard drive of 320 gb, then using the Disks utilty of Zorin OS 9 which I'm running, tried to delete the Ubuntu one, because I will stay only with Zorin.  Then I noticed that is not so simple. And now that "free space 152 gb" shows as unallocated. My attempts for doing something about that from Zorin failed, I guess because can't do much with the HDD as I'm using an OS running on it right? So even gparted couldn't help.  How do I make a gparted USB bootable? Is that the way to go to boot and resize partition to use that unallocated space?  Can someone point me in the right direction, in a step by step guide?   I'm 100% stuck. Made the USB bootable with unetbootin, downloaded the gparted iso, but when I reboot and enter the BIOS, when pick the usb I get "The system found unauthorized changes on firmware, operating system or uefi drivers", and that's all, no joy,  no gparted resizing my partions or merging the unallocated space...  Tried booting with linux mint from bootable usb, and running gparted, but in that case I can't to anything with unallocated space either. I can only resize    The dev/sda1 can be shrinked only... I'd like to have a 294 gb hd instead... the unallocated simply doesn't show any options or commands (all grayed out)  If I enter any number on dev/sda1 in "free space preceding" (or following), that is substracted from "new size"....  After doing a `mount´ in terminal I see this:  /dev/sda1 on / type ext4 (rw,errors=remount-ro) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) none on /sys/fs/cgroup type tmpfs (rw) none on /sys/fs/fuse/connections type fusectl (rw) none on /sys/kernel/debug type debugfs (rw) none on /sys/kernel/security type securityfs (rw) udev on /dev type devtmpfs (rw,mode=0755) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620) tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755) none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880) none on /run/shm type tmpfs (rw,nosuid,nodev) none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755) none on /sys/fs/pstore type pstore (rw) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev) systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd) gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=fernando) /dev/sdb1 on /media/fernando/MULTIBOOT type vfat (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks2)   I guess what I need is to delete the sda2 partition, how do I do that?

I have two partitions, one of them has a file system and the other is unallocated.  How to merge two partitions?


I am a newbie in blender. I just had a trouble with modeling. I did a model in Zbrush, then I import that in maya to retopologize. then I import the retopologized model into blender. Problem is when I switch the mesh into edit mode, a part of mesh will become cyan color.  this is different from what I usually did.    Hanwen  Thanks

These Edges from Edit Mode are screwing up my Subdivide. What are they and how do I get rid of them?


Can we reproduce a basis of a vector space of all sequences?(if exists since by every vector space has a basis, but can we reproduce it)

Assuming the Axiom of Choice, every vector space has a basis, though it can be troublesome to show one explicitly. Is there any constructive way to exhibit a basis for $\mathbb{R}^\mathbb{N}$, the vector space of real sequences?


Do I need to write any kind of description or just the spell name. How do I know if I need to mark the "prepared" bubble or not? Also, to clarify, I write my first level spells in the first spell level slot. Furthermore, I'm not sure what I'm supposed to write in the "Slots total" part of the spell level bars.

I am a brand new player trying to create a character for D&D 5e. I have the PHB and a character sheet and am trying to figure out how to proceed, and I'm getting stuck a lot.   I have the normal character sheet for 5e from the D&D website, but lots of the boxes make no sense to me. The character creation seems to require a lot of back and forth throughout the entire book and it's very confusing. I was able to figure out my class (rogue), and race (high elf). I found out my proficiency bonus, and did my stats, but other than that I really don't know what I'm doing. I have lots of small questions that I can't really type into google, and the index in the book has been a life saver but only goes so far. But I am left with a large number of questions I'm having trouble finding the answers to by looking them up in the index, like:   What number and above is a success for a death save? What number and below is a fail? What are the lines next to the skills for? What do I put in personality traits? Is that just for fleshing out your character, or is it important to how you play the game? What do I put in bonds? Is that important or just fleshing out? What do I put in flaws? Important or fleshing out? What do I put in ideals? Important or fleshing out? What do I put in "other proficiencies and languages" What do I put in equipment and character notes? What do I put in features and traits? How do I fill out my attacks and spell casting sheet? And more.   How do I get started to where I understand the rules enough to fill out a character sheet like this?  There's a lot to the game, it appears, and I have some familiarity with the lingo from Geek and Sundry's Critical Role, but the learning curve seems really high.   D&D looks like a TON of fun, but I need a character first, ya know? How can I get through all these details so that I can get started?


Why doesn't buster blader the dragon destroyer swordsman with DNA surgery on the field stop destiny hero plasma's effect that allows plasma to take my monster. Oh BTW this is in the duel links game

How come  with  set to dragons didn't stop 's effect from being activated?


I got an impact driver last month, but I'm still afraid to use it for some stuff because I think I might over tighten the screw to the point of damaging one or both the parts or even strip the thread on plywood or plastic.  There is no torque setting (and from my research impact drivers don't have them), and I've seen it drive a screw deep into plywood and wood.  Can an impact driver be use for every kind of job? Like screwing electrical receptacles or knobs for drawers, for example.

Or vice-versa.  As best as I can tell, the impact driver is very good for most any type of screw going through wood.  When would you use a drill (with screw bit) instead?


I need a quick algorithm to select 4 random elements from a generic list. For example, I'd like to get 4 random elements from a List and then based on some calculations if elements found not valid then it should again select next 4 random elements from the list.

What is the best way to randomize the order of a generic list in C#? I've got a finite set of 75 numbers in a list I would like to assign a random order to, in order to draw them for a lottery type application.


I am trying to understand the hypergeometric distribution I looked at , I can see that it makes sense when we force each object to be distinct, though I am wondering why this is correct when each element is not distinct. For example if I am choosing from red und black balls the formula $\Pr(X = k)  = \frac{\binom{K}{k} \binom{N - K}{n-k}}{\binom{N}{n}}$ states that I would have to choose k out of the red balls and n - k out of the black balls. But in reality there is just one possibility to choose $\binom{K}{k}$ since every chosen red ball is the same und not distinct. It would just be a set $(r, ... , r)$ k times without being able to say what $r_i$ with $0 \leq i \leq k$ actually is. We could even choose $\Omega := {(𝑟,𝑟,𝑟,...𝑟,𝑟),(𝑟,𝑟,...𝑟,𝑏),...,(𝑏,𝑏,...,𝑏)} $ as sample space. Why is it not done in this way? So why do we have to enforce distincness of the objects when they are actually not distinct to get the disired result and why is this still correct?

In either case, one coin flip resulted in a head and the other resulted in a tail. Why is {H,T} a different outcome than {T,H}? Is this simply how we've defined an "outcome" in probability?   My main problem with {H,T} being a different outcome than {T,H} is that we apply binomial coefficients (i.e. we count subsets of sets) in some common probability problems. But if we take {H,T} and {T,H} to be different outcomes, then our "sets" are ordered, but sets are by definition unordered...   I feel as though the fact that I'm confused about something so basic means that I am missing something fundamental. Any help or insight whatsoever is greatly appreciated!


Suppose I bought 12 widgets for a set price, and I am able to sell one widget per month for the next 12 months. Also imagine that I have a monthly ARIMA forecast with confidence intervals for the price of a widget for this time period. How would I calculate the confidence interval around the expected profit from my widget sales? I don't think I can treat this probability distribution of a sum of 12 independent normals because each month has dependence on the prior months. Is there a good way to calculate the total profit's confidence interval given these inputs and the historical time series? Simple graph for reference:

I have a monthly time series (for 2009-2012 non-stationary, with seasonality). I can use ARIMA (or ETS) to obtain point and interval forecasts for each month of 2013, but I am interested in forecasting the total for the whole year, including prediction intervals. Is there an easy way in R to obtain interval forecasts for the total for 2013?


How to download SPE in ubuntu 13.10.I have python2.7.6 in anaconda 1.8.0.I need it for making programs

The title says it all. I'd like to know how I can install software - an example is the Chromium web browser.


This is a crop of my render test with cycles.    My Workstation: Win10, GPU Compute with NVIDIA 1050Ti How can remove all the light pixels in the scene?  Render settings

I often use Cycles' built in Glass BSDF shader to achieve realistic refraction effects, but in many cases, it seems that Cycles' glass caustics creates an unfortunately large number of fireflies (pixels that are abnormally bright relative to their surroundings). In some models of mine, even when I render for 3000 or more samples/pixel, my final image is still covered in fireflies. While I can improve this in many cases by increasing the total amount of light available in the scene, this loses a lot of the potency of the refractive effects I'm looking for, especially in scenes with low light levels.  So my question is, how can I reduce the amount of fireflies while using Cycles' caustics without sacrificing the quality of the refractive effects?  Note: I am aware that Cycles' caustics will perform much better once Cycles has full support for bidirectional path-tracing, but it looks unlikely that that will become , unfortunately.


I know there is a question with the following title: ""  This gives the answer to the question targeting WPF applications. I am working on a WinForms application where doubleclicking a specific file should start the program and open the file. Of course this is simple. Now when the application is already running I would like to open a file in the running application when it is doubleclicked.   To do this the application needs to be a singleton. I prefer the Mutex approach as described in this great article of   Now I would like to know how to open a doubleclicked file into the running singleton WinForms applications. Any help would be appreciated.

Using C# and WPF under .NET (rather than  or console), what is the correct way to create an application that can only be run as a single instance?  I know it has something to do with some mythical thing called a mutex, rarely can I find someone that bothers to stop and explain what one of these are.  The code needs to also inform the already-running instance that the user tried to start a second one, and maybe also pass any command-line arguments if any existed.


I have a Toshiba Satellite c640 laptop with Ubuntu 14.04 and Windows 7 installed. It was working fine for more than two years and for the last month I didn't use it. Yesterday I tried to turn on my laptop, it got stuck on the following screen.    I am unable to select the loader using keyboard arrow keys and also Ubuntu is not loading by default (it was working fine earlier if I didn't choose loader, Ubuntu will be loaded after 8 seconds).  More details: I am getting a continuous beep sound for some time before the screen shown above appears.  EDIT: I cannot say ubuntu is crashed as the system is not loading any OS and is stuck in the OS selection.

For some time my computer has been beeping three beeps together, then one and after awhile a long beep. Today ubuntu crashed. Any suggestions on what to do? I don't know if the two probelms are related.


I'm trying to set plugins to unchecked at start in QGIS-3.10, I thought it could be possible at the "Manage and install plugins" menu; if I uncheck the plugins they disappear from the menu, but whenever I restart they get loaded again, I'm trying with the purpose of a faster start and a cleaner look

I would like to turn off all plugins without uninstalling them.  I usually do this while testing to rule out an issue being caused by a plugin.  I am looking for the QGIS equivalent to the ArcMap Administrator setting BlockAddIns being set to 4:  0—Load all add-ins regardless of whether or not they have digital signatures. 1—Only load and use add-ins that are digitally signed by a trusted certificate authority. 2—Only load and use add-ins that have been published by ESRI. 3—Only load add-ins from the administrator folders (described below) and all add-ins published by ESRI. 4—Do not load or execute any add-ins in this application.


sudo apt-get purge linux-image-x.x.x-x-generic does not work  Unable to install anything as in synaptics, because there is no space on boot.  I get a message that boot has 0 bytes available.  After reading certain posts about this, I tried removing some of the old kernels, but each time I try, I get an error message saying that I should run apt-get -f install  When I try to run that, it says, I don't have enough space to run that command:  userone@userone:~$ sudo apt-get -f install Reading package lists... Done Building dependency tree        Reading state information... Done The following packages will be REMOVED   linux-image-extra-4.4.0-98-generic 0 to upgrade, 0 to newly install, 1 to remove and 28 not to upgrade. 3 not fully installed or removed. After this operation, 153 MB disk space will be freed. Do you want to continue? [Y/n] Y (Reading database ... 476523 files and directories currently installed.) Removing linux-image-extra-4.4.0-98-generic (4.4.0-98.121) ... depmod: FATAL: could not load /boot/System.map-4.4.0-98-generic: No such file or directory run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-98-generic /boot/vmlinuz-4.4.0-98-generic run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-98-generic /boot/vmlinuz-4.4.0-98-generic Error! Your kernel headers for kernel 4.4.0-98-generic cannot be found. Please install the linux-headers-4.4.0-98-generic package, or use the --kernelsourcedir option to tell DKMS where it's located Error! Your kernel headers for kernel 4.4.0-98-generic cannot be found. Please install the linux-headers-4.4.0-98-generic package, or use the --kernelsourcedir option to tell DKMS where it's located Error! Your kernel headers for kernel 4.4.0-98-generic cannot be found. Please install the linux-headers-4.4.0-98-generic package, or use the --kernelsourcedir option to tell DKMS where it's located run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-98-generic /boot/vmlinuz-4.4.0-98-generic update-initramfs: Generating /boot/initrd.img-4.4.0-98-generic WARNING: missing /lib/modules/4.4.0-98-generic Ensure all necessary drivers are built into the linux image! depmod: ERROR: could not open directory /lib/modules/4.4.0-98-generic: No such file or directory depmod: FATAL: could not search modules: No such file or directory depmod: WARNING: could not open /var/tmp/mkinitramfs_sLktUc/lib/modules/4.4.0-98-generic/modules.order: No such file or directory depmod: WARNING: could not open /var/tmp/mkinitramfs_sLktUc/lib/modules/4.4.0-98-generic/modules.builtin: No such file or directory  gzip: stdout: No space left on device E: mkinitramfs failure cpio 141 gzip 1 update-initramfs: failed for /boot/initrd.img-4.4.0-98-generic with 1. run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1 dpkg: error processing package linux-image-extra-4.4.0-98-generic (--remove):  subprocess installed post-removal script returned error exit status 1 Errors were encountered while processing:  linux-image-extra-4.4.0-98-generic E: Sub-process /usr/bin/dpkg returned an error code (1) userone@userone:~$ ×   Any idea how to fix this issue?

Every time I install a new Linux kernel, it gets left in the grub_config, making the boot menu longer each time.    I know I can manually search through the installed packages and remove them.  Does Ubuntu provide any easier way to clean them up or keep them from showing in the boot list?


Please don't mark this as a dupe until you've read the entire question. Once you have, see  for why it isn't a duplicate.   This question was originally posted on superuser.stackexchange before someone pointed out there was no way to implement such a feature without doing it network-wide, and to post it here instead.    Let me start by saying that this feature strikes me as the single most common sense feature that could currently be implemented onto the network: the vast majority of SE's value comes not from its questions, but from its answers, and questions are just the vehicle that leads to them. Therefore, exceptional answers are far more likely to exist than exceptional questions are, and the vast majority of the time, when users favourite questions, they're doing so not because they want to come back to the question itself, but one of the answers to it.   With this in mind, users across the SE network have been asking for the ability to favourite answers , less than a year after the inception of SO, and     .   Some have even dared to be visionaries and  (i.e. bringing the feature up to speed with the rest of the internet), and others have pointed out that the current implementation has . In short, the best way to summarise users' outlook on these issues would be that, when it comes to the implementation of features that would greatly benefit its users, the SE network seems to have become stagnant, at best.  In this particular case, Jeff Atwood's official answer to this feature request came two years later, a slightly patronising (and heavily censured) response . In the comments to that answer, he provides the only reasoning that:     We believe existing in-browser bookmarking tools are sufficient for this case. Considering the average stack overflow question has maybe 3 answers, tops, the distinction between "I favorite this question" and "I favorite this answer" is minimal. Allowing favoriting answers would also make the interface noisier, and implicitly encourage questions with lots of answers. This isn't going to happen, so either come to terms with the decision, or find another site on the internet that's more to your liking.    Jeff is , so we can live in hope that those currently at the top are less hard-headed about the issue, but that aside, his reasoning given in 2011 is demonstrably outdated: it's now common for questions on the SOFU sites - and even on the slightly less popular sites like English.SE - to attract between 5-10 answers, and for the more popular questions to attract in excess of 30. None of this seems to have been taken into consideration whenever users have asked for the feature to be implemented over the years - instead, these questions are robotically marked as duplicates, citing a 7-year old answer with outdated reasoning given by someone who's no longer involved in SE.  Even if for nothing else than to prove SE isn't determined to let itself stagnate and leave its users behind with the features of a site from the 2010s, when are we going to get the ability to favourite answers?

Lots of questions are very generic, "share an experience" kinds of questions. In these cases, I am quite often interested in specific answers that may not have gotten that many upvotes. These questions also tend to elicit lots of responses, so going back to find the answers I'm interested in somewhere in the middle of a sea of responses is a pain. Is there a way to favorite or bookmark these answers?


Event A has probability of 0.7 and Event B has probability of 0.6. If A and B are independent, what is probability that exactly one occurs?

I'm working on some problems from Pitman's Probability.  Let events $A$ and $B$ be independent, with $P(A)=0.1$ and $P(B)=0.3$. Find: $(a)$ Neither of the events occur $(b)$ At least one of the events occur $(c)$ Exactly one of the events occur  Attempt: $(a)$ If neither of the events occur, this is the complement of both events occurring. Hence $1-P(A\cap B)=1-P(A)P(B)=1-\frac{1}{30}=\frac{29}{30}$ $(b)$ At least one of the events can be represented as the union of the two events. Hence $P(A\cup B)=P(A)+P(B)-P(A\cap B)=P(A)+P(B)-P(A)P(B)=\frac{4}{10}-\frac{1}{30}=\frac{11}{30}.$ $(c)$ Not sure what this would be. Maybe $P(A^c\;\cap\;B)+P(A\cap B)$?


How did they come into existence from a photon? Is it really understood how the process works? Is there even a process or is it just something fundamental?

I understand that the photon needs to have enough energy to produce a lepton and it's antimatter partner, and that all of the properties are conserved, but why does the photon do this in the first place? What's going on "behind the scenes" to transform a single, neutral particle (the photon) into two charged particles (i.e. electrons)? Why is the nucleus necessary?


given that $a \tanθ+b \secθ=c$ I am told to prove that $\tan(α+β)=\frac{2ac}{a^2-c^2}$.Now, $$a \tanθ+b \secθ=c...(1)$$$$(b \sec θ)^2=(c-a \tan θ)^2$$$$(a^2-b^2)\tan^2θ-2ac \tan θ+(c^2-b^2)=0...(2)$$ Now solution book says that if the initial equation(1) has the roots α and β then the final equation (2) will have the roots $\tan α$ and $\tan β$. I don't get this assumption. Just because we have squared the expression, why will the roots turn into tangent of the previous ones and not anything else?

If $\alpha$ and $\beta$ are the solution of $$a \cdot \tan\theta + b \cdot \sec\theta = c$$, then show that $$ \tan(\alpha + \beta) = \frac{2ac}{a^2 - c^2}$$  I did the following:     $$a \cdot \tan\theta + b \cdot \sec\theta = c$$       Squaring both sides,  $$a^2 \cdot \tan^2\theta + b^2 \cdot \sec \theta + 2 \cdot a \cdot b \cdot \tan \theta \cdot \sec \theta = c^2$$      This implies $$(a^2 + b^2) \cdot \sin^2 \theta + 2 \cdot a \cdot b \cdot \sin \theta + (b^2 - c^2) = 0$$       Hence I get $$\sin \alpha + \sin \beta = \frac{-2ab}{a^2 + c^2}$$ and $$\sin \alpha \cdot \sin \beta = \frac{b^2 - c^2}{a^2 - c^2}$$   But I am not able to solve it further.


I used to manage plugins in Chrome by visiting chrome://plugins/ but version 57 it says:     The webpage at chrome://plugins/ might be temporarily down or it may have moved permanently to a new web address.   Is there a way to manage plugins in the newest versions of Chrome?

In the past, Google Chrome allowed toggling of plugins (like enabling/disabling Flash) from the chrome://plugins URL. This page no longer exists (as of Chrome 57.0.2987.98).   What is the way to access Chrome plugins from this point onwards?


Can anyone give an explicit formula for the area of a cyclic pentagon in terms of its sides? Just like Herons formula, and Brahmaguptas formula,  I hope there exists a similar formula for cyclic pentagons.    A proof would be especially appreciated. Thanks :)

For a triangle, we have  $$Area=\sqrt{p(p-a)(p-b)(p-c)},\qquad p=\frac{a+b+c}{2}.$$ For a cyclic quadrilateral, we have $$Area=\sqrt{(p-a)(p-b)(p-c)(p-d)},\qquad p=\frac{a+b+c+d}{2}.$$ Is there a similar formula for a cyclic pentagon?


MWE  \documentclass[a4paper,11pt]{article} \usepackage{enumitem} \begin{document} \setenumerate[1]{label=\textbf{\arabic*)}} \begin{enumerate} \item Problem One\label{one}.  \end{enumerate} See \ref{one}. Problem. \end{document}   Output    But that I want    That is the right parenthesis removed. I'm waiting for your help.

I am using enumitem to handle my enumerate and itemize lists. I have a list like  \begin{enumerate}[label=Step \arabic{enumi}.] \item step the first \label{en:step-1} \item el secundo \label{en:step-2} \item item the third \label{en:step-3} \end{enumerate}   When I cross-reference one of these items, the punctuation shows up in the document. For example,   Let us reference \ref{en:step-1}.   gives me  Let us reference Step1..   The regular enumerate or itemize environments don't have this problem; punctuation does not show up when cross-referencing.   In the enumitem documentation there is an option afterlabel but that is only for inline lists.  Is there an option in enumitem, or a way of using enumitem that adds the correct punctuation to the list, but lets me cross-reference the label without the punctuation?


Today I was driving by a UPS truck, which for those unfamiliar is a delivery truck used by a shipping company.  By standard definition UPS could be seen as an acronym as you can pronounce it "ups" however everyone (including the company) pronounces each letter instead, much like an initialism.  So my question is, in cases like these, which is it? Does the definition of acronym merely mean that a set of letters can be easily said, or does the actual implementation of the letters change the definition? As in, if a company chooses to pronounce their name as an initialism, does it become one?

One definition of an  is:     An abbreviation formed by (usually initial) letters taken from a word or series of words, that is itself pronounced as a word, such as RAM, radar, or scuba; sometimes contrasted with initialism.   An  is:     A term formed from the initial letter or letters of several words or parts of words, but which is itself pronounced letter by letter.   If I pronounce an initialism, as a word, and not just as letters, does that 'make' it an acronym?


I assume that the number of unique possible cardinalities that are uncountably infinite is either uncountable or countable because it is possible to take the powerset of each set, resulting in an uncountable number of elements; thus, there would be an infinite number of uncountable cardinalities. However, is this number of uncountable cardinalities going to be uncountable or countable?   Thanks!

I am currently aware of only two infinite cardinalities:   $\aleph_0 = |\Bbb N|$ $\aleph_1 = |\Bbb R|$   Questions:   Is there an infinite number of infinite cardinalities? If yes, is this set of cardinalities countable or uncountable?   I know that $\aleph_0<\aleph_1$ and I would tend to guess that the set of infinite cardinalities is countable at most (or possibly even finite), since there is no known element $K$ such that $\aleph_0<K<\aleph_1$.  BTW, are there any other acceptable operations (such as $+,-,\times,/$) between elements in this set?  Thanks


this is my code :   <script src="//code.jquery.com/jquery-1.11.0.min.js"></script> <script type="text/javascript">     $( document ).ready(function() {         var fso = new ActiveXObject("Scripting.FileSystemObject");         var filename = "C:\\xampp\\htdocs\\harti\\data.txt";         var f = fso.OpenTextFile(filename, 2, true, -1); // -1 means unicode         f.WriteLine("Hello world!");         f.Close();     }); </script>   the data.txt file exists. the question is why my code does not work ? thx

Can anybody give some sample code to read and write a file using JavaScript?


I have this C code line:  int a; a = (1, 2, 3);  printf("%d", a);   Why the value 3 is printed? (the last one).


I have an image that is projected using the Web Mercator projection.   Does anybody know how to transform (in ArcMap) this image from the Web Mercator projection to the Simple Cylindrical (Plate Carree) projection?

I put 4 different layers into my ArcMap document, but only one of them will show up on the map! I should be seeing the other 3 layers as well. When I do a Zoom to layer, I can see one layer, but I cannot figure out how to make the other 3 show up at once on top of each other.  Before I opened ArcMap, I used ArcCatalog where I right-clicked 3/4 of the shapefiles and  clicked Properties → Coordinate system → Import and then clicked on my Trees layer, which has the coordinate system I want the other 3 to have. But when I opened ArcMap the 4 layers did not overlap, nor could I move them above or below each other.


Basically, I have an HTML and JS code that makes few input tags on the page (text boxes). Those boxes appear when I press the buttons on the screen (just some JS configuration (playing with hide(), show() and append())).  Well, I wanted them to append their value to some tags in HTML when I press specific button on the screen. So I did. But I can't make them do that by pressing "Enter" and the "arrow enter" (mobile devices).  I tried .keyup(), but that does the thing only if the boxes are static, but I gave them the option to appear and disappear. (In the beginning I press a button - one appends to HTML with another 2 buttons (first to hide it, second is like "enter")). Pressing enter doesn't help when they are dynamic.  Well, I need this "enter" functionality (better on keyup() some how).  I've tried this code:  $(document).keyup(function() {     $('#myText').keyup(function(e) {         if (e.keyCode == 13) {             alert("Enter pressed");         }     }); });   Then:  $(function () {     $('#myText').keyup(function(e) {         if (e.keyCode == 13) {             alert("Enter pressed");         }     }); });  $(#myText).keyup(function() {     if (e.keyCode == 13) {         alert("Enter pressed");     } });   and many others. It works only on static ones.

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


For the last 30 days, all internal pages of my website have been showing 404 error in the Google cache. When I click on 'Cached' on any page, it shows below error message:     The requested URL /search?q=cache:BbNXUt4kf1EJ:SITEURL+&cd=2&hl=en&ct=clnk&gl was not found on this server. That’s all we know.     I tried to use the "Fetch as Google" feature from Google Search Console a couple of time, but no luck. It's still showing 404 error.

My site is getting 404. That’s an error. message when I click on cached from Google search results.  This is the error message from Google:  That’s an error.   The requested URL /search?q=cache:8kxLAgFrhZQJ:www.mysite.com.....&cd=8&hl=en&ct=clnk&gl=uk was not found on this server. That’s all we know.  What I did before I was getting this error is that about 10 days ago, I moved my hosting from Ixwebhosting to Gearhost (cloud based). I also added 301 redirect from non www to www.  I have no idea why I am getting this error. Please advise what might be the reason if there is a solution for it.  All of my pages are indexed by Google though.


I have read  but did not find an appropriate reply, hence I am posting this question.  I have a scenario where my Windows client is an anti-virus server.  To reproduce a bug, I need to hold the client side CIFS request by introducing some delay of 5-10 sec.  Can anyone tell me how I can do this?

I am working on a problem where I suspect there is an issue with network delay and timeouts. I currently can't reproduce it because I am unable to reproduce the delay part quite the way I want. Is there a tool available I can use to just arbitrarily delay outgoing network traffic by x seconds?


import java.util.Scanner;  public class teststuff {     public static void main(String[] args){         Scanner scan = new Scanner(System.in);               String test;         test = scan.next();          if(test == "example"){             System.out.println("it worked");         }     } }   Here's the code, and my input is "example" even though it's exactly the same it still doesn't give me a boolean true for my if statement. Is there something I'm doing wrong?

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


This setting, for every six hours, works fine  0 */6 * * *  But this runs every six hours at 0:00, 6:00, 12:00 and 18:00  Now I want to run every six hours, but starting at 2:00. I read on this  that should be  0 2/6 * * *  But crontab is returning an error of "bad hour"

I want my crontab to be every 4 hours but from a certain time 1 pm:  I chose this config:  0 1/4 * * *   but if I save I get the error:  bad hour errors in crontab file, can't install.   This following works perfectly, but then I cannot decide the starting time.  0 */4 * * *


Here is my document from the beginning: \documentclass{book} \usepackage[utf8]{inputenc}  \usepackage[a4paper, margin=1in]{geometry}  \usepackage{amsmath,amsfonts,amssymb} \usepackage{graphicx} \usepackage{setspace} \usepackage{lipsum} \usepackage{tocloft}  \usepackage{titlesec}  \begin{document}         \newgeometry{top=1.75in,hmargin=1in, bottom=1in}           \pagenumbering{gobble}  And here is the part that when I added to the document the numbering of the pages changed from the footer to the header (left and right alternatively): \titleformat{\chapter}[display]   {\normalfont\LARGE\bfseries}   {\titleline{}\vspace{5pt}\titleline{}\vspace{1pt}%   \MakeUppercase{\chaptertitlename} \thechapter}   {1pc}   {\titleline{}\vspace{0.5pc}}    \chapter{BIOLOGICAL STRUCTURE}  The main results of this chapter is to give  \section{PRELIMINARIES}  I also wanted to say that I used to use documentclass{article} when my numbering was in the footer. Can anyone tell me please what changed the place of the page numbering? and how can I keep the documentclass{book} and keep the page numbers in the footer?

So in the default book class, the page number for chapters appears at the bottom of the page. I just want the page numbering to alternate left and right, as it does for all other pages.   How can I change the different behavior for pages where there is a chapter?  I have googled the problem and I am aware the package fancyhdr may be of some use, but I don't understand how to use it (yes I read some of the documentation and I still don't understand). So far I just use its default behavior:  \usepackage{fancyhdr}  \pagestyle{fancy} \fancyhead[LE,RO]{\slshape \rightmark} \fancyhead[LO,RE]{\slshape \leftmark} \fancyfoot[C]{\thepage}  \begin{document} \Stuff \end{document}   EDIT: I want the page numbers to appear in the header. I've changed the code to look like this:  \usepackage{fancyhdr}  \pagestyle{fancy} \fancyhead[LE]{\slshape \rightmark} \fancyhead[RO]{\slshape \leftmark} \fancyhead[LO,RE]{\thepage}  \begin{document} \Stuff \end{document}   What this does is to alternate the pages depending on whether it is odd or even, but for chapters, the pages are still centered. Also, I now have page numbers listed in BOTH the header AND the footer for ALL pages...


My laptop is running Windows 7 and I connect my Wifi to my house. How do I change my computer's IP address without having to reset my internet router?

I need to test my application when there is a change in the IP address. What should I do to change my machines IP address?  Note: The IP address for my machine is obtained automatically. It's not a static IP.


Suppose given a point (IPoint) in some coordinate system. Required to transform it to another coordinate system. If both of coordinate systems are predefined, we can use IGeometry2.ProjectEx with transformation specified by corresponded constant from esriSRGeoTransformationType, esriSRGeoTransformation2Type, or esriSRGeoTransformation3Type enumerations.   The code looks like ()  package arcgissamples.geometry;  import com.esri.arcgis.geometry.*; import com.esri.arcgis.system.*;  public class ProjectGeometry {    public static void main(String[] args) {     try {       EngineInitializer.initializeEngine();       AoInitialize aoInit = new AoInitialize();        // Create a point with Geographic coordinates...       Point point = new Point();       point.putCoords(-100.0, 40.0);        System.out.println("");       System.out.println("Original coordinates: " + point.getX() + ","                 + point.getY());        // Create the SpatialReferenceEnvironment...       SpatialReferenceEnvironment spatialReferenceEnvironment = new SpatialReferenceEnvironment();        // Apply the initial spatial reference...       ISpatialReference geographicCoordinateSystem = spatialReferenceEnvironment                 .createGeographicCoordinateSystem(esriSRGeoCSType.esriSRGeoCS_NAD1927);       point.setSpatialReferenceByRef(geographicCoordinateSystem);        // Create the output projected coordinate system...       ISpatialReference projectedCoordinateSystem = spatialReferenceEnvironment                 .createProjectedCoordinateSystem(esriSRProjCSType.esriSRProjCS_NAD1983UTM_13N);        // Create the GeoTransformation...       //***************************************************       // !!!! How to define arg for createGeoTransformation??       IGeoTransformation iGeoTransformation = (IGeoTransformation) spatialReferenceEnvironment                 .createGeoTransformation(esriSRGeoTransformationType.esriSRGeoTransformation_NAD1927_To_WGS1984_5);        // Project the point...       point.projectEx(projectedCoordinateSystem, esriTransformDirection.esriTransformForward,                 iGeoTransformation, false, 0.0, 0.0);       System.out.println("Projected coordinates: " + point.getX() + " , "                 + point.getY());        System.out.println("Done!");        aoInit.shutdown();      } catch (Exception ex) {       ex.printStackTrace();     }   } }   But problem is that both original coordinate system and output coordinate system are defining at the time of program execution. So I need a function to define constant for ISpatialReferenceFactory.CreateGeoTransformation method like  int defineTransformationType(ISpatialReference srcCoordSystem, ISpatialReference destCoordSys)   Is it possible? And how to implement this function?

I’m currently building a Desktop add-in tool with ArcObjects that:   Asks a user to select a feature class Reprojects the feature class to Web Mercator Executes some geoprocessing   The initial coordinate system of the feature class could be one of many different geographic or projected systems.  As a result I need to also have the user select a GeoTransformation if necessary.  Obviously, I could present the user with the huge list of transformation provided in the enumerations of esriSRGeoTransformationType, esriSRGeoTransformation2Type, esriSRGeoTransformation3Type.   But that would be a huge list.  What I’d like to do is narrow that list based on the input and output Coordinate Systems – but I have not been able to figure out how to do that narrowing.   Anyone have experience doing this? I know there must be some way to do, because the Project Tool UI does exactly this narrowing operation.  But I can’t find the method, despite an exhaustive internet search.


I have following table:  ID    Event    Event2     Event3 102   181      182        184 103   5        7          8   I want to convert in into:  ID    Event 102   181    102   182  102   184 103   5 103   7 103   8   I tried with pivot table but no success. How to do this?


Let's assume there is a class like this:  public class NewClass : IDisposable {   public string name {get; set;}   public NewClass(string Name)   {     name = Name;   }    ~NewClass()   {     Dispose(false);   }     public void Dispose()    {     Dispose(true);     System.GC.SuppressFinalize(this);    } }    What does the ~NewClass() mean here? When and why to use expressions such as "~NewClass()" ()) inside a class? .... and how would it help?

I am looking at some code and it has this statement:    ~ConnectionManager() {     Dispose(false); }   The class implements the IDisposable interface, but I do not know if that is part of that the tilde(~) is used for.


I created a single shapefile that contains multiple polygons by selection by location of the route I had and the ESRI USA counties polygon layer to give me the counties that were in the area I was interested in.  I want to know if there is a tool to use that can take that new shapefile I created of only the new polygons in my area of interest into an individual shapefile for each county.  So say there were 25 counties that crossed my route, I'd like to have a quick way to get shapefiles individually for each 25 counties.  I'm sure there is a quick script for this, but I'm not too familiar with scripts didn't know if there was quick easy way for this than exporting each individually into shapefiles.     I'm also using ArcMap 10.2

I have a feature class with over 2,000 features, and I need to make them all individual feature classes based on a field.   Is there a way to do this?


When I try to compile this code, why does g++ report an error?  class A {   private:     static A* Aptr[5];   public:     static int A_count;     A() {         Aptr[A_count] = this;     } };  int A::A_count = 0;  int main() {     A a_;     A b_;     return 0; }     /tmp/ccrp4BGg.o: In function `A::A()': try.cpp:(.text._ZN1AC2Ev[_ZN1AC5Ev]+0x18): undefined reference to `A::Aptr' collect2: error: ld returned 1 exit status

Can anyone explain why following code won't compile? At least on g++ 4.2.4.  And more interesting, why it will compile when I cast MEMBER to int?  #include <vector>  class Foo {   public:       static const int MEMBER = 1;   };  int main(){       vector<int> v;       v.push_back( Foo::MEMBER );       // undefined reference to `Foo::MEMBER'     v.push_back( (int) Foo::MEMBER ); // OK       return 0; }


I have my ACER Aspire 5820TG - 433G32Mn and want to upgrade RAM memory.  Currently it has the following components:  CPU: Intel Core i5 430M  Mainboard: Acer ZR7B   RAM (3GB): 2048MB DDR3 PC3-10700 (667MHz) Samsung M471B5673FH0-CH9  1024MB DDR3 PC3-10700 (667MHz) Elpida EBJ10UE8BDS0-DJ-F   I replaced HDD to SSD, and want to also upgrade the RAM memory (3GB is pretty low, when using for example Android Studio, etc). I have some doubts, what parameters are needed to successfully upgrade it. As I see, current (original) RAM is 1333MHz, and 7-7-7-20 (?). But on the intel site i see that it works with 800/1066. So it is probably underclocked.  Which RAM will suit me? What is important? Timings must be the same? What else?   I want to upgrade it to 6GB (leave current 2GB and buy 4GB, or buy 2x4GB, as I guess, that I can use only 2 slots)  Here are some pictures from CPU-Z:

If I want to add more RAM to my computer, how can I buy something compatible? What kinds are there? How do I determine which kind my computer will accept and how much I can add?


I have helper function formatting my money value into pounds and pence:  formatMoney: function(10496.470000000001){     return value.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "1,"); },   Gives me:  11,496.471,001,001,001  Is there a way I can format this accurately into pounds and pence? so it reads, £11,496.471p

I would like to format a price in JavaScript. I'd like a function which takes a float as an argument and returns a string formatted like this: "$ 2,500.00"  What's the best way to do this?


Often in a professional setting, I want to say "X has really been kicking ass (and taking names!)"  Sometimes I say "kicking butt" but it doesn't have quite the same emphasis. I don't want to say ass as I don't think its polite in some contexts. What is a equivalent expression that is polite yet just as encouraging?   In accordance with the comment suggestions, I will clarify that this question is asking about "kicking ass" in the form of doing really well, not necessarily beating someone else in a competitive sense - to trounce, cream, take them to the cleaners, etc. If Sarah is kicking ass at real estate sales, she's not necessarily beating anyone else, just doing really well.

So, you have a web site to which you've posted a review stating "How to Kick Ass". This gets censored, which I can understand.  What's a very colloquial, not necessarily modern slang, easily recognizable equivalent to kick ass?  This review is in a military context.  The metric is, would it be inspiring for a graduation speech at West Point but also easily recognizable to a civilian? If it's a bit… colorful, then all the better. But it should be able to pass profanity filters.  Clarification of the context.  It's about a German WWII armored tactics history/handbook.  My original review title was going to be 'Kick Butt 103' - I wanted to convey the sense that it was an impressive course to instill advanced organizational wisdom and experience, in this case on how to dominate your enemy.  Besides the title, my review goes into more details about how it is very much a 'how to' combat manual.  But I did want the title to be somewhat clear on its own.  Amazon wasn't keen on 'butt' however - which I thought a bit over the top.  Butt is colloquial, and colorful, but hardly obscene or profane.  'Kick Ass 103' would work as well.  But 'Trounce 103' or 'Dominate 103', to take two good suggestions below, would, in my opinion, leave a reader rather puzzled as to what I was trying to say - about the only thing those two evoke are edgy website user names.  Pown 103 might work, but that is gamer slang and might be too obscure to older readers.


First off thank you for taking the time to scroll through this.  I am basically a greenhorn when it comes to Java but I am working on a program that asks the user some basic info then sets a start date and then schedules service dates at bi weekly intervals between March and October from their start date.  For the start date variable, I simply set it up as:  STARTDATE = getDate();   to give the current date when the user signs up.  I have been sifting through my searches for days but I cannot figure out how to increment the service dates by 14 days to save my life.  I tried using SERVICEDATE = STARTDATE + (0, 14, 0);  but I cant make sense of whats really happening here.  Any ideas?

Anyone know a simple way using Java calendar to subtract X days from a date?  I have not been able to find any function which allows me to directly subtract X days from a date in Java. Can someone point me to the right direction?


In the scene The Butcher of Blaviken, Geralt killed or gravely wounded half a dozen men without hesitating but when fighting Renfri, he is rather hesitant and even though he had warned her "If we cross swords...", impling he'll kill her if they do cross swords.                                In the trailer for The Witcher 3: Wild Hunt, he kills three men he considers evil, again without hesitation, even torturing one by hanging him and deliver him at the merci of his victim.                                He protects Duny at the court of Cintra as he's an intelligent being (and not a monster) and also wants to help the Hirikka (before it is slayed for Kingdom and Honor). It somehow just is not consistent for me that at one moment, he kills without any hesitation and at others, he tries to save lifes and is risking his own. Is there a code he follows what intelligent being it is fine to slay and who shall be protected? And how ruthlessly is Geralt following that if he determines somebody needs to be killed? With Butcher of Blaviken, it would seem that he doesn't have any hesitation about killing people in his way.

I have just seen Netflix's show The Witcher. In the first episodes, I got the feeling that Geralt doesn't kill live being if they are intelligent unless it is in defense. He says to the Sylvan in the second episode:     You are intelligent, I'll give you that.   So I won't kill you, but you can't stay here.   It looked like he is a man of strong principles.  But later in the show, it is normal for him to kill people even when it is not really necessary. For example: In S1E7       after he escapes the prison, he goes to the castle, talks to the guard, and then kills him, even if he could stun him, or maybe even leave (actually he even killed his guard in prison before, but that is partially in defense).   So it seems that his principles are more complex than just defense or defense or non-intelligent.  So what are his policies and principles to be willing to kill someone/something?  I didn't understand it from the show, so I guess the books are the appropriate source.