Is the nearest neighbor in QGIS guaranteed to return the closest geometry?
Why does QgsSpatialIndex.nearestNeighbor(point, 1) sometimes return 2 lines?
single email limit exceeded salesforce very frequently..? Is there a way of creating a filesystem object akin to this:  mknod files p cat file1 file2 ... fileN &gt; files   but such that it can be seeked in, as if it were a regular file? I want to buy a new notebook in the near future to play games on it. I'm looking forward for the new Steam for Linux client. My question is that where does the Steam install the games, on the home partition, or in the usr folder, or somewhere else? I do not use pre-release (i.e. beta) versions of either Steam or Ubuntu. Why is my crontab not working, and how can I troubleshoot it? As part of an early quest, my PCs are likely to face off against a wizard.  The problem here is that the stat block for Mage NPCs listed in the Basic Rules has a Challenge Rating of 6, while the PCs are going to be five Level 1s. So, instead of messing with the stat block and risk weakening it too much/too little, I'm choosing to create a Level 1 Wizard PC and use it as an NPC for this quest.  The problem with that is that, as far as I can tell, there aren't any designated rules for assigning either Challenge Ratings or XP values to a PC. So, should I just give the wizard a Challenge Rating equal to his level (and thus have him give 200 xp when killed), or is there a better way to do this?  (This is different from , because he's asking for a way to assign a level to an NPC, while I'm asking for a way to assign an XP value/Challenge Rating to a PC (for use as an NPC). Similar questions, but different.) How to find string position within another string in C recursively? Automatically solve dependencies of deb packages while using dpkg -i Installing Deb packages on the command line, using dpkg -i, only installs the package in question and displays errors of unresolved dependencies (manually solved by apt-geting the packages it complains about). How do I automatically resolve dependencies when installing standalone packages? Let A,B be in $M_{mxn}(\mathbb{R})$  Prove that if rank(A + B) = rank(A) + rank(B), then col(A) ∩ col(B) = {0}  I started with a proof by contradiction, since we know that rank(A + B) ≤ rank(A) + rank(B). I assume that if rank(A + B) &lt; rank(A) + rank(B), then col(A) ∩ col(B) = {0}. I realize that we don't have to do the > case. However I am a little confused on how to show col from rank. Please provide a way to download SEDE data via an API I recently suggested on the Stack Apps site that , and it was suggested I reference the feature request here, for visibility.  My use case is a query that the API does not support, so I thought it would be interesting to get it programmatically from SEDE instead. I wonder if this feature might be of interest to others here?  outlines the current ways that SE data is available via various APIs and UIs.  I wonder if my use case (retrieving revisions filtered by user) might have been supported by OData,  since April of this year.  This question has sort-of , though that was not an explicit feature request, and is now rather out of date. It would be good to find out what the current views are on this topic, and indeed whether there is much demand.  My use-case does not urgently require this, since I can use public SE screen scraping or SEDE CSV downloading. From reading around the SE Meta network, both of these approaches seem to be tolerated, as long as it is done with careful regard to frequency and bandwidth. Resistor circuit that isn't parallel or series What would be a good way to go about attacking a Quagmire 3 cipher?  I understand that it is polyalphabetic with a key and an indicator. I have started by taking the cipher text, taking every n-th letter and putting that in a string, computing the index of coincidence for the n strings I get and then averaging that. I would assume that whatever n value corresponds with the closest average index of coincident to English (0.066) would be the number of alphabets, i.e. the length of the indicator.  Where do I go from there? Or is my approach incorrect? Can I preemptively pay my credit card bill before a charge is posted? Inheriting constructors Definition of complex number In many situations (problems as well as solutions) I encounter the complex number $i$ which many times is defined as $i^2=-1$ instead of $i=\sqrt{-1}$, since it is "more preferred". Does anyone know why? Is it because there are two solutions to the equation $x^2+a=0, \ \ a&gt;0$? How to dismiss the Windows 8.1 Upgrade banner? The additive group $\mathbb{G}_a$ over an infinite field $k$ is not a topological group An algebraic group is not necessarily a topological group, since for an algebraic group, the product map $G \times G \to G$ is continuous when $G \times G$ is given the Zariski topology, which is finer than the product topology.   So does this tell you that the additive group $\mathbb{G}_a$ over an infinite field $k$ is not a topological group? The underlying variety of $\mathbb{G}_a \times \mathbb{G}_a$ is $\mathbb{A}_k^1 \times_k \mathbb{A}_k^1 = \mathbb{A}_k^2$, whose Zariski topology is the cofinite topology, where every open set is also open in the product topology (since $\mathbb{A}_k^1$ also has the Zariski topology). Is it possible to construct a multi-colored double-bladed lightsaber? I was just watching  video of some SW dueling at the 2015 World Fencing Championship, and wondered if it's actually possible in the SW universe to construct a multi-colored double-bladed lightsaber?   Are there any accounts of such a thing? If not, would it at least be theoretically possible to make one, or, are there obvious limitations? Given a file like this:  1,768,12,46576457,7898 1,123,435,134,146 2,345,6756856,12312,1311 5,234,567465,12341,1341 1,3245,4356345,2442,13 9,423,2342,121,463 9,989,342,121,1212   I would like to list all rows (in bash terminal) such that the value in column 1 appears at least twice (in column 1). The result should be  1,768,12,46576457,7898 1,123,435,134,146 1,3245,4356345,2442,13 9,423,2342,121,463 9,989,342,121,1212 I was wondering how to create a theorem environment similar to the following example:   Specifically, the environment should resemble the box that contains "Claim -- The function g is linear".  This comes from a , who has his style files uploaded  I have tried to mimic what I believed to be the relevant code (as there's a lot of stuff there that isn't related to this), to no avail. I have attached my attempt below, but it may be better to ignore it.  \usepackage{amsmath} \usepackage{amsthm} \usepackage{mdframed} \usepackage{thmtools} \usepackage{tikz} \usepackage{xcolor} \usepackage[framemethod=TikZ]{mdframed}     \mdfdefinestyle{mdgreenbox}{%         linewidth=0.5pt,         skipabove=12pt,         frametitleaboveskip=5pt,         frametitlebelowskip=0pt,         skipbelow=2pt,         frametitlefont=\bfseries,         innertopmargin=4pt,         innerbottommargin=8pt,         nobreak=true,         backgroundcolor=SpringGreen!15,         rightline=false,         leftline=false,         topline=false,         bottomline=false,         linecolor=green,     }     \declaretheoremstyle[         headfont=\bfseries\color{OliveGreen},         mdframed={style=mdgreenbox},         headpunct={\\[3pt]},         postheadspace={0pt},     ]{thmgreenbox} \declaretheorem[style=thmgreenbox]{thrm1}   This returns an error, one for xcolor not recognizing the colors, and the following.  l.17        \mdfdefinestyle                       {mdgreenbox}{% The package mdframed has already been loaded with options:   [] There has now been an attempt to load it with options   [framemethod=TikZ] Adding the global options:   ,framemethod=TikZ to your \documentclass declaration may fix this. Try typing  &lt;return&gt;  to proceed.  Package thmtools Info: Key `mdframed' (with value `style=mdgreenbox') (thmtools)             is not a known style key. (thmtools)             Will pass this to every \declaretheorem (thmtools)             that uses `style=thmgreenbox' on input line 39. Package thmtools Info: Automatically pulling in `thmdef-mdframed' on input line 40. (/usr/local/texlive/2017/texmf-dist/tex/latex/thmtools/thmdef-mdframed.sty Package: thmdef-mdframed 2014/04/21 v66 ) \c@thrm1=\count282 (/compile/output.aux) \openout1 = `output.aux'.   I am looking for a way to mimic the environment more than to fix my methods.  Thank you in advance! How do I install different (upgrade or downgrade) PHP version in still supported Ubuntu release? I am trying to update to install PHP 5.5, 5.6 or 7.0 in Ubuntu 12.04/14.04/16.04 LTS, and I can only get PHP 5.3.10 for Ubuntu 12.04, PHP 5.5.9 for Ubuntu 14.04 or PHP 7.0.4 for Ubuntu 16.04 using official repositories (using apt-get).  I'm not really sure how to do a manual update – as I need:   to play around with the new(est) PHP features to install older PHP version due support in the software