I have a layer (vector layer imported from a Shapefile) in QGIS 2.8.3 with a bunch of features with a single numerical attribute, 'level'. I would like to filter the features with a threshold that is a certain percentage of the maximum value. For instance, if the threshold is 20% I would like to perform an expression like:  "level" &gt; .20 * max("level")   or more SQL like:  "level" &gt; .20 * (select max("level") from table)   These obviously doesn't work in the query builder or expression based filter. Is there a way to do this, with a different syntax, or do I need to use a different tool?
I have data with a column containing a number value, and I want to divide the value of each feature by the total sum of all the values in the column (to get a percentage).  So I would like to know if there is some simple syntax in the QGIS field calculator to get the sum of a column, preferably without resorting to for loops and what not.    I have a shapefile where feature A has the value X in column B. How can I summerize the values for all features in column B in order to divide value X to get a percentage for each feature?
Nouns can modify nouns: cat food, coffee cup, gold ring, laser surgery, flood insurance. It seems to me there are even cases where a noun sounds better than the corresponding adjective: sociology papers sounds a bit better than sociological papers.  Some noun-noun combinations don&rsquo;t work. You wouldn't say America gangsters or measurement spoons or greed crimes. If you spilled water on your keyboard you probably wouldn't call it a keyboard spill or even a water spill.  Are there rules that tell which combinations are acceptable? How can I create an AddIn to ArcGIS Pro and where can I find it from ArcGIS Pro application? Does an ability or spell grant me the bonus action with which to use it? The  description of casting times says that spells with a casting time of &quot;bonus action&quot; require a bonus action to cast (p. 79, emphasis mine):  Most spells require a single action to cast, but some spells require a bonus action, a reaction, or much more time to cast. Bonus Action A spell cast with a bonus action is especially swift. You must use a bonus action on your turn to cast the spell, provided that you haven't already taken a bonus action this turn. You can't cast another spell during the same turn, except for a cantrip with a casting time of 1 action.  It's pretty clear that bonus actions aren't automatic (p. 69):  You can take a bonus action only when a special ability, spell, or other feature of the game states that you can do something as a bonus action. You otherwise don't have a bonus action to take.  So to cast a spell like Healing Word (p. 93), do I  need to be granted a bonus action that I can use, or do I have a bonus action I can use?  I guess I'm unclear on whether I need to have a bonus action before I can spend it on something, or whether having an ability, spell, or whatnot that can be done as a bonus action grants me the bonus action I need to use it. There are various articles on Hearthstone opening strategy which suggest it's a bad idea to use early-game spells and summons to damage your opponent directly, and that you should instead save them for minion removal.  An example: your starting hand contains an Elven Archer, a 1-cost 1/1 minion that does a point of damage when summoned. I've seen it advised that if going first, with that card in your hand, you should not play it, but save it for minion removal.  Another example:  Going second against a Rogue with a 2-cost 2/1 Loot Hoarder, Deathrattle: draw a card in your hand. The advice was not to play it and save the coin, because on her second turn, the Rogue can generate a dagger and kill the Hoarder.   I understand why, in most circumstances, it's better to remove a minion than damage the enemy. What's bugging me about these particular opening examples is why they're a better idea than doing nothing and ending the turn.  In both cases, you've wasted a point of mana, and the chance to take the initiatve. By having a minion on the board first, you can use the following turn to attack with that minion, possibly removing an enemy summon and leaving you clear to summon onto an empty board.   The Loot Hoarder one I find particularly puzzling. If the Rogue gets a dagger and kills it, you still have the initative, you've forced the Rogue to make what's possibly a suboptimal turn-2 play, you've done 2 damage to the Rogue and you got a card into the bargain. Sounds like a pretty good use of the coin to me.  What am I missing here? Photoshop using Marque Tool > Path > Circular But Not a perfect shape? Please consider this image below :   This is happened when I have a circular shape (marquee tool selection). THen after that I converted to Work Path (by right click of that selection). And I add 2.0 as its Tolerance Pixel.   After applying it. The shape become not perfect, could you see the difference? I make it with a black background so everyone could see it from the image no.2.  I realized this is a problem, because If i use that path for placing a text. the text wont follow the correct path as circular (selection), instead ... the shape a bit changed (i think it's ugly shape :: see the detail of the arrow).  How to solve this case ? I'm using Photoshop CS3. Where is "the" used? Is there a rule? Why no definite article in "Shops are open late in summer"? Notice these sentences:   Shops are open late in summer.   Summer is a traditionally viewed as a slow season for games.   At the summer solstice, the days are longest and the nights are shortest.   it's time to start thinking about what 2016's Song of the Summer will be.    In English class, they told us that "the" is used for the things that are known.  One example for this was a phrase like "The man who killed his wife".  So when we are speaking of that man, we know what he did. Somehow we know something more than nothing about him. He's not just every man in the world.     So Now I'm confused about why "the" is not used in the first and second sentences. Can anyone please explain it for me? Maximal order of an element in a symmetric group If we let $S_n$ denote the symmetric group on $n$ letters, then any element in $S_n$ can be written as the product of disjoint cycles, and for $k$ disjoint cycles, $\sigma_1,\sigma_2,\ldots,\sigma_k$, we have that $|\sigma_1\sigma_2\ldots\sigma_k|=\operatorname{lcm}(\sigma_1,\sigma_2,\ldots,\sigma_k)$.  So to find the maximum order of an element in $S_n$, we need to maximize $\operatorname{lcm}(\sigma_1,\sigma_2,\ldots,\sigma_k)$ given that $\sum_{i=1}^k{|\sigma_i|}=n$. So my question:      How can we determine $|\sigma_1|,|\sigma_2|,\ldots,|\sigma_k|$ such that $\sum_{i=1}^k{|\sigma_i|}=n$ and $\operatorname{lcm}(\sigma_1,\sigma_2,\ldots,\sigma_k)$ is at a maximum?   Example  For $S_{10}$ we have that the maximal order of an element consists of 3 cycles of length 2,3, and 5 (or so I think) resulting in an element order of $\operatorname{lcm}(2,3,5)=30$.  I'm certain that the all of the magnitudes will have to be relatively prime to achieve the greatest lcm, but other than this, I don't know how to proceed. Any thoughts or references? Thanks so much. Is globbing a feature of the shell? How can I resize (not compress) multiple images in a MS Word document? In a blank document, I insert images (screenshots - all are of same size and same format) from a folder. I want to resize the images to a desired size. All now I am doing is selecting one image by one, setting its size. Word does not seem to have multiselect working for images.  Ideally, I want to select multiple images set its size in one go with out use of a macro. Accepting an answer should automatically upvote it as well Is there ever a case where you would want to accept an answer, but not upvote it?  I can't think of a single situation where this would be the case.. So would it not make sense to have the "Accept" button upvote the answer too? Plotting several 2d functions in a 3d graph I am trying to reproduce a similar figure to the following one. My first guess was to use pgfplots but I didn't find any example that I could use as a starting point. At the moment I am unsure if pgfplots is actually the right package or I should rely on something else e.g. TikZ.   Since I don't really know where to start, I would appreciate any piece of code that points me in the right direction.    EDIT  Here is some dummy data for the plots.  plot1   plot2   plot3   plot4 0       0       0       0 3.466   2.058   0       0 4.262   2.976   0.001   0 3.822   3.168   0.006   0.008 2.953   2.936   0.019   0.063 2.065   2.492   0.046   0.265 1.332   1.977   0.092   0.734 0.797   1.478   0.164   1.508 0.443   1.045   0.268   2.44 0.228   0.698   0.412   3.219 0.107   0.438   0.598   3.524 0.046   0.256   0.831   3.219 0.017   0.138   1.109   2.44 0.006   0.067   1.429   1.508 0.002   0.029   1.78    0.734 0       0.01    2.141   0.265 0       0.003   2.479   0.063 0       0.001   2.736   0.008 0       0       2.808   0 0       0       2.465   0 0       0       0       0 It seems that containing lava in solid glass, stone and iron blocks may not be sufficient to prevent wool from burning, even if the lava is completely encased.         After some delay, it seems that fire will jump onto the wool above the iron.   Are solid blocks more effective than airspace, or not? If so, Does it matter whether the corner block is filled in? What are the exact rules on distance that I need, and how can I prevent flammable blocks from being eliminated by nearby lava? Bonus: Does a flowing lava block behave differently than a lava source block when it comes to fire creation? I used to find color codes which I want to use for texts or background colors on htmls with color edit tool of MS paint which pre-installed on Windows. But now I use Mac instead of Windows. How can I find color codes with Mac? Is an software like MS paint pre-installed on Mac? Requested value 'CheckBoxes' was not found There's a weird thing happening with my Windows application. I have created a Sharepoint utility to automate the creation of content-types and site-columns. At a point where I try to get my available fields, I get this error:     An unhandled exception of type 'Microsoft.SharePoint.Client.ServerException' occurred in Microsoft.SharePoint.Client.Runtime.dll   Additional information: Requested value 'CheckBoxes' was not found.   It is throwing an exception at:  ClientContext clientContxt = new ClientContext(clientContext.Url);         clientContext.Credentials = clientContext.Credentials;         Web web = clientContext.Web;          clientContext.Load(web, w =&gt; w.AvailableFields);         clientContext.ExecuteQuery(); //**exception thrown here**   Kindly please suggest what is wrong here? Windows 7 Automatically Connecting To Unsecured Wireless Networks On Startup Most of the questions on this topic related to folks connecting to somebody else's wireless network when their own was available and could remedy the situation by going to their connections and unchecking the "connect automatically" box.  See this: "  " as an example.  In my situation, I've noticed that Win 7 will automatically connect to any unsecured wifi network - even if I have never connected to it in the past.  If I am traveling and boot Win 7, it will start and connect to what appears to be the best signaled unsecured network without prompting me for confirmation (note: in the above link, "Naveen" seems to have same problem).  Obviously, that is a security concern to me.  Further, when I open "Network and Sharing" and "Manage wireless networks"  the network is not displayed (probably because I labelled it a public network).  Again, these are new, never connected with before, wireless networks.  I always promptly disconnect from them but don't want to have to be on constant guard for an auto connection to a malicious network.  This began about a month ago, as I recall, Win 7 did not behave like this in the past, I didn't monkey with wifi settings, and don't use a 3rd party connection manager.  I did have to download some internet security certificates for army website access but I don't think that should mess with network settings.  Any ideas how I can tell Win7 cease automatically connecting to networks or, at least, to prompt me for a confirmation before connecting? 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 ?? du not accounting for space shown by df I have a CentOS 7.2 (minimal) VM running in a vSphere cluster, which has a 16G drive formatted as XFS under the default full-disk usage partitioning scheme from the CentOS installer. The system is running a test httpd service (all software from the default centos repos), but its space usage on disk is growing. This is in part from problematic apache error/access logs (2+GB in size), and removing these longs frees up some space. What is eating the drive space isn't so much a concern for me (I'll just nuke and pave this eventually). However, when I run df an du to check file sizes, I get a discrepancy and this is what's confusing.  First I run df -h to view filesystem usage:  [root@svrhttp03 httpd]# df -h Filesystem                         Size  Used Avail Use% Mounted on /dev/mapper/centos_svrhttp03-root   14G  4.8G  9.1G  35% / devtmpfs                           902M     0  902M   0% /dev tmpfs                              912M     0  912M   0% /dev/shm tmpfs                              912M   97M  816M  11% /run tmpfs                              912M     0  912M   0% /sys/fs/cgroup /dev/sda1                          497M  169M  329M  34% /boot tmpfs                              183M     0  183M   0% /run/user/0   This is showing 4.8G used on the root FS.  I then run the following to view the size of all items at the root of the filesystem:  [root@svrhttp03 httpd]# du -a -h -t 10K / 2&gt; /dev/null | grep -v -E "[A-Z,a-z,0-9]/." | sort -h 16K /home 7.4M    /root 31M /etc 97M /run 143M    /boot 324M    /var 1.3G    /usr 1.9G    /   This shows only 1.9G in use, and the reported size of all directories add up to ~1.9G, as expected.  So how can I find that ~2.9G discrepancy between what df and du are claiming for data on disk? Integrable - martingale Suppose $X_{n}^{(1)}$ and $X_{n}^{(2)}$ are martingales w.r.t. a filtration $F_{n}$. I have do determine whether $Z_{n}=e^{X_{n}^{1}+X_{n}^{2}}$ is a martingale, submartingale or supermartingale. I thought that because $X_{n}^{1}+X_{n}^{2}$ is a martingale I can use Jensen to say that $E[Z_{n}|F_{n-1}]\geq e^{E(X_{n}^{(1)}+X_{n}^{(2)}|F_{n-1})}=Z_{n-1}$. But I have to check whether $Z_{n}$ is integrable and I don't know how. How to read a text file reversely with iterator in C# I need to process a large file, around 400K lines and 200 M. But sometimes I have to process from bottom up. How can I use iterator (yield return) here? Basically I don't like to load everything in memory. I know it is more efficient to use iterator in .NET. Prefer composition over inheritance?