| Neil's profileMSN Meets BlogPhotosBlogLists | Help |
|
September 01 Haribo ExperimentMay 17 Nice solution to input type="file"http://www.quirksmode.org/dom/inputfile.html
This guy has written a nice solution to styling the input type="file". Check it out, worth a read just to be aware of the problem. April 28 Font FinderRocking little site that finds the type of font used in an image.
http://www.myfonts.com/WhatTheFont/
Really useful for amending existing images. April 22 Don't talk rubbishMore pearls of wisdom, before you go slagging a class of in .net try to make sure you know what your talking about first. In my previous post i was discussing the threadpool class and about long running tasks. Turns out that was complete rubbish and the threadpool class is great in everyway. Just don’t send the threads into an infinite loop *grin* April 21 Threading TipThreadPool.QueueUserWorkItem(AddressOf Method) is great for having some free thread handling. It will queue up the method to be executed on any spare system thread lying around. One small note however is do not put anything that might take more than a second or two onto that system. I used the ThreadPool class to do some WebRequest work and after 3-4 requests, my whole machine came to a grinding halt. April 20 Jumping to bookmarksAn annoyance with ASP.NET is that most of the server controls use PostBack to submit data. This causes the browser to jump back to the top of the page on each click. Easiest way to solve this is to use bookmarks. They however are a bit of a pain to implement in ASP.NET pages. This little function will help implement bookmarks. Allowing you to reduce / stop the browser jumping on postback. Public Shared Sub JumpToBookmark(ByVal Page As Page, ByVal BookMark As String) Dim script As String = "<SCRIPT language='javascript'>location.href='#" & BookMark & "'</SCRIPT>"Page.RegisterStartupScript("startupscript", script) End SubApril 19 Something GreatI was going to put something great in here... Now im just gonna put a lame plug for my site. Go be happy. April 15 The Power Of CssFeel the power of pure CSS might. The site has only one page of html, the only thing that changes is the css files. Stunning! April 14 SQL Day CompareArgh! One problem I keep hitting in SQL Server is a function to compare days. All I want to do is check if one date is greater than another date without comparing any time values, so just the days. One solution our R&D guy came up with is to use a numeric value to compare the days. Its not a great solution but it works. (DATEPART(yyyy, @DateTime) * 1000) + DATEPART(dy, @DateTime) To make life a little easier we made it a user defined function to compare the days. CREATE FUNCTION dbo.ifnDateToNumber (@DateTime as datetime) --Convert datetime into an integer based on (YEARS * 1000) + dayofyear
April 13 Blug and MSN? Huh?Who would have thought Blog would come to MSN? Well it's here and it's kinda cool. |
|
|