Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

ddick (5726)

ddick
  (email not shown publicly)

I'm based out of Melbourne, Australia. I attend the excellent melbourne.pm.org meetings whenever i get the chance, which is not often enough.
+ -

  Comment: Re:Better IIS support! (Score 1) on 2010.08.21 1:07

I agree with this.
Read More 7 comments
Comments: 7
+ -

  Comment: Re:Thank you (Score 1) on 2010.08.11 21:15

by ddick on 2010.08.11 21:15 (#72300)
Attached to: use Perl;
Likewise. Most appreciated.
Read More 15 comments
Comments: 15
+ -

  Journal: Packaging Perl with Wix on 2010.08.11 7:36

Journal by ddick on 2010.08.11 7:36
User Journal Read More 0 comments

+ -

  Comment: Why would you have one to start with? (Score 1) on 2010.05.10 20:44

by ddick on 2010.05.10 20:44 (#71984)
Attached to: Testing gurus, would you please chime in?

In my experience, service / daemon initialisation is something best performed by an operating system specific installation package, such as a redhat rpm / debian dpkg / win32 msi. Just about every operating system variant has their own unique twist on the required behaviour of a service / daemon.

Read More 1 comments
Comments: 1
+ -

  Comment: Re:Help :) (Score 1) on 2010.05.06 18:28

by ddick on 2010.05.06 18:28 (#71966)
Attached to: UTF-8, perl and Microsoft SQL Server

Even better, use the TDSDUMP variable when running against DBD::Sybase (the failure) and tsql (the success) and compare the debug logs to find the difference.

Read More 10 comments
Comments: 10
+ -

  Comment: Re:Help :) (Score 1) on 2010.05.06 18:25

by ddick on 2010.05.06 18:25 (#71965)
Attached to: UTF-8, perl and Microsoft SQL Server

First off, if you are hitting memory issues, are you trying to retrieve a text (as distinct from a /(?:var)?char/ field?

Secondly, can you set the TDSDUMP environment variable and post the output? checkout http://www.freetds.org/userguide/logging.htm

Read More 10 comments
Comments: 10
+ -

  Journal: mod_perl, freetds and environment variables??? on 2010.03.09 4:27

Journal by ddick on 2010.03.09 4:27
User Journal

I have a application written as CGI scripts that run under mod_perl mode via ModPerl::Registry or if anyone still uses it Apache::Registry. It also connects to a variety of databases, including Microsoft SQL Server via freetds.

Freetds can be controlled via a freetds.conf config file or environment variables.

Read More 0 comments

+ -

  Comment: Most interested (Score 1) on 2009.12.28 22:10

I've been recently working on ideas for storing/retrieving contacts with LDAP directories and vcards.
Read More 1 comments
Comments: 1
+ -

  Comment: Re:Starting points (Score 1) on 2009.12.22 17:21

by ddick on 2009.12.22 17:21 (#71437)
Attached to: Catalyst, MySQL, SQLite, H::FH, UTF-8 and more

Dammit, i meant to say

  • make sure all of your <form> elements contain 'accept-charset="UTF-8"'
Read More 3 comments
Comments: 3
+ -

  Comment: Starting points (Score 1) on 2009.12.22 17:19

by ddick on 2009.12.22 17:19 (#71436)
Attached to: Catalyst, MySQL, SQLite, H::FH, UTF-8 and more

It's difficult for me to tell what's happening, but suggestions follow:

  • decide that UTF-8 is going to be your encoding
  • read up on the my $decoded = Encode::decode('UTF-8', $encoded) and my $encoded = Encode::encode('UTF-8', $decoded) functions
  • encode strings just before they leave your application (just before print, DBI, whatever)
  • decode strings as soon as possible (just after read, my $encoded = $cgi->param($name), $sth->fetchrow, whatever)
  • make sure your MySQL databases are created with "CREATE DATABASE `$database_name` CHARACTER SET utf8";
  • make sure all of your elements contain 'accept-charset="UTF-8"'
  • write a test script to prove it all works
Read More 3 comments
Comments: 3
+ -

  Journal: Browser based testing of your own code on 2009.11.16 5:38

Journal by ddick on 2009.11.16 5:38
User Journal

For those of us engaged in developing/supporting a web application, testing seems to be an almighty pain.

The state of the art seems to be; put a massive investment into writing test cases in Tool X, which manages (sort of) Browser Y. However thanks mainly to mozilla and khtml, but really opera and explorer are just as capable here, we can never be really sure if someone isn't going to come up with a great new browser.

Read More 2 comments
Comments: 2
+ -

  Comment: Re:wow! (Score 1) on 2009.10.15 17:07

by ddick on 2009.10.15 17:07 (#70902)
Attached to: DBD::SQLite now has foreign key support
agreed. stoked that we get this feature. much thanks.
Read More 2 comments
Comments: 2
+ -

  Journal: Devel::Cover and how to test inputs? on 2009.09.29 19:50

Journal by ddick on 2009.09.29 19:50
User Journal

I've been experimenting with the awesome Devel::Cover, and while it's great fun to use it to improve my test suite, my code also tries very hard to validate all input sources.

Devel::Cover can tell me that the line

$a == $b ? 1 : 0

has been executed and even that both halves of the condition have been executed, but it can't tell me that i haven't tested the case where $a isn't numeric.

Read More 0 comments

+ -

  Journal: Job Interview oddness on 2009.09.17 23:35

Journal by ddick on 2009.09.17 23:35
User Journal

$work has been advertising for a new testing position and i've been doing the role of assessment of technical skills of the prospective employees.

i've been a bit surprised when interviewees reach into their bag, pull out a folder of paper and offer to show me documents from their previous/current job.

Read More 0 comments

+ -

  Journal: Net::Ping, Time::HiRes and virus scanners on 2009.07.16 18:41

Journal by ddick on 2009.07.16 18:41
User Journal

at $work, we've been timing tcp connections with Time::HiRes and we hit an interesting problem. Time::HiRes was returning ridiculously small times for the tcp ping, approx 1-2 milliseconds, when we knew the time should be approx 30 milliseconds.

After firing up that beautiful piece of software known as (?:ethereal|wireshark), we verified that the traffic actually took approx 30 milliseconds as expected.

Read More 0 comments