jQuery: adding Slimbox lightbox effect to Galleria

Two excellent jQuery scripts which I rely on time and time again are the Galleria image gallery and Slimbox 2, a lightweight Lightbox clone which has recently switched to using the jQuery framework over MooTools (happy days!). Both scripts allow you to add impressive functionality to websites with very little effort. While the built in …

Read more

Yahoo! knows where I live

I came across something interesting the other day while looking at my referrer logs. Several visitors had reached me after searching at Yahoo! for quite generic phrases like freecycle, janine and cross stitch. On clicking through to the Yahoo! results pages, I saw that the searches had been made at Yahoo! UK and Ireland with …

Read more

checking if a list web control contains an item

when setting the selected value in a radiobuttonlist or other list web control in asp.net, it is prudent to check whether the list contains the option you intend selecting first! this avoids those annoying “out of range” error messages. one way of doing this is to use code similar to the following: if not myRadioButtonList.Items.FindByValue("whatever") …

Read more

calculated columns in sql server

I frequently suffer from Mondayitis but it can strike on Tuesdays too! I was creating a stored procedure in SQL Server this morning involving GROUP BY, CASE statements, aggregate functions, ISNULL and COALESCE for good measure. Everything was working fine, except that one of the calculated columns was zero all the way down, even though …

Read more

The server committed an HTTP protocol violation

Thanks to Communication WEB for pointing out a fix to this error which started springing up after .NET Framework 1.1 SP1 was released. To enhance security, this error will be raised on fetching from a web site if the server’s HTTP headers obey certain rules e.g. there cannot be a space in the header name. …

Read more

looking for isnumeric in vb.net?

i was wondering why a vb.net class file was throwing up errors when i called the isnumeric function the other day. after some googling i found out from roy osherove’s blog that you now need to import the microsoft.visualbasic namespace to use this and a bunch of other once standard functions. as an aside, if …

Read more