rss
twitter
    Find out what I'm doing, Follow Me :)

Free Database Compare

I've found this database compare tool to be a rather useful tool to compare databases.

-- Lee

Ninja Cat

I love this clip of the Ninja Cat!

How to darken an image on mouseover

I wanted to make an image go darker on mouseover and go back to normal on mouseout. Here's how I eventually did it.


   1: <html> 



   2:     <head> 



   3:         <style type="text/css"> 



   4:         .outerLink 



   5:         { 



   6:             background-color:black; 



   7:             display:block; 



   8:             opacity:1; 



   9:             filter:alpha(opacity=100); 



  10:             width:200px; 



  11:         } 



  12:         img.darkableImage 



  13:         { 



  14:             opacity:1; 



  15:             filter:alpha(opacity=100); 



  16:         } 



  17: </style> 



  18:     </head> 



  19:     <body> 



  20:         <a href="http://www.google.com" class="outerLink"> 



  21:             <img src="http://www.google.co.uk/intl/en_uk/images/logo.gif" width="200" 



  22:             class="darkableImage" onmouseout="this.style.opacity=1;this.filters.alpha.opacity=100" 



  23:             onmouseover="this.style.opacity=0.6;this.filters.alpha.opacity=60" /> 



  24:         </a> 



  25:     </body> 



  26: </html>









-- Lee

Code that's easy on the eyes

I've been using Rob Conerys Visual Studio colour scheme VibrantInk v2 for over a month now and I must say it is a joy to program with.

I recommend it to anyone who stares at a bright white computer screen for prolonged periods.

-- Lee

My Geeky 27th Birthday

A very geeky 27th birthday indeed..




























Check if in edit mode in EpiServer

In EpiServer I've recently created a login page with all other page access behind it.

However obviously I want editors using the CMS editor to view & edit the site not to have to log in before proceeding to the rest of the site to edit it.

Anyway, here is how I'm checking whether the page being requested is being requested from edit mode.

public bool IsInEditMode() 
{
bool isInEditMode = false;

if (HttpContext.Current.Request.UrlReferrer != null)
{
isInEditMode = Regex.IsMatch(HttpContext.Current.Request.UrlReferrer.LocalPath, "/admin/|/edit/", RegexOptions.IgnoreCase);
}

return isInEditMode;
}






Another way of doing it is




protected Boolean IsInEditMode() 
{
if (Request.Params["idkeep"] == null)
return false;

return true;
}



Manchester Guathon Videos VS2010 .NET 4

Scott Guthries Manchester Guathon Videos

http://digg.com/u1Ecw2