2006.05.11, Thu by fritz
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.
Posted in *NIX, HowTo | Leave a Comment »
2006.05.10, Wed by fritz
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’
Posted in HowTo, SQL | Leave a Comment »
2006.05.02, Tue by fritz
The mx.utils.Delegate class in Actionscript 2.0 is the only way I have found so far to refer to a parent object from within an XML event handler.
Read the rest of this entry »
Posted in Actionscript, HowTo | Leave a Comment »
2006.04.10, Mon by fritz
Last week's issue of London's Time Out magazine included a feature titled 'CHEAP EATS – The Thrifty Fifty', which starts off with the implausible ("good news: you live in the best city for food in the world") and continues with the unrealistic (suggesting that £20 a head for a meal counts as thrifty). Time Out staff obviously get paid very well – perhaps by the PR agencies that get them to add places like Carluccio's to their list?
The truth is that in London there are literally hundreds of restaurants in the same price bracket as those listed, many of which are better.
Read the rest of this entry »
Posted in London, Restaurant Reviews | Leave a Comment »
2006.03.31, Fri by fritz
Posted in Movies Reviews | Leave a Comment »
2006.03.30, Thu by fritz
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.
Read the rest of this entry »
Posted in ASP, HowTo | Leave a Comment »
2006.03.19, Sun by fritz
Often after a workout I found I was feeling really tired and achy. At first I though it was just a matter of not being used to it, but as the feeling persisted I decided to do a bit of research on nutrition. I am not a nutritionist myself, but here's a summary of what I found.
Read the rest of this entry »
Posted in Vegetarianism | 1 Comment »
2005.11.14, Mon by fritz
WordPress seems quite impressive, it looks like it can do what I need for my website. I like the fact I can set the date of posts well in the past, and that categories can be nested. We shall see what happens when it comes to designing my own templates…
Posted in Site News | Leave a Comment »