Archive

Wednesday, 20. July 2011

0
votes
Vote UpVote

Life after 2.1: Async redux

The Delphi Geek – OtlParallel unit defines four overloaded Async methods in OTL v2.1: class procedure Async(task: TProc; taskConfig: IOmniTaskConfig = nil); overload;class procedure Async(task: TOmniTaskDelegate; taskConfig: IOmniTaskConfig = nil); overload;class procedure Async(task: TProc; onTermination: TProc; ...
3
votes
Vote UpVote

Property references in Delphi - possible?

Delphi sorcery – What is the worst thing about how bindings can be realized in Delphi? One may argue but I think it's the magic strings specifying what property to bind. I cannot think of any solution that could get rid of that. Using magic strings (and not only in that case) makes your software vulnerable to ...
Details Favorite? Off-Topic? noreply@blogger.com @ 19:38
0
votes
Vote UpVote

Using Macros in Delphi

Yanniel's notes – Computer programmers often need to transform a piece of code in a repetitive way. For example, consider transforming the following fields declaration into a fields initialization [1], as shown below: You can do that by hand of course, but you can also use macros to streamline your work, specially if ...
Details Favorite? Off-Topic? Yanniel @ 14:03
0
votes
Vote UpVote

Null character in Delphi (Caret notation: ^@)

Yanniel's notes – I was assigned with a new programming task and I found the following constant declaration in the base code (Delphi 2007):const  s1 : PChar = ^@;I was not sure about the meaning of such statement: the first ideas in my mind pointed me to think about some kind of pointer related syntax. I was ...
Details Favorite? Off-Topic? Yanniel @ 14:02
0
votes
Vote UpVote

Delphi Developers in Toronto

Yanniel's notes – There are very little opportunities for Delphi developers in Toronto (Canada). The job market for software developers in this area is monopolized by .NET (C#, VB) and Java technologies in at least an 80 percent. C, C++, PHP, Ruby and even Objective C are more popular than Delphi these days.I love ...
Details Favorite? Off-Topic? Yanniel @ 14:01
0
votes
Vote UpVote

String compression/decompression routines using Delphi

Yanniel's notes – I wrote the following two functions (in bold) with the purpose of compressing/decompressing string values within a Delphi application: .........................implementationuses  ZLib;function ZCompressString(aText: string; aCompressionLevel: TZCompressionLevel): string;var  ...
Details Favorite? Off-Topic? Yanniel @ 14:00
0
votes
Vote UpVote

Fetching a web page with Delphi

Yanniel's notes – This function fetches the HTML content of a given web page. It takes the page's URL as parameter and returns the corresponding HTML text. The name CURL comes from the PHP Client URL Library that can be used (among other things) for the same purpose..................implementationuses  ...
Details Favorite? Off-Topic? Yanniel @ 14:00
0
votes
Vote UpVote

Calculating the factorial of a number in Delphi: Recursive and iterative methods

Yanniel's notes – The factorial function can be defined in both recursive and iterative ways. Take a look at the following definitions borrowed from Wikipedia.Recursive definition: Iterative definition:For both the above definitions we have that: The purpose here is not the mathematical stuff, but two provide the ...
Details Favorite? Off-Topic? Yanniel @ 13:59
0
votes
Vote UpVote

New certifications available for Delphi Developers

Yanniel's notes – Last June 12th, 2011, I received an Embarcadero Community Newsletter pointing out that “certification exams are now available for Delphi developers.  Embarcadero's Delphi Certification Program offers two levels: Delphi Certified Developer and Delphi Certified Master Developer. “I just passed ...
Details Favorite? Off-Topic? Yanniel @ 13:59
0
votes
Vote UpVote

Template Method Design Pattern in Delphi. A working example

Yanniel's notes – The Template Method Pattern is very easy to understand and implement. Here’s the definition borrowed from Design Patterns: Elements of Reusable Object-Oriented Software book:“Define the skeleton of an algorithm in an operation, deferring some steps to subclasses. Template Method lets subclasses ...
Details Favorite? Off-Topic? Yanniel @ 13:58
0
votes
Vote UpVote

Parameterized Factory Method in Delphi

Yanniel's notes – Factory Method is a creational design pattern, whose intent (according to Design Patterns: Elements of Reusable Object-Oriented Software book) is to:“Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to ...
Details Favorite? Off-Topic? Yanniel @ 13:57
3
votes
Vote UpVote

Two ways to get the command line of another process using delphi

The Road to Delphi – Today I will show you how you can retrieve the Command line parameters of an external application from delphi using the WinApi and the WMI. In order to understand how the Command line parameters are stored and treated by the system, I recomend which you read this article from  Raymond Chen . The ...
Details Favorite? Off-Topic? Rodrigo @ 07:33
1
vote
Vote UpVote

Want more…Clouds

Sip from the Firehose – I love singer/songwriters.  One of my all time favorites is Joni Mitchell.  Joni Mitchell wrote, in the song "Both Sides Now", "I’ve looked at clouds from both sides now, from up and down, and still some how, it’s clouds illusions I recall, I really don’t know clouds at all".  We ...
Details Favorite? Off-Topic? David Intersimone @ 07:07
3
votes
Vote UpVote

File extension parameters do include a dot

The Wiert Corner – This is from a long time ago, but still fun: Sometimes simple things in life are hard do remember. For instance, I always forgot if a file extension parameter should have a dot in it or not. Normally it should! But for clearing an extension, you should use a blank string. Be aware though that empty ...
Details Favorite? Off-Topic? jpluimers @ 07:00
4
votes
Vote UpVote

Interesting…

Delphi Haven – Most of it’s just a copy of the XE (or should I say XE1?) demo tree, but a couple are new: http://radstudiodemos.svn.sourceforge.net/viewvc/radstudiodemos/branches/RadStudio_XE2/Delphi/ No EXEs though! I’ll leave the Sovietology to a certain frothy blogger-cum-team of bloggers (if said ...
Details Favorite? Off-Topic? Chris Rolliston @ 01:46
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)