Example: CSS Floating Layout

by Bryan Sever 4/15/2008 10:18:00 PM

For years, web developers have used the <table> tag to control page formatting. Even tools like Adobe Dreamweaver has templates that make extensive use of the <table> tag for this purpose. However, the <table> tag was intended for displaying tabular data.

CSS 2.1 gives the web developer great control over the format of the page. Although all the major browsers have slightly different implementations, there are few glaring differences.

Click here to learn more.

Tags: , , ,

CSS | Programming | World Wide Web | XHTML

Gotcha CAPTCHA

by Bryan Sever 4/14/2008 9:11:00 PM

"CAPTCHA is a type of challenge-response test used in computing to determine that the user is not run by a computer." Many services on the web use a CAPTCHA test to determine if the a user is legitimate. A common test is to show a distorted image and then the user will respond by typing the text of the distorted letters.

The security labs at websense.com did some interesting work how the CAPTCHA test for Live Mail (a Microsoft e-mail service) is being subverted (link: http://securitylabs.websense.com/content/Blogs/3063.aspx). The article shows how a "victim" computer is used to create the accounts. This is all the more reason that users should be wary and take security of their own computer seriously.

Tags: , ,

E-Mail | Security

Code Snippet: T-SQL Paging

by Bryan Sever 4/11/2008 11:43:00 AM

Although there is already some infrastructure for paging in many development tools, sometimes a custom solution is needed.

Here's a T-SQL example of how to create your own paging data within your query. In this example, I have aggregated four additional columns. Replace 'sys.sysobjects' with the table that you wish to query. Replace 'sys.sysobjects.[name]' with the column list that you would like to use to order the query results. The @pagesize variable can be modified to set the page size.

declare @resultcount int
set @resultcount = (select count(*) from sys.sysobjects)

declare @pagesize int
set @pagesize = 10

SELECT
    row_number() over (order by sys.sysobjects.[name]) as 'ResultCount',
    convert(int, (row_number() over (order by sys.sysobjects.[name]) - 1) / @pagesize) + 1 as 'CurrentPage',
    convert(int, @resultcount / @pagesize + 1) as 'MaxPages',
    @resultcount as 'MaxResult',
    sys.sysobjects.*
FROM
    sys.sysobjects

Tags: , , , ,

Programming | Microsoft SQL Server | T-SQL | Code Snippet

ASP .Net Themes Simplicity

by Bryan Sever 4/10/2008 10:30:00 PM

ASP .Net themes are simple to implement. Themes permit the developer to dynamically show different images and use different stylesheets based on a user preference. Using Visual Studio 2008, it doesn't take long to get a web site project running and using themes. To get the full details, click here.

Tags: , , ,

ASP .Net | CSS | XHTML

What's in a name?

by Bryan Sever 4/7/2008 9:49:00 PM

If you have ever tried to purchase a .com domain name lately, you have probably found that the first name you wanted wasn't readily available. You had probably found that the second, third, fourth and many other names were not available.

Recently, 'pizza.com' sold for 2.6 million USD. Last year, 'business.com' sold for 350 million USD. In Great Britain, the domain 'sport.co.uk' sold for £135,000, 'mobile.co.uk' for £120,000  and 'cruises.co.uk' for £560,000. 'Vodka.com' had sold for 3 million USD.

Tags: ,

World Wide Web