Blog
DelphiDabbler.com at long last has a blog. The most recent entries are summarised below.
- Deleting elements from a dynamic array
-
In my blog "Initialising Dynamic Arrays" I mentioned I have been writing some unit tests that needed numerous repetative array initialisation operations. Well, one of the other common operations I found myself writing was the deletion of items from ...Thu, 24 Jun 2010 21:27:00 +0000
- Initialising dynamic arrays
-
When writing some unit tests a while ago I found myself needing to initialise some dynamic arrays with test data. It would be nice if we could do something like this: var A: array of Integer; begin A := (1,2,3,4); // !! WRONG end; but we ...Wed, 23 Jun 2010 01:46:00 +0000
- Being dim #2: No generic global procedures
-
The other day I was writing some unit tests and needed some helper functions to look up some array elements of in arrays of different base types. I had several overloaded functions to do the job, like this: function IndexOf(const Item: string; ...Tue, 22 Jun 2010 13:29:00 +0000
- Being dim #1: Array and set enumerators
-
One of my favourite additions to Delphi over the past years has been the for..in construct and the associated enumerators. I just love the way we can do var Ch: Char; S: string; begin S := 'Some text'; for Ch in S do // Do something ...Tue, 22 Jun 2010 10:28:00 +0000
- Top Secret Code Snippets Test Code
-
For about three months now I've had some code that tests and exercises some of the snippets in the Code Snippets Database. But, if you don't get the Code Snippets newsletter, you won't know about it because I forgot to tell anyone else! Anyhow, the ...Thu, 27 May 2010 21:14:00 +0000
- Decoding Base 64 encoded data
-
A while ago someone asked me how to go about decoding Base 64 encoded code in a single routine. Here's what I came up with. It uses the Indy internet component suite to do the grunt work and simply wraps the various Indy calls into a ...Thu, 27 May 2010 14:54:00 +0000
- Delphi Tips Editor Virus???
-
There have been a few reports of a possible virus in the third party Delphi Tips Editor published on DelphiDabbler.com. Just to let everyone know that this is likely (but not guaranteed) to have been a false positive due to the exe compressor used ...Sun, 09 May 2010 12:13:00 +0000
- Singletons
-
For a long time now I've been looking for a nice singleton implementation that meets my needs. I want a singleton that: Can't be created more than once. Can't be freed until the program terminates. Can be used as a common base class for all the ...Mon, 05 Apr 2010 00:09:00 +0000
- CodeSnip problems, problems, problems
-
Arrgh! I've been having a lot of problems with the CodeSnip program's database update code - it's been working for some and not for others. All this has happened since I converted the program to Unicode and compiled with Delphi 2010. I'm posting ...Thu, 25 Mar 2010 11:16:00 +0000
- Delphi Tips News
-
There's now another new RSS feed that provides news of changes to the Delphi Tips section of DelphiDabbler.com. Subscribe.Tue, 16 Mar 2010 02:51:00 +0000
- URL Decoding revisited
-
Time to complete the set. So far in this series I have presented URIEncode, URIDecode and URIEncodeQueryString. So here's the missing piece of the jigsaw: URIDecodeQueryString. This routine decodes a query string that has been ...Sun, 14 Mar 2010 11:58:00 +0000
- URL Decoding
-
To complement the code of my URL Encoding post, I've now developed a URIDecode routine. It attempts to decode URIs that were percent-encoded according to RFC 3986. It also allows for some malformed percent-encoded URIs, i.e. those that contain ...Wed, 10 Mar 2010 13:00:00 +0000
- URL Encoding revisited
-
In my previous post I covered URI encoding part of a URI or URL. What I didn't cover was the almost trivial case of encoding a query string. The only difference is that spaces in a query string are converted to reserved '+' characters that are not ...Wed, 10 Mar 2010 02:25:00 +0000
- CodeSnip Program and Database News
-
I've set up a new RSS feed that helps users of the Code Snippets Online Database and the CodeSnip Snippets Repository Program keep up to date with changes and updates. Subscribe.Mon, 08 Mar 2010 15:47:00 +0000
- Call JavaScript in a TWebBrowser and get a result back
-
Calling a JavaScript function in a TWebBrowser is easy, but getting a return value from it is hard. I've been struggling for ages to find an answer to this, and lots of users have asked. My article "How to call JavaScript functions in a TWebBrowser ...Wed, 24 Feb 2010 13:14:00 +0000
- Code Library Newsletter
-
Just lately I've spent a lot of time bringing my rather dusty code library up to date. The library has been established as a project on GoogleCode (ddab-lib) and the code is gradually being moved into the project's Subversion repository. A wiki ...Sun, 21 Feb 2010 23:57:00 +0000
- Unicode environment blocks and CreateProcess
-
I've just been struggling with a Unicode conversion of some code that passes a custom environment block to a child process. On Unicode Delphi compilers the code produces a Unicode environment block, and I'd done something like this... procedure ...Fri, 19 Feb 2010 23:26:00 +0000
- URL Encoding
-
I've being reviewing the URI encoding code from the Code Snippets Database and I realised that it doesn't comply with RFC 3986. So here's my first attempt at some compliant code. According to the RFC: "the data should first be encoded as octets ...Thu, 18 Feb 2010 12:56:00 +0000
- Welcome to the new DelphiDabbler blog
-
Welcome to this new blog, which I'm thinking of as an extension to DelphiDabbler.com where more peripheral programming stuff can be discussed. I'll also use it for news of happenings on the main site. Will I keep up with it? Let's see how it goes!Thu, 18 Feb 2010 10:29:00 +0000



