Archive for March, 2008

CSS challenge

Consider an img followed by a div, with borders for highlighting the issue:

Where does that 5px default bottom margin / padding / invisible border come from ?

After thorough investigation, you supposedly have to set vertical-align: bottom on imgs otherwise they will align with the baseline of the text thus leaving some bottom margin for letters with descenders below the baseline. Especially hard to spot when you have no text near the image! By the way you can also set the image as block.

Why is Microsoft Exchange 2007 64-bit only ?

According to Adrian, a fresh install needs no less than 7GB RAM to start …

XNA Postprocessing Effects

XNA has a great component system for adding rendering plugins, for example download this, add the BloomComponent to your Game class and, voila, you have HDR-like bloom applied in postprocessing. You also can do displacement mapping by using another sample.

Photoshop XML Text Description

I can bet Photoshop has better support for Japanese text than MS Word:


0


...


false200.5...


-1-10


...

Vista 3D effects

This seems promising – will give it a shot tomorrow.

Derived tables

Writing something like SELECT name FROM (SELECT * FROM Products) may look correct in SQL, however SQL Server throws an Incorrect syntax near ‘)’ that’s not user-friendly at all (Oracle though accepts this syntax). You can get it working in SQL Server also by naming the derived table i.e. change to the following: SELECT name FROM (SELECT * FROM Products) AS Products2.

Visual Studio 2008 "View Code" hotfix

At last, something to fix the dreaded issue with “View Code” not appearing when right-clicking on markup in Visual Studio 2008 – get the hotfix here.

C# return reference types

ASP

It’s been a long time since I’ve seen a website done in plain old ASP :) )

AForge

Here’s an excellent all-purpose library in C#, it simply rocks.