Skip to main content

Limiting search results by site

Experts Exchange has the irritating marketing tactic of posting a discussion article that often seems to match exactly what I'm looking for, but the response to the question requires registration.  Since the answer to most any question is likely somewhere else on the Internet as well it's possible to restrict search results from even showing anything from this site.

Here's how to do it.  At least Bing, Duck Duck Go, Google, and Yahoo have the ability to specify a "sites" argument in a search.  It can be used to either force results from a specific site to be included or excluded.  The real nice part is that the syntax is the same for all of them, so including the following snippet into a search string can eliminate search results from Experts Exchange:

-site:experts-exchange.com

NOTE:  Whether pages are included or excluded depends on the (-) operator preceding the limiter.

The following example could be used to search for how to use the SQL TOP command with SQL Server.


-site:experts-exchange.com +"sql server" +"top"


This ensures that only non-Experts Exchange results are returned.  Conversely, if the excellent Stack Overflow should be only place to get results from, the search query could have been as follows (notice there is no minus operator in front of the sites limiter).

site:stackoverflow.com +"sql server" +"top"

Comments

Popular posts from this blog

Remove control of Chrome being managed by organization on personal devices

Chrome may indicate that it's being managed by a user's organization. This warning is provided by the Chrome Policies feature of the browser. To know if an instance of Chrome is managed by an organization, there will be an entry at the bottom of the browser’s hamburger menu (three dot menu), on the right side of the browser window that reads, "Managed by your organization." This is likely due to an entry in the Chrome Policies listing, which can be found by loading this page in the browser: chrome://policy The policies listed in this section are stored in the computer's file system in one of the following locations as JSON files. /usr/share/chromium/policies/managed /usr/share/chromium/policies/recommended Remove the offending JSON files, and click the Reload policies button. The Managed by your organization entry in the browser menu should be gone. A notice like this on instances of Chrome for work, school, library, or other devices that belong to an organizati...

Allow Windows authentication using SQL Server driver with DBeaver

DBeaver will allow Microsoft Windows single sign on access when connecting to Microsoft SQL Server using the SQL Server driver (rather than jTDS ).  From the driver properties settings, set the integratedSecurity flag to true . Open the Connection configuration panel and choose the Driver properties section. Set the integratedSecurity flag to true . A subtle, but important step is to not provide username and password credentials to the connection.

Edit CUPS Configuration File To Re-assign Network Address

The printers.conf file can be edited to change the network address a printer uses.  This can be useful to fix situations in which the printer in question has a new IP address, but the local system is trying to use the previous address. Shutdown the CUPS server Change the network address Restart the CUPS server sudo systemctl stop cups sudo nano /etc/cups/printers.conf sudo systemctl start cups NOTE The editor used in the example is nano for the sake of those who may be less comfortable in the command-line.  With nano, once the change has been made, use Control + O to save the changes, and then Control + X to quit the editor. Ideally, this process would not be necessary.  Instead, once a printer is added, it will always be reachable at the address it was assigned when it was added to the system.  In practice, things like power outages, or breaks in network connectivity, may be enough for the DHCP server to issue a new IP address. A tip when making the address cha...