How to make google only look at lower case url for sites hosted on windows IIS Server, fixes duplicate title tags in Webmaster Tools error

by Shawn Hyde 17. May 2012 03:52

This method can be used to fix duplicate content errors and make it so google only indexes one version of your urls, which will prevent you from getting a negative modifiers.

In order to do this you have two options.

  1. Use the proper canonical tags, for example place the following code at the top of your website:
  2. Use the following script to automate the process and only allow lower case urls to be viewed on your site, create a global.asax file and place it in your site's main directory. 

If you plan to use both methods be sure to use only lower case for your canonical tags or you will end up with problems.

How to fix google qps rate exceeeded error when using google jsapi

by Shawn Hyde 29. February 2012 02:29

Update the if error section to retry after waiting for 1000ms, then attempt the request again, for example replace:

with

 

Tags: , , , ,

Code | How To Guides | Quick Tips

How to target Safari only using CSS and Javascript while keeping your page W3 compliant and completely valid

by Shawn Hyde 29. February 2012 00:17

Here is a neat little trick you can use to target Safari and make it behave while fixing cross browser layouts. This method will allow you to keep a page valid and it will allow you to only target Safari.

First thing you want to do is use javascript to inject a css file for all browsers that support webkit with this code: 

Now, like I stated above this will target all browsers that currently support webkit and add support for it in the future so you cannot rely on only this. So now you need to create the css file and add some code that is Safari specific by using the double # method. Some people will ask, why not just include the double # to begin with? And the simple answer is that it will cause your CSS not to validate.

Here is the example css code that will target only Safari

Enjoy!

Tags: , , , ,

Code | Design | How To Guides | Quick Tips

List of Western Digital Drives that you can enable TLER on for RAID usage.

by Shawn Hyde 12. October 2011 06:13

Drives with TLER enabled by default:

  • ALL RE Drives
    • FBYS
    • FBYX
    • FYYS
    • FYPS
    • AAKS

MOST drives with model numbers ending in the following will allow you to enable TLER using the WDTLER utility.

  • EACS
  • EADS
  • FALS

Drives that DO NOTallow you to enable TLER, model numbers ending in:

  • FAEX
  • FASS

Tags:

Quick Tips

How to get your business listed on the front page of Google for free

by Shawn Hyde 13. September 2011 16:47

New Telemarketing scam for Google Bing Yahoo prompted me to write this quick blurb.

Prerecorded voice stating something like this:

We have an opening for first page placement in Google, this is a rare opportunity available today only so if you would like to take advantage if this press 1 now

 

You can easily get listed on Google by using adwords for a fee or by using the Google local listing service to add your business, which is free.

Tags: ,

How To Guides | Quick Tips

Auto resize images that are to large for blog posts using css (example using blogengine)

by Shawn Hyde 8. September 2011 09:37

Add the following line to your style.css file in your theme directory.

#content img { max-width:100%; height:auto; }

Tags: ,

How To Guides | Quick Tips

Find all sites with url or link pointing to a site

by Shawn Hyde 19. October 2010 16:39

In google type in :

site: *.domain.tld

Tags:

Quick Tips

getElementById delay function

by Shawn Hyde 1. August 2010 16:40

 

Tags: , ,

Code | Quick Tips

.pdf files hosted on IIS 7.5 lock up when downloading in firefox

by Shawn Hyde 9. July 2010 16:42

This issue now has a hotfix however, if you don't want to take a performance hit that this hotfix causes then you can simply do the following to solve the problem with pdf files and IIS 7.5

  1. Open "IIS Manager" on your server
  2. Select your service instace
  3. Select "MIME Types" under IIS
  4. Select ".pdf" then click "edit"
  5. Chenge the MIME type from "application/pdf" to "application/octet-stream"

This will cause the web server to treat the file as a download instead of a pdf application. From IE8 pdf files will open as normal, in firefox it will first download the file in full then open it.

Tags:

How To Guides | Quick Tips

Cannot access IP on windows 2008 R2 server from external network

by Shawn Hyde 24. June 2010 16:42

This problem can occur two way, one is cause by the server not updateing your gateway routers arp tables. You can solve this problem by logging into your router and clearing the arp tables. for instace, on a cisco router your would do the following:

using serial or hyperterminal if available

  • connect to your router
  • password: (enter password)
  • router> enable
  • password: (enter password)
  • router# clear arp
  • router# write mem
  • router# exit

done.

The other problem is caused when using Network Load Balancing (NLB) on windows 2008 / 2008 R2 Server

For more information on this issue use these links:

http://support.microsoft.com/kb/960916

http://blogs.technet.com/b/networking/archive/2009/01/15/unable-to-connect-to-windows-server-2008-nlb-virtual-ip-address-from-hosts-in-different-subnets-when-nlb-is-in-multicast-mode.aspx

Tags:

How To Guides | Quick Tips

Tag cloud

Calendar

<<  May 2012  >>
MoTuWeThFrSaSu
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910

View posts in large calendar