I have a problem importing OpenWeatherMap to QGIS. I am new to this type of importing. I have searched old topics, but it seems that things have changed now.   Basically, I have a map in QGIS, and I want to overlay the existing map with a real-time weather data.
I would like to add in QGIS real time weather data.  I found this  and this  and I tried to follow the example, but without any success.  I've added a WMS weather data layer for precipitation to the QGIS map, as follows:  First, the parameters for the service:  service = 'crs=EPSG:900913&amp;dpiMode=7&amp;featureCount=10&amp;format=image/png&amp;layers=precipitation&amp;styles=&amp;url=http://wms.openweathermap.org/service'   Next, create the raster layer, specifying WMS as the type:  rlayer = QgsRasterLayer(service, "precip", "wms")   Finally, add the precipitation layer to the map:  QgsMapLayerRegistry.instance().addMapLayers([rlayer])   the example didn't show any error in the code and no data was added to the weather layer either, I'm not sure why?
Supposing we have a table with four columns (a,b,c,d) of the same data type.  Is it possible to select all distinct values within the data in the columns and return them as a single column or do I have to create a function to achieve this? Sophix tablet will not work without an SD card My Sophix tablet was working without the SD card, but now the camera will not work. I get the following error message:     Insert a SD card before using. Need to develop a tapered spacer for under a car lift on an angled concrete slab I need to fabricate/develop an angled spacer.  13 inch wide by 10 inch long, by 3/4 inch to 1 3/8 inch thick. This spacer is needed to go under two of the posts of a hobbyist car lift in my garage. The garage floor is angled by the door where two of the four corner posts will go. These two rear posts need to be on a flat surface and at the same level as the two front posts.  Each post pad will need to handle approximately 2000 pounds. I was thinking of building a 4-sided mold where the column pads would be on the angled concrete and pouring some type of epoxy, resin, or cement into the mold. Which the metal plate from car lift posts would sit on. enter image description here How do I choose between "as to", "on", "of", and "about"? I'm looking for an easy and robust way to strip all the comments from a listing. My approach (passing \@gobble to the commentstyle key) correctly removes all the one-line comments and block comments. However, the white space left behind by by block comments remains, creating useless gaps in my listing. See the screenshot below (the red rectangle is my emphasis). Any idea?    \documentclass{article}  \usepackage{xcolor} \usepackage[T1]{fontenc} \renewcommand{\ttdefault}{pcr} \usepackage{listings}  \makeatletter \lstset% {%   basicstyle   = \ttfamily,   morecomment  = [l]{//},   morecomment  = [s]{/*}{*/},   frame        = single,   commentstyle = \itshape\color[gray]{.5},   rulecolor    = \color{black},   breaklines, } \makeatother  \usepackage{filecontents} \begin{filecontents*}{sample.c} #include &lt;stdio.h&gt;  /*  block comment taking up white space */ main() {     float fahr, celsius;     float lower, upper, step;     lower   = 0;    /* lower limit of temperature scale */     upper   = 300;  /* upper limit */     step    = 20;   /* step size */     celsius = lower;     printf("\nCelsius\tFahr\n");     while (celsius &lt;= upper)        {         fahr = (9.0/5.0) * celsius+32.0;         printf("%3.0f\t%6.1f\n", celsius, fahr);         celsius = celsius + step;     } } \end{filecontents*}  \begin{document} \makeatletter \lstinputlisting[caption={with comments}]{sample.c} \lstinputlisting[caption={without comments},commentstyle={\@gobble}]{sample.c} \makeatother \end{document} What is a concise function that formats a (String) decimal into a currency format in Apex? Show that any bounded linear functional on a normed linear space is continuous Show that any bounded linear functional on a normed linear space is continuous.   Can we say that it is uniformly continuous ?   Also, is it true, if we reverse the statement    any continuous  linear functional on a normed linear space is bounded ?? How do I compare 2 rows from the same table (SQL Server)? I need to create a background job that processes a table looking for rows matching on a particular id with different statuses. It will store the row data in a string to compare the data against a row with a matching id. I know the syntax to get the row data, but I have never tried comparing 2 rows from the same table before. How is it done? Would I need to use variables to store the data from each? Or some other way? (Using SQL Server 2008) I've just installed Mir and I'm wondering if I'm actually running it or if it fell back to X. How can I tell if Mir is running? How does Annihilation work? What do ellipsis [...] mean in a list? For the command   sudo apt-get update   I get following error:  W: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/maverick-updates/multiverse/binary-i386/Packages.gz   407  Proxy Authentication Required (The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )   I am running Ubuntu 10.10 installed on Windows XP using VirtualBox. For Internet connections I am using proxy server with an authentication. I tried to use gnome-network-proxy tool to set proxy settings system-wide.   After that /etc/environment has been updated by http_proxy variable with the format http://my_proxy:port/, there were no authentication data.  I checked this with Firefox. Browser asked my for login and password and everything was working fine. It was unfortunately not the case for apt-get. I have also tried to do as described . Unfortunately it does not work.  May it be somehow related to the fact that a proxy is in a Windows domain, any ideas?  My proxy name is http-proxy. Is '-' a special character here? spectral radius in normed space is subadditive. I am reading the book "characterizations of c*-algebras" by Doran and Belfi. On the page 299, the book reads "It can also be shown that if $xy=yx$, then $\nu(x+y)\le\nu(x)+\nu(y)$." The definition of $\nu$ is as follows: in normed algebra,  $$\nu(x)=\limsup_{n\to\infty}\|x^n\|^{\frac1n}$$  Note that the algebra is not assumed to be complete and is also not assumed to be complex scalar(we can have real scalars)  This is my trial: I just tried to mimic the proof of the Minkowski inequality, but failed.  Thank you Wilcox.test for testing count based data in R studio large W I'm doing a textmining project about a videogame review dataset. I divided de reviews into a positive (reviewgrade > 8) and negative (reviewgrade &lt; 3) and want to draw conclusions based on the frequency of different grading factors mentioned in the text. I now have a dataframe with counts of certain categories mentioned per review.  0    13249 1     1565 2      292 3       65 4       19 5        6 6        4 7        3 8        2 9        1 Name: positive: gameplay, dtype: int64   0    5043 1     348 2      66 3      18 4       8 5       3 Name: negative: gameplay, dtype: int64   For example this are the distributions of the amount of reviews which have a certain amount of mentions of gameplay related words. There are for example 1565 reviews with precisely 1 mention of a word related to the category gameplay.  Now I want to use this data to determine if on average gameplay gets mentioned more in negative context than in positive or vice versa. Because the data is not normal distributed, I assumed a t-test is not appropriate, and found online that a Mann–Whitney U test might be suitable.  &gt; wilcox.test(positive$gameplay, negative$gameplay, alternative = "two.sided", conf.int = TRUE)      Wilcoxon rank sum test with continuity correction  data:  positive$gameplay and negative$gameplay W = 43702925, p-value &lt; 2.2e-16 alternative hypothesis: true location shift is not equal to 0 95 percent confidence interval:  2.963844e-05 4.797412e-05 sample estimates: difference in location            4.995671e-05    I do however get a very high W value, which doesn't seem to be correct. Is this not the appropriate test, or am I interpreting this wrong? Let $X$ be a normed linear space, $x\in X$ and $r&gt;0$. Define the open and closed ball centered at $x$ as  $$ B(x, r) = \{y \in X : \Vert x − y\Vert &lt; r\} $$  $$ \overline{B}(x, r) = \{y \in X : \Vert x − y\Vert \leq r\}. $$ Then $B(x, r)$ and $\overline{B}(x, r)$ are convex.  I tried to prove this, but either my calculation is incorrect, or I am on the wrong path:  I aim to show for the closed ball $\overline{B}(x,r)$ (for open ball I assume the proof is similar). Suppose $y,z \in \overline{B}(x, r)$. Then $\Vert x − y\Vert \leq r$ and $\Vert x − z\Vert \leq r$. We must show that $t \in [0,1]$ implies $ty + (1-t)z \in \overline{B}(x,r)$. But $t \in [0,1]$ implies $$ \Vert ty + (1-t)z - x\Vert = \Vert t(y-z) + z - x\Vert \leq |t| \Vert y-z\Vert + \Vert z-x\Vert \leq |t|(\Vert y-x\Vert + \Vert x-z\Vert) + \Vert z-x\Vert &lt; |t|(2r) + r = r(2|t| + 1), $$ which is not necessarily $\leq r$. We probably wanted to end up with $&lt; |t|r$ or $\leq |t|r$ as our final inequality.  Thanks in advance. Alice has a secp256k1 key pair that she used some time ago when she communicated with Bob. Bob can no longer user secp256k1 but he only uses ed25519 instead.  Is there a secure algorithm that Bob can use to derive an ed25519 pubkey from original Alice's secp256k1 pub key and also Alice can derive the matching ed25519 private key from her original secp256k1 private key such that they can communicate securely via ed25519 encrypted messages?  Thanks! How can I propose a new site? I have an idea or subject that should have a Q&amp;A, and want to propose a new site. How can I do this?  Related: I've recently updated to Ubuntu 15.04 and after installing the latest nvidia drivers (346.59) which worked on ubuntu 14.10 seems to have caused some trouble on boot.  All I get is the following when booting:   A purple screen for about a second and then  [0.514409] ACPI PPC Probe failed. Starting version 219  A black screen with a message of my monitor saying : No Signal detected.   I am using a GTX 970. Why does the speed of light in vacuum have no uncertainty? I could understand that the definition of a second wouldn't have an uncertainty when related to the transition of the Cs atom, so it doesn't have an error because it's an absolute reference and we measure other stuff using the physical definition of a second, like atomic clocks do.  But why doesn't the speed of light have uncertainty? Isn't the speed of light something that's measured physically?  Check out that . When trying to add a bit more detail to a related , I realized I don't know how to specify which one of the available Bash word types to execute. According to help type there are five word types:   alias keyword function builtin file   It's possible for a word to have several types (true is just an example; a more commonly overridden word would be cd):  $ type -a true true is a shell builtin true is /bin/true   How do you force the execution of a specific synonym? So far, in order of precedence:   alias: This is a special case since it has precedence over all the other synonyms. Forcing this would only be useful when the command should fail if the alias is not defined.  $   keyword:  $   function:  $   builtin:  $ builtin true  file:  $ command true $ $(which true) $ /bin/true    :   Quoting a word excludes aliases and keywords. That is,  $ 'true'   will run only the function, builtin or file.