In QGIS is there a way to filter a layer using the Query Builder to show all values which include a particular phrase.  For example I have a list of organisations and I want to filter all those which include the word Wales.  I can do this using the attribute table but not in the map view so that the map just shows these selected features.
I am trying to display certain features in a shapefile-based layer using QGIS. I have found the subset function in the properties panel, which does exactly what i want, but is too tedious given that I have to manually sift through a large number of features. Is there a quicker way to do this?  I am using both shapefiles and postGIS best,  dietmar
$\lim_{x \rightarrow 0} f'(x) = L$ exists, does it follow that $f'(0)$ exists? Support for hardware components How can I find out if Ubuntu supports a particular hardware component, that is, if it works in Ubuntu?  I am going to put together a computer and I am choosing components.   How do I know if Ubuntu supports this or that motherboard, or this or that sound card, or this or that graphics card, etc? How do I know that there is no conflict in Ubuntu between this and that hardware component?   What resources are there to help with such situations?  I know that there are computers with Ubuntu pre-installed and that there are  for whole computers but this is not what I'm looking for. I'm looking for resources to find out support for particular hardware components and conflicts among particular hardware components. Python dateutils print recurrence rule according to iCalendar format (see RFC 5545) Is there any way to tinker with the iPhone SDK on a Windows machine? Are there plans for an iPhone SDK version for Windows?  The only other way I can think of doing this is to run a Mac VM image on a VMWare server running on Windows, although I'm not too sure how legal this is. How do I deal with a compromised server? This is a  about Server Security - Responding to Breach Events (Hacking)   See Also:                  Canonical Version I suspect that one or more of my servers is compromised by a hacker, virus, or other mechanism:   What are my first steps? When I arrive on site should I disconnect the server, preserve "evidence", are there other initial considerations? How do I go about getting services back online? How do I prevent the same thing from happening immediately again? Are there best practices or methodologies for learning from this incident? If I wanted to put a Incident Response Plan together, where would I start? Should this be part of my Disaster Recovery or Business Continuity Planning?   Original Version       2011.01.02 - I'm on my way into work at 9.30 p.m. on a Sunday because our server has been compromised somehow and was resulting in a    attack on our provider. The servers access to the Internet   has been shut down which means over 5-600 of our clients sites are now   down. Now this could be an FTP hack, or some weakness in code   somewhere. I'm not sure till I get there.      How can I track this down quickly? We're in for a whole lot of   litigation if I don't get the server back up ASAP. Any help is   appreciated. We are running Open SUSE 11.0.            2011.01.03 - Thanks to everyone for your help. Luckily I WASN'T the only person responsible for this server, just the nearest. We managed   to resolve this problem, although it may not apply to many others in a   different situation. I'll detail what we did.      We unplugged the server from the net. It was performing (attempting to   perform) a Denial Of Service attack on another server in Indonesia,   and the guilty party was also based there.      We firstly tried to identify where on the server this was coming from,   considering we have over 500 sites on the server, we expected to be   moonlighting for some time. However, with SSH access still, we ran a   command to find all files edited or created in the time the attacks   started. Luckily, the offending file was created over the winter   holidays which meant that not many other files were created on the   server at that time.      We were then able to identify the offending file which was inside the   uploaded images folder within a  website.      After a short cigarette break we concluded that, due to the files   location, it must have been uploaded via a file upload facility that   was inadequetly secured. After some googling, we found that there was   a security vulnerability that allowed files to be uploaded, within the   ZenCart admin panel, for a picture for a record company. (The section   that it never really even used), posting this form just uploaded any   file, it did not check the extension of the file, and didn't even   check to see if the user was logged in.      This meant that any files could be uploaded, including a PHP file for   the attack. We secured the vulnerability with ZenCart on the infected   site, and removed the offending files.      The job was done, and I was home for 2 a.m.            The Moral   - Always apply security patches for ZenCart, or any other CMS system for that matter. As when security updates are released, the whole   world is made aware of the vulnerability.   - Always do backups, and backup your backups.   - Employ or arrange for someone that will be there in times like these. To prevent anyone from relying on a panicy post on Server   Fault. There are several ideas on hard determinism, but the core seems to be that in an interconnected existence, there can be no "actions" (free will), but only "reactions" (determinism). An action of free will would have to be a separate entity outside of existence, so we'd say it can't occur.   Now fast forward to Joe Schmo the robbing/murdering/rapist.  Joe wasn't born in some infinite bliss utopia, then decided one day to invent the concept of scumbaggery.  He's a product of an incomprehensible number of variables - maybe some are apparent like his dad was a violent alcoholic or whatever, but most likely it's far more complicated than that.    So that's fine - I get all that - but if that's the case, then how can you ethically deal with people like that?  You can't hardly let them do what they please at the expense of society, but then how can you get medieval on them when they're basically riding a wave?  I think that's a big reason why people fight concepts of determinism that mitigate or eradicate the concept of free will - now everyone has a license to do what they want and how can you punish them, it's not their fault!  How would/could/should you consolidate hard determinism with responding to criminal acts? Passing multidimensional arrays as function arguments in C In C can I pass a multidimensional array to a function as a single argument when I don't know what the dimensions of the array are going to be?  Besides, my multidimensional array may contain types other than strings. Travel to US two day before B1 visa expires Prove the $n$th Fibonacci number is the integer closest to $\frac{1}{\sqrt{5}}\left( \frac{1 + \sqrt{5}}{2} \right)^n$ Prove that the $n$th Fibonacci number $f_n$ is the integer that is closest to the number $$\frac{1}{\sqrt{5}}\left( \frac{1 + \sqrt{5}}{2} \right)^n.$$   Hi everyone, I don't really understand the problem. I have the following hint, but I don't know how to work it.     Hint: Show that the absolute value of $\frac{1}{\sqrt{5}}\left( \frac{1 - \sqrt{5}}{2} \right)^n$ is less than $1/2$. Getting polygon boundaries of City in JSON from Google Maps API? When searching Google Maps for a city, the city's administrative boundary is displayed.    Is there a way to get the polygon boundaries of City in a JSON format using google maps api? Is there any easy way to open the document library files in a new window or popup depending on the file types?  e.g. PDF - In Adobe reader (currently opens in IE)  Image file (currently opens in IE) 'sudo' not working after changing the permissions of '/usr' directory Recently I had to change the folder permissions of /usr folder. Now the whole sudo is not working. If I try to update my system using this command:  sudo apt-get update   I get the following message:  sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner sudo: fatal error, unable to load plugins   So I tried to change the folder permissions by opening Nautilus as root by using this command  gksudo nautilus   But nothing happened. Nautilus didn't open. This is an emergency as the whole of sudo is not working. when I tried searching the solution from Google many suggested re-installation. I don't prefer re-installation. so is there any other solution? Find a function value given 2 points Given $f(x)$, which is differentiable at every point such that: $f'(x) \ge -5$ for every $ x \in R$   $f(2) = -13$, $f(9) = -48$  Prove that:$ f(3) = -18$  Now it's quite obvious that $ f(3) = -18$ since that if we know that the lowest value of the derivative is -5, the difference between $f(2)$ and $f(9)$ is $-48-(-13)=-35$  that means that that in the area $[2,9]$, $f'(x)=-5$ right? that's why I told that $f(3) = -18$, but I feel that my proof is insufficient, probably because I'm missing some theorems or such. can someone help me structure this proof into something RIGHT :)?  Thanks a lot! Why there's no article with 'Mexican' and 'an' with American in sentence: "She’s Mexican. But she’s married to an American."   (Pimsleur English course) Using ST_Union in PostGIS I have a spatial table (polygons,polylines) in a database. These are digitized by multiple people. For example, a state is divided into multiple Grids and given to multiple people to digitize using QGIS; which is connected to a postgres database. Now, I have to merge all those polygons and polylines. I don't know how to do this via ST_Union. I Used the following snippet to merge the polygons and polylines CREATE TABLE schema_name.polygon_un2 AS SELECT upg.un_geom,npg.Column1,npg.Column2,npg.Column3,npg.Column4,npg.Column5  FROM (  SELECT st_union(the_geom) As un_geom,(   SELECT oid FROM schema_name.polygon    WHERE oid = 100748191   ) FROM schema_name.polygon WHERE oid IN (100748191,100763519)  ) upg  INNER JOIN schema_name.polygon npg ON npg.oid = upg.oid;   DELETE FROM schema_name.polygon WHERE oid IN (100748191,100763519);  I have the interesecting polygon oid in a Seperate Table, I want to do this process in an update query and that should be a dynamic plpgsql function.  Green : Grid , Other : Polygon But This snippet did not work !! The snippet which i expect is  It should create a new row for the merged polygons and polylines (eg oid - 1 and 2 merged to oid 3).  The polygons which are not merged (eg 1 and 2 should be deleted) Filter to change the content of 404 page I have created custom rewrite rules. These rules now go to 404 page as expected. I can use action hook template_redirect to change the template matching query_var.  But I don't want to create separate template files as the page structure depend on the current theme in use. Rather I just want to change the content and title. I have tried change the content using the_content filter, but it seems the filter doesn't even get called for 404 page.  I also tried loading index.php template and then using the_content filter, but it also doesn't work.  Is there any way to achieve this? Why is cpu_idle called as the last function of the start_kernel routine? I'm reading the  function in /init/main.c.  The last function called in start_kernel is rest_init, and at the end of rest_init, cpu_idle is called.   Why is it called as the last function of the start_kernel routine, and what does it do? Force newlines with cat wildcard printing I want to use cat with wildcards in bash in order to print multiple small files (every file is one sentence) to standard output. However, the separate file contents are not separated by a newline, which I'd like to for ease of reading.  How can I add a file delimiter of some sort to this command? Object Positions Reset On Blender Load So I am attempting to make a modular environment in Blender, so I'm modeling many pieces in one scene to make sure they all match up properly before separating them out.  However, whenever I restart Blender after saving and closing it, many of my grouped objects (and their subobjects) have positions reset NOT to where I placed them.  For example, take a look at this:   Here you can see that the door pieces are in the "open" state, when I left them closed AND the "column" for the wall on the left has been moved from being flush with the wall (on the side) to being inside it.  It appears to be trying to move all of the objects to 0,0,0 which is what is messing this up. I'm not sure if it's an object hierarchy problem, but here is my hierarchy if anyone has ideas there:  Wall_Normal (parent)   Wall_Normal_Column (child)   Empty Axis Object (parent)   Door_Left (child a) Door_Right (child b)   Is there a reason why object positions (and their relative subobjects) aren't being saved? How do I read / convert an InputStream into a String in Java?