"the other half were" vs. "the other half was"

In the following sentence, "other half" and "were" do not seem to match up:     In one study conducted by the University of Michigan, half of the participants were asked to solve a puzzle while mentally referring to themselves as "I," while the other half were asked to use "you".   Shouldn't it be the other half "was" asked to use "you"?


Continuity of derivative of differentiable function

Say a function f is differentiable. Prove whether its derivative is continuous over its domain or not.  On an intuitive level, I believe it should be always continuous over the domain (open intervals) and am thinking of a rigorous proof.


To use stealth shaped arrow, I add this in preamble \usetikzlibrary{shapes,arrows,chains,positioning,calc} \usetikzlibrary{arrows.meta}  When compiling, the console gets stuck with (C:\MiKTex\tex\generic\pgf\frontendlayer\tikz\libraries\tikzlibraryautomata.code.tex) and there is no error message. MWE: \documentclass[11pt]{article} \usepackage{tikz} \usetikzlibrary{shapes,arrows,chains,positioning,calc} \usetikzlibrary{arrows.meta}  \begin{document}  \begin{tikzpicture}[scale=8]\centering \usetikzlibrary{automata,positioning} \tikzset{     %Define standard arrow tip     >=stealth',     %Define style for boxes     punkt/.style={            rectangle,            rounded corners,            very thick,            text width=6.5em,            minimum width = 5em,            minimum height=4em,            text centered},     % Define arrow style     pil/.style={            ->,            thick,            shorten <=2pt,            shorten >=2pt,} }   \node [punkt, draw = blue] at (0,0) {$x>y$}; \node [punkt, draw = red] at (0.8, 0) {$x<y$};  %  \node[] at (0.15, 0.03) (0up) {};  \node[] at (0.65, 0.03) (1up) {};  \path (0up) edge[pil, bend left=15] node [above] {A} (1up);   \node[] at (0.15, -0.03) (0down) {};  \node[] at (0.65, -0.03) (1down) {};  \path (1down) edge[pil, bend left=15] node [below] {B} (0down);  \end{tikzpicture}  \end{document}  My problem is that the MWE per se works well, but adding the same piece of code into my original tex file leads to the aforementioned problem. Update: Finally found the the "MnonWE": \documentclass[11pt]{article} \usepackage{commath} \usepackage{tikz}  % arrows in tikz \usetikzlibrary{shapes,arrows,chains,positioning,calc} \usetikzlibrary{arrows.meta}  \begin{document}  \begin{tikzpicture}[scale=8] \tikzset{     %Define standard arrow tip     >=stealth',     %Define style for boxes     punkt/.style={            rectangle,            rounded corners,            very thick,            text width=6.5em,            minimum width = 5em,            minimum height=4em,            text centered},     % Define arrow style     pil/.style={            ->,            thick,            shorten <=2pt,            shorten >=2pt,} }   \node [punkt, draw = blue] at (0,0) {$\forall i:x_i>y_i$}; \node [punkt, draw = red] at (0.8, 0) {$\forall i:x_i<y_i$}; %  \node[] at (0.15, 0.03) (0up) {};  \node[] at (0.65, 0.03) (1up) {};  \path (0up) edge[pil, bend left=15] node [above] {A} (1up);   \node[] at (0.15, -0.03) (0down) {};  \node[] at (0.65, -0.03) (1down) {};  \path (1down) edge[pil, bend left=15] node [below] {B} (0down);  \end{tikzpicture} \end{document}  So the file fails to compile only when \usepackage{commath} is included in preamble and $\forall i:x_i>y_i$ is used in the \node.


Recently, I found a small but deep scratch on my pan. I can see the metalic color on the scratch. I am not sure how much serious it is.  Now, I want to buy a new one. I see different prices with different qualities and I have no idea what to buy. I live alone and I cook for one person but sometimes for several meals (3 meals).   Some people suggest me to buy a thin one not thick one. Expect for thickness what is the difference between pans?  If I look at the pan's surface pattern, does it give me any clue?  I also see some pans with white dots on it. What are these types of pans?


Can't get service noip2 to start on boot

I have installed no-ip dynamic ddns following this guide:   I get the service running by  sudo /usr/local/bin/noip2   However I want the service to start on boot, I tried adding the following script to /etc/init.d/noip2.sh  ####################################################### #! /bin/sh # . /etc/rc.d/init.d/functions  # uncomment/modify for your killproc case "$1" in     start)     echo "Starting noip2."     /usr/local/bin/noip2     ;;     stop)     echo -n "Shutting down noip2."     killproc -TERM /usr/local/bin/noip2     ;;     *)     echo "Usage: $0 {start|stop}"     exit 1 esac exit 0 #######################################################   Followed by:  sudo chmod +x /etc/init.d/noip2.sh sudo update-rc.d noip2.sh defaults   Now I should be able to start the service with  sudo service noip2 start   But i'm not. When I run journalctl -xe I get the following:  -- Unit noip2.service has begun starting up. Nov 03 12:36:11 media systemd[3111]: noip2.service: Failed to execute command: Exec format error Nov 03 12:36:11 media systemd[3111]: noip2.service: Failed at step EXEC spawning /etc/init.d/noip2.sh: Exec format error -- Subject: Process /etc/init.d/noip2.sh could not be executed -- Defined-By: systemd -- Support: http://www.ubuntu.com/support -- -- The process /etc/init.d/noip2.sh could not be executed and failed. -- -- The error number returned by this process is 8. Nov 03 12:36:11 media systemd[1]: noip2.service: Control process exited, code=exited status=203 Nov 03 12:36:11 media systemd[1]: noip2.service: Failed with result 'exit-code'. Nov 03 12:36:11 media systemd[1]: Failed to start noip2.service. -- Subject: Unit noip2.service has failed -- Defined-By: systemd -- Support: http://www.ubuntu.com/support   Updated info for user PerDuck: I get the following errors trying your solution... :( Tried adding  RestartSec=30   At least it keeps trying now but it still do not start. I can still start it with sudo /usr/local/bin/noip2  The errors:  Nov 03 23:26:42 media systemd[1]: noip2.service: Service hold-off time over, scheduling restart. Nov 03 23:26:42 media systemd[1]: noip2.service: Scheduled restart job, restart counter is at 5. Nov 03 23:26:42 media systemd[1]: Stopped noip2 service. Nov 03 23:26:42 media systemd[1]: noip2.service: Start request repeated too quickly. Nov 03 23:26:42 media systemd[1]: noip2.service: Failed with result 'start-limit-hit'. Nov 03 23:26:42 media systemd[1]: Failed to start noip2 service.


Finding Jordan basis of a matrix ($3\times3$ example)

Our teacher didn't explain us how to find it so I've had to look up a bit by myself.  I have this matrix :  $$A = \begin{pmatrix} 9 & 4 & 5 \\ -4 & 0 & -3 \\ -6 & -4 & -2 \end{pmatrix}$$  I've found its characteristic polynomial $p_A(\lambda) = -(\lambda -3)(\lambda - 2)^2$.  I've found its eigenspaces : $E_2 = span(\begin{pmatrix}-2 & 1 & 2\end{pmatrix}^T)$, $E_3 = span(\begin{pmatrix}-3 & 2 & 2\end{pmatrix}^T)$.  And I've found the generalized eigenspace of $\lambda = 2$ :  $\ker((A-2I_3)^2) = span(\begin{pmatrix}0 & 1 & 0\end{pmatrix}^T, \begin{pmatrix}1 & 0 & -1\end{pmatrix}^T)$  But I don't know what to do now. I've tried to see what result I would get with $$M = \begin{pmatrix} -3 & -2 & 0 \\ 2 & 1 & 1 \\ 2 & 2 & 0 \end{pmatrix}.$$  But $$M^{-1}AM = \begin{pmatrix} 3 & 0 & 0 \\ 0 & 2 & -2 \\ 0 & 0 & 2 \end{pmatrix}.$$  So there it is. Any help ?


F-words in nicknames. Is it still allowed after 10 years?

If go to  and find some f-words we can find a lot of users with such words in their nicknames. Is it legally now? If not why they are not renamed (automatically)? Or the answer from this  is still actual?  P.S. The question is about other sites of SE also.


How to prove $(a_1+a_2+\dots a_n)\left(\frac{1}{a_1}+\frac{1}{a_2}+\dots+\frac{1}{a_n}\right)\ge n^2$?

let $a_1,a_2,\dots ,a_n$ be a positive real numbers . prove that   $$(a_1+a_2+\dots a_n)\left(\frac{1}{a_1}+\frac{1}{a_2}+\dots+\frac{1}{a_n}\right)\ge n^2$$  how to prove this inequality ..is this result prove by Induction


I have a usb flash drive which is not recognized when plugged into two of my PCs. Here is what happens when I plug in the drive:  [ 1809.142270] usb 2-3: New USB device found, idVendor=058f, idProduct=1234 [ 1809.142278] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 1809.142283] usb 2-3: Product: Mass Storage Device [ 1809.142287] usb 2-3: Manufacturer: Alcor Micro [ 1809.142793] usb-storage 2-3:1.0: USB Mass Storage device detected [ 1809.143306] scsi9 : usb-storage 2-3:1.0 [ 1810.141362] scsi 9:0:0:0: Direct-Access     Generic  USB Flash Disk   7.76 PQ: 0 ANSI: 4 [ 1810.141924] sd 9:0:0:0: Attached scsi generic sg2 type 0 [ 1810.146091] sd 9:0:0:0: [sdb] Attached SCSI removable disk   And here is the rest:  ls -l /dev/sd* sda   sda1  sda2  sda3  sda4  sda5  sdb    ~# dd if=/dev/zero of=/dev/sdb dd: failed to open ‘/dev/sdb’: No medium found   Any suggestion on how to bring this flash drive to life? I have tried with gparted and a few other tools including urescue windows


`h' float specifier changed to `ht' warning when not attempting to specify a float

I'm new to LaTeX and trying to understand the reason why I'm getting the warning:  `h' float specifier changed to `ht'   I'm not attempting to change the float property of anything - the warning is showing up if I attempt to simply encapsulate some words in quotation marks:  ``highly distributed''   As far as I'm aware, there's no open sections anywhere and the file seems to render properly. So realistically it doesn't matter if the issue gets solved or not; but I'd like to know the reason I'm getting the warning.  Thanks in advance.


I asked 3 professors at my university and none gave me a clear cut answer, but instead merely told me qualities of this notation. Here is what I understand so far from what they told me:   1)Treat the top variable as as variable when finding the derivative 2)Treat the bottom variable as a constant when finding derivative 3)It it said "Find x with respect to y", but what exactly does that mean? What does it mean for something to be in respect to something else?  It seems like $\frac{dx}{dy}$ notation changes according to values in the problem. For instance, If $y = x^3 + 2x$ and $\frac{dx}{dt} = 5$, find $\frac{dy}{dt}$ when $x=2$. Why do the values of $\frac{dx}{dy}$ change in this problem and how do I solve this?


I'm having kind of a problem with mySQL collation. My mySQL collation is utf8mb4_unicode_ci. My pages have . When I send this text "São Paulo" to mySQL it stores "SÃ£o Paulo" or if I send "Conceição" it stores "ConceiÃ§Ã£o". It display correctly in my page "São Paulo" and "Conceção" with or without htmlentities(). When I do a search for "São Paulo" it brings the correct records.  Why does it store those strange characters? Is there a way they can match? I've tried changing the mySQL collation to utf8_unicode_ci, utf8_general_ci, latin1_swedish_ci, latin1_bin but nothing seems to work.


a word that means harm or damage is being done to someone without the person realizing

for example, if someone was using a medicine that on the outside was helping them but was actually causing long-term harm. I seem to think it begins with the letter V?


Can I run Ubuntu "Alongside" my Windows on the Hard disk?

I have been trying to put Ubuntu on my 8gb flash drive, while already having it on a 4gb and not having enough space. I don't want to deal with it any more. When it said I could install Ubuntu alongside my windows, I don't know how that works. Can I chose which one I want to boot, when I go to the F12 menu? Or does that even work?


Can I photograph a solar eclipse using a 10-stop Big Stopper (+ extra ND?)

Will a 10-stop ND filter (Big Stopper) allow me to photograph a solar eclipse?  I read in another post here that solar filters are around 14-stops - presumably I would need around this strength even for an eclipse, as it's related to the peak brightness, not the size of the sun. Stacking a 10-stop and a 4-stop ND should result in a solar filter, even if it has significant vignetting?


I use my own version of subsections for definitions:  \newcommand{\definition}[2]{\addtocounter{subsection}{1} \subsection*{\thesubsection ~ Definition (#1) \text{\normalfont{#2}}}}   I use them as:  \definition{DefinedThing}{\cite{Book}[Page 64]} \label{def:DefinedThing}   This works great, the only problem I have is that the references do no longer work now:  \ref{def:DefinedThing}   This reference does only refer to the section in which the definition is used, not to the actual subsection it represents (for example it refers to "2" instead of to "2.5"). Is there a way to fix this? Maybe by increasing the counter for the \label{}.


I'm writing a matrix library in c++. After some debugging I found that a simple double difference is not zero for two "equals" numbers. This is due how double are represented in a computer of course. So my question is, what I could use to improve the numeric stability? I tried to use long double but I have the same problem. The same algorithm in MATLAB works so MATLAB must use some trick about internal number representation.


Logic behind behavior of the Java class protected members

Can please someone explain me the logic (not the behavior itself but the logic) behind the peculiar fact that access to protected class members, both methods and fields I believe, is allowed through inheritance only  i.e. by the reference of the child type – and not by the reference of the parent type where protected member was declared – in case child class is located in a different package ?  And what if both parent and child classes are in the same package, does call by inheritance is only allowed option as well?  Also why it's not allowed to access A's protected methods for another class (B) from a different inheritance tree (C)?


Electromagnetic repulsion is inversely related to the square of the distance between both objects.  Shouldn't this mean that the integral of the force between two protons is infinite if the distance becomes zero?  If so, how can protons fuse?  Or does proton fusing occur while there is space between the protons?


Here's a good Halloween mystery for you. On Tuesday morning I saw a spooky apparition...the vague, spectral shape of 15 rep points off in the distance in a dark corner, that vanished before my eyes as I approached to get a closer look--without leaving a trace!   Despite its rapid dissolution into nothingness, I managed to snap a picture of it, and I'm hoping some paranormal investigator (or maybe a mod) can explain how it is that I have a picture proving that it was not my imagination, despite the total lack of physical evidence.  Here's the ghost story: When I first looked at SO on Tuedsday morning, I saw the this banner at the top of a previously open tab:    My rep had been at 2,580 just before I went to bed the night before, so naturally I figured an answer must have been accepted. However, the very next SO page I looked at (I don't recall what, just some other page) showed that the rep was back down to 2,580. I figured there must have been an accept/unaccept. I took a look at my profile to find out which answer so I could see if it required further attention. To my utter befuddlement, the profile not only showed no record of an accept/unaccept, it showed no reputation changes at all for the day:     I'm on Eastern Standard Time, so when I went to bed with the rep at 2,580, it was already about 6 hours into this zero-change day (which in fact remains at zero, with no indication of any changes at all).  After reading "", I checked out  , but it shed no light on this eerie enigma:    BTW, in case anyone jumps to assume that any question having to do with lost rep is a complaint or a lament, I want to be clear: This isn't "hey, no fair, I want my rep back, boo-hoo!" I don't necessarily know that there was ever any reason for the rep to have gone up in the first place, since it appeared as mysteriously as it disappeared, and no clues were left behind. But I'm the curious sort and I like to understand how things work, especially if I see something that seems out of whack. If I were a cat I'd be dead. (Unless I had black fur, in which case this would be my big night.)  So, what happened? It it possible for someone to accept/unaccept fast enough that it doesn't leave any record? And if so, why would I see the rep change in the banner? Or did I just see the ghost of an accepted answer long deceased that rose from the dead to practice haunting in preparation for tonight?


Does this sentence have too many subjunctives?     If it please the king, let it be decreed that they be destroyed, and I   will pay 10,000 talents of silver into the hands of those who have   charge of the king's business, that they may put it into the king's   treasuries.   I am stumped by this sentence construction. First, there is "Let it be," which is a common English idiomatic phrase, but then it follows another subjunctive. Is that to say you can actually have a subjunctive followed by another subjunctive? Also, why does the sentence use "please"? If that's the subjunctive tense there, then why is it followed by another subjunctive instead of a conditional, or maybe "Let it be" is the conditional? Lastly, I wish to know how the that is used in the sentence. Perhaps, the simplified sentence can be restated like so:     Let it be decreed that they be destroyed and that they may put it into   the king's treasuries.   If not, maybe the simplified sentence can be restated like so:     I will pay [insert direct object here] so that they may put it [insert prepositional phrase here].   Maybe the "so" word is eliminated and replaced by a comma?  For reference, this lengthy sentence comes from the Esther 3:9 (English Standard Version of the Holy Bible).


Mac mini 2018 problem with USB pen drive

When I insert a pen drive in the USB slot of my Mac mini 2018 the Bluetooth mouse and keyboard lose connection. Anyone knows how to solve this?  I have Mojave 10.14.2 and both mouse and keyboard are Apple.


I tried Office 2013, but now wish to uninstall it. I tried to uninstall it but it always hangs at step  2 out of 4. It uses no CPU and no disk activity. So basically it's just idle.   Does anyone have a solution to this problem?


I'm trying to create an annotated bibliography. Here's my .tex document:  \documentclass[12pt]{article} \title{Annotated Bibliography}  \begin{document}  \nocite{*}  \bibliography{annotatedbib}  \end{document}   And here is the associated .bib document:  @Misc{hacker,     AUTHOR = `{Andrew Hacker'},     TITLE = {Is Algebra Necessary?},     HOWPUBLISHED = {New York Times},     MONTH = {July 31},     YEAR = {2012},     ANNOTE = {This article was published in the New York Times.}, }   No matter into which format I compile my .tex document, the annotation will not show up! Is there something that I'm missing?


Relativistic action for a massive point particle is defined to be $$S=-mc\int d\sigma \sqrt{-g_{\mu \nu}(x)\dot{x}^{\mu}\dot{x}^{\nu}}.$$ In   If all we want to do is derive the geodesic equation for some metric, then we can ignore all the shenanigans and simply work with the action $$S_{useful}=\int d\tau g_{\mu \nu}(x)\frac{d{x}^{\mu}}{d\tau}\frac{d{x}^{\nu}}{d\tau}.\tag{1.32}$$  Massless particles will follow null geodesics so geodesic equations $$g_{\mu \nu}\dot{x}^{\mu}\dot{x}^{\nu}=0.$$ hence the above action will be zero. If one considers the action as the area under the Lagrangian, what does it mean for action to be zero for massless particles?


BA diagonalisable show that AB diagonalisable ( A and B are not square)

let A $\in \mathcal{M}_{4,3}(\mathbb{R})$ and B $\in \mathcal{M}_{3,4}(\mathbb{R})$ such as BA$ = \begin{pmatrix} 0&1&1 \\ 1&0&1 \\ 1&1&0 \end{pmatrix}$ show that AB is diagonalizable


Highlight the tag that marks a question as interesting

I'm interested in seeing which tag is responsible for marking a question as 'interesting'. A slight change to its visual representation would be enough.


Why is it "two column" and not "two columns"?

Recently, during conversation, a colleague and I were debating why it's common to see "one column, two column", and not "one column, two columns".  There are several other words like this, where their singular is used instead of their plural.  Examples of its usage:   That building is held up by 2 columns That building has a 2 column layout        <------- Why is this not columns?   Why is it so?


Are the endings "-zation" and "-sation" interchangeable?

What is with words that have forms that end both in -zation and -sation, such as localization and localisation?  Many spell checkers recommend -zation.


Ridge Regression can be expressed as $$\hat{y} = (\mathbf{X'X} + a\mathbf{I}_d)^{-1}\mathbf{X}x$$ where $\hat{y}$ is the predicted label, $\mathbf{I}_d$ the $d \times d$ identify matrix, $\mathbf{x}$ the object we're trying to find a label for, and $\mathbf{X}$ the $n \times d$ matrix of $n$ objects $\mathbf{x}_i = (x_{i,1}, ..., x_{i,d})\in \mathbb{R}^d$ such that:  $$ \mathbf{X} =  \begin{pmatrix} x_{1,1} &  x_{1,2} & \ldots & x_{1,d}\\ x_{2,1} &  x_{2,2} & \ldots & x_{2,d}\\ \vdots & \vdots & \ddots & \vdots\\ x_{n,1}  & x_{1,2} &\ldots & x_{n,d} \end{pmatrix} $$  We can kernelise this as follows: $$\hat{y} = (\mathbf{\mathcal{K}} + a\mathbf{I}_d)^{-1} \mathbf{k}$$     where $\mathbf{\mathcal{K}}$ is the $n \times n$ matrix of kernel functions $K$  $$\mathcal{K} =  \begin{pmatrix} K(\mathbf{x}_1,\mathbf{x}_1) &  K(\mathbf{x}_1,\mathbf{x}_2) & \ldots & K(\mathbf{x}_1,\mathbf{x}_n)\\ K(\mathbf{x}_2,\mathbf{x}_1) & K(\mathbf{x}_2,\mathbf{x}_2) & \ldots & K(\mathbf{x}_2,\mathbf{x}_n)\\ \vdots & \vdots & \ddots & \vdots\\ K(\mathbf{x}_n,\mathbf{x}_1) & K(\mathbf{x}_n,\mathbf{x}_2) &\ldots & K(\mathbf{x}_n,\mathbf{x}_n) \end{pmatrix} $$  and $\mathbf{k}$ the $n \times 1$ column vector of kernel functions $K$  $$\mathbf{k} =  \begin{pmatrix} K(\mathbf{x}_1,\mathbf{x})\\ K(\mathbf{x}_2,\mathbf{x}) \\ \vdots \\ K(\mathbf{x}_n,\mathbf{x})  \end{pmatrix}$$  Questions:  (a) if there are more objects $\mathbf{x}_i$ than dimensions does it make sense to not use kernels? E.g. let $\mathbf{X}$ be a $50 \times 3$ matrix then $\mathbf{X}'\mathbf{X}$ will be a $3 \times 3$ and we will end up inverting a $3 \times 3$ matrix instead of the $50 \times 50$ matrix we would have to invert were we to use kernels. Does this mean that if $d \leq n$ we shouldn't use kernels?  (b) should the simplest possible kernel be used? It seems that kernels in ridge regression are used to negate the influences of dimensionality and not to utilise certain properties of the feature space (unlike support vector machines). Although, kernels can change the distances between objects so are there any popular kernels oft used in ridge regression?   (c) what is the $O$ time complexity of ridge regression and/or kernel ridge regression?


How do I remove the dots from the login screen?

I can change the background image that Unity Greeter displays, but regardless of the image I choose, it's overlaid with a grid of dots. The dots look OK on the default background, but they look horrible on the background I want to use. How can I get rid of them?


Why is the page number for Contents wrong?

So I have a longer document. I generate the Contents page using  \tableofcontents   and use   \addcontentsline{toc}{chapter}{\protect\numberline{}Contents}   so it appears in the table of contents. Now my problem is that it has the wrong page number. Contents starts at page vii but is stored in the table of contents as on page viii. I tried switching the two statements around which resulted in a page number of vi instead of vii.  How can I fix this problem? I am using the srcbook documentclass


Question: Prove that there is no non-constant polynomial $P(x)$ with integer coefficients such that $P(n)$ is a prime number for all positive integers $n$.    My approach: For the sake of contradiction let us assume that $\forall n\in\mathbb{N}$, $P(n)$ is prime, where $P$ is a non-constant polynomial.     Now, observe that $P(2)=2k+a_0=p$ for some integer $k$ and some prime $p$. This implies that $p=a_0+2k$. Now if $a_0$ even, then $2|p$, which implies that $p=2$.   This implies that $\forall k\in\mathbb{N},$ $P(2k)$ is even and since it is equal to a prime, implies that $P(2k)=2,$ $\forall k\in\mathbb{N}$.    Now let $G(x)=P(x)-2,$ $\forall x$, then for any $k\in\mathbb{N}$, we have $G(2k)=0$, which implies that $G$ has an infinite number of roots, which in turn implies that $G$ is the zero polynomial. Thus $P(x)-2=0, \forall x\implies P(x)\equiv 2$. But, $P$ is a non-constant polynomial, which implies that $P(x)\equiv 2,$ results in a contradiction.    Thus $a_0$ is not even and it is odd.   This implies that $\forall $ even $x$, $P(x)$ is an odd prime.   After this I went on to prove that $a_0=-1$ or $a_0=1$.   How to proceed after this? Please be rigorous.


What are Esri's new ArcGIS for Professionals and ArcGIS Pro?

After looking through all the stuff that was released or talked about at the Esri UC 2013  I am still genuinely confused by what  is. I will admit that it looks pretty cool, and has , but I just do not know how it is different from ArcMap or ArcGIS Online.  Does anybody have any clearer answers beyond the flashy video and homepage?


There's a Pokémon in the kebab store! Can I turn off augmented reality?

I have been trying to catch Pokémon this morning, and have had no luck so far. Eventually I ran into my first Pokémon, but unfortunately, the timing could not be worse.   I'm inside a kebab store, waiting for food, and let's be honest - while catching Pokémon in augmented reality is kind of cool, it certainly does not look cool to unaware onlookers. Raising my phone to locate the Pokémon, people are already looking at me funny. It also occurs to me that it may look like I am recording with my phone1, which can lead to some unpleasant misunderstandings.    Of course, there are many other situations where I would not want to be spinning around, holding my phone up. It would be convenient to turn this feature off, while still being able to play the game, even if it is a major mechanic. Sometimes catching Pokémon in real life just isn't convenient.  How do I disable the augmented reality mechanic for catching Pokémon, so I don't look like a complete idiot at inappropriate times?  1Given the context, I guess I kind of am.


How do I make a foreign key in one of my databases copy the primary key that it is referencing to while I create a record?

I'm practicing c#. So I created 2 database tables namely tbl_applicant and tbl_parent.  tbl_applicant attributes are:   - AID (primary key)  - Name  - PID (foreign key)  tbl_parent attributes are:   - PID (primary key)  - FatherName  - MotherName   So I got a form in MS Visual Studio 2015 that has the textboxes needed to store the data that the database requires. I also used "identity" (on the pk) and "reference" (on the fk) to associate them with being a primary/foreign key. In c#, I tested the database by recording a row (record) in the tables. Primary keys are automatically generated starting with 1.  Here's the problem, I shouldn't have to place a textbox for PID since it's going to automatically generate me a PID on the tbl_parent but why am I getting errors when I don't put a PID on the tbl_applicant manually? Isn't it supposed to have a number that will be copied/passed to the PID in tbl_applicant? What am I doing wrong here?


If $0<x<y$, then prove that $\sqrt{x} <\sqrt{y}$ and $x <\sqrt{xy} <y$

In terms of Inequalities, we have covered till AM-GM inequality and Cauchy-Schwarz Inequality in class. I was thinking about applying AM-GM inequality but not sure if its right.


How does this blinking LED circuit work?

I found a circuit that has an led that is blinking in it.  I was interested to see how it works so I took it apart and found that there was no capacitors in IC's in it (here is a picture):  I think the thing under the white circle is a spark gap, but I'm not positive.  My question is how does this LED blink without any capacitors?


Find the set of $x>0$ such that the series $\sum\limits_n x^{\ln{n}}$ converges

If $x>0$, find the set of all values of $x$ such that series is convergent$$\sum_{n=1}^{\infty} x^{\ln{n}}$$   My attempt:- I used Ratio test for finding the set of all values of $x$ such that series is convergent.   $$\lim_{x\to\infty}\frac{x^{\ln{n+1}}}{x^{\ln{n}}}$$  $$=\lim_{x\to\infty}x^{\ln\frac{n+1}{n}}$$ This quantity must be less than one for getting a convergent series, I am not able to judge. Can you please help me to find the interval of convergence?


How can I rotate an object based on another's offset to it?

I have a 3D model of a turret that con rotate around the Y-axis. This turret has a cannon that is significantly off the center of the object. I want the cannon, not the turret, to aim at a specified target. I can only rotate the turret, however, and thus I don't know what equation I need to apply in order to accomplish by objective.  The following image illustrates my problem:  If I have the turret "LookAt()" the target, a laser originating from the cannon will completely miss said target.   If this were a completely top-down scenario, and the cannon were exactly parallel to the turret, then my logic tells me that the fake target should be located at a position that's equal to the actual target plus an offset that's equal to that between the turret and the cannon. However, in my actual scenario, my camera is angled 60º, and the cannon has a slight rotation.  The following image illustrates the scenario:   I'm not sure exactly why, but if I apply that same offset, it only seems to work while aiming at certain distances from the turret.  Is my logic flawed? Am I missing something fundamental here?  Final Edit: the solution provided by @JohnHamilton latest update solves this problem with perfect precision. I have now removed the code and images that I used to illustrate my incorrect implementations.


What's a good approach for identifying potentially large common factors? For example, how do I quickly recognise that 123543/99900 is reducible to 371/300? Or putting this another way, how do I efficiently work out that 123543 and 99900 have the common factor 333?


I have recently joined Ubuntu version 16.04. When i open the terminal it displays this message "To run a command as administrator(user "root"), use sudo command ". Please help me with this problem asap.  It happened to me (@waltinator), too. I did CtrlAltt to open a teminal, and is my wont, did 3 CtrlShiftt to open additional teminal screens. The additional screens got the message:  To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details.   before my .bashrc finished.    I can't find anywhere in my .bashrc or its included files where I attempt to sudo anything (sounds like a Bad Idea) during my login process. I do set up aliases that sudo when evaluated, but not when defining the alias:  $ egrep 'sudo |su ' .bashrc .bash_aliases /etc/profile.d/color_ls.sh etc/bash_path_funcs/*  .bashrc:# makes "sudo" easier: sudo less $LESS files .bash_aliases:alias bigopenfiles="sudo lsof / | awk '{if(\$7 > 1048576) print \$7/1048576 \"MB\" \" \" \$9 }' | sort -n -u"  .bash_aliases:alias deletedfiles="sudo lsof / | egrep 'PID|\(deleted\)'" .bash_aliases:alias bigopenfiles="sudo lsof / | awk '{if(\$7 > 1048576) print \$7/1048576 \"MB\" \" \" \$9 }' | sort -n -u"  .bash_aliases:alias deletedfiles="sudo lsof / | egrep 'PID|\(deleted\)'" .bash_aliases:alias aptfixkey="sudo gpg --keyserver keyserver.ubuntu.com --recv-keys " .bash_aliases:alias susp="sudo -v && sleep 20 && echo 'Zzzzzzzzzzzzzzzzzzzzz' && date && sudo pm-suspend && date && echo 'Awake'" .bash_aliases:alias update='wupdatestatus=99;while [[ $wupdatestatus -ne 0 ]] ; do sudo apt-get update; wupdatestatus=$?;echo "status=$wupdatestatus";if [[ $wupdatestatus -ne 0 ]] ; then date; sleep 300; fi; done' .bash_aliases:alias upgrade='wupgradestatus=99;while [[ $wupgradestatus -ne 0 ]] ; do sudo apt-get upgrade; wupgradestatus=$?;echo "status=$wupgradestatus"; if [[ $wupgradestatus -ne 0 ]] ; then date; sleep 300; fi; done' .bash_aliases:alias upgradedl='wupgradestatus=99;while [[ $wupgradestatus -ne 0 ]] ; do sudo apt-get --download-only upgrade; wupgradestatus=$?;echo "status=$wupgradestatus"; if [[ $wupgradestatus -ne 0 ]] ; then date; sleep 300; fi; done' .bash_aliases:alias dist-upgrade='wupgradestatus=99;while [[ $wupgradestatus -ne 0 ]] ; do sudo apt-get dist-upgrade; wupgradestatus=$?;echo "status=$wupgradestatus"; if [[ $wupgradestatus -ne 0 ]] ; then date; sleep 300; fi; done' .bash_aliases:alias wup='wifi;sudo rmmod rt2800usb;sudo modprobe rt2800usb;nmcli con up id Nick;wifi;ping3 slashdot.org' .bash_aliases:    sudo tail -n 50 $( ls -rt1 /var/log |sed -e 's%^%/var/log/%'| tail -n 6 ) grep: /etc/profile.d/color_ls.sh: No such file or directory   None of the logs help:  $ sudo grep -l sudo /var/log/* /var/log/*/* 2>/dev/null     shows nothing interesting.  How do I track down who/what is trying to sudo when I login?


How to run script automatically on each login to Unity (Ubuntu 12.04)?

I'm using dual monitor configuration (laptop + external CRT). Each time I lock my screen I need to restore my CRT screen parameters (actually refresh rate only) on next unlock. Screen refresh rate of external monitor is reset to 60Hz and desktop picture moved (or better to say compressed) to left creating black zone right.  I'm running following command to restore correct parameters  xrandr --output VGA-0 --mode 1280x1024 -r 75   I need to run this script each time I'm unlocking my screen and it would be nice to make this happening automatically.  Startup applications won't help as they run once only during system boot.  Another solution is to save those VGA parameters somewhere but I'm not sure how. Probably in /etc/X11/xorg.conf (which actually don't have) but I need to generate full config first and then put that 75 rate in it.   UPDATE  I can't understand why was this marked as DUPLICATE of another question where in the description a man says "... upon boot? (not upon user login)" and my question is inverted - "upon login (not upon boot)".  Also I mentioned that putting a script to "Startup applications" does not do the trick.


Is it safe to travel to Morocco due to the Ebola outbreak?

My family and I are due to travel to Marrakech and Agadir this week (Thusday 7th August) and despite the fact that the Ebola outbreak is mainly affecting West Africa, such as Sierra Leone, would it still be safe to travel?


Use TeX solution for footnote placement within LaTeX

How can I use  piece of TeX code within LaTeX?  I would like to implement a particular arrangement of footnotes:   .  The user  gave an excellent answer to this question---written in TeX.  I would like to use this within a LaTeX document. Is this possible? And how?  (The answers to  do not answer my question).


I found an answer for  which works fine for renaming filenames as follows :  1.jpg > 00001.jpg 2.jpg > 00002.jpg . . . 9.jpg > 00009.jpg   That uses the following command:  rename 's/\d+/sprintf("%05d", $&)/e' *.jpg   But my filenames aren't numeric. They are an alphanumeric sequence, like: a.jpg, b.jpg, c.jpg...... m.jpg.  In a similar way to the original question, I want to rename these so they display in the correct sequence. How do I do this?


Read first file in a list of files within a directory

I wanted to read the first text file in every directory using "cat or vi". To clarify the issue:  The Folder_A1 contain 1000 text files. The files named in the following format "i.1351". All the files names starts with "i." and the number is different between these files.   I have 500 Folders, each one contain ~1000 text file (*.txt), and I want to read just the first file in each folder. How can I do that?


I have a set of pictures in my working directory and I want to make a PDF report using these images. I want to include all of them, but the number of the pictures changes in each case. I would like to make a "for" loop to insert each picture one after the other sequentially. Can anyone help me? At the moment the code I have is the following:   \begin{figure}[h!] \begin{centering} \includegraphics[width=10cm,height=10cm]{Figure1.png} \caption[Sèries temporals de vent i direccions]{Sèries temporals velocitat de vent i     direccions. filtratge de pics i glaçades de velocitat.} \label{Serie} \end{centering}  \end{figure}   I would like to do it for every .png image in the directory. Thanks for your questions: I am using Windows 7 and the file names follow the pattern Figura1.png, Figura2.png and so forth. So which of these possibilities would fit best?


Is it a good practice to use mb_convert_encoding function

This question is different from  as it asks for how safe and is it a good practice to use the mb_convert_encoding function.  Lets say that a user can upload the files using the PHP API. Each filename and path gets stored in a PostgreSQL database table which has UTF-8 as default encoding.  Sometimes user uploads files which names aren't UTF-8 encoded and they get imported into the database. The problem is that the characters that are not UTF-8 encoded are scrambled and do not display as they should in the table columns.  I was thinking of adding the following to the PHP code before import:  if ( ! mb_check_encoding($output, 'UTF-8') {     $output = mb_convert_encoding($content, 'UTF-8');  }   Does this look like a good practice and will it be displayed and converted by the user's client correctly if I return UTF-8 as the output? Is there a potential loss to the bytes by using mb_convert_encoding?  Thanks


why is the javascript date month index 0-based

I have read numerous explanation attempts why this was created like this back in the day (with both year and day index are not being 0-based). None of these explanations really made sense.  What is even more surprising to me: even in the latest ECMAScript 2018 draft, this issue still exists.   Javascript might have just taken this from Java long time ago but I don't see why it is not being changed unless there actually is a proper reason for it.  Thanks & regards, Marcel


Is there a java equivalent of python's dict.items()/dict.values()/dict.keys()?

I am currently learning Java, having had experience in Python already. I understand that the closest thing to Python dictionaries in Java is HashMap and I am curious if there is a HashMap equivalent for Python's dict.items()/dict.values()/dict.keys() - I understand HashMap has a get() method but I want to retrieve values without knowing the keys of the Map.  If there is no equivalent, how do you recommend I get around this problem? Do not use HashMap at all or?


Show that if $f(z)$ is a continuous function on a domain $D$ such that $f(z)^N$ is analytic for some integer $N$, then $f(z)$ is analytic on $D$.   I had no clue, I was trying to use the facts that zeros of $f(z)^N$ are isolated. So, zeros of $f(z)$ are isolated too. Now do I have to use uniqueness theorem?


How do you avoid 3d arrays from being linked in Python?

I've been trying to copy a 3D array but it seems like no matter what I do; amending the copy, amends the original as well.  I've tried multiple veriants of the top advice given on  question.  Can anyone explain to me why this code is amending the Clients array, after it's been copied and how to avoid this?  ##### This block is to get and save the information  import csv  import datetime  import glob import os  #import copy  from datetime import timedelta  list_of_files = glob.glob(r'U:\UEL\Sales and Marketing\Relationship - Sales\Team\Edinburgh Clients\Portal backups\Full export archive\*.csv') # * means all if need specific format then *.csv latest_file = max(list_of_files, key=os.path.getctime)  with open(latest_file, newline='') as csvfile:     data = list(csv.reader(csvfile))     Vheaders = data[0]     data.pop(0)  Clients = list(set(list(zip(*data))[9]))  i = 0 for line in Clients:     Clients[i] = [Clients[i]]     i = i + 1  Voids = [] CoTs = []  for row in Clients:     Voids.append(row)  for row in Clients:     CoTs.append(row)  #Voids = list(Clients) #This creates an array of arrays, an array of voids for each client  #CoTs = list(Voids) #Same as above for CoTs  #import pdb #pdb.set_trace()   i = 0  for row in Clients:     for line in data:         #if line[0] == '443179':             #import pdb             #pdb.set_trace()         if (datetime.date.today() - timedelta(days=7)) <= datetime.datetime.strptime(line[2], "%d/%m/%Y").date() < datetime.date.today():              if line[9] == row[0]:                 Voids[i].append(line)             else:                 pass         else:             pass     i = i + 1


How to divide numbers $1,\ldots,n$ into $3$ equal groups?

The sum of numbers $1,\ldots,n$ is equal $n(n+1)/2$ so it will be divisible by $3$ only for $n=3k$ and $n=3k+2$. I am interested is that partition always possible for that cases.  Let's exclude $n=2$ and $n=3$ because clearly it is not possible to do partition them.  For $n=8$ we can do $\{4,8\}$, $\{1,5,6\}$ and $\{2,3,7\}$.


I'm pretty new to JS objects. Can anyone tell me why I am getting this result?     hey arnold   While my desired output is:     hey amy   Here's the code   function greet (person) {            if (person == { name: 'amy' }) {         console.log('hey amy')     } else {         console.log('hey arnold')     } } greet({ name: 'amy' })


Pixelated error on select faces during Render

I have a low poly model and I can't figure out what is doing this. It's not a reversed normal and I removed duplicate vertexes so....?  These faces were the most recent adds to the model buy adding vertexes and creating new faces. there are a little bit darker than the others when viewed as solid.  thanks


I am using PGFplot to make a barchart. There are 4 entries in my csv file and unfortunately I have only 3 bars in my figure.   my LaTeX code:  \begin{figure}     \centering     \begin{tikzpicture}          \begin{axis}[             x tick label style={/pgf/number format/1000 sep=},                 xlabel=Sequence,             ylabel=Heigth,                 ymin=0.7,             enlargelimits=0.05,             legend style={at={(0.5,-0.15)},                 anchor=north,legend columns=-1},             ybar interval=0.7,             width=\textwidth,             ]             \addplot table [col sep=comma,trim cells=true,y=height] {numericaltests/data/test.csv};              \addplot[red,sharp plot,update limits=false]                 coordinates {(-1,1.00) (34,1.00)}                 node[above] at (axis cs:15,1.00) {};             \legend{Ca2Fe2As2}         \end{axis}     \end{tikzpicture}     \caption{Sequence}     \label{fig:sequenceHeight} \end{figure}   my test.csv file:  sequence,height 1,2.0 2,1.5 3,1.8 4,2.4   Barchart:


A wine glass filled with water (approximately half or a quarter), when you use a wet finger and rub the top of the wine glass, the wine glass will produce a sound. I heard that it is because of the "stick and rub" effect ... Can you explain this effect or other principal that cause this sound to be produced?  how much water is least needed to produce a sound? What and why is the relationship between the quantity of the water and the pitch of the sound? Will the sound produced be greater if we use a denser or less dense liquid than water?  Thx for explaining :D


Isn't Dark Matter just an Indication that Relativity breaks down when describing large masses?

It seems to me that Dark Matter is just an indication that our models of gravity do not scale to the level of galaxies, and thus like Newtonian physics, it is a powerful but incomplete model of the universe. Why do most physicists believe that it is more likely that there is some mysterious previously undetected substance constituting most of the mass in our universe as opposed to limitations in our current models as we scale them up? I am far from an expert in this stuff (more an enthusiastic amateur), so please educate me.


How do I hide and show entire tasks lists in Trello?

Does anyone knows how can we hide and show entire tasks lists in Trello, or if not possible, if it will be done nearly?  The problem is, that you have a list of 5 or 6 columns, but some of them need to get out of our sight while working, however, we must be able to check them a few times.  Plus, if you have only 4 for instance, it wouldn't be nice to not have them to narrow for comfortable reading.


Prove $\frac{X^p-1}{X-1}$ for $p$ prime is irreducible in $\mathbb{Q}[X]$

I've been solving problems from my Galois Theory course, and at some point I sated that, given $p$ prime, $$\frac{X^p-1}{X-1} = X^{p-1}+X^{p-2}+\cdots+X+1$$ is irreducible in $\mathbb{Q}[X]$, because I felt I saw that in my course classes, but I'm not sure how can I prove or if it's even true. Is it really irreducible in $\mathbb{Q}[X]$ for any $p$ prime? If that's the case, how can I prove it? Any help will be appreciated, thanks in advance.


I'm looking to quickly switch between to windows of an application in Unity. I looked at  but I didn't get any answer.  The only option I've got is to long-click on the icon on the dash and click on the window when they're all shown. That's definitely too long ! I'm sure there is a shortcut, like an Alt+Tab but I don't find it.  So, how can I quickly switch between windows of an application ?


Installing Guest Additions causing problems

I am trying to install Guest Additions in VirtualBox with Windows XP host and Ubuntu 12.04 guest. I followed the above steps:  Devices-> Insert Guest Additions CD Image. After that I locate the folder /media/VBoxAdditions4.3.4_91027/ and run sudo ./VBoxLinuxAdditions.run   I want to be able to create shared folders and adjust the resolution of the screen. I achieved to do the first issue, but I couldn't do the second one. I didn't get any message, however it is not possible to change the resolution of the screen and I cannot switch to fullscreen. What am I doing wrong?  I found in the instal log the following message: unknown version of the X Window System. I've tried the solution of the proposed link but I got the following message:  Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies: virtualbox-guest-x11 : Depends: xorg-video-abi-11                     Depends: xserver-xorg-core (>= 2:1.10.99.901) E: Unable to correct problems, you have held broken packages.   I tried also to install with the command sudo apt-get install virtualbox-guest-dkms but nothing is changing. During the installation of dkms I got the message: Error! Bad return status for module build on kernel 3.13.0-32-generic(i686).


Get the length of an array with a pointer?

I am looking for a way to get the length of an array for the pointer address.  An example:  int *a = (int*)malloc(sizeof(int)*2);// will be an array.  *(a+0) = 1; // values of the array *(a+1) = 2;   Is there a way to detect how much memory is allocated by this pointer? We suggest that there are no empty elements in this array. If I know how much memory is allocated, I should be able to get the size of an array (deviding by sizeof(int));


GUI won't load, but the desktop background loads. Can't access the terminal

Having trouble with the Ubuntu GUI. I can log in just fine (see )... everything looks normal there. But as soon as I put in my password, I get . I tried a few different troubleshooting keyboard commands (ctrl+alt+t, crtl+alt+delete), and only the latter worked. I can interact with that window just fine, except I am unable to resize or move it.  The first time I logged in, I got a dialog box that said, "Ubuntu has experienced an internal error. Send error report?" Doesn't say anything now.  Yes I tried restarting it.   Thanks a bunch,  Michael  EDIT: Trying to start a guest session leads to the same problem.


How long will a 12v car battery last using a 100w lamp only?

Is there a specific formula where I can compute how many hours before my 12v car battery becomes fully empty when using 100w light bulb only?


How can I calculate time dilation between our clock, and clock in satellite?

We know satellite is moving , so there should be time dilation due to motion, also we know due to Earth's Gravitational field there should be time dilation, what should I do, just calculate both of them and add?


I want to replace 0/1 with hetero but whenever I am trying to use the known commands it is showing syntax error because the / is aleady part of the command .. Can anyone suggest a command to solve this issue??


Updating Google Chrome gives sources.list error

I am using Ubuntu 14.04. When I run sudo apt-get update, I get the following error:  W: Failed to fetch   Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file) E: Some index files failed to download. They have been ignored, or old ones used instead.  How do I correct this error?


TikZ: How to draw an arrow in the middle of the line?


UK standard visitor visa application for plab/ british spouse

I'm a doctor from Pakistan. My husband is a British citizen and we have a one-year-old daughter, whose passport we have just applied for.  My husband is unemployed, so we do not meet the income requirement for a spouse visa. However, Ineed to apply for a standard visitor visa to take my plab 2 exam.  I am afraid my application would be rejected due to insufficient ties to my home country. I've been employed in the same job for 3 years, however I do not own any land or even have a rental agreement in my name. I live with my in-laws and they pay for the utilities etc.  What other documents could I attach to strengthen my case? And secondly I haven't decided whether to take my daughter along or not. If her passport arrives in time I could take her with me. What bearing would that have on my case?  I intend to apply for 5 days. The other option is to apply for 5 weeks and attend the short academy course most people take before the exam, but I pessimistically think that would completely ruin any chance I have of being granted a visa...


I understand that the integral of a PDF provides tangible value --i.e., the integral of a PDF allows one to see the probability of a value or less than that value, under a particular distribution, occurring. But, what does the value of just the output of the PDF provide? In other words, what does the PDF of the standard normal distribution at x=0.5 mean?


Currently I met with an issue in Stack Overflow.  I gave answer to this question:  . As a quick answer I only added some-links and I was editing my answer, at that time my answer was deleted and added as a comment to the question.  I know that happened because that was a link only answer. But what happened is, when I tried to cast the undelete vote, it says moderator is deleted that post, So I can't undelete.  I read in  that the deleted answers can be undelete by casting the undelete votes and once a post has 3 undelete votes, it will no longer be deleted.  Then why that message popped for me, when I tried to cast my undelete vote ?  Note:  I added my edited answer again. It solved OP's issue and he accepted that.


What documentation does a Mexican citizen need to fly domestically within Mexico?

If a Mexican citizen, residing in Mexico, wants to fly domestically, what documents are needed?   Example: Flying from Torreon to Cancun (different states in Mexico)


XFCE global appmenu (vala appmenu) in Xubuntu 18.04

I use Xubuntu and am very happy with XFCE. I use it in a netbook and saving screen space is vital for me. So I want to move the menus to a bar like it was in Unity. Some months ago I had followed the tutorial in  and it had worked fine in Xubuntu 16.04. Now I have installed Xubuntu 18.04 and am getting this error:  ~$ sudo add-apt-repository ppa:webupd8team/mate  The packages in this PPA require MATE 1.8 or newer. For Ubuntu 14.04, it depends on the following PPA: https://launchpad.net/~ubuntu-mate-dev/+archive/ubuntu/trusty-mate  Currently, this PPA only provides TopMenu (global menu) from Git for MATE 1.8+ and Xfce. More information: - MATE: http://www.webupd8.org/2014/12/get-global-menu-in-mate-18-with-topmenu.html - Xfce: http://www.webupd8.org/2015/02/use-global-menu-in-xubuntu-or-linux.html  Más información: https://launchpad.net/~webupd8team/+archive/ubuntu/mate Pulse [ENTRAR] para continuar o Ctrl+C para cancelar la adición.  Obj:1 http://ar.archive.ubuntu.com/ubuntu bionic InRelease                       Des:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [83,2 kB]                                Obj:3 http://ar.archive.ubuntu.com/ubuntu bionic-updates InRelease                                                Obj:4 http://ppa.launchpad.net/lyx-devel/release/ubuntu bionic InRelease                                            Obj:5 http://ppa.launchpad.net/snwh/ppa/ubuntu bionic InRelease                                                                           Obj:6 http://ar.archive.ubuntu.com/ubuntu bionic-backports InRelease              Ign:7 http://ppa.launchpad.net/webupd8team/mate/ubuntu bionic InRelease       Err:8 http://ppa.launchpad.net/webupd8team/mate/ubuntu bionic Release   404  Not Found [IP: 91.189.95.83 80] Leyendo lista de paquetes... Hecho E: El repositorio «http://ppa.launchpad.net/webupd8team/mate/ubuntu bionic Release» no tiene un fichero de Publicación. N: No se puede actualizar de un repositorio como este de forma segura y por tanto está deshabilitado por omisión. N: Vea la página de manual apt-secure(8) para los detalles sobre la creación de repositorios y la configuración de usuarios.  ~$ sudo apt install xfce4-vala-appmenu-plugin unity-gtk3-module unity-gtk2-module appmenu-qt appmenu-qt5 Leyendo lista de paquetes... Hecho Creando árbol de dependencias        Leyendo la información de estado... Hecho El paquete appmenu-qt5 no está disponible, pero algún otro paquete hace referencia a él. Esto puede significar que el paquete falta, está obsoleto o sólo se encuentra disponible desde alguna otra fuente  E: No se ha podido localizar el paquete xfce4-vala-appmenu-plugin E: El paquete «appmenu-qt5» no tiene un candidato para la instalación   I don't want to install MATE, I want to keep XFCE but with the global menu bar.


Can I extend my 30 days Schengen visa in Switzerland?

I am Filipina and I'm in Switzerland right now together with my sponsored, and my 30 days Schengen visa for housemaid will going to expire on Aug 25 '2014, Can I extend my visa till 31 of Aug 2014 from Switzerland? Where I can go to process my visa?


swap x and y axis on data generated plot


How do I generate a date series in PostgreSQL without hard coding the dates?

I want to generate a series of months. The start should be the first month of the current year, the stop is the current date with an interval of 1 month.  I used the function generate_series (see below) and it gives me the desired result, but I don't want the starting date to be hard coded. It should change depending the year it is in.  select to_char(generate_series('2018-1-1'::date,                 now()::date,                 '1 month'), 'YYYYmm') as dat    Output:  201801 201802 201803 201804 201805 201806 201807 201808 201809 201810   Any ideas on how I can solve this?


I have the following url:  http://myweb/sites/stonehr/SitePages/VacancyTracking.aspx?PrID=23?Status=34   And I have to get the value of PrID= and Status= with JavaScript, to be able to:  alert(PrID); // output should be 23 alert(Status); // output should be 34   How can I achieve this?


Can EU citizens travel to UK after Brexit with just an identity card?

I am traveling as a Belgian citizen after 28 March (brexit). Can I still enter with my identity card?


Derivation of closed form lasso solution

For the lasso problem $\min_\beta (Y-X\beta)^T(Y-X\beta)$ such that $\|\beta\|_1 \leq t$. I often see the soft-thresholding result $$ \beta_j^{\text{lasso}}= \mathrm{sgn}(\beta^{\text{LS}}_j)(|\beta_j^{\text{LS}}|-\gamma)^+ $$  for the orthonormal $X$ case. It is claimed that the solution can be "easily shown" to be such, but I've never seen a worked solution. Has anyone seen one or perhaps has done the derivation?


Finding the sum of the elements of an array, Java

Can anyone help me figure out what I am doing wrong when trying to get the sum and the average of the elements in the array? My assignment is: You are preparing for the Boston Marathon. In order to prepare, you need to train for 10 weeks, running an increasing number of miles per week, starting at running at least 2 miles your first week up to 26 miles by week 10. One question states to find the sum of the total miles ran over ten weeks and the average miles ran over the ten weeks, and what I have will execute without errors, but the sum is coming out as 26.000000000004 which I know is wrong. Any advice would be greatly appreciated. I am new to this.      public class arrayTest     {     public static void main(String[] args) {            double[] miles = new double [10];                  double milesPerWeek = 26.0 / 10;                 double totalMiles = 0;                 double sum = 0;                 double average = 0;                  System.out.println("Week\tMiles");                  for (int i = 0; i < miles.length; i++)                 {                       miles[i] += milesPerWeek;                       totalMiles += miles[i];                    System.out.println("Week " + i + " miles " + totalMiles);                      }                 for (int i = 0; i < miles.length; i++)                 {                                     sum = sum + miles[i];                       average = sum / miles.length;                    }                   System.out.print("the sum of the miles ran is: " + sum + "\n");                    System.out.print("the average miles ran is: " + average);                 }           }     The result reads:     Week    Miles     Week 0 miles 2.6     Week 1 miles 5.2     Week 2 miles 7.800000000000001     Week 3 miles 10.4     Week 4 miles 13.0     Week 5 miles 15.6     Week 6 miles 18.2     Week 7 miles 20.8     Week 8 miles 23.400000000000002     Week 9 miles 26.000000000000004     the sum of the miles ran is: 26.000000000000004     the average miles ran is: 2.6000000000000005


I've been researching to find a faster alternative to list. In an algorithm book, hashtable seems to be the fastest using separate chaining. Then I found that java has an implementation of hashtable and from what I read it seems to it uses separate chaining. However, there is the overhead of synchronization so the implementation of hashmap is suggested as a faster alternative to hashtable.   My queations are:   Is java hashmap the fastest data structure implemented in java to insert/delete/search? While reading, a few posts had concerns about the memory usage of hashmap. One post mentioned that an empty hashmap occupy 300 bytes. Is hashtable more memory efficient than hasmap? Also, is the hash function in each the most efficient for strings?


Need two Excel windows side by side, on different monitors, in the same instance

I have to do work between two spreadsheets and I need to view them side by side. I can't just open the workbooks in separate instances because I need to make use of features like paste formatting, and all of that goes away when the workbooks aren't in the same instance.  Is there anything I can do to get two windows open, each with a separate workbook, each maximized on a different monitor, and still have access to the advanced cut/paste features?


How do Death Saves interact with Actions that have multiple Attacks?

Inspired by the efforts to kill a , the GM in me got in a fight with the engineer.  Per the text from Death Saves, taking damage while you have 0 hit points will cause a death saving throw failure (PHB, 197).  Of the first bullet, what qualifies as a source of damage? Specifically, how does evaluate an attack that has multiple components, such as:        An attack action that is able to take multiple attacks, each requiring an attack roll. Fighter     A spell that can produce multiple elements, each require an attack roll. Eldritch Blast, Scorching Ray      RAW, I expect each would be an independent source. As a GM, this seems overly brutal against the party, and a bit anti climatic against a non player character that has been raised to using death saves.


I am trying to find the names/differences/what is the symbol called at the of the prompt provided at the entry line for Bash.  For example: user@user~$ what is the $ called, and why on some systems is user % not $? is that a setting that can be changed?  I am thinking about this from the perception of Cisco IOS, between > (user) to # privileged exec. The symbols serve a purpose there, so what purpose do they serve on a *Nix system?


I'm referring to a question I found here () about pie charts in QGIS. I too would like to move some pie charts because they are overlapping each other. I tried to follow the instructions on the link, but didn't understand the approach properly.  I was able to create a dbf with the centroids of the polygons, however, i am not sure if the centroids were of the polygons of the layer OR the pie charts. Also, I did not know how to move the diagrams with the dfb-file I had created.   I'm using QGIS 2.18.3. (Las Palmas).


I had posted a question on this site; someone pointed out that there was a valid duplicate, so I tried to delete it on the new iPhone app.  It appears that this is not an option: there is a little clicky-button on the bottom right of the question with the following options:   Open in Safari Favorite Share Edit Flag Close   I was able to delete the question on this site - but the option appears to be missing in the app?  I would like to request this as a feature.


Add working link to both author and year in authoryear citation style

I've been using the code given in  to tune the authoryear citation style to my needs. More specifically, I'm trying to have references in the form (First Author, year), with everything within parentheses linking to the bibliography.  Unfortunately, the link created with this method doesn't actually work. Consider the following MWE:  \documentclass{article}  \usepackage{nameref} \usepackage[colorlinks=true]{hyperref} \usepackage[nameinlink]{cleveref}  \usepackage{filecontents}  \begin{filecontents}{bibliography.bib} @article{cubitt2017universal,     author = {Cubitt, T. and Montanaro, A. and Piddock, S.},     journal = {arXiv:1701.05182},     title = {Universal Quantum Hamiltonians},     url = {https://arxiv.org/abs/1701.05182},     year = {2017} } \end{filecontents}  \usepackage[     backend=biber,     style=authoryear,     bibstyle=authoryear,     citestyle=authoryear,     maxcitenames=1,     natbib ]{biblatex} % \renewcommand{\cite}{\mycitep}  % -------------- START AUTHORYEAR FIX \usepackage{twoopt} \usepackage{ifthen}  \newcommand\black[1]{\textcolor[rgb]{0,0,0}{#1}} \makeatletter  \newcommand{\multicite}[1]{% taken from egreg, see link   \@tempswafalse   \@for\next:=#1\do     {\if@tempswa;~\else\@tempswatrue\fi     \hyperlink{cite.\next}{\citeauthor{\next}\black{,~}\citeyear{\next}}%     }% } \makeatother  \newcommandtwoopt{\mycitep}[3][aa][bb]{%             \ifthenelse{\equal{#1}{aa}}                                                                  % if nargin == 1       {(\multicite{#3})}                                                                         %    \citep{key(s)}       {\ifthenelse{\equal{#2}{bb}}                                                               % elseif nargin == 2           {(\hyperlink{cite.#3}{\citeauthor{#3}\black{,~}\citeyear{#3}\black{,~}#1})}            %    \citep[pg]{key}           {\ifthenelse{\equal{#1}{}}                                                             % elseif #1 = []               {(\hyperlink{cite.#3}{\citeauthor{#3}\black{,~}\citeyear{#3}\black{,~}#2})}        %    \citep[][pg]{key}               {\ifthenelse{\equal{#2}{}}                                                         % elseif #2 == []                   {(#1~\multicite{#3})}                                                          %    \citep[eg][]{key(s)}                   %                                                                              % else                   {(#1~\hyperlink{cite.#3}{\citeauthor{#3}\black{,~}\citeyear{#3}\black{,~}#2})} %    \citep[eg][pg]{key}}               }           }       } } % ------------------- END AUTHORYEAR FIX  \addbibresource{bibliography.bib}  \begin{document}  This link works~\citep{cubitt2017universal}, but this doesn't~\mycitep{cubitt2017universal}.  \printbibliography \end{document}   This gives    which would be great if not for the fact that the link produced by \mycitep doesn't work: clicking on it does nothing, whereas the same reference created with \citep correctly sends me to the relevant bit in the bibliography.  How can I fix this? (another way to have the same type of reference style with working links would be equally good for me)


form still submitting even after using preventDefault and return false

I have a very simple comment form, which submits through $.ajax. However, I'm having some problems with it refreshing on submit.  This happens even though I am using both e.preventDefault() and return false within my submission script.   I have looked at every single post I can find on StackOverflow and even various Fiddles, but have come across no solutions.  This is my JavaScript:  $(".f-track-actions__form").submit(function(ev){     ev.preventDefault();      var wave = $.cookie("cv"),         wave = eval(wave),         waveDuration = wave.getDuration();      var child = $(this).children(".f-track-actions__form-comment");     var cTime = (wave.getCurrentTime() / waveDuration) * 100;     var pD = {         'c': comment.val(),         'i': child.attr('id'),         't': cTime     };      $.ajax({         type: "post",         url: "/spectrum-rr/core/_func/functions/actionTrack.php",         data: pD,         success: function(data) {             alert(data);         }     });      return false; });   HTML:  <form method="post" class="f-track-actions__form">     <input class="f-track-actions__form-comment" type="text" placeholder="Comment on this track..." name="comment" id="c-1"> </form>   Thanks.


If I give a user the rights to read on my secondary replica which is in sync (not async) with primary replica, and if that user runs a query with a lot of Select into ##Temptable statements on the database (that creates a lock on a table), will that slow down the Primary Replica? I was thinking if the deadlock and locks on secondary replica will cause the slowness on the Primary replica, since they are synchronous and the primary should wait for the secondary to commit the transaction?


I tried to compile some C code to get object file from a shell prompt:  $cc a.c     But this gives me the following error:  /usr/ucb/cc:  language optional software package not installed   How can I compile C code?


With Windows 8, every time I want to copy/paste/modify/write a file under the Windows partition, I get a message saying :  "You must be administrtor to copy/paste/modify/write in this folder/file".  I haven't found any way to gain full privilege under my own Windows 8 Professionnal, which I've installed from scratch. I'm the only user. I'm administrator. And I can't give myself all access to the "Program Files" folder, it says for every folder inside that "There was an error, you don't have access to the specifyed file".  How can I solve this problem ? There is absolutely no satisfying solution on Google. There must be a way somehow musn't it ?  EDIT : Disabling UAC doesn't solve that problem.


C++ Template specialization for bool gives error

I'm trying to make a bool specialization for this code in Microsoft Visual Studio 2017.  BinaryParser.h:  #pragma once  #include <stdint.h> #include <array> #include <vector> #include <string>  #include "Deserializable.h" #include "ParserError.h"   class Deserializable; class BinaryParser { public:     BinaryParser(const uint8_t* in, size_t in_len);      size_t GetRemaining();      template <class T>     T Get(bool check=true)     {         static_assert(std::is_base_of<Deserializable, T>::value, "Type does not implement Deserializable.");          T obj = T();         obj.Deserialize(this, check);         return obj;     }      template <>     bool Get(bool check);  private:     const uint8_t* data;     size_t size;     size_t index = 0; };   BinaryParser.cpp:  #include "stdafx.h" #include "BinaryParser.h"   BinaryParser::BinaryParser(const uint8_t* in, size_t in_len) {     data = in;     size = in_len; }   size_t BinaryParser::GetRemaining() {     return size - index; }   template <> bool BinaryParser::Get(bool check) {     if (check && GetRemaining() < sizeof(bool)) throw ParserError();      uint8_t r = data[index];     index += sizeof(bool);     return r; }   Unfortunately, whenever I do:  BinaryParser p(...); bool a = p.Get<bool>();   I get this error:  LNK2019 unresolved external symbol "public: bool __thiscall BinaryParser::Get<bool>(bool)" (??$Get@_N@BinaryParser@@QAE_N_N@Z) referenced in function _wWinMain@16   I've been banging my head against the wall for the past 2 hours trying to figure this out. I had a template specialization for uint8_t and it compiled, but bool, uint16_t and uint32_t gave me this error (unsigned int __thiscall BinaryParser::Get<unsigned int>(bool) in the case of uint32_t for example).  I also don't get any errors if I comment out bool a = p.Get<bool>(); but leave the declaration and definition.


Problem: Having file name contain Space and fetch the file

I am trying to get all file which is reside in one folder and file name have space like  1)File Test 050791.xml   and i am fetching using below command   export srcfileTimeCheck="$(find $dir -type f -mtime +1)"   but this command give me error like   find: can not stat File find: can not stat Test find: can not stat 050791.xml   Please help me how can i find all file which having space also. Note: I Have tried  1) xrags -0 -I '{}'


I want solution for the following problem

this is the code.i want to the simulation result analysis section first then the subsection parameter but the code does not show this.how can i solve this???????  \begin{figure*}[ht]  \includegraphics[width=\linewidth]{Capture.PNG}   \caption{A system model for MIMO-OFDM Beamforming.}   \label{fig:1} \end{figure*}      \section{Simulation Result Analysis}  \subsection{Parameter} \begin{table}[ht] \centering \caption{MIMO-OFDM parameters for Beamforming in 5G} \begin{tabular}{|c|c|} \hline     Parameter Name & Value\\ \hline Sampling Time (T) & 1\\ \hline No of FFT (Nfft) & 128\\ \hline Rolling Factor (beta) & .5 , .2\\ \hline No of transmit antenna & 64,16 \\ \hline No of receive antenna & 16,8\\ \hline Antenna separation (deg) & 8,5\\ \hline No of cluster (cl) & 1,3,6\\ \hline \end{tabular}     \end{table}


Is there any way to initialize variables in Python using strings within the script?

I have a lot of variables to initialize with one of my classes, and would rather not type them all out. Is there any way to initialize variables that have the same name as a string? Semi-Psuedo code: array1 = ["a", "b", "c", "d", "f"] array2 = [1, 2, 3, 4, 5]  class test:     def __init__(self, arr1, arr2):         for i, x in enumerate(arr1):             init_var("self." + x) = array2[i]                                       t = test(array1, array2) print(t.a) print(t.b)  This is so that I can access them later in my code, but there are so many specific variables. So far I have been using a dictionary to store all of the values but I would rather have it so that I can retrieve the value straight from the object itself rather than from a dictionary in the object.


What is Group Policy and how does it work?

This is a  about Active Directory Group Policy Basics   What is Group Policy?  How does it work and why should I use it?  Note: This is a Question & Answer to new administrator that might not be familiar with how it functions and how powerful it is.


Is it possible to have label in QGis 2.8 two different colours? For example Field1 in red colour and Field2 in blue (Field1 || ‘  ’ || Field2).


has the Heroic ability:     Whenever you cast a spell that targets War-Wing Siren, put a +1/+1 counter on War-Wing Siren.    states:     "Other Soldier creatures you control get +1/+1 and have vigilance."   With Siren in play under my control, I cast Captain Of Watch. The Captain has an effect on Siren: +1/+1 and vigilance.  Does this count as casting a spell that targets Siren?  Should Siren get a +1/+1 counter?  I see "Target" to mean the recipient of some spell or effect.


Breaking table of contents between frames in beamer

I've got a rather long table of contents for my presentation in beamer, and it doesn't fit on one frame. I know I can provide a table of contents per section, or to manually break it between sections into a few frames using \tableofcontents[sections={1-3}] etc., but I was hoping there is a way for LaTeX/beamer to do it automatically for me.  So, in short:      Is it possible to automatically break the table of contents in beamer between frames?   And of course, if yes, how would I go about it?


How to hash a password in php, save it to the mysqli DB and then compare it to an input later

I just want some simple code on how to hash a password(i read about the function crypt()???) because apparently md5 and sha isn't good enough... and then also how to add salts? my main worry is how i will compare them afterwards with the salt implemented... i know how to write and read from the database. I just need a code snippet on the actual hashing process and the comparing process. I understand all the concepts on salts and hashing, I am just not too sure of the code. Thanks a lot everyone.  Oh also if you could it would help if you could also show how to prevent timing attacks.


Not able to create a project in vs code?SFDX: Create Project failed to run

This is the following error i am getting....  Starting SFDX: Create Project  11:39:05.943 sfdx force:project:create --projectname gfgfgf --outputdir c:\Users\SAMEER\Desktop\ToDoManager --template standard ERROR running force:project:create:  Command failed with exit code 1: npm root -g --prefix c:\Users\SAMEER\Desktop\ToDoManager\.yo-repository --loglevel error 'npm' is not recognized as an internal or external command, operable program or batch file. 11:39:07.122 sfdx force:project:create --projectname gfgfgf --outputdir c:\Users\SAMEER\Desktop\ToDoManager --template standard  ended with exit code 1


Find a function $f(x)$ which is defined at every real number but is continuous at $0$ and is not continuous at every other number.   This was a bonus question for our Calculus 1 homework on limits a few months ago and no one could figure it out.


South African Travel agent wants to see my passport - I live in the UK

My friends in South Africa are purchasing a round trip plane ticket for me in December 2015. I'll be flying from London to Durban and back to London and their travel agent wants to see my Passport. I live in the UK. Is this normal procedure?  I am fully aware that the ticket must bear the exact same name as my passport - I am just very cautious about giving this type of information ad lib.    I would appreciate your advice on this matter.


Schengen visa clarification: can I travel to other Schengen countries?

I applied for a Schengen multiple entry visa but I got only one single entry with a period of stay of 21 days.  I'm traveling first to Austria; then I booked a flight to Paris, France. Is that possible or should I take only trains or vehicles to travel since my visa is only a single entry? Can I fly to other Schengen countries with a single entry visa?  Should I travel to the country that issued the visa? I'm going backpacking through Europe and I don't know my longest destination or my actual destinations, to be clearer.


What is the probability of getting a 5,6 before 1 when you roll a dice sequentially ? Could some body use state diagram and law of total probability to solve this?


I got some curious here.  On Stack Exchange, my preview name is a regular text (Ahmad Azwar Anas). But in another portal, in example, the Ubuntu portal, I got some alphanumeric combination, such as userXXXX.  What is going on? Can it become a single preview?  A link that explains it clearly will be admirable. Hehehe. I can not find it through Google. {Oh... my bad.}


Ruby / Rails -- from where was a method was included?

Is there a way to find out from where a method was included in Ruby / Ruby on Rails?   For example, from searching the  I know that:   link_to comes from ActionView::Helpers::UrlHelper, and   pluralize come from ActionView::Helpers::TextHelper   But is there a way to find out in Ruby itself? i.e. inirb, or the Rails console?


How can I add a command-line option to a favourited application?

I have a 4k display, so by default Spotify is incredibly zoomed out. To fix this, I had a look at , which recommends adding a command line option. This works when I launch Spotify through the terminal, however I want it to launch that way by default when I click on the icon. I attemped to follow the guidance in the rest of the solution, which mentions editing spotify.desktop, however whenever I try to edit it gedit says the file is read-only, even using sudo. First, I used sudo find . -name spotify.desktop and got the response of:  find: ‘./run/user/1000/gvfs’: Permission denied ./snap/spotify/21/meta/gui/spotify.desktop ./snap/spotify/21/usr/share/spotify/spotify.desktop find: ‘./proc/19908/task/19908/net’: Invalid argument find: ‘./proc/19908/net’: Invalid argument   Running sudo gedit /snap/spotify/21/meta/gui/spotify.desktop or sudo gedit /snap/spotify/21/usr/share/spotify/spotify.desktop opens gedit, but in read-only mode. Attempts to change the file permissions leads to chmod: changing permissions of '/snap/spotify/21/usr/share/spotify/': Read-only file system.  How should I best proceed?


Does a question about software architecture using a specific framework belong on Programmers or Stack Overflow?

I have a question about how to best design my React.JS/Flux app.  Does it belong on Stack Overflow or the Programmers community?  I was thinking Programmers, but there's no React or Flux tag on that site, whereas there are on SO.


Code re-use between methods called by multiple types

I'm trying to avoid having to write a large number of switch/case (or if/else) statements in one area of my code. Take the following method:  async internal static Task UndeleteAsync(JObject item, string tableName) {     switch (tableName)     {         case "QuoteTask":                var obj = item.ToObject<QuoteTask>();                var deletedObj = (await MobileService.GetTable<QuoteTask>().IncludeDeleted().Where(x => x.Id == obj.Id).ToListAsync()).FirstOrDefault();                await MobileService.GetTable<QuoteTask>().UndeleteAsync(deletedObj);                                 break;                //Only 26 more tables to go...                     }         }   This works well, but I have a ton of tables, I'm not too familiar with generics but I thought maybe something like this would work:  async internal static Task UndeleteAsync<T>(JObject item) {                 var obj = item.ToObject<T>();     var deletedObj = (await MobileService.GetTable<T>().IncludeDeleted().Where(x => (x as BaseObject).Id == (obj as BaseObject).Id).ToListAsync()).FirstOrDefault();     await MobileService.GetTable<T>().UndeleteAsync(deletedObj); }   This seems to be ok, it doesn't give me any compiler errors, but my issue is I can't seem to call it:  Type tableType = Type.GetType(operation.Table.TableName); await AzureMobileServices.UndeleteAsync<tableType>(operation.Item);   I get the error "tableType" is a variable but is used like a 'type'.  So I guess generics have to be identified at compile time. So I would have to have a massive switch/case or if/else statement to figure out the type anyway.  Can someone direct me towards an elegant way to do this? Or is there no way around it?


Work around for “Couldn’t load PyQt” error with QGIS 3.0.3 on Ubuntu 18.04?

I am working with a fresh install of Ubuntu 18.04 and installed QGIS using . I get the following error when I launch QGIS:  Couldn't load PyQt. Python support will be disabled. Traceback (most recent call last):   File "", line 1, in  ImportError: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /usr/local/lib/python3.6/dist-packages/PyQt5/QtCore.so) Python version: 3.6.5 (default, Apr  1 2018, 05:46:30)  [GCC 7.3.0]  QGIS version: 3.0.3-Girona 'Girona', 8a899c8  Python path: ['/usr/share/qgis/python', '/home/ned/.local/share/QGIS/QGIS3/profiles/default/python', '/home/ned/.local/share/QGIS/QGIS3/profiles/default/python/plugins', '/usr/share/qgis/python/plugins', '/usr/lib/python36.zip', '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload', '/usr/local/lib/python3.6/dist-packages', '/usr/lib/python3/dist-packages']   A similar error has been reported as a bug () but I haven’t seen a workaround.  I tried to install 2.18 (ltr) but apt-get failed with:  qgis : Depends: python-qgis (= 1:2.18.20+28bionic) but 1:3.1.0+git20180529+ad1fef9+28bionic is to be installed   Any suggestions on how to get QGIS working on Ubuntu 18.04?


Casting a List back from object returns a System.InvalidCastException C#

I have a Dictionary<string,object> where I save objects to parse to my plugin system, some of these objects need to be a copy not the original so I use this DeepClone method: public static T DeepCloneJSON<T>(this T Obj)         {             var text = JsonSerializer.Serialize(Obj);             return JsonSerializer.Deserialize<T>(text);         }  for example, if I do : var dict = new Dictionary<string,object>(){     {"someKey",new List<MyClass>(){new MyClass()}} } var copy = dict["someKey"].DeepCloneJSON(); var cast = (List<MyClass>)copy;  i get a System.InvalidCastException, but if i use a MemoryStream DeepCopy method i don't get this exception, like this one: public static T DeepCloneMemoryStream<T>(this T obj)         {             using (var ms = new MemoryStream())             {                 var formatter = new BinaryFormatter();                 formatter.Serialize(ms, obj);                 ms.Position = 0;                  return (T)formatter.Deserialize(ms);             }         }  so, I would like to know why I get this exception using a System.text.json based DeepClone Method and if it is possible to do this with a System.text.json because in my tests it presents to be faster and use less memory than a MemoryStream based onde.


Why does ls -l output a different size from ls -s?

I can't figure out why I'm getting the following results:  ls -l tells me the size of a given file (HISTORY) is "581944":  $ ls -l HISTORY  -rw-rw-r-- 1 waldyrious waldyrious 581944 Feb 22 10:59 HISTORY   ls -s says it is "572":  $ ls -s HISTORY 572 HISTORY   I obviously need to make the values use a comparable scale. So first I confirm that using --block-size 1 in ls -l gives me the same result as before:  $ ls -l --block-size 1 HISTORY  -rw-rw-r-- 1 waldyrious waldyrious 581944 Feb 22 10:59 HISTORY   Then I do the same to ls -s to get a value in the same scale:  $ ls -s --block-size 1 HISTORY  585728 HISTORY   Different results! 581944 ≠ 585728.  I tried generating comparable values the other way around, using -k, but I get:  $ ls -lk HISTORY  -rw-rw-r-- 1 waldyrious waldyrious 569 Feb 22 10:59 HISTORY $ ls -sk HISTORY  572 HISTORY   Again, different results, 569 ≠ 572.  I tried specifying --si to make sure both options were using the same scale, to no avail:  $ ls -lk --si HISTORY  -rw-rw-r-- 1 waldyrious waldyrious 582k Feb 22 10:59 HISTORY $ ls -sk --si HISTORY  586k HISTORY   ...again, different values: 582k ≠ 586k.  I tried searching the web but the only thing I could find that seemed relevant was :     Some files have "holes" in them, so that the usage listed by ls -s (...) is less than the file size listed by ls -l."   (note that in my results the opposite happens: ls -s returns sizes bigger than ls -l, not smaller.)  Meanwhile,  says that     there is no elegant way to detect Unix file holes.   So, how can I deal with this discrepancy? Which of these values can be considered correct? Could this possibly be a bug in ls?


convert amount to words using a button in c#

I have created a program to convert amount in words. Its working fine up to 99999 amount values. Can't convert the other numbers and its not allowing cents. Can anyone help me to solve this issue? Below is my code:      private void button1_Click(object sender, EventArgs e)     {         string[] Ones = { "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven", "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen", "Seventeen", "Eighteen", "Nineteen" };         string[] Tens = { "Ten", "Twenty", "Thirty", "Fourty", "Fifty", "Sixty", "Seventy", "Eighty", "Ninety" };         string[] oo = { "Hundred", "Two Hundred", "Three Hundred", "Four Hundred", "Five Hundred", "Six Hundred", "Seven Hundred", "Eight Hundred", "Nine Hundred" };         string[] Hundreds = { "one hundred thousand ", "two hundred thousand ", "three hundred ", "Four hundred", "Five hundred", "Six hundred", "Seven hundred", "Eight hundred", "Nine Hundred" };           int no = int.Parse(textBox3.Text);         string strWords = "";         if (no > 99999 && no < 1000000)         {             int i = no / 100000;             strWords = strWords + oo[i - 1] + "";             no = no % 100000;         }          if (no > 99999 && no < 1000000)         {             int i = no / 100000;             strWords = strWords + Hundreds[i - 1] + "";             no = no % 100000;         }          if (no > 9999 && no < 100000)         {             int i = no / 10000;             strWords = strWords + Tens[i - 1] + " ";             no = no % 10000;         }          if (no > 999 && no < 10000)         {             int i = no / 1000;             strWords = strWords + Ones[i - 1] + " Thousand ";             no = no % 1000;         }           if (no > 99 && no < 1000)         {             int i = no / 100;             strWords = strWords + Ones[i - 1] + " Hundred ";             no = no % 100;         }          if (no > 19 && no < 100)         {             int i = no / 10;             strWords = strWords + Tens[i - 1] + " ";             no = no % 10;         }          if (no > 0 && no < 20)         {             strWords = strWords + Ones[no - 1];         }          textBox4.Text = strWords + " only";      }


Java: Cannot serialize object with a DateTimeFormatter property?

I am trying to write a serialization of an object (Match) to a file. However, when I run my code, I receive the following code, stating that the object cannot be serialized because it contains a  property which is not serializable: java.io.NotSerializableException: java.time.format.DateTimeFormatter  The problem is that I can't modify the DateTimeFormatter class to implement , as that interface is marked final. Any suggestions on how to workaround this issue? Below is my code: Match.java import java.time.format.DateTimeFormatter; import java.util.Locale;  public class Match implements java.io.Serializable {     private String timeFormat = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'";     private final DateTimeFormatter inputFormatter = DateTimeFormatter.ofPattern(timeFormat, Locale.ENGLISH);      public Match() {     } }  SaveSerializedMatch.java: import java.io.FileOutputStream; import java.io.ObjectOutputStream; import java.io.IOException;  public class SaveSerializedMatch{     public static void main(String[] args) {         Match match = new Match();                  try {             FileOutputStream fileOut = new FileOutputStream("Match.txt");             ObjectOutputStream out = new ObjectOutputStream(fileOut);                  out.writeObject(match);             out.close();                  fileOut.close();         }         catch (IOException ex) {             System.out.println(ex.toString());         }     } }


Good texts on Quantum Mechanics to accompany this online course

I'm a mathematics undergraduate student and I think of studying  QM this summer. I've found two online courses given by professor Fredric Schuller  QM (). I look for a good text that I can use to accompany those lectures. I prefer those lectures since they are rigorous unlike most courses I've found on Youtube that are not rigorous enough for my tastes.   Which texts do you recommend? What about Principles of Quantum Mechanics by Shankar? does it go along with the QM course? if not, any other recommendations?  I've suggested the two books since when I skimmed through them, they seemed to be more rigorous than many other texts I skimmed through. Note also that It will be my first course to QM and GR.   Here are the titles of lectures of QM course (every lecture is about 110 minutes):         Axioms of Quantum Mechanics    Banach Spaces   Separable Hilbert spaces    Projectors,bars and kets   Measure Theory   Integration of measurable functions    Self adjoint and essentially self-adjoint operators    Spectra and perturbation theory    Case study: momentum operator    Inverse Spectral Theorem    Spectral Theorem    Stone's theorem & construction of observables    Spin    Composite systems    Total spin of composite system -   Quantum Harmonic Oscillator I   Quantum Harmonic Oscillator II   The Fourier Operator    The Schrodinger Operator    Periodic potentials I   Periodic potentials II


Refund went through AFTER I received my current statement?

So I bought a blender from Wal-Mart for $100. I returned it a couple days later. My current credit card statement came in the mail and shows the $100 blender was bought. It does not show the refund. I called the credit card company and they told me the refund went through and it will show up on my next statement. My current balance (with the $100 blender) is $300 (min payment $80).   So my question is, should I pay $200 or should I pay the full $300? I don't want any interest or penalties, etc.   EDIT: I called the credit card company and they told me my current balance was $200 on their system and that I could pay $200, not $300 without getting penalized.


Is RSA secure enough to protect bitcoin private keys?

Suppose my very trusting friend has a bitcoin private key with a large balance (let's say $1B USD worth of Bitcoin) and wishes to keep a backup copy with me as a trustee. He doesn't want to transfer the raw key over an internet connection for obvious reasons, so he asks me to generate an RSA key and send him the public key so he can encrypt his bitcoin private key and then I can decrypt it on my end offline and store my backup of his bitcoin private key. Is there a realistic risk that someone could brute force the encrypted key that we transferred plaintext over the internet?


Upgrade iPad to newer (but not latest) iOS

How do I upgrade my iPad 3 from iOS 5.1 to 7.x (now when the latest version is >8)?


Extend Ubuntu Partition to a Windows Drive

I'm running out of space on my root(/sda10). I want to merge the drive Ubuntu(/sda8 - 10 GiB) in my root(/sda10).  I don't have any unallocated space so.   Should I format the Ubuntu(/sd8) in ext4 format and then resize the /sda10 parition? I read here [ ] that GParted has to resize a partition above or below your partition that you need to extend -- which is a bit confusing.   Below is my parition screenshot.


Do we have name for these kind of "flat graphics" images?

What is the name for these type of images? I love these kind of graphics and it's so flat which totally matches my current product development.      Do we have a name for it? A name will make it easier to search for examples and how to's.


Unable to remove the $ sign named files using linux?

Here is my ls command, which shows the list of files in my current directory:  rper:  ls -l  $commandoutput[0]   file.txt   I tried to remove $commandoutput[0] line by using rm -rf $commandoutput[0], but it shows the following error. How can I remove it?  rper: rm -rd $commandoutput[0] commandoutput: Undefined variable.


How to install Windows 10 into a 2011 iMac without using the Boot Camp Assistant, an optical (DVD) drive or third party tools?

Apple does not support Boot Camp Assistant installations of Windows 10 on 2011 and earlier iMac models. The exact list of supported Mac models is given below.  The following Mac models support 64-bit versions of Windows 10 when installed using Boot Camp.      If you have one of the models listed below, then you should not use the accepted answer to install Widows 10.    MacBook Pro (2012 and later) MacBook Air (2012 and later) MacBook (2015 and later) iMac (2012 and later) Mac mini (2012 and later) Mac mini Server (Late 2012) Mac Pro (Late 2013)   I have read where others have successfully used the Boot Camp Assistant to create a Windows flash drive installer. This was accomplished by first editing a .plist file contained within the Boot Camp Assistant software. I have the following problems with doing this.   The Boot Camp Assistant software has to be hacked in order to create the Windows installer. The resulting flash drive installer defaults to a Windows installation that uses the EFI boot method. Apple did not officially start supporting this method of booting Windows until the 2012 model year. I have always assumed the Windows Support Software, supplied by Apple for my Mac, was designed only for the legacy BIOS boot method of installation.       I have no problems EFI booting the USB Windows installer, but I still want to install Windows to use the BIOS boot method.    Here is what I wish to accomplish.   Install Windows 10 Pro 64 bit. I have downloaded the latest Windows 10 (Version 1709, OS Build 16299.15) iso file. Install Windows 10 into a newly formatted volume. I do not want to first install an earlier version of Windows and then upgrade to Window 10. Boot Windows using the legacy BIOS boot method. Use only one partition on the first internal drive (disk0) for the Windows files.  The single internal disk in my Mac uses a 512 byte sector size. Install Windows using the latest version of macOS. Currently, this would be High Sierra (macOS 10.13.2).   I would desire to preform the installation without any of the following.   No third party software No optical (DVD) drive  No Boot Camp Assistant Without disabling System Integrity Protection (SIP).   I would prefer not having to boot to  via the internet, built-in recovery or an . But, since  is not a third party tool, I am not opposed to its use.


Meaning of “for” in “For the very nature”

Could you please help me analyze the meaning of this sentence?  If the order of Western historicism is disturbed in the colonial state of emergency, even more deeply disturbed is the social and psychic representation of the human subject. For the very nature of humanity becomes estranged in the colonial condition and from that “naked declivity” it emerges, not as an assertion of will nor as an evocation of freedom, but as an enigmatic questioning.  The source is "" by Homi K. Bhabha (1994) I am not sure what the meaning of "for" is in this sentence. I was also wondering what subjects "it" refers to.


How is the Cofinite Topology on an infinite set even possible?

To be a topology we need the empty set to be open but- X is not finite so the empty set can't be in it and if X was finite every subset of X would be in the topology...


PPTP VPN missing in "connection type dialogue" in Ubuntu 16.04

There is no PPTP VPN in network manager connection type dialogue.  Packages pptp-linux network-manager-pptp are installed.


Is there any way for me to find which questions/answers I have upvoted/downvoted?

The other day I was trying to find a question that I knew I had voted on. I remembered enough about it to search for it, and of course I could see once I got there that I had in fact voted on it, but I was wondering if there is any way to see all such questions. Like from my profile I can see what comments I've made, etc.


How was Voldemort able to continue flight without a wand

In Chapter 4 of Harry Potter and the Deathly Hallows (The Seven Potters) Voldemort was flying unaided, which meant it must have been done with the use of a spell.   Fast forward to Chapter 30 (The Sacking of Severus Snape). Snape jumped out of the window and flew off while McGonagall and the other teachers where in hot pursuit of him. Harry, rather hopefully, wondered if he had jumped to his death. McGonagall, rather gloomily, remarked that alas, he had his wand when he jumped and could employ the ability to fly, a skill he no doubt learnt from his master. She also noted that this situation was unlike Dumbledore's final moment when he was wandless, and thus, could not jump from the ramparts of the highest tower to fly away from Draco Malfoy and the other Death Eaters.  So, this all implies that you do need a wand to fly.   Voldemort started out with a wand but after Harry's wand destroyed it, Voldemort was rendered wandless. You may recall that he was demanding Selwyn's wand.  In short, my SPECIFIC question is: how did he remain airborne without a wand? Side question: did J.K. Rowling ever comment on this extraordinary ability of unaided flight?


How does reddit update it's favicon on the fly without running into caching problems?

Whenever I change a favicon on a site I work on, it can take hours/days for the browser to re-request the new resource.  But when I go to reddit, if I have a message I get a notification in the favicon, without a page load as well, I think?  Is this as simple as supplying a new favicon with a different filename?  How do you get the browser to load that without doing a page load?


What is this insect I found in my kitchen?

So I found this bug crawling around near my kitchen sink. There were two others, but not any sort of swarm. I think they're some sort of insect larva, as they don't have a bunch of legs like a millipede or woodlouse, but I have no idea what kind. There also seem to be several shed shells nearby, if that helps.  As for location this is in the upper Midwest.  Here's the top of the thing, with screwdriver for scale    And here's the underside.


Catching a train in Montparnasse from Charles de Gaulle airport

I need to travel from Charles de Gaulle airport to Montparnasse to catch a TGV (Train à Grande Vitesse or "high-speed train"). What is the best and fastest method to do that? Train?  I only have an hour and 30 minutes between arrival at CDG and the pre-booked TGV departure from Montparnasse (I didn't do the booking myself). I am concerned that may not be enough time.