How to fix a "destination with the same identifier" warning with subequations?

When compiling the following document (a minimal failing example):  \documentclass[a4paper,12pt]{book}                                                                                \usepackage[T1]{fontenc}                                                                                \usepackage[utf8]{inputenc}                                                                                \usepackage{hyperref}                                                                                \usepackage{amsmath}                                                                                \author{AUTHOR}                                                                                \title{TITLE}                                                                                \begin{document}                                                                                \frontmatter                                                                                \maketitle                                                                                \tableofcontents                                                                                \mainmatter                                                                                \begin{subequations}                                                                                \begin{equation}                                                                                a = 1                                                                                \end{equation}                                                                                \begin{equation} \label{my_label}                                                                                b = 2                                                                                \end{equation}                                                                                \end{subequations}                                                                                \appendix                                                                                \backmatter                                                                                \end{document}   I got the following pdfTeX warning:  pdfTeX warning (ext4): destination with the same identifier (name{equation.0.0.1}) has been already used, duplicate ignored   How to get rid of the warning? I do not thing .   neither works.


As thisuser, I go to shell and run $ su anotheruser. It asks for password and then switches the user. Then I run $ gedit anyfile. But now instead of opening gedit, it gives error:  No protocol specified (gedit:388): Gtk-WARNING **: cannot open display: :20.0   How do I get this running?  EDIT:  Output of ls -l "$XAUTHORITY" when run as anotheruser  -rw------- 1 thisuser thisuser 260 Mar 31 22:35 /home/thisuser/.Xauthority


I have four different equations numbered as Eqs. (1), (2), (3), (4).   I want to refer them like Eqs. (1-4) in a text. How can I do it?


Is there a lightweight web server that only does http/https redirects? Right now I am looking at using lighttpd, but even than seems like overkill for what I need to do.


I'm not sure what has happened, but I've all of a sudden lost write access to any of my NTFS external drives.   I installed a few games and apps from the software center, and now I can't make new folders or copy and paste files to anything that is NTFS. Everything is now read only, and I've tried so many things to fix it, but it seems hopeless.  Just to check if it wasn't the drives themselves, I made a little ntfs formatted truecrypt volume, and a fat formatted volume. And yes, it seems that Ubuntu is blocking me from writing anything to NTFS.   What happened here?  Whats a way I can simply get write access to my NTFS drives, so I can just backup all my stuff.  I'll probably reinstall Ubuntu. Please help.    UPDATE (and thanks everyone for their quick replies)  The problem has been solved.  Prior to noticing that I had lost NTFS write permission, I had installed GParted from the software center, and there was an extension called ntfsprogs that came with it.  During my search for a solution to the problem, I uninstalled GParted (as that was one of the apps I installed just before the problem). But that did not solve the problem.  I came across an app called 'NTFS Configuration Tool'. When I installed this, it said that the ntfsprogs extension needed to be removed (so I guess uninstalling GPARTED, didn't remove the ntfsprog extension).  I launched the NTFS Configuration Tool and now I have write access to NTFS drives. Unfortunately, I didn't check if I had write permission prior to launching the NTFS Configuration Tool, so I'm not sure whether the NTFS Configuration Tool, or the un-installation of ntfsprog gave me back NTFS write permission.   Hopefully if another newbee encounters this problem, they'll come across this page and know what to do.


my OS was left to 10.10 and I was unable to upgrade it to 11.04. Is there a way I can upgrade this to the latest version (13)? thank you.


If we have a uniform prior probability distribution across all ranges of $ \theta $, does maximum a posteriori become maximum likelihood estimation?

While I am studying maximum a posteriori, somehow it just came across my mind that if I have a uniform prior probability distribution, MAP looks like MLE, am I right?


"I don't think they can go with us, can't they? / can they?" Which one is correct?


Wordsmith, singer, Leonard Cohen was perplexed as what word rhymes with orange?

My first question was basically, "What word, or words, rhyme with orange? The word "tinge" was not included in any of the answers, or words presented to me. Thank you for your patience as a new contributor. I changed my question, citing my reason for asking a question that seemingly had been answered. I believe there is much more to add. As quoted below, Mr. Leonard Cohen was befuddled to find a word that rhymes with orange. I wish he was was still with us, as I have answered this query of his. My answer would be: "The woman I long for has hair of a brilliant orange - With a familiar scent, and beauty of a radiant tinge." In the 'McLeans' Magazine' article - 'The heart will not retreat': How we loved Leonard Cohen' From 2016: Brian D. Johnson on the private and permanent connections Leonard Cohen’s fans felt for him. By Brian D. Johnson November 16, 2016, Second paragraph: Leonard Cohen said in part, as quoted, "The first time we met was in a Toronto hotel, in 1992. Leonard was on a 17-country talking tour, promoting his album The Future. Speaking in finely tooled paragraphs, he described the ordeal of creating an album: “Layers of friendship fall away, and you know that you’re in it when you’re not doing anything else but trying to find the rhyme for ‘orange.’ It doesn’t exist. Some people say it’s ‘door hinge,’ but that’s not right.” As I left, he thanked me profusely, as if I had just joined his army, and I floated out onto the street feeling special. I was chagrined to see the no-rhyme-for-orange line appear in another interview, but came to learn that Leonard treated publicity as a ritual that required a polished repertoire. What mattered is that face-to-face he was so utterly present, respecting the moment as if it were as valuable as any other..." Footnotes: If you have interest in this article regarding Leonard Cohen, and the rhyming of the word orange, the link is:


Given that $a_n > 0$, prove: $\liminf \left(\frac{a_{n+1}}{a_n}\right)\leq \liminf\; \sqrt[n]{a_n}\leq\limsup\left(\frac{a_{n+1}}{a_n}\right)$

Given that $a_n > 0$, I need to prove: $\liminf \left(\dfrac{a_{n+1}}{a_n}\right)\;\leq \;\liminf\; \sqrt[\Large n]{a_n}\;\leq\;\limsup\left(\dfrac{a_{n+1}}{a_n}\right)$.  I am really confused about how to use the definitions to prove $\liminf \left(\dfrac{a_{n+1}}{ a_n}\right)\;\leq\;\liminf \;\sqrt[\Large n](a_n)$.  As most of you might have guessed the motivation for this comes from the ratio test and the root test for convergence of series.  Any help is much appreciated.


Find $\lim\limits_{x\to 1}\frac9{1-x^9}-\frac7{1-x^7}$ without using L'Hopital

$$\lim_{x\to 1}\frac9{1-x^9}-\frac7{1-x^7}$$  I did this with l'Hôpital's rule, but how can we do this problem other than that? Any hints will be good.


Proving that uncountable sets are of the same cardinality

In this week's discrete mathematics' class, we received the following 2 exercise subsections:   prove that the sets: $[a,b],(a,b)$ have similar cardinalities. prove that the sets: $(a,b),(0,1)$ have similar cardinalities. if we know that $A=\{x\in \mathbb N,2|x\},B=\{x\in \mathbb N, 3|x\},$ prove that $C=A\cup B$ has the same cardinality.   I'm lost, especially with the 2 first questions. In the third one, I have succeded in proving that $A$ and $B$ have the same cardinality, but can't seem to find a bijective function from $A$ to $C$.


What is actually universe? only matter or both matter and space?

I have googled for the "meaning of universe" where I found the following: "all existing matter and space considered as a whole; the cosmos. The universe is believed to be at least 10 billion light years in diameter and contains a vast number of galaxies; it has been expanding since its creation in the Big Bang about 13 billion years ago."  Now,I have heard about big bang theory which tells that universe was initially a point of infinite density .But in the above definition I see space is also included in the universe. so if the universe was initially a point then what was outside that point? And how this point is expanding if there is nothing outside it? That is why I don't understand the balloon analogy also which is expanding in space. But here the universe itself contains the space according the google definition.  Probably I have this question in my mind because I couldn't visualize how the space meets on itself in 3 dimension like earth's surface does on 2 dimension.


I am trying to find out what the average duration of PhD studies are in the USA. Here in Spain it used to be 4 years, but it seems that Europe is moving towards a 3-year scheme since students are expected to do their MSc before they start. What is it like in the USA? Is some kind of shortening also occurring?


Running external Hard Drive 24/7, reliable?

So I have a router with USB storage features, I also have a Raspberry Pi 2 and WD external HDD 1TB.  I want to turn it into a NAS and torrent box, but I'm wondering if leaving external HDD plugged in all the time is safe? By safe I mean the HDD will not break after let's say a year due to constant read/write.


insert strings on a SQLite database using the PHP exec()

I'm trying to insert therms in a database using the exec function from the PHP's SQLite3 library and I'm having problems with strings:  foreach($xml->children() as $child) {     $id = 0;     $nome = "null";     $partido = "null";     $tag_localizacao = 0;      foreach ($child->children() as $grandchild) {            switch($grandchild->getName()) {             case "id":                 $id = $grandchild;                 break;             case "nome":                 $nome = $grandchild;                 break;             case "partido":                 $partido = $grandchild;                 break;             case "tagLocalizacao":                 $tag_localizacao = $grandchild;         }     }     $db->exec('INSERT INTO lista_deputados (id, nome, partido, tag_localizacao) VALUES ('.$id.','.$nome.', '.$partido.', '.$tag_localizacao.')'); }   $id and $tag_localizacao are integers, and it works perfectly. $nome and $partido are strings and don't work at all... when the string has just one word, like "test" the PHP thinks that it's a column and if has more words i don't know exactly what happens but the error message is:     Warning: SQLite3::exec(): near "Lopes": syntax error in C:\wamp\www\desafio\temp.php on line 30   In the case the string is "Adalclever Lopes".  I'm really not understanding what is happening, and I even tried to escape the string.


I work "at" registrar's office or "in" registrar's office?

I am confused about whether I should write "I work at registrar's office" or "I work in registrar's office"


Possible Duplicate:          I'm trying to understand the exact point of failure in the following reasoning:  \begin{equation*} 1 = \sqrt{1} = \sqrt{(-1)(-1)} = \sqrt{\sqrt{-1}^2\sqrt{-1}^2} = \sqrt{(\sqrt{-1}\sqrt{-1})^2} = \sqrt{-1}\sqrt{-1} = \sqrt{-1}^2 = -1. \end{equation*}  I've been previously told that the problem is due to square root not being a function in C; which I found totally unhelpful. Could someone please explain the problem here in simpler terms.  Edit:  Thank you all for your comments in trying to help me understand this. I finally do. Following is the explanation on my problems in understanding this, in case it'll be of any help to anyone else.  My problem was really due to using an incorrect definition of i: $i = \sqrt{-1}$. While the correct definition would be: $i^2 = -1$.  My incorrect definition led me reasoning, such as (which superficially seemed to give expected results. I see now that this is incorrect, too):  \begin{equation*} \sqrt{-9} = \sqrt{9 * (-1)} = \sqrt{\sqrt{9}^2 \sqrt{-1}^2} = \sqrt{(\sqrt{9} \sqrt{-1})^2} = \sqrt{9} \sqrt{-1} = 3i. \end{equation*}  Instead, had I used the correct definition of i:  \begin{equation*} {(xi)}^2 = x^2i^2 = -x^2 = -9, \\ x^2 = 9, \\ x = +- 3. \end{equation*}  Now, analyzing the equations in the original problem, I can see at least the following two errors:  1) In the third =, I'm relying on $-1 = {\sqrt{-1}}^2$, while I should be relying on: $-1 = (+-\sqrt{-1})^2$ which would of course give two different branches. Hmm.. on the second reading, this isn't really a problem, as even with the two separate branches, both of them will lead to the result in the next step.  2) In the fifth =, I'm relying on $\sqrt{i^4} = i^2$, which would be correct, if i was a non-negative number in R. But as i is the imaginary unit and in C: $\sqrt{i^4} = \sqrt{i} = +-(1/\sqrt{2})(1 + i)$.


Residual Sum of Squares degrees of freedom intuition

Let RSS = Residual sum of squares $ = \sum (y_i - \hat{y}_i)^2$. Without proof, $\frac{RSS}{\sigma^2} \sim \chi^2_{n-2}$. I do not quite understand why the DoF is $n-2.$ Could someone explain?


I would like to play youtube videos on VLC. I am newbie (one of mac os re, but can fallow instructions :) when i enter address on network stream nothing happens it is on the playlist but nothing happens it is not playing. I have a firewall if it helps :)  Problem solved thanks to your help!!


Proof: $\det\pmatrix{\langle v_i , v_j \rangle}\neq0$ $\iff \{v_1,\dots,v_n\}~\text{l.i.}$

Let $V$ be a real inner product space and $S=\{v_1,v_2, \dots, v_n\}\subset V$. How am I to prove that $S$ is linearly independent if and only if the determinant of the matrix $$ a_{ij}=\pmatrix{\langle v_i , v_j \rangle}$$ is nonzero?    Just to be clear, the matrix we're talking about is this one:  $$\pmatrix{\langle v_1,v_1\rangle & \langle v_1,v_2\rangle &\langle v_1,v_3\rangle & \cdots & \langle v_1,v_{n-1}\rangle & \langle v_1, v_n\rangle \\\langle v_2,v_1\rangle & \langle v_2,v_2\rangle &\langle v_2,v_3\rangle & \cdots & \langle v_2,v_{n-1} \rangle & \langle v_2,v_n\rangle \\\langle v_3,v_1\rangle & \langle v_3,v_2\rangle &\langle v_3,v_3\rangle & \cdots & \langle v_3,v_{n-1}\rangle & \langle v_3,v_n \rangle \\ \cdots&\cdots&\cdots&\cdots&\cdots&\cdots\\\langle v_{n-1}, v_1\rangle & \langle v_{n-1},v_2\rangle &\langle v_{n-1},v_3\rangle & \cdots & \langle v_{n-1},v_{n-1}\rangle & \langle v_{n-1},v_n\rangle \\\langle v_n,v_1\rangle & \langle v_n,v_2\rangle &\langle v_n,v_3\rangle & \cdots & \langle v_n,v_{n-1}\rangle & \langle v_n,v_n\rangle \\ }$$    I highly doubt that anybody here has Roman's Advanced Linear Algebra, or maybe you do, but I think on page $261$ there is a small note on something which looks similar.    Should anybody need the code (C++) in their research, here is a gadget which streams LaTeX code to a file named "matrix.txt" for an $n \times n$ matrix such as this with some value for $n$:  ofstream fout; fout.open("matrix.txt");  int n; cout << "Enter your desired n: "; cin >> n;  fout << endl;  fout << "$\\begin{pmatrix}" << endl;  for( int j = 1 ; j <= n ; j++ ) {     for( int i = 1 ; i<= n ; i++ )     {         if( j == i && i == n )         {             fout << "\\langle v_" << j << "," << "v_" << i << " \\rangle" << endl;         }         else         {             if( i == n )             {                 fout << "\\langle v_" << j << "," << "v_" << i << " \\rangle\\\\" << endl;             }             else             {                 fout << "\\langle v_" << j << "," << "v_" << i << " \\rangle&" << endl;             }         }     }     //fout << endl; }  fout << "\\end{pmatrix}$" << endl << endl;   For n equal to 5 you get this result:  $\begin{pmatrix} \langle v_1,v_1 \rangle& \langle v_1,v_2 \rangle& \langle v_1,v_3 \rangle& \langle v_1,v_4 \rangle& \langle v_1,v_5 \rangle\\ \langle v_2,v_1 \rangle& \langle v_2,v_2 \rangle& \langle v_2,v_3 \rangle& \langle v_2,v_4 \rangle& \langle v_2,v_5 \rangle\\ \langle v_3,v_1 \rangle& \langle v_3,v_2 \rangle& \langle v_3,v_3 \rangle& \langle v_3,v_4 \rangle& \langle v_3,v_5 \rangle\\ \langle v_4,v_1 \rangle& \langle v_4,v_2 \rangle& \langle v_4,v_3 \rangle& \langle v_4,v_4 \rangle& \langle v_4,v_5 \rangle\\ \langle v_5,v_1 \rangle& \langle v_5,v_2 \rangle& \langle v_5,v_3 \rangle& \langle v_5,v_4 \rangle& \langle v_5,v_5 \rangle \end{pmatrix}$  As is lengthily explained .


How do I draw a grayscale shaded sphere with tikz-3dplot? I tried using \tdplotsphericalsurfaceplot with radius equal to 1, and parametricfill depending on the spherical angles. However, it looks like I can only prescribe the color's hue (in HSB space), according to the , which does not suit me. I could go all the way and redefine  \tdplotdosurfaceplot, but that seems overkill.   Let me emphasize that I want true 3D drawing (the rest of my picture requires 3D coordinates: I need to draw arcs), so I cannot use 2D tricks such as   \draw [ball color=white] (0,0,0) circle (1) ;   so this is not a duplicate of . I explicitly want a 3d drawing, preferably with tikz-3dplot, though I'm open to other 3d packages.  Here are two MWEs: the first sphere uses uniform coloring, while the second uses a linear combination of the spherical angles:  \begin{tikzpicture}[tdplot_main_coords] \tdplotsphericalsurfaceplot[parametricfill]{24}{24}{1} {black}{50}{}{}{} \begin{scope}[xshift=4cm] \tdplotsphericalsurfaceplot[parametricfill]{24}{24}{1} {black}{\tdplottheta+\tdplotphi}{}{}{} \end{scope} \end{tikzpicture}   I would also like to get rid of the parametric lines... Maybe this is not the right package to work with, or the right command in the package.


Is there an analytical solution for the Kullback-Leibler-Divergence with two univariate Lognormal distributions?

The KL is given by: $D_{\mathrm{KL}}(P\|Q) = \int_X p \, \log \frac{p}{q} \, d\mu.$  The PDF of a Lognormal distribution is given by: $P = \frac 1 x \cdot \frac 1 {\sigma\sqrt{2\pi\,}} \exp\left( -\frac{(\ln x-\mu)^2}{2\sigma^2} \right).$  My Question is if it is possible to obtain an analytical solution for the KL with the given PDFs. I've searched the google and found nothing on it, except    Where the solution to my question is given as:  $$ D(f_i\|f_j)= \frac1{2\sigma_j^2}\left[(\mu_i-\mu_j)^2+\sigma_i^2-\sigma_j^2\right] + \ln \frac{\sigma_j}{\sigma_i}, $$ But I think this is wrong. I calculated numerically the KL for two Lognormal distributions and it does not match with this solution.  With these parameter:  $p(x)=\text{Lognormal}\left(0,1\right),~~q(x)=\text{Lognormal}\left(5,4\right)$  I get numerically:  $D_{KL_{numerical}} = 1.256$  The expression on the other hand yields:  $D_{KL_{analytical}} = 2.776$  Maybe someone else could provide more insight here because I was unable to derive an analytical solution for the KL of two Lognormal distributions and it was asked at least   If someone has some clever tricks for how to derive it, i will try my best and, if successful, post the solution here.  EDIT:  thanks to kjetil b halvorsen who pointed out that in   was named to contain the same solution for my problem as it was stated in the post i was mentioning originally.   Still the problem that i can't validate this solution persists. Can someone maybe confirm the given solution or give me a hint how to derive it ?


For example:     Detective Jones   I think the D in Detective Jones should always be capitalized, because I believe that is the norm.  But what if, after introducing Detective Jones, I later refer to him as The Detective. For example:     Detective Jones asked me a few question, which I answered. After   listening carefully and taking notes, the Detective then came back to   me with some more questions.   I think you would capitalize the D, because "the Detective" is being used as a shorthand for "Detective Jones". But it looks a little odd, so I am not sure.


(Cf. Di Francesco et al, Conformal Field Theory, pp. 40-41) I am trying to derive eqn. (2.142) or   $$\delta S = \int d^d x ~\omega_a~\partial_{\mu}j^{\mu}_a  \tag{2.142}$$   in the book CFT by Di Francesco et al.  I have obtained the final expression   $$\delta S = \int d^d x\,\partial_{\mu} \omega_a \left[\frac{\delta F}{\delta \omega_a} \frac{\partial L}{\partial(\partial_{\mu}\Phi)} - \frac{\delta x^{\nu}}{\delta \omega_a}\partial_{\nu}\Phi \frac{\partial  L}{\partial(\partial_{\mu}\Phi)} + \frac{\delta x^{\mu}}{\delta \omega_a}L\right] +$$ $$ \omega_a\left[ \frac{\delta F}{\delta \omega_a}\frac{\partial L}{\partial \Phi} + (\partial_{\mu}\frac{\delta F}{\delta \omega_a})\frac{\partial L}{\partial(\partial_{\mu}\Phi)} - \partial_{\mu} (\frac{\delta x^{\nu}}{\delta \omega_a})\partial_{\nu}\Phi \frac{\partial L}{\partial(\partial_{\mu}\Phi)} + \partial_{\mu} (\frac{\delta x^{\mu}}{\delta \omega_a})L\right]\tag{A}$$   and indeed the terms multiplying $\partial_{\mu}\omega_a$ there are exactly $j^{\mu}$ as obtained in eqn. (2.141).  The problem I am having is that the terms multiplying $\omega_a$ don't appear to vanish. (The first two do as a consequence of the classical equations of motion but the last two do not)  The method Di Francesco employs is to assume a position dependent parameter $\omega = \omega(x)$, then make it constant at the very end.  So, if we make $\omega$ independent of position at the end (i.e impose the rigid transformation), then $$\partial_{\mu}\omega_a = 0\tag{B}$$ identically. In which case, we are left with $$\omega_a\int d^dx [..] = 0,\tag{C}$$ by further considering a symmetry transformation, where [..] are the terms multiplying $\omega$ in the expression above.  So I am not sure how Di Francesco is left with   $$ \delta S~=~-\int d^d x~ j^{\mu}_a ~\partial_{\mu} \omega_a  \tag{2.140}.$$    The paragraph preceding eqn. (2.140) seems to be contradictory to me (in particular the first and last sentence) and if indeed he is imposing a rigid transformation then shouldn't $\partial_{\mu}\omega_a = 0$ be zero in (2.140)?


Is my netbook good enough to use Kubuntu?

I have a rather slow Samsung netbook and I would like to know someone's opinion as to whether it is good enough for Kubuntu, or I should use Xubuntu or Lubuntu instead.  Here are the numbers: processor: AMD quad-core up to 1.4 GHz Ram: 3.3 Gb  So what do you think: should I use Kubuntu or the lighter versions?


Start up of the windows is been stopped by ubuntu

I have uninstalled ubuntu but the bootstrap is still showing ubuntu before starting what to do?


How do I configure the database using php_server module

I am trying to set up an existing site locally. It seems that Drush cannot find the site. When I run drush cc all, I get this error.     No Drupal site found, only 'drush' cache was cleared.   I think the issue may be with my server configuration. I am using the  module, and I'm not sure how to get it to point to the database.  This is what drush status returns, for your reference:   Drupal version         :  7.41                                               Site URI               :  http://default                                     Database driver        :  mysql                                              Database hostname      :  localhost                                          Database username      :  root                                               Database name          :  quorum                                             PHP executable         :  /usr/local/bin/php                                 PHP configuration      :  /usr/local/etc/php/7.0/php.ini                     PHP OS                 :  Darwin                                             Drush script           :  /usr/local/Cellar/drush/8.1.11/libexec/drush.php   Drush version          :  8.1.11                                             Drush temp directory   :  /tmp                                               Drush configuration    :                                                     Drush alias files      :                                                     Drupal root            :  /Users/Jillian/ideometry/quorum-dev                Drupal Settings File   :  sites/default/settings.php                         Site path              :  sites/default


Can we associate values to elements in a poset?

My question comes from personal investigation.  Suppose you have a poset $(X, \le_X)$. I would like to associate to all elements $x \in X$ a value $v(x) \in V$, where $(V, \le_V)$ is a totally ordered set, in such a way that for all $x,y \in X$ $$x <_X y \ \ \Rightarrow \ \ v(x) <_V v(y)$$ holds. I am wondering if this is always possible ($V$ is not fixed).  This is equivalent on asking the following:     Let $X$ be a poset. Can we find a totally ordered set $V$ and a strictly increasing map $v:X \to V$?   I realized that this question may be restricted to posets of the form $(2^X, \subseteq)$, since every poset $(X, \le_X)$ can be embedded in $(2^X , \subseteq)$ via $x \mapsto \{ y \in X:y \le_X x\}$.  Moreover, if $X$ is finite, the answer is yes, since we can define $$v: 2^X \to \Bbb{N}_{\ge 0}$$ as the cardinality function.  So, it remains the case when $X$ is an infinite set. And here I got stuck. So the question is:     Let $X$ be an infinite set. Does it exist a totally ordered set $V$ and a strictly increasing map   $$v: 2^X \to V$$   ?


the numer of partial function between two sets in combinatoric way

$A$ and $B$ two sets. $|A|=k, |B|=n.$ I need to prove in a combinatoric way that the number of partial function from $A$ to $B$ is $(n+1)^k.$ I thing the number is $Σ(n^i),$ for $i=0$ to $k.$ but I have no idea how to show equality, and how to prove it in a combinatoric way.  If someone can show me the way or guide me that will be great!  thanks for helpers.


DISK IS LIKELY TO FAIL SOON - failing now

I have a dual boot of Windows 10 and Ubuntu 16.04. Recently I upgraded it to 18.04. As soon as I did it, it started showing DISK IS LIKELY TO FAIL SOON (37° C / 99° F).    I checked the status of my disk via Windows and it shows it’s perfectly healthy. I assumed the error occurred because my partition size of Ubuntu was 64GB (which I now increased to 86GB). Please help me out with this.    Edit: The results of smartctl - attributes


At first sight, this exercise seems to be already seen many times in this website but I could not find a Analysis-1 level proof of the following : Let $f: \mathbb{R} \to \mathbb{R}$ be a differentiable function such that $f(0)=0$ and $\forall x \in \mathbb{R}$, we have $f'(x)=[f(x)]^2$. Show that $f(x)=0, \forall x \in \mathbb{R}$. My attempt is : Since $f'(x) \geq 0$ $\forall x$, we have that $\forall x \in \mathbb R^+ f(x) \ge 0$. By contradiction, suppose that $\exists a > 0$ such that $f(a)>0$. Since $f'=f^2\geq0$, we get that $f(x)>0$  for all $x \in (a, +\infty)$. Let $g: (a,+\infty) \to \mathbb{R}$ be given by  $g(x)=\frac{1}{f(x)}$. As $g'(x)=-1$ we have $g(x)=-x+c$, $c \in \mathbb{R}$. So, $f(x)=\frac1{-x+c}, \forall x \in (a,+\infty)$. From $f(a)>0$ we get that $c>a$. But then $f$ isn't continuous at $x=c$, a contradiction. I think I showed that the function is constantly equal to $0$ on $(0,+\infty)$, but how do I show it on $(-\infty,0)$ ? Should I just do the same proof with the g function on $(-\infty,a)$ with $a < 0$?


Prove that an ideal in $k[x,y]$ is a prime ideal

I am trying to solve the following exercise.      Assume that $m$ and $n$ are co-prime positive integers, and that $k$ is a field. Prove that the ideal generated by $x^{m} - {y^n}$ is a prime ideal in $k[x,y]$.   I tried the following approach : Consider the ring homomorphism ${\varphi}:k[x,y]\rightarrow{k[t]}$ defined by $\varphi(x) = t^n$, and $\varphi(y) = t^m$, and extend $\varphi$ to $k[x,y]$ to ensure that it is a ring homomorphism. Then the ideal $(x^m - y^n)$ is clearly contained in the kernel of $\varphi$. It remains to prove the reverse set inclusion. i.e. to prove that this ideal is exactly equal to the kernel of $\varphi$. I don't know how to go about this!


Getting inaccurate results converting from New York State projection to NAD83 with Python's pyproj

I've been trying to do a standard coordinate translation between  and latitude/longitude ()...but I keep getting the wrong lat/lng results.  I don't think this has anything to do with the  library in particular, but maybe I'm missing something in the transformation process.  Sample data comes from NYC.gov:   Its  says:      The X coordinate of the XY coordinate pair which depicts the approximate location of the facility, program, or parkland property. (Also see Y COORDINATE). Facilities' X and Y coordinates must be used together for mapping selection. The XY coordinates are expressed in the New York Long Island State Plane coordinate system.   Here's a sample record:  ```  Sample record:  "3861130100",1,"MN",104,"MANHATTAN COMMUNITY DISTRICT 4",731,1,"YAI - YOUNG ADULT INSTITUTE", "460 W 34 St","10001",3807,7,72,,98,,,,91,57," 103","0103",3,2,10,5500,1007310001.000, 984533.000,213998.000,"L" ```  So, the python code:   import pyproj NYSP1983 = pyproj.Proj(init="ESRI:102718") x, y = (984533, 213998) NYSP1983(x, y, inverse=True)   That inverse projection should result in the lat/lng coordinates. However, the result is nowhere near New York:         (-65.75200831429146, 41.80318458470038)   According to :      location: {         lat: 40.7541045,         lng: -73.9989178     }   Here's another way to do transformations in pyproj, going from latlng to the specified X/Y projection, but still no dice:   import pyproj NYSP1983 = pyproj.Proj(init="ESRI:102718") lng, lat = (-73.9989178, 40.7541045) NYSP1983(lng, lat)   The result:              (300091.3883012832, 65232.600609979076)   Doing an explicit transform between systems doesn't help either:   import pyproj NAD83 = pyproj.Proj(init="EPSG:4269") NYSP1983 = pyproj.Proj(init="ESRI:102718") x, y = (984533, 213998) pyproj.transform(NYSP1983, NAD83, x, y)            (-65.75200831429146, 41.80318458470038)   What am I missing here?  Edit  Seems that I'm missing some parameters that need to be set up, such as False_Easting...but I don't know how in pyproj (or in any system) how to specify that. Namely, how do I use what's in this PROJCS string (example here: ) to initialize the desired projection?


I'm using the auto hide feature in W8.1, but even using it still leaves a thin amount of the taskbar, presumably to allow you to see pinned icons and such, which really bugs me, is there any way to hide it completely?


Is there any specific reason for using Newton mechanics instead of Hamiltonian or any other theory of mechanics.  I am asking just out of curiosity (I know nothing about Hamiltonian mechanics)


Remove (optionally?) usernames and profile pictures

This is a Questions and Answers site, the actual persons asking and answering is a less important matter. There is hardly any difference between an answer provided by "user155098" and "chx". The profile pages still could serve to link the contributions together, the reputation points and badges would still show, the "top users" ladders would still function etc. Users, I guess, could still opt in to show their user names and profile pictures if they would want for old times' sake or something.  This would nuke the pronoun problem from orbit.  It would also fix a very long-standing bug where an older comment or answer is referenced by @username and the username changed since, making it very hard to understand the reference.  This is not a duplicate of the old question because I do not suggest anonymity, I suggest pseudonimity. Anonymity loses the link between answers of the same author. I also suggested keeping showing reputation and badges because that's important.


If the correlogram of $Y_t$ displays slow decay (i.e., non-stationarity), is this indicative of a unit root? I reasoned that for the model $Y_t = Y_{t-1} + u_t$, the ACF is equal to 1 for all lags, and therefore, the answer to my question is yes. But I just want to be sure.


what is tomcat's user directory and how to find it in ubuntu?

I have installed apache-tomcat 8.0.30 in etc folder. How can I find the tomcat's user directory in ubuntu?  Which one is tomcat's user directory? what is meant by user directory? is it the configuration directory? temp directory?there are so many directories.  I am following an instruction on a tutorial and it say's tomcat's user directory but I am not sure which directory it means.  Also when I install tomcat in etc folder, does it create a directory in /usr/share/tomcat{X} ? because there was none but I created it and I don't think the tutorial means this folder because it was not created during installation.  thanks!


Lower bound for the upper limit of the sequence

Prove that for any sequence $ a_n > 0 $ the limit superior of $\left(\frac{1+a_{n+1}}{a_n}\right)^n$ is greater or equal to  $ e $. It looks similar to the definition of $ e $, but I can't figure out where to start from. I think maybe it can be proved by contradiction, but I don't know how exactly.


Obtaining an NSDecimalNumber from a locale specific string?

I have some string s that is locale specific (eg, 0.01 or 0,01).  I want to convert this string to a NSDecimalNumber.  From the , this is accomplished by using an NSNumberFormatter a la:  NSString *s = @"0.07";  NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init]; [formatter setFormatterBehavior:NSNumberFormatterBehavior10_4]; [formatter setGeneratesDecimalNumbers:YES]; NSDecimalNumber *decimalNumber = [formatter numberFromString:s];  NSLog([decimalNumber stringValue]); // prints 0.07000000000000001   I'm using 10.4 mode (in addition to being recommended per the documentation, it is also the only mode available on the iPhone) but indicating to the formatter that I want to generate decimal numbers.  Note that I've simplified my example (I'm actually dealing with currency strings).  However, I'm obviously doing something wrong for it to return a value that illustrates the imprecision of floating point numbers.  What is the correct method to convert a locale specific number string to an NSDecimalNumber?  Edit: Note that my example is for simplicity.  The question I'm asking also should relate to when you need to take a locale specific currency string and convert it to an NSDecimalNumber.  Additionally, this can be expanded to a locale specific percentage string and convert it to a NSDecimalNumber.


How check with SOQL if a picklist value is available or not for a specified record type

How check if a picklist value is available or not for a specified record type ( through SOQL)? Thanks in advance


trigger SendWelcomeLetter on Account (after insert) {      List<SDOC__SDJob__c> jobList = new List<SDOC__SDJob__c> {};      for(Account acct : Trigger.New) {     SDOC__SDJob__c job =     new SDOC__SDJob__c(SDOC__Start__c=true,                       SDOC__Oid__c=acct.Id,                       SDOC__ObjApiName__c='Account',                       SDOC__SendEmail__c='1',                       SDOC__Doclist__c='Welcome Letter,Email Template');     jobList.add(job);   }   insert jobList;  }  I am using this trigger to generate a sdoc template but I am confused on how to get the test coverage for the same.


The code:  public class UnitOfWork : IUnitOfWork  { ...     ~UnitOfWork()     {         dispose(false);     } }   What the ~ means?  Full code is here:


Antivirus for Ubuntu 18.04 with real-time protection

I'm running Ubuntu 18.04, is there any antivirus that can protect me from virus when I'm installing packages from Ubuntu repository or install python packages with pip or conda? I know that there are third party tools for ClamAV, however I don't know which one to choose.


cllick event of dynamically created Checkbox in Jquery

I have a checkboxlist from which I want to get check event.     the checkboxes are created dynamically.   I am not able to fire the event   what I tried so far is  $(".XAxisrowCheckbox").click(function () {              //Do stuff      });   I also tried with this       $("input.XAxisrowCheckbox").click(function () {              //Do stuff      });   but no luck for me. Tag goes like this:  <input type="checkbox" class="XAxisrowCheckbox">   Please suggest something.


I would like to make the \circ symbol smaller and centered when using it between two letters. For example, I want to say   \begin{align} \forall\  a,b,c \in S,\ a\circ( b\circ c)= (a\circ b)\circ c \end{align}   The default symbol is just too big for my tastes. Please bear in mind that I am a newbie.  Edit: My preamble.  \documentclass[letterpaper,12pt]{memoir} \usepackage{amsmath,amsthm,amssymb} \usepackage{braket} \usepackage{graphicx} \usepackage{fancyvrb} setlrmarginsandblock{1.25in}{1.0in}{1} \setulmarginsandblock{1in}{1in}{1} \checkandfixthelayout  \theoremstyle{plain} \newtheorem{theorem}{Theorem} \newtheorem{proposition}  {Proposition} \newtheorem{lemma}{Lemma} \newtheorem*{corollary}{Corollary} \theoremstyle{definition} \newtheorem{definition}{Definition} \newtheorem{conjecture}   {Conjecture} \newtheorem*{example}{Example} \newtheorem{algorithm}{Algorithm} \theoremstyle{remark} \newtheorem*{remark}{Remark} \newtheorem*{note}{Note}      \newtheorem{case}{Case} \theoremstyle{algorithm} \newtheorem*{properties}{Properties}  \mathchardef\ordinarycolon\mathcode`\: \mathcode`\:=\string"8000 \begingroup \catcode`\:=\active \gdef:{\mathrel{\mathop\ordinarycolon}} \endgroup  \begin{document} \include{front_cover} \tableofcontents \include{lecture_3} \end{document}


How can I get jQuery to perform a synchronous, rather than asynchronous, Ajax request?

I have a JavaScript widget which provides standard extension points. One of them is the beforecreate function. It should return false to prevent an item from being created.   I've added an Ajax call into this function using jQuery:  beforecreate: function (node, targetNode, type, to) {   jQuery.get('http://example.com/catalog/create/' + targetNode.id + '?name=' + encode(to.inp[0].value),    function (result) {     if (result.isOk == false)          alert(result.message);   }); }   But I want to prevent my widget from creating the item, so I should return false in the mother-function, not in the callback. Is there a way to perform a synchronous AJAX request using jQuery or any other in-browser API?


Simplifying adjacent polygons using QGIS Simplify Geometries tool

I have a big Shapefile with 200,000 polygons but the file is too big for the application that will use it. I would like to generalise these polygons and create much smaller file.  I have tried to do this in QGIS using "Simplify Geometries" tool. I have tried this on a very small portion of my Shapefile and I am happy with the results but have small problem which I do not know how to solve.  I have appended the image to show the problem.  WHITE boundaries are boundaries before simplification. RED boundaries are after simplification. The problem areas are circled with orange colour. As you can see "simplified boundaries" contain some areas that after simplification do not belong to any of the previous polygons.  How do I simplify this Shapefile and keep common boundaries between polygons as a single line and eliminate areas that have been created after simplification?    ADDITIONAL INFORMATION:  After following suggested instructions    Convert polygons to lines  Simplify lines Convert lines back to polygons    I get the following results. It is slightly better than before but still I get areas outside original polygons (see white areas in the picture below).  @Andrew suggested that I associate each line with adjacent polygon but I do not know how to do it in QGIS.      I am still trying to complete simplifying polygons process. I have followed instructions suggested in this post and when I thought I got acceptable results one more problem appeared. Below is the summary of what I did with images of results. All steps have been performed using PROCESSING toolbox in QGIS.   First, I converted polygons to lines Second, I cleaned lines using v.clean with break option. This resulted in CLEANED VECTOR LAYER and ERROR LAYER. Error Layer (green dots on the provided image) has green dot on every line intersection. I do not know what this means. Third, I simplified lines using "SIMPLIFY GEOMETRY" tool (result in red lines in the images). Comparing simplified red lines and original orange lines I am happy with the result. Fourth, I wanted to convert lines back to polygons using "Polygonize" tool in "PROCESSING" and got results that I did not expect (second image with a shaded dark olive colour polygons). It looks like polygonizer connected error layer intersections and created completely different set of polygons ignoring simplified lines.   Could someone explain what went wrong here?   Why red simplified lines were not converted properly to simplified polygons?   As you can see I am not an GIS expert but need to do this myself. I do not know if I am too far from the solution but it is frustrating that I can see simplified lines that I found acceptable for what I'd like to do but cannot convert them to polygons.  Here are two images with results of last two steps of the process:


Find the line integral of $\int\frac{e^{iz}}{z}\, dz$

This is a homework problem, I need to calculate $\int\frac{e^{iz}}{z}\, dz$ over some curves, but I can find a useful parametrization of $z$ that make this calculations not so difficult.  For example I have to find the integral over the arc in the superior semi-plane of $re^{i\theta}$ from $r$ to $-r$ I would like to use a polar parametrization but I end with   $\int_0^{\pi}ie^{re^{i\theta}}\, d\theta$, and then I don't know how to proceed, also a hint of a parametrization for lines would be useful.


How do I contact Rockstar customer support?

Recently, Rockstar Social Club has been hacked and thousands of people's login data has been stolen. I'm pretty sure I'm a victim, as I have progressed only about 1-3 levels in online. Now I'm almost level 10, lost my 1,000,000 pre-order bonus dollars, have a completely new outfit (at least the cat shirt is nice) and own a garage on an abandoned beach. I have travelled about only 5 miles in-game, so I have never been there.  This is really bugging me. I looked on their website, but I only can find the knowledge base, FAQ and so on - no customer support.  I would like to send them an email with my issue, or maybe a live online chat.  Where and how can I contact Rockstar's customer support?


How to place text as subscript under mathematical operator in equation?

I would like to put some text in math mode below a mathematical operator (or a symbol), similar to \substack in \sum, as the red text below the \max operator in the following image  How to do this?


Calculating percentage of overlap of two layers in QGIS 3

I am trying to compare two different vector layers on QGIS 3. They are species distribution maps. I would like to calculate the percentage of overlap of two vector layers. My goal is to determine how similar the two ranges are. Anyone know how I can do this in QGIS 3.8?


Why use Chi-squared distribution to estimate the variance of normal distribution?

It is well known that one can use $\chi^2$ distribution to estimate the variance of normal distribution (i.e., $N(0,\sigma^2$)).  Is there a particular reason of using $\chi^2$ distribution? Or can we say that it is the "most accurate" way to estimate the variance of a normal distribution? Or does this "most accurate" thing exist? If it exists and it is not $\chi^2$ distribution, then what it is?  Thanks!


Select records after 5 records in a table

I want to select records after first 5 records in a table. The table is getting updated with new records. I have displayed 5 new records select top 5 * from table order by ID DESC.  Now I want to Display another 5 records somewhere else in the page, what will be the query for that?


How does one know when to use a gerund or an infinitive?

As a native speaker of English, the gerund version of this sentence sounds better:  infinitive:     When used together in chains,   extension methods are an unprecedented   tool to produce extremely concise   code.   gerund:     When used together in chains,   extension methods are an unprecedented   tool for producing extremely concise   code.   But how can I explain to someone learning English how to decide in situations like these whether to use the infinitive or the gerund?


I'm trying to learn the fundamentals of PDO. I've built the following that inserts data into my table but I would like to get feedback on whether or not this is secure or whether it could have been done better?   Would my post variables need to be escaped like you would with mysql_real_escape_string()?  $firstname = $_POST['First_Name']; $surname = $_POST['Surname']; $nicknames = $_POST['Nicknames']; $age = $_POST['Age'];   // Connection data (server_address, database, name, poassword) $hostdb = 'localhost'; $namedb = 'tsite_co_uk'; $userdb = 'access@site.co.uk'; $passdb = 'password';  try {   // Connect and create the PDO object   $conn = new PDO("mysql:host=$hostdb; dbname=$namedb", $userdb, $passdb);   $conn->exec("SET CHARACTER SET utf8");      // Sets encoding UTF-8   $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);    // Define an insert query   $sql = "INSERT INTO `directory`     (`First_Name`,`Surname`,`Nicknames`,`Age`)     VALUES ('$firstname','$surname','$nicknames','$age')    ";    $count = $conn->exec($sql);    $conn = null;        // Disconnect } catch(PDOException $e) {   echo $e->getMessage(); }


Unable to connect to mixed b/g/n wifi network on Ubuntu

I cannot connect to mixed b/g/n wifi Network. I am using wl drivers. Connection to other wifi networks is working well, but to this network I cannot connect from Ubuntu (from my android phone connection works)  Specifications of my wifi network are here:    I am on Ubuntu 14.04 LTS. And my Wifi adpater is BCM4313 802.11bgn Wireless Network Adapter ouput of :  sudo lshw -C network   is :  PCI (sysfs)       *-network                       description: Wireless interface        product: BCM4313 802.11bgn Wireless Network Adapter        vendor: Broadcom Corporation        physical id: 0        bus info: pci@0000:03:00.0        logical name: wlan0        version: 01        serial: 08:3e:8e:a4:03:6d        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless        configuration: broadcast=yes driver=wl0 driverversion=6.30.223.141 (r415941) latency=0 multicast=yes wireless=IEEE 802.11abg        resources: irq:17 memory:e4100000-e4103fff   *-network        description: Ethernet interface        product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:0c:00.0        logical name: eth0        version: 07        serial: b8:88:e3:e2:ff:f7        size: 1Gbit/s        capacity: 1Gbit/s        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation        configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168e-3_0.0.4 03/27/12 ip=192.168.0.4 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s        resources: irq:44 ioport:2000(size=256) memory:e2804000-e2804fff memory:e2800000-e2803fff   Where shold be a mistake? Thank you.


Why would I need to update stats manually?

I have often found that when I am having performance problems on my MSSQL database, I can resolve them by running sp_UpdateStats.  I learned this because that's always the first line of defense from tech support, right after, "Is your computer turned on?"  My understanding is that SQL Server is supposed to keep stats automatically; I shouldn't need to nanny it.  So I'd like to understand: what circumstances might lead to the stats falling out of date so badly that I need to update them manually?


Where does the "naive definition" of the product of two ideals $I$ and $J$, $IJ = \{ ij \mid i \in I, j \in J \}$ fall apart? (The product of two ideals $I$ and $J$ is defined to be $IJ := \sum_i a_ib_i$, where each $a_i$ is in $I$ and each $b_i$ is in $J$.)  Note: This is a question from a problem set I'm working on. I am not expecting a full solution for the answers, but I'd like some help knowing where to look. It seems to work fine in $\mathbb{Z}$ and $\mathbb{C}[x]$.


How to make any double datatype into 0.00 (2 digits after decimal point) format taking in another double datatype (Android/Java)?

I'm beginner in android developing. How can I make a double datatype i.e 56.32534 into 56.33? But I want to take it in a double variable. I know a way but it takes in String.  Double value = 56.32534; DecimalFormat df = new DecimalFormat("0.##"); String newvalue = df.format(value);   Here, newvalueis a string. But I want to take it in a double datatype.  I need to use it's numeric value not just in display purpose only.


I use jQuery to alter the exposed form select options. Got error: "An illegal choice has been detected." How to bypass validation?

I have a view that has three expose filters (Manufacturer, Type, Model), three options list (term reference to Printer vocabulary) .  Vocabulary: Printer (3 levels)   -- HP            ---- xxx      ------ xxxx   -- Apple ---- xxxx ------ xxxxxx -- Dell ---- xxxx ------- xxxxx -- ... -- ... (thousands of terms)   Since Form API AJAX doesn't work on views expose form, I am unable to make the them dependent select for exposed form fields. So I used jQuery to make the exposed form fields "dependent select / cascading select".    Basically, I empty all the options in views_exposed_form_alter() firstly:  $form['manufacturer_id']['#options'] = $form['type_id']['#options'] = $form['model_id']['#options'] = array();   then populate the option lists with my jQuery code accordingly.  However I get "An illegal choice has been detected." on page load, and form submit.  Form submission is prevented due to Drupal form validation mechanism .    It's the form validation detect the options generated by jQuery are not come with the original form data, as I removed the options in form alter. Value of a select box is not present in its defined options .  So I tried to remove form validation in form alter as:  unset($form['#validate']);   still doesn't work, the illegal choice error remains.  ============ UPDATED =================  Inspired by @kiamlaluno 's answer below, the only solution I came up is hack/patch the core.  Here is what I done:  Edited /includes/form.inc : (line 2014)    I removed the code:  $element['#needs_validation'] = TRUE;   and added:  // if not these fields, mark for validation as usual.  // so if are these fields, validation will be passed.   if ($element['#name'] != 'manufacturer_id'  &&      $element['#name'] != 'type_id'          &&      $element['#name'] != 'model_id' ) {    $element['#needs_validation'] = TRUE; }   It works, the exposed form select option bypassed the validation.   But my solution is very ugly which modified the core.   I wonder if there is any other solution without touching the core? How can I bypass the validation of these exposed form fields?  Thanks!


Is the collection of all cardinalities a set or a proper class? Does anybody ever think about the problem?


In the chorus of the song "Gone Country" by Alan Jackson, there is this sentence:     She/He's gone country, look at them boots   How come them is used instead of their? I am not a native English speaker so I am interested in knowing about this peculiar (at least to me) word choice.  This  would tend to indicate that them can be used for that, but look at that boots don't really make sense?


Recover accidentally removed files on NTFS partition

I accidentally removed some files on a NTFS partition  How can I recover them staying inside Linux without rebooting ?


quantifier negation proof with natural deduction?

How can I derive ∃𝑥¬𝑃(𝑥)⊢¬∀𝑥𝑃(𝑥)? I know that I need to derive some sort of contradiction, but what do I assume?


How can I get a pure white background in jewelry photography, without losing sparkle and shine?

I've read through several threads similar to this, but I'm looking for a comparison of two options here.   I currently take photos on a raised glass platform against a white foam board background and run about 300w of lights (3 100x LEDs @ 5000k, Home Depot Specials in softboxes and umbrellas). As you can imagine, it takes me about 15 minutes of post processing to achieve a perfect white background, and sometimes I have a particular photo that I am unable to get there.  I want to upgrade to either a photography table with a translucent background that I can place a speedlight under, or a cyclorama infinity background such as the MyStudio MS20. The latter option may require an upgrade to my lighting, which I am planning to do anyways.  The idea of course is to get a blown out 255 background with no post processing, other than color correction on the jewelry or product as needed. This would cut my time after the shoot to a ridiculously small amount of time.   Which option would make my life easier?   For reference, I currently use a D5300 with a Tamron 90mm f2.8 macro lens.  This is the best shot I got after quite a lot of effort, before and after processing:      Note that the silver is not shiny like it should be, and the sparkle on the gems is lost.


I had a recent conversation with my girlfriend, who is a physics grad student. She was kind enough to listen to me rant about an idea concerning escape velocity. Unfortunately, I am still thinking about this question, but don't want to bother her with it.  My thought is that we shouldn't actually need to reach 11km/sec to leave the earth's gravity. Instead of this, can we simply apply enough force to overcome earth's gravity without reaching that speed? How we would do this is not a part of my question.  Orbital altitude is $99$ miles. Travelling $60$ mph straight up should get you there in $1.65$ hours, granted you have enough force to push. I know some of the simpler math like $F=ma$, but that didn't help me understand.  I browsed some articles about space elevators and couldn't find my answer.  Then I thought about a regular elevator and the fact that it has enough force to move it away from the earth successfully. Even if the elevator moved at $1$ nanometer/sec, it would still move away from the Earth, overcoming the minute pull of gravity at that altitude.  If you missed it, my question was:  can we simply apply enough force to overcome Earth's gravity without reaching that speed?  Edit: In another example, let's say we could drive a car from here to low Earth orbit. As long as we had enough torque, we should be able to overcome gravity, much like a pickup truck pulling a bunch of lumber. Is that correct?


How do I create tools with multiple properties?

I'm trying to create an item that can break certain blocks, but also has a colored name in 1.13.2   Here's the command I'm using.  /give iAugust minecraft:shears{display:{Name:"[{\"text\":\"Arcane Shears\",\"color\":\"aqua\",\"italic\":false,\"bold\":false}]CanDestroy:[minecraft:iron_bars]"}}   But it only has a colored name, and it can't break specific blocks.


I have made a condominium on blender, however the Cycles rendered image became something wrong. Eevee render is fine. Could you advise what is wrong with my Cycles setting? Thanks, First pic: Eevee rendered, Second pic: Cycles rendered.   Edit mode (Wireframe)  Edit mode (Solid)  Edit mode (Rendered in Cycles)


How do you open different activities for certain e mail address users using Firebase Auth in Android App

I want to open a Admin activity when the defined admin e mail signs in, without using role based auth. I've tried the below but it keeps opening the profileActivity when I sign in with the admin@admin.com e mail, could anyone assist? Edited to include the full code. I'm trying to firstly check if the user trying to log in is registered and if they are, do they have an admin e mail address, if so, take them to the admin area, if not, take them to the profile area. Thanks  progressBar.setVisibility(View.VISIBLE);     mAuth.signInWithEmailAndPassword(email, password). addOnCompleteListener(new OnCompleteListener<AuthResult>() {         @Override          public void onComplete(@NonNull Task<AuthResult> task) {             String loggedInUserEmail = mAuth.getCurrentUser().getEmail();             String adminEmailAddress = "admin@admin.com";             progressBar.setVisibility(View.GONE);             if(task.isSuccessful() && (loggedInUserEmail.equals(adminEmailAddress))) {                 finish(); // finish activity                 Intent intent = new Intent(MainActivity.this, adminActivity.class);                 intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);                startActivity(intent);              }                if(task.isSuccessful()) {                 finish(); // finish activity                 Intent intent = new Intent(MainActivity.this, ProfileActivity.class);                 intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);                 startActivity(intent);               }               else             {                 Toast.makeText(getApplicationContext(), task.getException().getMessage(),Toast.LENGTH_SHORT).show();             }         }     });


Why doesn't $\sum_{n=1}^\infty \frac{1}{n^{1+\frac{1}{n}}}$ converge?

$\sum_{n=1}^\infty \frac{1}{n^{1+\frac{1}{n}}} = \infty$. Is there a comparison that works well to prove this?


bite lower lip to or whistle your lips to pronounce "really"

I have seen celebrities, news readers, TV show anchors, judges sometimes bite lower lip, not like when pronounce letter "v" but in little subtle way. And mostly they shape lips like whistle and then pronounce "really".  Which way to pronounce the "r" is correct?  Does this also depend on locale/area?


How do regular expressions differ from wildcards used to filter files

While we use * to denote zero or more previous characters in grep, we use *.c to find all C files when we use it with the ls command like ls *.c. Could someone tell how the use of * differs in these two cases?


I am reading Stein and Shakarchi's Complex Analysis, and I encountered a problem at page 45 while reading the proof of $\int_{0}^{\infty}\frac{1-\cos{x}}{x^2}dx=\frac{\pi}{2}$.  The proof says that $f(z)=\frac{1-e^{iz}}{z^2}=\frac{-iz}{z^2}+E(z)$, with $E(z)$ a bounded function as $z$ tend to $0$. I would like to know how this is done.


I was going to add a bit of information to my post on a previous day using schematics and some instructions. What programs are being employed for this purpose?  I mostly want to see what others are using and that I can easily use to give descriptive schematics.  In a perfect world, and I know this is a case of me wishing, it would be:   Free. Extremely easy to draw schematics in. Allows simple production of waveforms for the inputs/outputs.


When I render a single image in Blender 2.83 with eevee or cycle it does it without any problem   But when i render an animation with eevee either in png (frame by frame) or in matroska (mp4) the result is always gray. the colors of the letters on the right side move using AnimAll add-on, I don't know if this has anything to do with it.


I need to run validation on one of the form fields in my app. For this, I am using ReactiveFormsModule  My pattern as follows:   domainPattern = '^(((?!-))(xn--|_{1,1})?[a-z0-9-]{0,61}[a-z0-9]{1,1}\.)*(xn--)?([a-z0-9\-]{1,61}|[a-z0-9-]{1,30}\.[a-z]{2,})$';  I am using the above pattern in my pattern Validator code as follows:  this.customerForm = this.formBuilder.group( {       name: [ '' ],       company: [ '' ],       email: [ '', [ Validators.required, Validators.email ] ],       domain: [ '', [ Validators.required, Validators.pattern( this.domainPattern ) ] ]     } );   For email it's standard working well. But for the custom domain regex doesn't work for me. I have used regex from .  Based on the questions reviewed it seems difficult to find general domain name regex for all of the valid domains but I want to cover most basic cases.  The current pattern shows: $#$#.com, abcd as valid domains.  Do Validators have any constant validator similar to Validators.email for the domain?


I want to be able to init shutdown on my home theater pc by pressing the power button. (as I could on every other distro and older versions of ubuntu+tweak manager)  i could do that earlier with the silly step of installing tweak tools and enabling it there. but even that doesnt't list the shutdown option anymore. only suspend.  already tried adding  HandlePowerKey=poweroff to system.d/logind.conf which did nothing (i am reading on systemd, still clueless on it)  edit: if i login to unity instead of gnome, the power button shows the shutdown dialog (with lock, restart, shutdown options). but unity settings has zero options to control the power button action.


I'm trying to find $\sum_{n=0}^{\infty}n^2 x^n$  What I tried doing is:  $\sum_{n=0}^{\infty}n^2 x^n$ = $\sum_{n=0}^{\infty}n(n-1) x^n + \sum_{n=0}^{\infty}n x^n$   = $x^2\sum_{n=0}^{\infty}n(n-1) x^{n-2}+x \sum_{n=0}^{\infty}n x^{n-1} =x^2(\frac{1}{1-x})'' + x(\frac{1}{1-x})'$  But anyway I continute gets me a wrong answer so I wonder if there's some mistake here?  The answer should be $ -\frac{x(x+1)}{(x-1)^3} $


Is there a difference between the movement controls in Okami and Okami HD?

So I have recently downloaded Okami HD, and I have noticed that the directional input seems to be a bit clunkier than in the original. I.e. I can only travel in 45 degree directions.  I have come up with an alternative in the meantime, (rotating the camera to allow for smoother cornering). The only problem is that if I turn too sharply too suddenly, it ruins my sprint. (This is not new, I have tested the original and the same thing happens).   I should also note I am not using a standard PS3 controller, but I have not had this issue with other games (Tested with Gran Turismo 5, Infamous 2, Crash Bandicoot series, Spyro series).


How does the in-camera color space setting affect RAW files?

When I switch my Nikon D750 from sRGB to the Adobe RGB color space in the Photo Shooting menu, how does it affect the content of my NEF files? I understand what would happen to JPEGs, but the camera manual is not clear whether this setting affects raw files or not.  Also, I am interested in how this or a similar setting affects raw files in other recent Nikon and Canon cameras.


Why do I get these annoying text labels that are in the way on all sites?

I get these text bubbles on all sites that are in the way. See below:   How can I disable them? (And why do I get them now?) I am on  14.1.1. I have very few plugins that I would think could interfere -  for Safari,  and .


Why doesn't Gollum age when he loses the ring?

We see how, without the influence of the Ring, Bilbo's age finally catches up with by the time he reaches Rivendel. So why doesn't Gollum's real age ever catch up with him after he lost the One Ring?


Heres the error that I'm getting:  Execution of AfterUpdate caused by: System.QueryException: List has no rows for assignment to SObject ()  I believe the issue is with the following lines, which aims to retain the current account owner when a lead is converted automatically by the trigger:  Account a = [SELECT OwnerId FROM Account WHERE Id=:accountId LIMIT 1];  lc.setOwnerId(a.OwnerId);  trigger autoconversion on Lead (after update) {   Lead ld=Trigger.new[0];    if( ld.Ready_to_Convert__c == TRUE && ld.IsConverted == FALSE) {       Database.LeadConvert lc = new database.LeadConvert();       lc.setLeadId(ld.id);       lc.setAccountId(ld.Linked_AccountId__c);       lc.setDoNotCreateOpportunity(TRUE);       String accountId = ld.Linked_AccountId__c;        //Account a = [SELECT OwnerId FROM Account WHERE Id=:accountId LIMIT 1];        List<Account> accs = [SELECT OwnerId FROM Account WHERE Id=:accountId LIMIT 1];       Account a = null;        if (!accs.isEmpty()) {           a = accs[0];           lc.setOwnerId(a.OwnerId);       }else {           a = null;           }        LeadStatus convertStatus = [SELECT Id, MasterLabel FROM LeadStatus WHERE IsConverted=true LIMIT 1];       lc.setConvertedStatus(convertStatus.MasterLabel);       Database.LeadConvertResult lcr = Database.convertLead(lc);   } }


Prove that if $f$ is the Fibonacci sequence then $f_{n+1}^2+f_n^2=f_{2n+1}$ holds for all n. Instead of trying doing this by induction, I need to do it by trying to just replacing the explicit formula for $f_n$. I am stuck at this step:  $f_{n+1}^2+f_n^2=\frac{1}{5}[\phi^{2n}(1+\phi^2)+(1-\phi)^{2n}(1+(1-\phi)^2)]$  Believe me that this is equivalent to $\frac{1}{\sqrt{5}}[\phi^{2n+1}-(1-\phi)^{2n+1}]$  Maybe it's just a simple algebra problem, but I don't know how to get that expression. Thanks


I was planning to do a 1920x1080 wallpaper from my favourite musician's cover. Everything was going good so far until I used correction brush which totally ruined my whole work. There are pixelated lines (how do I call these?!) everywhere! They're everywhere, it's very visible when zooming. Using Content-Aware Fill did nothing about it. I beg for help. Sorry if I did something wrong writing this post, i'm a beginner.


Let $$f(x) = \begin{cases}\begin{align*}&\cos{\dfrac{1}{x}}, &x \neq0 \\ &0, &x=0. \end{align*}\end{cases}$$ Is the function $F(x) = \displaystyle \int_{0}^x f dx$ differentiable at $0$?  We can see that the function $f(x)$ is continuous everywhere except $x=0$. In order to show differentiability we will need to show the derivatives from the left and right are equal. So we need to show that $$\lim_{h \to 0^+} \dfrac{F(x+h)-F(x)}{h} = \lim_{h \to 0^-} \dfrac{F(x+h)-F(x)}{h}.$$ The derivative from the right is $$\lim_{h \to 0^+} \dfrac{F(x+h)-F(x)}{h} = \lim_{h \to 0^+} \dfrac{\displaystyle \int_{0}^x\cos{\dfrac{1}{x+h}}-\int_{0}^x\cos{\dfrac{1}{x}}}{h}$$ and the derivative from the left is $$\lim_{h \to 0^-} \dfrac{F(x+h)-F(x)}{h} = \lim_{h \to 0^-} \dfrac{\displaystyle \int_{0}^x\cos{\dfrac{1}{x+h}}-\int_{0}^x\cos{\dfrac{1}{x}}}{h}.$$ I am not sure how to proceed.


What should go in a diversity statement if I believe I have had no relevant experiences?

So I am completing the application for UCSB, and they ask me to write a Personal Achievements/Contributions Statement, however, I feel I have nothing to say, since I have never experienced anything like examples they give. So what should be talked about in this kind of essay except examples they give? Here is what on their application:  Personal Achievements/Contributions Statement UC Santa Barbara is interested in a diverse and inclusive graduate student population. Please describe any aspects of your personal background, accomplishments, or achievements that you feel are important in evaluating your application for graduate study. For example, please describe if you have experienced economic challenges in achieving higher education, such as being financially responsible for family members or dependents, having to work significant hours during undergraduate schooling or coming from a family background of limited income. Please describe if you have any unusual or varied life experiences that might contribute to the diversity of the graduate group, such as fluency in other languages, experience living in bicultural communities, academic research interests focusing on cultural, societal, or educational problems as they affect underserved segments of society, or evidence of an intention to use the graduate degree toward serving disadvantaged individuals or populations.


Since multiple inheritance is bad (it makes the source more complicated) C# does not provide such a pattern directly. But sometimes it would be helpful to have this ability. For instance I'm able to implement the missing multiple inheritance pattern using interfaces and three classes like that: public interface IFirst { void FirstMethod(); } public interface ISecond { void SecondMethod(); }  public class First:IFirst  {      public void FirstMethod() { Console.WriteLine("First"); }  }  public class Second:ISecond  {      public void SecondMethod() { Console.WriteLine("Second"); }  }  public class FirstAndSecond: IFirst, ISecond {     First first = new First();     Second second = new Second();     public void FirstMethod() { first.FirstMethod(); }     public void SecondMethod() { second.SecondMethod(); } }  Every time I add a method to one of the interfaces I need to change the class FirstAndSecond as well. Is there a way to inject multiple existing classes into one new class like it is possible in C++? Maybe there is a solution using some kind of code generation? Or it may look like this (imaginary c# syntax): public class FirstAndSecond: IFirst from First, ISecond from Second { }  So that there won't be a need to update the class FirstAndSecond when I modify one of the interfaces.  EDIT Maybe it would be better to consider a practical example: You have an existing class (e.g. a text based TCP client based on ITextTcpClient) which you do already use at different locations inside your project.  Now you feel the need to create a component of your class to be easy accessible for windows forms developers. As far as I know you currently have two ways to do this:  Write a new class that is inherited from components and implements the interface of the TextTcpClient class using an instance of the class itself as shown with FirstAndSecond.  Write a new class that inherits from TextTcpClient and somehow implements IComponent (haven't actually tried this yet).   In both cases you need to do work per method and not per class. Since you know that we will need all the methods of TextTcpClient and Component it would be the easiest solution to just combine those two into one class. To avoid conflicts this may be done by code generation where the result could be altered afterwards but typing this by hand is a pure pain in the ass.


Show f is continuous on (0, ∞) iff f is continuous at 1 for a defined function.

exercise: Suppose that $f:(0,∞) → R$  satisfies $f(x) - f(y) = f(x/y)$  for all $x,y$ in $(0, ∞)$ and $f(1) = 0$.   Prove f is continuous on $(0, ∞)$ if and only if f is continuous at $1$.    (proof→:) Suppose that $f:(0,∞) → R$ satisfies $f(x) - f(y) = f(x/y)$ for all $x,y$ in $(0, ∞)$ and $f(1) = 0$. Suppose f is continuous on (0,∞), then by definition f is said to be continuous at a point $a$ if for every $ε > 0$  there is a $δ > 0$ such that $|x-a| < δ$ implies $|f(x) - f(a)| < ε$.   Then suppose f is continuous at $1$, then by our defined function  f(x) - f(y) = f(x/y) , we get $|x-1| < δ$ implies $|f(x) - f(1)| = |f(x) - 0| = |f(x)| =  < ε$.   (proof ←) :Suppose that $f$ is continuous at $1$, then we need to show $f$ is continuous on every point $a$ on $(0, ∞)$. Thus, by definition, f is said to be continuous at a point $a$ if for every $ε > 0$ there is a $δ > 0$ such that $|x-a| < δ$ implies $|f(x) - f(a)| < ε$. Thus, $|x-a| < δ → |f(x) - f(a)| = |f(x/a)| < ε$. Then $f$ is continuous on on $(0, ∞)$.  Please can anyone please help me verify this makes sense. If not, can someone please give any feedback/hints. Thank you in advance.


I'm using Ubuntu 14.04 but since some weeks I'm stuck with the old 13.10 lockscreen design for some reason.  I already tried compizconfig-settings-manager but it doesn't offer me any option for changing the lockscreen design and even resetting Compiz and Unity with   dconf reset -f /org/compiz/   didn't help.  Are there any other ways to get the new lockscreen back?


I am writing code (Python and wxpython for GUI) which will run on Debian OS on Raspberry PI. I want to protect/hide the source code. Is there any way to do it? Probably py2exe, or converting it to a library or something else?


I have a page in which several sharepoint groups have access to. Picture a department page in sharepoint. On this page we have several webparts that we would like everyone to see. My question is, how can I show a link (or list of links) to only one specific group that has access to this page?  This seems so simple but I cannot figure out how to do it. I would like to avoid doing any development as well as multiple instances of this page (if possible). Maybe I am just having a slow monday morning....


Bash terminal not wrapping text correctly

I am using the gnome-terminal with bash, and when I have a command that should go over the line, it just stays on the same line. So instead of:  echo "abcdefghijklmnopqrstuvwxyz"   I would get  opqrstuvwxyz""abcdefghijklmn   Or something similar to that. However, if I press enter the command will still work. I believe it has something to do with my PS1 variable, but I don't know what is wrong with it. Here it is:  export PS1='\e[1;35m[\u:\w]\$\e[0;35m '


Related Questions are not being added to new questions anymore, network wide

Questions all around the network do not get Related Questions anymore, for several hours.  Examples from around the network:        This is not a duplicate of  since that explains the normal caching that causes them to not initially show up until a few minutes (or at most an hour) later; these examples are all a few hours old and the related questions still haven't shown up, so it's clearly a bug.  Can this please be fixed?


Execute an event only if it wasn't fired for a given amount of time in C#/WPF

I have a WPF app with a MouseWheel event. The operations in this event is quite heavy. So, I would like to execute this event only when the user has stopped scrolling (i.e.: if he doesn't scroll for a given amount of time). In JS, this is quite easy, I can just put the setTimout in a var and then do a clearTimeout on that var if another scroll happened before the execution of that setTimeout (this is quite useful for auto-completion for instance). How can I achieve that in c#?


Problem with breaking line in align mode

Here is the issue and here is the code.  \begin{align*} \left ( \frac{1+\sqrt{3}}{2\sqrt{2}}+ i \frac{\sqrt{3}-1}{2\sqrt{2}} \right )^{72} &=  \left [ \left ( \frac{1}{2}\cdot \frac{\sqrt{2}}{2}+ \frac{\sqrt{3}}{2}\cdot \frac{\sqrt{2}}{2} \right )+ i \left ( \frac{\sqrt{3}}{2}\cdot \frac{\sqrt{2}}{2} -\frac{1}{2}\frac{\sqrt{2}}{2} \right ) \right ]^{72}\\   &=\left [ \left ( \cos \frac{\pi}{3}\cos \frac{\pi}{4} + \sin \frac{\pi}{3}\sin \frac{\pi}{4} \right ) +i \left ( \sin \frac{\pi}{3} \cos \frac{\pi}{4} - \cos \frac{\pi}{3} \sin \frac{\pi}{4}  \right ) \right ]^{72} \\   &= \left [ \cos \left ( \frac{\pi}{3} - \frac{\pi}{4} \right ) +i \sin \left ( \frac{\pi}{3} - \frac{\pi}{4} \right )\right ]^{72}\\   &= \left ( \cos \frac{\pi}{12} + i \sin \frac{\pi}{12} \right )^{72}\\   &= \left ( \cos^2 \frac{\pi}{12} - \sin^2 \frac{\pi}{12} +2i \cos \frac{\pi}{12} \sin \frac{\pi}{12} \right )^{36}\\   &=\left ( \cos \frac{\pi}{6} + i \sin \frac{\pi}{6} \right )^{36} \\   &= \left ( \frac{\sqrt{3}}{2}+\frac{i}{2} \right )^{36} \\  &=\left [ \left ( \frac{\sqrt{3}}{2}+ \frac{i}{2} \right )^3 \right ]^{12} \\  &=1 \end{align*}   The line  \left [ \left ( \cos \frac{\pi}{3}\cos \frac{\pi}{4} + \sin \frac{\pi}{3}\sin \frac{\pi}{4} \right ) +i \left ( \sin \frac{\pi}{3} \cos \frac{\pi}{4} - \cos \frac{\pi}{3} \sin \frac{\pi}{4}  \right ) \right ]^{72}   however exceeds the margins of the page so I want to break it. I used \\ and then on the new line & plus two \qquad to bring it in a favor position and altough it gets a result the compile ends up with errors which is something logical. The output is that the final ] in that line is not depicted at all.  How can I break up that line? Need I use alignat package?


I am getting a formula error in a flow:  The formula expression is invalid: Syntax error. Extra Type  The formula is: CASE ( DeferDateDifferenceMonths, 1, ADDMONTHS( !Get_opp.Defer_Payment_End_Date__c,1), 2,  !Get_opp.Defer_Payment_End_Date__c,  !Get_opp.Date3__c )  The DeferDateDifferenceMonths is a formula calculating the number of months between two dates in the same flow.  The other references in the formula are fields on the Opportunity object.   I would appreciate help in understanding how to correct this error. Thanks!


Installing Lubuntu 14.04 on an HP Omnibook 6100

I would like to install Lubuntu 14.04 on an HP Omnibook with a Pentium 3 and 384MB of RAM and 10GB HDD, I would like to know if it is possible to install this new versions on old computers or I would have to install an old non-PAE version of Ubuntu, I can install via the alternative Ubuntu install or Core install, thank you.


Intuition behind negative radians in an interval

Say a function's domain is $[−\pi,\pi]$. How should I interpret this interval?  It starts from where? To where? In what direction?


I have ubuntu with Win 7 how do I ditch Win 7?

I'm happy to get rid of Win 7 now, how do I do it and will it bring my files over?


A Tool to Manage Tracking Query Performance Improvements

I'm building a BI system on SQL Server 2012. I have a test set of data with some tens of millions of rows.  Currently many functions and stored procedures are unacceptably slow. I'm looking for a tool I can use to automatically compare query times from previous executions as I run and re-run these queries and make performance improvements.  I want to tinker, measure, compare execution times, repeat.  For example, I want to be able to see a report showing what query times were when run on 7/31/2013. Then after I make some changes, I want to kick off the tool again on say, 8/1/2013. I'd like to see side-by-side the difference in query times between all of the historical executions.  I know I can track query times manually with SET STATISTICS TIME ON. I've also seen stored procedures others have written to manually track the performance of one or two queries. But the process is very manual.  I'm looking for a tool that I can enter the 30 functions and stored procedures I want to test into (or give it a trace), and then it will do the work of kicking of the queries 5 times (or replaying the trace), record the average time each query took to execute, and compare those times to previous executions.  Regarding Similar Questions  I've looked at:     - My question is not about stress testing. (Although the RML tools mentioned are VERY close to what I'm looking for. If all else fails, I will use the RML tools.)  - I know how to profile a stored procedure and use tools like SQL Profiler. Profiler won't give me comparisons to previous executions.   The RML tools are very close to what I want, as one can load traces into multiple DBs and view the results side by side.  But is there any tool that automates: replaying sql statements and viewing the performance diff of different iterations side-by-side? (The major limitation with the RML tools is that the trace from each iteration has to be loaded into a different database and the side-by-side comparison is only possible by opening two instances of Reporter and switching back and forth between the two of them. Ten different databases and ten different windows for ten different executions seems unwieldy...)


.desktop file to pass arguments received to Exec

I have a desktop file with this contents:  [Desktop Entry] Name=Mozilla Firefox - default Type=Application Comment=Web Application Exec=/usr/lib/firefox/firefox Icon=/home/noit/Desktop/ff-channel-base-iconsets/dev/dev512.png   I launch this desktop file with various arguments from terminal and from c function g_app_info_launch_uris docs seen :  How can I make the arguments that passed to the desktop file be passed to the Exec?


Error when trying to install / update Adobe Flash

When trying to install/update Adobe Flash on Ubuntu, I get the following error.  Reading package lists... Error! E: Encountered a section with no   Package: header E: Problem with MergeList   /var/lib/apt/lists/www.geekconnection.org_remastersys_repository_karmic_en   E: The package lists or status file could not be parsed or opened.   mcalab2@mcalab-Veriton-Series:~$      How can I solve this?


Image Is Blurry When Using Glass Node In Cycles

I'm rendering my model in cycles render, and I have added a glass node on the screen (separate object) in front  where the text is, I'm doing an orthographic view render. But the result I'm getting is somewhat terrible. The image from behind is just blurry.


Batch moving a custom set of images with Ranger?

This is a question for the   Let's say that I have a directory with five files..  for i in $(seq 1 5); do touch "$i.jpg"; done; mkdir subdir   How would I move 1.jpg, and 4.jpg, and 5.jpg, into subdir?  I need something like a mark and move, or bulk move. Because these are images I need to to be able to render the previews in Ranger (already got that working), before I know which ones I want to move. For this reason I can not simply use mv. I need to interactively pick the batch.


How can i join a minecraft server that is not located within my local network

I have Minecraft for the pc, and wish to join my friends server however it is not located on the same local network as my computer is.  how can I join this server without moving to my friends local area network?


I would like to ask you for a help with align of symbolic x-coords. Now it is align like middle of the bar with middle of the word (IT, Elektrotechnické, Strojírenské, etc.). Is there some way, how I can align middle of the bar with end of the word?   Cause this way it is little bit confused.  Thank you so much for any help.    \begin{tikzpicture} \begin{axis}[     width  = 16cm,     height = 8cm,     major x tick style = transparent,     ybar=2*\pgflinewidth,     bar width=6pt,     ymajorgrids = true,     ylabel = {Run time speed},     symbolic x coords={IT,Elektrotechnické,Strojírenské,     Architektura,Ekonomické,Sociální,Jiné},     xtick = data,     scaled y ticks = false,     enlarge x limits=0.10,     x tick label style={rotate=45},       ymin=0,     legend cell align=left,     legend style={             at={(1,0.5)},             anchor=south east,             column sep=1ex     } ]     \addplot[style={bblue,fill=bblue,mark=none}]         coordinates {(IT,3) (Elektrotechnické,3) (Strojírenské,3) (Architektura,2) (Ekonomické,2) (Sociální,1) (Jiné,1)};      \addplot[style={rred,fill=rred,mark=none}]          coordinates {(IT,5) (Elektrotechnické,3) (Strojírenské,2) (Architektura,0) (Ekonomické,0) (Sociální,2) (Jiné,1)};      \addplot[style={ggreen,fill=ggreen,mark=none}]          coordinates {(IT,2) (Elektrotechnické,2) (Strojírenské,1) (Architektura,2) (Ekonomické,0) (Sociální,1) (Jiné,1)};      \addplot[style={ppurple,fill=ppurple,mark=none}]          coordinates {(IT,3) (Elektrotechnické,3) (Strojírenské,3) (Architektura,2) (Ekonomické,2) (Sociální,1) (Jiné,1)};       \addplot[style={zluta,fill=zluta,mark=none}]          coordinates {(IT,3) (Elektrotechnické,3) (Strojírenské,3) (Architektura,2) (Ekonomické,2) (Sociální,1) (Jiné,1)};       \addplot[style={oran,fill=oran,mark=none}]          coordinates {(IT,3) (Elektrotechnické,3) (Strojírenské,3) (Architektura,2) (Ekonomické,2) (Sociální,1) (Jiné,1)};      \legend{SG ResearchGroup,21.CentTech,SmartTech,SmartTechRG,SmGrigLab,ISCA} \end{axis} \end{tikzpicture}


Snap entire selection to the 3d cursor in edit mode

Is there any way to snap an entire selection to the 3d cursor in edit mode?  Shift+S > Selection to Cursor snaps each individual vertex to the cursor, so the shape is lost:


When developing a lightning components in the lightning experience, let's say I make a change to custom_componentController.js. If I want to see these changes in the lightning UI, I have to hard refresh chrome twice in order for my changes to be rendered. Is there a way to break this cache?   I found  which is exactly what I am experiencing but it says it was fixed in all instances.  Has anyone else experienced this as of late or does anyone have a solution?


How do I restore .bat association on Windows 8?

I have accidentally set the association for .bat files to notepad. This was done by going to the Default Programs panel and setting it to run with notepad. I've tried everything I can find on this subject. I've deleted the USER CHOICE option in regedit, I've tried merging with the reg file, I've tried multiple association restoration programs, I've removed the association all together, and it has not worked. No matter what I try, it will open in notepad or ask for a program to open in. I'm not sure if there is a program it opens in by default, but I could really use some help. I've been researching and trying everything for a week with no progress towards a solution.


Reinstating option to switch from question on iOS app to Chrome to vote for re-opening?

Until a week or two ago, probably the last update, I routinely used an option on the iOS app, to switch to Chrome and the browser app, so that I could perform actions like voting to re-open a question.   Looking in the same place now that option is no longer available.    Unless I was imagining it, could that option be reinstated?


Find tangent point on circle furthest east or west

There are few ways of articulating my question. It starts with a known circle on a sphere, i.e. a point-radius, and one that does not cover a pole.  I would like to calculate the point furthest west on this circle and the point furthest east. These points are the tangent points of lines of longitude which encircle the poles and are vertical.  These points are opposite each other along the vertical axis so there is one hard problem to solve from which the other is trivially determined.  This is highly related to calculating the minimum bounding lat-lon box of a circle.  I know how to determine the longitude delta from the center to the edges, which is:  asin( sin( dist_rad / cos(center_lat_rad) ) )   whereas dist_rad is the circle's radial distance is radians, and center_lat_rad is the latitude point of the circle's center in radians.  This equation was elusive to me until I discovered it with a wonderful explanation .  It contains a wonderful illustration:  .  The illustration shows T1 and T2 which are the points I am trying to calculate. What is left to figure out is at what latitude the eastern and western boundary meridians intersect this circle.  If the circle is at the equator, then it's zero, and if it's north of the equator, then this latitude is going to be higher than the circle's center latitude.


Anyone familiar with the {fei} could help me with the references/bibliography?

after reading this class manual i found two main commands to be used, the first one being   \addbibresource{ref.bib}     to add the separate bib file to the document  and the secon one being  \printbibliography     to print the references in the end of the document  but regardless of how i try it just simply won't work  this is how my Test code looks like  \documentclass[rascunho]{fei}   \usepackage[utf8]{inputenc}   \usepackage{gensymb}   \usepackage{cancel}    \addbibresource{ref.bib}    \begin{document}  \begin{center}   \begin{vplace}   \begin{HUGE}{\textbf{\MakeUppercase{Fisica Moderna}}}   \end{HUGE}   \\   \vspace{0.2cm} Material-Base:  \\   \vspace{0.2cm}  R. Eisberg and R. Resnick, Quantum Physics of Atoms, Molecules, Solids, Nuclei, and Particles 2nd Edition, Wiley, 1985 \cite{eisberg1974quantum}.   \\   \vspace{0.2cm} H. Moysés Nussenzveig, Curso de Fisica Basica, 4a. edicao, Vol. 4, Blucher, 2002. \cite{nussenzveig2002curso}    \end{vplace}   \end{center}    \printbibliography    \end{document}     Every time i try to use the F11 command to call bibtex i get the following error message     This is BibTeX, Version 0.99d (MiKTeX 2.9.6500 64-bit) The top-level   auxiliary file: teste.aux I found no \citation commands---while   reading file teste.aux I found no \bibdata command---while reading   file teste.aux I found no \bibstyle command---while reading file   teste.aux (There were 3 error messages)      Process exited with error(s)   and i just dont know what else to try to do to fix this, this is how it looks after compiled:    my ref.bib file is the following:  @book{nussenzveig2002curso,   title={Curso de f{\'\i}sica b{\'a}sica},   author={Nussenzveig, Herch Moys{\'e}s},   year={2002},   publisher={E. Blucher} }  @book{eisberg1974quantum,   title={Quantum physics},   author={Eisberg, Robert and Resnick, Robert},   year={1974},   publisher={John Wiley New York} }


How can I design a tree graph with node shapes as this photo?


Is it possible to have Windows 7 installer files and Ubuntu installer files on the same bootable USB drive?

I would like to know whether it is possible to have Windows 7 installer files and Ubuntu 12.04 installer files on the same bootable USB drive so that if I choose to boot a PC with such a USB drive, I will get the option to install either Windows 7 or Ubuntu 12.04 on it.  Perhaps a USB drive can have two bootable partitions, one with Windows 7 setup files while the other can have Ubuntu 12.04's setup files. On booting with such a drive, one gets a boot screen which lets you install either of the two or both at different times.  Is such an arrangement possible? Can this be done?  Please let me know.


Detect magic (drows) and invisibility (spells)

I'm wondering about detect magic from the drow nobles. It is a constant effect. From the description you see that an aura is around the area. This question  already says that you can see invisible targets (but not exactly where) with a normal detect magic spell.  So my question is: would you be able to see enough (high drow noble...thus detect magic is constant) to make attacks against the invisible target?


I was reading the Python documentation on lists and saw:     list.extend(L) Extend the list by appending all the items in the given list. Equivalent to: a[len(a):] = L.   I was wondering where I could read about the : colon to fully understand it. Python documentation for 3.4 would be very helpful.


Why linear and logistic regression coefficients cannot be estimated using same method?

I read in a machine learning book that parameters of linear regression can be estimated (among other methods) by gradient descent, while parameters of logistic regression are usually estimated by maximum likelihood estimation.  Is it possible to explain to a novice (me) why we need different methods for linear/logistic regression. a.k.a why not MLE for linear regression and why not gradient descent for logistic regression?


All homomorphisms from a simple ring to a non-zero ring are injective

Let $R$ be a simple ring and $T$ be a non-zero ring. Let $f\colon R \rightarrow T$ be a ring homomorphism. Show $f$ is injective.  Proof: $\ker f \lhd R$, so $\ker f=R$ or $\ker f=\{0\}$. If $\ker f=R$ then $R/R \cong \{0\}$, but $T \neq \{0\}$, which is a contradiction. I can't see why does the last part means contradiction.   Thanks for any assistance!


Imagine a two-dimensional grid consisting of 20 points along the x-axis and 10 points along the y-axis. Suppose the origin (0,0) is in the bottom-left corner and the point (20,10) is the top-right corner. A path on the grid consists of a series of moves in which each move is either one unit to the right or one unit up. Diagonal moves are not allowed. How many diﬀerent ways are there to construct a path starting at (0,0) and ending at (20,10)?  I'm a little stuck on this one. I feel I'm headed towards the right direction, but I'm not sure if I'm doing this right. For every move, there are 2 possible choices. If we want to get to (20,10), then there are 200 points from the origin to this point. And I think order matters here, so we would use permutations, so I come up with 200 P 2, which is 39,800.


So I have been spending hours trying to figure out how to make the wp_editor() work on an ajax generated content. I bumped into this post:   and tried the solution of . His solution almost solves my problem but then there is a problem with my Text tab, I don't see any button: screencast.com/t/Emd2Da3UyThO My Visual tab on the other hand works fine: screencast.com/t/JGWf4ivZfaGb  Inspected my Text tab, I can see that quicktags aren't there: screencast.com/t/qyvwWDnuEPnb But by checking on my window's QTags instances: screencast.com/t/UAzIaZ7XOc5 The description instance (which is not ajax generated content) has the theButtons attribute, while the tabdescription35 (ajax generated) doesn't have one.


I need shapefiles for all administrative levels like country level, state level, division level and city level for all countries of the world?


I'm trying to figure out how to calculate curl ($\nabla \times \vec{V}^{\,}$) when the velocity vector is represented in cylindrical coordinates. The way I thought I would do it is by calculating this determinant: $$\left|\begin{matrix}   e_r & e_{\theta} & e_{z} \\   \frac{\partial }{\partial r} & \frac{1}{r} \frac{\partial }{\partial \theta} & \frac{\partial }{\partial z} \\   v_r & v_\theta & v_z  \end{matrix}\right|$$ Which gives: $$\left\lbrack \frac{1}{r} \frac{\partial v_z}{\partial \theta} - \frac{\partial v_\theta}{\partial z}, \frac{\partial v_r}{\partial z} - \frac{\partial v_z}{\partial r}, \frac{\partial v_\theta}{\partial r} - \frac{1}{r} \frac{\partial v_r}{\partial \theta}\right\rbrack$$ But I think the correct curl is: $$\left\lbrack \frac{1}{r} \frac{\partial v_z}{\partial \theta} - \frac{\partial v_\theta}{\partial z}, \frac{\partial v_r}{\partial z} - \frac{\partial v_z}{\partial r}, \frac{1}{r} \frac{\partial rv_\theta}{\partial r} - \frac{1}{r} \frac{\partial v_r}{\partial \theta}\right\rbrack$$ Can anyone explain why this is? It seems sort of like the way to calculate it is with: $$\left|\begin{matrix}   e_r & e_{\theta} & e_{z} \\   \frac{1}{r}\frac{\partial }{\partial r} & \frac{1}{r} \frac{\partial }{\partial \theta} & \frac{\partial }{\partial z} \\   v_r & rv_\theta & v_z  \end{matrix} \right|$$ Is that correct?


Looking for an app to name colors on Mac (colorblind)?

I am colorblind. I am looking for an app to help me identify colors by their basic names (blue, green, ...) when I am working on powerpoint or excel on mac (OSX 10.12).  On windows, I was using  quite successfully. This app translates the RGB code of the pixel under your mouse into intelligible color names such as blue, green, ... it's a real time-saver when you have to create powerpoints or excel.  I could not find anything similar so far on mac. I tried apps such as Visolve or Sim Daltonism but they did not have this simple functionality.  Please note I am not looking for a color picker such as DigitalColor Meter, that would just read out color RGB codes from pixels. I need a tool that "names" colors, stay on top of screen, with a compact window, just like whatcolor.


How to implement a uniform random walk on a simplex?

I am looking for an uniform random walk algorithm on a simplex for MCMC purposes. Hence the process should on average spent the same time in any given area. I want this to be my proposal algorithm. The Dirichlet distribution has all sorts of problems at proposing samples near the boundaries. This is well documented.   The only algorithm I could find was . It looks like the algorithm will "struggle" to escape when near the boundary of the simplex i.e for values close to zero xnew = xold*random_number. Am I correct in that this algorithm is not a random walk on a simplex? or am I missing something? I implemented the algorithm and as I thought too many  samples are at the boundary of the simplex.


I accidentally gave the wrong person a bounty, who can I contact to undo?

I was reading a comment that I assumed to be from the person who I intended to give the bounty to and accidentally clicked +50 for the wrong answer. Sorry I was in the middle of doing something else and not really paying attention.   I would like to undo this, who can I contact to make the request? The question is .


Word or idiom for something that can either be helpful or harmful, depending on how it's used

For example, consider the following:  Knives are a [blank], because they can either be used as a tool or a weapon.  I don't think "double-edged sword" is appropriate in this context because that idiom implies the object is simultaneously helpful and harmful. I'm instead, searching for a word or phrase to describe something that is either helpful or harmful depending on how it is used.


Reinstalling Ubuntu 16.04, while keeping /home

I managed to break my system, so I would like to do a full 16.04LTS reinstall (wiping the whole /), while keeping my /home.  The /home is on a separate partition.  I looked around here, and I saw it recommended to simply do a custom install and tick the /home partition as do-not-format, but there were some comments saying that they lost their /home that way, which makes me confused.  Also, when during the installation, I create the first user account, which will have same name as before, and therefore path to his home will be to an already existing location on my /home partition (/home/username), I am scared that this will wipe the partition and even if it doesn't, the user won't have the rights to access the directory since it belongs to "someone else" which will probably break things.  So, how can I do a full Ubuntu reinstall, while using my existing /home partition with the ability to re-add users I had on the old installation, and making sure they use their already existing home directories, just as they did before the reinstall.  I cannot format the /home partition and then copy the user data back there, because the data there are simply too big and I have nowhere to back them up.  Thank you.