Category Archives: Source Code

Advanced HTTP Hacking Webinar Code

You can find all the code from my HTTP webinar in my special HTTP folder. [Project source code] [YouTube Replay] This is the script I use to demonstrate HTTP Range requests through Telnet. Just copy and paste each block of … Continue reading

Posted in Source Code | Leave a comment

FireDAC MemTable Editing – New in 10.2 Tokyo

One of my favorite new features (beyond Linux) is the ability to edit the data in a TFDMemTable at design time. You could already edit the field defs, to set it up. This makes the TFDMemTable, which was already super flexible … Continue reading

Posted in REST, Source Code, Tools | Leave a comment

How to Reference a Procedure

It was pointed out in the comments and on G+ that this covers type aliases, but not procedure aliases. Instead it shows how to have a variable that references a procedure and then allows you to call it by this … Continue reading

Posted in Source Code | 6 Comments

New Delphi Seattle MongoDB Sample

I created some more Delphi 10 Seattle samples to show off MongoDB and FireDAC functionality: LocalSQL, Indexing & Geospatial. The first one queries some data from MongoDB allowing you to specify the match, sort and projection, then it stores the … Continue reading

Posted in DataBase, Source Code | Tagged | Leave a comment

CORS on DataSnap REST Server

Cross-origin resource sharing (CORS) is a mechanism that enables resources to be shared across domains. Typically this isn’t allowed to prevent security issues. To enable on your DataSnap REST server you can use the following code per MVP Nirav Kaku from India. … Continue reading

Posted in News, REST, Source Code | 6 Comments

FireDAC: Local SQL

Here are the additional resources for the FireDAC: Local SQL Skill Sprint from this morning. The TFDLocalSQL provides a powerful engine allowing you to run local SQL queries against any TDataSet descendant. Here is the video replay. It is about … Continue reading

Posted in Source Code, webinar | 1 Comment

FireDAC In-Memory DataSet: TFDMemTable

More information and resources on TFDMemTable from the FireDAC Skill Sprint. If you missed the Skill Sprint, or want to review it, here is the video with the recording of the Q&A. The presentation is 15-20 minutes, and the other … Continue reading

Posted in Source Code, webinar | 1 Comment

Code Monkey in Delphi Code

In this special musical number I’ve created a music video based on Jonathan Coulton’s Code Monkey written in Delphi’s Object Pascal. [Download the code] [Download the video (mp4)]

Posted in Android, Funny, iOS, Source Code, Video podCast | 3 Comments

Deep Dive into Futures and the Parallel Programming Library

To follow-up with my Parallel For Loops skill sprint last week (lots of good resources there), today I did a deep dive into the Parallel Programming Library (PPL) including Futures, Tasks and custom thread pools. Here are the slides: And … Continue reading

Posted in Source Code | Leave a comment

Factorials, Combinations & Permutaions

This is some code I wrote a long time ago as part of the TDAG mailing list. It calculates Factorials, the number of Combinations and Permutations. This is the mathematics, it calculates the number of Combinations and Permutations, it doesn’t … Continue reading

Posted in Source Code | 2 Comments