.NET Code Tips: Converting A UNIX Timestamp To System.DateTime

by Colin Cochrane 3/7/2008 7:58:00 PM
After having to deal with UNIX timestamps in an application I am currently developing, I realized that there's probably a few people out there who are wondering how to convert a UNIX timestamp into a useable System.DateTime in a .NET application. Well the good news is that it's quite simple. All a UNIX timestamp represents is the number of seconds since January 1st, 1970 12:00:00 AM... [More]

Currently rated 5.0 by 2 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

Visual Basic | Code Tips | C#

The Worlds Most Appropriate Image Alt Attribute

by Alex Hlinski 2/18/2008 6:33:00 PM
The worlds most appropriate and descriptive alt attribute as used within an article on one of the major newspapers in the UK. [More]

Currently rated 4.0 by 24 people

  • Currently 3.958333/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , ,

Web Design

del.icio.us Bans Search Engine Spiders

by Colin Cochrane 2/16/2008 10:06:00 PM
It appears that within the past 2-3 days the popular social book-marking site del.icio.us has started blocking the major search engine spiders from crawling their site. This isn't a simple robots.txt exclusion, but rather a 404 response that is now being served based on the requesting User-Agent. This raises some questions as to the intentions of del.icio.us, and perhaps Yahoo! With Yahoo! recently integrating del.icio.us bookmarks into its search results this could an attempt to enhance the effectiveness of that new feature by preventing competing search engines from indexing content from del.icio.us. [More]

Currently rated 4.9 by 216 people

  • Currently 4.888889/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , ,

Search | Yahoo

ASP.NET Custom Errors: Preventing 302 Redirects To Custom Error Pages

by Colin Cochrane 1/25/2008 9:53:42 PM
Defining custom error pages is a convenient way to show users a friendly page when they encounter an HTTP error such as a 404 Not Found, or a 500 Server Error. Unfortunately ASP.NET handles custom error pages by responding with a 302 Temporary redirect to the error page that was defined. In this post I explain how to create a custom HttpModule that allows you to use custom error pages while preserving the original HTTP status code and avoiding the 302 redirect to the error page. [More]

Currently rated 4.9 by 279 people

  • Currently 4.870967/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

ASP.NET | SEO | Web Development

Web Standards: The Ideal And The Reality

by Colin Cochrane 1/23/2008 9:06:37 PM
There has been a flurry of reactions to the IE8 development team's recent announcement about the new version-targeting meta declaration that will be introduced in Internet Explorer 8. In an article I posted on the Metamend SEO Blog yesterday, I looked at how this feature could bring IE8 and Web Standards a lot closer together and find the ideal balance between backwards-compatibility and interoperability. Many, however, did not share my optimism and saw this as another cop-out by Microsoft that would continue to hold back the web standards movement. Being that this is a topic that involves both Internet Explorer/Microsoft and web standards I naturally came across a lot of heated discussion. As I read more and more of this discussion I was once again reminded about how so many people take such an unreasonably hard stance on the issue of web standards and browser support. When it comes to a topic as complex as web standards and interoperability it is crucial that one considers all factors, both theoretical and practical, otherwise the discussion will inevitably end up taking a "your with us or against us" mentality, that does little to benefit anyone. [More]

Currently rated 3.6 by 79 people

  • Currently 3.569621/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

Web Standards

Please Don't Urinate In The Pool: The Social Media Backlash

by Colin Cochrane 1/11/2008 10:08:58 PM
The increasing interest of the search engine marketing community in social media has resulted in more and more discussion about how to get in on the "traffic goldrush". As an SEO, I appreciate the enthusiasm in exploring new methods for maximizing exposure for a client's site, but as a social media user I am finding myself becoming increasingly annoyed with the number of people that are set on finding ways to game the system. [More]

Currently rated 4.9 by 575 people

  • Currently 4.859136/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , ,

SEM | SEO

Catching Unwanted Spiders And Content Scraping Bots In ASP.NET

by Colin Cochrane 12/30/2007 7:20:00 PM
If you have a blog that is even moderately popular then you have likely fallen victim to some form of content scraping. Ever since it became possible to earn money through ads on a website there have been people trying to find ways to cheat the system. The most widespread example of this comes in the form of splogs and similar spam-based websites, which consist only of ads from Google AdSense and duplicated content from other sites. In this post I will share a method you can use to identify "evil" spiders and bots that are wasting your website's resources. [More]

Currently rated 4.8 by 57 people

  • Currently 4.807017/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

ASP.NET | SEO | Web Development

GMail Security Exploit Allows Backdoor Into Your Account

by Colin Cochrane 12/25/2007 12:10:00 AM
I normally don't discuss topics related to online security, but I recently came across a post over at Sphinn that detailed how David Airey had his domain hijacked thanks to a security exploit in GMail and wanted to help make sure as many people as possible are made aware of it. I recommend to any of you who uses GMail to read David's post that details the trouble that this has caused him and make sure that your GMail account hasn't been compromised. Not the most festive post for an early Christmas morning, but I'll wish everyone a Merry Christmas anyways. [More]

Currently rated 5.0 by 56 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

Google

How Being An SEO Analyst Made Me A Better Web Developer

by Colin Cochrane 12/19/2007 10:46:00 AM
Being a successful web developer requires constant effort to refine your existing abilities while expanding your skill-set to include the new technologies that are continually released, so when I first started my job as a search engine optimization analyst I was fully expecting my web development skills to dull. I could not have been more wrong. [More]

Currently rated 4.4 by 17 people

  • Currently 4.352941/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

SEO | SEM | Web Development

Reducing Code Bloat Part Two - Semantic HTML

by Colin Cochrane 12/17/2007 12:06:00 PM
In my first post on this subject, Reducing Code Bloat - Or How To Cut Your HTML Size In Half, I demonstrated how you can significantly reduce the size of a web document by simply moving style definitions externally and getting rid of a table-based layout. In this instalment I will look at the practice of semantic HTML and how effective it can be at keeping your markup tidy and lean. [More]

Currently rated 4.9 by 66 people

  • Currently 4.939394/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

HTML | XHTML | Web Development | CSS

Powered by BlogEngine.NET 1.4.5.0

All Content and Intellectual Property is under Copyright Protection | Colin Cochrane ©2007

About the author

Colin Cochrane

Colin Cochrane

SEO and ASP.NET Developer.

Recent comments

Recent posts

Disclaimer

This is a personal weblog. The opinions expressed here represent my own and not those of my employer. © Copyright Colin Cochrane 2010

Sign in