Aug
11th

Stop Sniffing my Browser Type!

Quite often Opera users complain that their favorite browser cannot parse a web page and gives the following error:

Continue Reading

Aug
4th

Adding Silverlight to the GAC.

Sometimes there comes a need to refer to a Silverlight assembly from several different projects, the last thing you want is to copy the assembly to every project, you want it in the GAC.

Silverlight environment is not .NET and simply adding the assembly to the GAC with gacutil gives no effect.  On the other hand one may notice the standard Silverlight assemblies in “Add reference” dialog of Visual Studio after having installed Silverlight.

As it turns out, to be able to refer to any assembly from any project with “Add reference” all that’s needed is a special key in the registry:

  • openHKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MicrosoftSDKs\Silverlight\v4.0\AssemblyFoldersEx
  • if you have a 32-bit Windows, remove the Wow6432Node part.
  • Create a registry key with the name of your project
  • Add the default value containing the path to the assemblies

Now “Add reference” will show all the assemblies from the path in the key.

The solution turned out to be quite straight-forward.  Hope this helps.

Jul
21st

CSS3 Compliance for IE 6-8 at all Cost.

CSS3 is cool and all web developers would love to use it’s tasty features.  The announced support for CSS3 by such browsers as Opera, Firefox, Safari, Chrome and even IE 9 heats up the interest for this protocol quite a bit, but there’s still an issue of IE 6, 7 and 8.  The fact that IE 9 is not intended to run on XP will probably keep the number of IE 6-8 users high for quite a while.  This is where our discussion of CSS3 could end.  And yet there are efforts to make IE6-8 CSS3 compliant.  Let’s take a look at some of them, many are rather odd.

Continue Reading

Jul
16th

Creating a Cross-Browser Box-Shadow.

Creating a Cross-Browser Box-Shadow

Here’s a very simple way to implement the box-shadow in css. Perhaps the idea is too simple and obvious for the esteemed writers of the Internet to ever want to publish it.

First, the compliant browsers:

div {
background: green; /* required for IE */
-webkit-box-shadow: 0px 0px 15px #222;
-moz-box-shadow: 0px 0px 15px #222;
box-shadow: 0px 0px 15px #222;
}

The idea really boils down to applying the shadow filter four times with different directions. This way the shadow wraps around the edges of the container.

Continue Reading