In the Autumn, I wrote about some experiments I did using KVM and virtual machines to build and test MariaDB binary packages on a number of different platforms. In the period since then I added some polish and refinements, and the system is now running well for some time. We build and test packages for… Continue reading RunVM, a tool for automated scripting inside virtual machines
Tag: perl
Placeholders and SQL injection, part 2
Actually, what I really wanted to blog about before getting carried away with irony yesterday was an old idea on how to force my developers to use placeholders exclusively for SQL queries in applications. As should be apparent from yesterdays blog entry, I am strongly in favour of using placeholders for interpolating values into SQL… Continue reading Placeholders and SQL injection, part 2
Placeholders and SQL injection
It is sad to see how 9X% (or should that be 99.X%?) of SQL applications are riddled with SQL injection bugs. There really is no excuse for this. Nobody writes code like this: sub stupid_sum { my ($list) = @_; my $string = shift @$list; for (@$list) { $string .= ” + ” . $_;… Continue reading Placeholders and SQL injection
DGCov: A tool for checking test coverage of a patch
Today I published the DGCov tool on the MySQL Forge. DGCov is a neat tool that I implemented last year for use internally at MySQL, an old idea of Monty’s. The idea is to help developers to check that a new patch for the server code has received adequate testing before pushing it to the… Continue reading DGCov: A tool for checking test coverage of a patch
Suduko solver
There are probably tons of these already available, but here is a quick suduko solver (in Perl): #! /usr/bin/perl # Example: # # echo $’ 2 \n 1 9 4 \n 2 1 5 9\n3 6 \n 68 41 5\n 427 8 \n 51 \n 7 3 \n79 5 ‘| perl suduko-solve.pl # use strict;… Continue reading Suduko solver