Older blog entries for Killerbees (starting at number 222)

Colleagues go mad for "cheap" TV


OMG, get-a-cheap-tv fever gripped the workplace today as my colleagues (who should've known better!) went on a fevered buying spree after woolworths appeared to be selling Sharp 37" & 42" LCD TV's for £150.
Sadly no-such-luck boys and girls, woolies T's & C's retain the right not only to cancel your order but also to ... ".. continue with the order at the correct price" which might embarrass those who chose to order several of the two grand machines!
There were reports of orders being cancelled, however the on-line price was still £150 as this post "went to press", so if anyone else fancies a go...
Pictured (left) are Colin (Products Development Manager), Kevin (Lead Technical Consultant) and Stuart (Technical Services Manager) at the height of the madness.

Syndicated 2011-05-03 15:49:00 (Updated 2011-05-03 15:49:11) from Danny Angus

27 Jan 2011 (updated 4 Nov 2011 at 11:04 UTC) »

note to self, MySQL query profiler

Update The original article mentioned in this post is no longer available, but if you are still interested in query profiling in MySQL, check out this http://dev.mysql.com/doc/refman/5.0/en/show-profiles.html
I will write up an quick start guide to profiling myself here, one day.
 
-- original post
this article is a great way to get started using the mysql query profiler.

If you've never used it before take some time to check it out, it will change the way you think about the database forever.

Syndicated 2011-01-27 12:35:00 (Updated 2011-11-04 10:54:00) from Danny Angus

Note to self, how to get the top tens from MySQL slow query log

Use these two commands to get the top ten and top ten repeaters from MySQL's slow query log.

mysqldumpslow -t 10 ./slow-log > /home/danny/top_ten_slow_query.txt

mysqldumpslow -a -s c -t 10 ./slow-log > /home/danny/top_ten_repeat_slow_query.txt

Syndicated 2011-01-19 17:47:00 (Updated 2011-01-19 17:47:38) from Danny Angus

18 Jan 2011 (updated 18 Jan 2011 at 13:10 UTC) »

Quote of the [specify period]

This [period]'s quote is from Nicola Morrison, ScottishPower online manager quoted on computerweekly.com, here, in a piece which quite frankly looks like marketing blurb placed by a PR agent on a day when the editor was hungover.

Anyway, Nicola have an award for improving customer service not by answering customers questions but by analysing them!

Working with [tech co][1] has ... given us an unparalleled insight into our customers' requirements through the ability to analyse the questions they are asking.

[1] I'm not going to repeat the name of the company involved, I don't want to draw attention to them!

Syndicated 2011-01-18 12:19:00 (Updated 2011-01-18 12:20:37) from Danny Angus

Note to self, how to delete files older than

Yes, yet another one that I always have to look up, I think it must be my age!

find /path/to/files* -mtime +5 -exec rm {} \;

Syndicated 2011-01-13 09:32:00 (Updated 2011-01-13 09:32:47) from Danny Angus

misprint of the [specify timeperiod]

How apt:

employment rose causing misery for many.
From this, also worth a read.
Have an award.

Syndicated 2010-11-03 14:03:00 (Updated 2010-11-03 14:03:05) from Danny Angus

Note to self, how to get row numbers in a MySQL SELECT

I've often wondered, idly, how to get MySQL to output a row number column, which would rank sorted and grouped results.
Well thanks to this excellent post I've found out how:

SELECT *, @rownum:=@rownum+1 as rank FROM ( 
-- Your Query Goes in Here
        SELECT t.*
        FROM table t
        WHERE something
        group by 2,3,4
        order by 1 desc limit 20
    ) day_rank, (SELECT @rownum:=0) r;

Syndicated 2010-10-20 08:15:00 (Updated 2010-10-20 08:15:56) from Danny Angus

21 Sep 2010 (updated 21 Sep 2010 at 13:11 UTC) »

Note to self, want stats on nfs usage, try this

I thought I'd put this in as well, since I had to google for it, using -n will make iostat provide you with stats for nfs shares too.

iostat -nh 5
You can also use nfsstat

nfsstat -cvn -o nfs

Syndicated 2010-09-21 12:06:00 (Updated 2010-09-21 12:43:03) from Danny Angus

e = internet (a logo for IE9)

I found this fascinating blog post on MSDN's IEBlog about the logo for IE9, thanks to Sam Ruby's wonderful Planet Intertwingly.
You should read it too.

Syndicated 2010-09-17 10:26:00 (Updated 2010-09-17 10:26:45) from Danny Angus

213 older entries...

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!