category

HowTo

9 entries in this category
Parent: None
Siblings: Coding:13, London:1, Nutrition:1, Reviews:5, Site news:2, Travel:6, Web:1, Work:233
Children: None

In this category


How to use a meta tag to redirect a page

23rd July 2007 19:46 | Comments Off

Using the “meta-refresh” technique for redirecting to a new URL is bad, but sometimes there’s no other way to go. Here’s how to make it work. Continue»



Sending emails with non ASCII characters from ASP

22nd September 2006 10:43 | Comments Off
Categories: HowTo, ASP

To have an ASP page send an email with non-ASCII European text (Cyrillic, Greek, Czech, etc) you’ll need to use UTF-8. Continue»



Reading multi language text in Microsoft Office

27th July 2006 15:26 | Comments Off

Reading documents with Cyrillic text is a breeze on a Mac, but with MS Office it can be a right pain the backside, so if your company does business in the Russian market it can be very frustrating. Here’s a quick tip on how to read multi language characters - to write Cyrllic and co, you’ll have to buy a license. It is the Microsoft Way. Continue»



Serving an Excel Worksheet to a browser.

23rd June 2006 15:13 | Comments Off
Categories: HowTo, ASP

Writing an excel worksheet to a browser is pretty simple - all you need is the correct response type, and to format the data using an HTML table. Continue»



Handling dates in Javascript

23rd June 2006 15:12 | Comments Off

A few pointers. Continue»



Converting a collection to a JScript object in ASP

30th May 2006 13:04 | Comments Off
Categories: HowTo, ASP

Enumerators are collections of data that can be iterated through. Although useful, they are not compliant with ECMAScript standards, and therefore I prefer not to use them. Some objects in the ASP environment however, such as Request.Form, are provided as Enumerators, and need to be converted them to standard JScript objects. Here’s a couple of routines to do so. Continue»



Skewing random numbers towards 0

29th May 2006 11:44 | Comments Off
Categories: Coding, HowTo

A quick way to skew random numbers towards 0 is to raise them to some powers - the higher the power, the higher the skew.

var num:Number = Math.pow( Math.random(), 2 );



Finding files on the command line and doing something with them

11th May 2006 11:47 | Comments Off
Categories: *NIX, HowTo

find a_directory -iname “*.zip” -exec unzip -d another_directory {} \;
This will unzip all files from a_directory into another_directory

find a_directory -iname ‘*.gif’ -or -iname ‘*.jpg’ -exec cvs add -kb {} \;
This add all image files inside a_directory to CVS as binary.



The Joys of COUNT

10th May 2006 11:50 | Comments Off
Categories: SQL, HowTo

COUNT has actually two forms: COUNT(*) counts the number of rows in a table; and COUNT(expr) counts the non-null occurrences of expr. This is very useful for generating reports, e.g.:

SELECT COUNT(*) AS 'Total', COUNT(ID_winner) AS 'Claimed'

this is what fritz looks like

Email | Resume

For ease of navigation, posts are classified in categories - this page shows all the posts within one of them.

'Child' lists all the sub-catgories, 'parent' shows the category of which the current one is a child, and siblings are categories which shares the same parent as this one.

RSS

ampersand

Fritz is an Italian chap who's been living in London and working in the digital industry for almost 20 years. He's currently freelancing as technical lead, developer, technical architect, information architect, and producer.

In the past he's been technical director for an integrated digital agency, a chef, and author of comics.