Month: April 2015

Fun Code of the Day #1

unit uEnumConverter; interface type   TEnum = record   public     class function AsString<T>(aEnum: T): string; static;     class function AsInteger<T>(aEnum: T): Integer; static;   end; implementation uses       TypInfo     ; { TEnum } class function TEnum.AsString<T>(aEnum: T): string; begin   Result := GetEnumName(TypeInfo(T), AsInteger(aEnum)); end; class function TEnum.AsInteger<T>(aEnum:…

Read the full article

Flotsam and Jetsam #101

Someone finally wised up and wrote a FireMonkey book.  I gather its in German as well as English.  The march of Delphi books continues. This is good news.  I now am the proud owner of a Raspberry Pi 2 Model B.  What should I do with it? Currently it is merely acting as network storage.…

Read the full article

Flotsam and Jetsam #100

Well, here we are; one hundred Flotsam and Jetsam’s.  I started this series just after I left Embarcadero. Here’s a link to the very first one on July 17, 2010.  Short and sweet it was.  Took almost five years to get here to one hundred.  Thanks for hanging with me.  Here’s to another 100, eh?…

Read the full article

Flotsam and Jetsam #99

Hey, look who’s the first quote in this list of programmer’s proverbs!  Me!   Thanks, Infoworld! Community Member Kevin Powick has created a slack.com group called DelphiTalk.  Come join us! Primož Gabrijelčič has created a cool new tool for building SQL statements.  I may have to incorporate this into my work project as – sadly –…

Read the full article