Subscribe to News Feed

Add to My Yahoo! Subscribe with Bloglines Subscribe with netvibes

Subscribe in a reader Subscribe in a reader

Two new URI encode / decode routines added to Code Snippets Database
Two new snippets, URIEncode and URIDecode, have been added to the Code Snippets Database. URIEncode URL encodes a string according to RFC 3986 while URIDecode decodes an encoded string back to its original form. Both routines have the option to encode and decode URL query strings. These routines supersede URLEncode and URLDecode which are not standards compliant.
15 April 2013
CodeSnip v4.4.1 released - fixes bug in v4.4.0
CodeSnip v4.4.1 has just been rushed out to fix a silly little bug in v4.4.0 that I really should have noticed before release. The program was using the wrong URL for web services, giving a 404 error. I've patched the website to recognise the bad URL and redirect it to the correct place, so the bug shouldn't bite you now - no more 404 errors in v4.4.0 now! Best to update though. That'll teach me to test only on my development web server and forget to test on the live server!
09 April 2013
Five further Delphi Pool tips
Five new tips from the former Delphi Pool website have been added to the Delphi Tips database, starting from tip #218. They are: tip #218, "How to calculate the minimum distance between two polygons"; tip #219, "How to rotate a 2D point"; tip #220, "How to calculate intersection points of lines or line sections with rectangles"; tip #221, "How to calculate the area of a polygon" and tip #222, "How to retrieve all available TBrushStyle values as a list of strings".
09 April 2013
CodeSnip v4.4.0 has been released
CodeSnip v4.4.0 has just been released. It adds a facility to automatically check for program and online Code Snippets database updates. Update checking runs in a background thread and any available updates are notified to the user by means of a small pop up window at the bottom right of the main window. By default CodeSnip checks for updates no more that once per week. The frequency can be changed or the feature switched off from the Updates tab of the Preferences dialogue box.
08 April 2013
6 assorted snippets added to the Code Snippets Database
A rag-bag of six unrelated snippets has been added to the Code Snippets Database. The snippets are: GetDefaultPrinterName - returns name of any default printer on the computer; DirPurge - deletes a directory and all its contents; FileInProgramDir - returns the path to a given file, located in side the same directory as the program; SafeFreeEncoding - frees a TEncoding object unless it is one of the standard encodings; IsIEInstalled - checks if Internet Explorer is installed; EnglishColorName - returns the name of a known colour in American English.
27 March 2013
Released v3.0 of the Console Application Runner Classes
v3.0 of the Console Application Runner Classes project. The main change is the removal of the PJPipe, PJPipeFilters and PJFileHandler units following their inclusion in the recently released I/O Utility Classes project. The remaining PJConsoleApp unit has been prepared for use with Delphi XE2 and later - the code's dependence on the VCL has been removed to permit its use in both VCL and FireMonkey projects. In addition the code now compiles and works correctly with either 32 or 64 bit Windows targets. Demos have been tidied up and three new FireMonkey demo projects have been added.
25 March 2013
I/O Utility Classes now documented online
The documentation of the new I/O Utility Classes has now been completed in the DelphiDabbler wiki.
23 March 2013
New I/O Utility Classes Delphi Library project (v1.0.0)
A new "I/O Utilities Classes" project has been added the Delphi Library. This contains the PJPipe, PJFileHandle and PJPipeFilters units taken from the Console Application Runner Classes project. I've done this because these classes are of more general use than simply helping to interface with console applications. The units will be removed from the next release of the Console Application Runner Classes project. The units have been updated to work correctly with both the Windows 32 and 64 bit Delphi XE2 and later compilers. The code is suitable for use with both VCL and FireMonkey projects.
21 March 2013
New 3rd party "PrintScreen01" program.
PrintScreen01 has been added to the 3rd party programs page. This program, by Bill Hall, is a simple utility that allows rapid copying (and saving to file) of any desktop screenshots. Full source code is included.
16 March 2013
Four new tips from the former Delphi Pool
Four new tips from the former Delphi Pool website have been added to the Delphi Tips database, starting from tip #214. They are: tip #214, "How to create a GUID"; tip #215, "How to create a greyscale palette"; tip #216, "What is a DispInterface?" and tip #217, "The purpose and use of DispInterface".
13 March 2013
Added two new maths routines to the Code Snippets Database
Two new routines have been added to the Mathematics category of the Code Snippets database. The first, Pow, raises an integer to value to a non-negative integer power. The second snip is named SAR and performs an arithmetic right shift operation on an integer (Pascal's 'shr' is a logical left shift operator). Don't forget that new snippets now don't display in the old Code Snippets online viewer - you need the CodeSnip program or the new viewer at to see them.
27 February 2013
CodeSnip v4.3.0 released
CodeSnip v4.3.0 has just been released. There are three main new features. (1) The directory used to store user-defined snippets database can now be changed. You can use this to place the database in a folder that will be backed up, for example Dropbox or GoogleDrive. (2) The default RTL namespaces can now be configured when test compiling with Delphi XE2 and XE3 and (3) Custom syntax highlighters can now be saved with a unique name for later re-use.
27 February 2013