Visit site Leonardo's blog
June 2011
4
votes
Using Lazarus as a GDB frontend
Leonardo's blog
– Did you know that you can use Lazarus to debug applications compiled with other languages than Pascal?. If not, I can tell you that yes, you can!.Some times, I need to connect Delphi/FPC applications to C or C++ shared libraries compiled with gcc or g++, but its a pain to debug using command line ...
March 2011
2
votes
Technical analysis with FreePascal and TA-lib
Leonardo's blog
– As the home page explains, TA-Lib is a C++ library widely used by trading software developers requiring to perform technical analysis of financial market data. It Includes 200 indicators such as ADX, MACD, RSI, Stochastic, Bollinger Bands, and Candlestick pattern recognition.The library was written ...
February 2011
4
votes
Working with C++ dll's from ObjectPascal
Leonardo's blog
– It's a well known fact that there are many excelent libraries written in C++, and we, as Object Pascal programmers can take advantage of them. Many times, I have found in forums or mailing lists, questions such as "How can I translate XYZ library to ObjectPascal?", or "How can I use a C++ from ...
October 2010
1
vote
Web 2.0 Programming with Object Pascal III
Leonardo's blog
– Debugging CGI applicationsIf you build web applications, surely often you'll face the need of a way to debug them. Remember that CGI or FastCGI applications run inside the Web Server, and you can't debug them by placing breakpoints in your Lazarus code.The easiest way I found to debug web ...
August 2010
0
votes
FreePascal 64bits Port for FreeBSD 8.x
Leonardo's blog
– Since a couple of days, the users of FreeBSD 8.x can enjoy developing with FPC 2.4.0 64bits!.Just update the ports tree and compile FPC.portsnap fetch updatecd /usr/ports/lang/fpcmake install cleanIf you want to compile the bleeding edge 2.5.1, you can start with this compiler and follow the same ...
July 2010
0
votes
Installing FreePascal 2.5.1 on FreeBsd 8.x-i386
Leonardo's blog
– The other day my Ubuntu 9.10 home server broke my /boot partition and Grub2 wasn't able to boot, I don't know why this happened, I tried to reinstall Grub2 using SystemRescueCD and lost one complete day trying, but it didn't work, so I thaught it whould be the time to try FreeBSD 8.1-RC2.This ...
March 2010
2
votes
Web 2.0 programming with Object Pascal (Part 2)
Leonardo's blog
– As I promised in my last article, here I'll show you how to add CRUD (Create, Read, Update and Delete) operations to the sample application.The first step is to add a toolbar to the Grid, with three buttons, btnAdd, btnEdit and btnDelete in charge of Inserting, Updating and Deleting data. Also I'll ...
February 2010
14
votes
Web 2.0 programming with Object Pascal
Leonardo's blog
– I'm sure you experience the same feeling as me, when a "web developer" looks at your computer screen saying "wow! you program in Delphi, I used to use it before programming web applications". When I hear that, I want to start telling them that Delphi (Object Pascal) can help you get better results ...
January 2010
0
votes
Synapse Based SSH Client
Leonardo's blog
– Many times, I needed a way to let my Delphi/FPC applications to connect to an SSH server, execute some commands, and get its results. Now I'm publishing a simple class based on Synapse's TTelnetSend class to do exactly what I needed.Required ingredientsFirst of all, you'll need to grab a copy of the ...
December 2009
3
votes
Apache 2.2 modules - FPC 64bits + Ubuntu 9.10
Leonardo's blog
– Yesterday I've received a inquiry from Harel Haruda about my example of Apache 2.2 modules for linux, he was having some trouble trying to let Apache load its modules. My former example was compiled using FPC 2.2.2 on an i386 PC with Debian Linux, now I'm using Ubuntu 9.10 for x86-64 with FPC ...
November 2009
0
votes
Response to comments in "Inducing the Great Divide"
Leonardo's blog
– I've read the -nice- article Inducing the great divide by Cobus Cruger, and was tempted to answer many comments about his approach to set object properties to visual controls.Many comments where related to the lack of scalability of this approach, specially when a form has many model objects pointed ...
July 2009
3
votes
Apache 2.2.x modules with FreePascal (Linux)
Leonardo's blog
– Finally I have a couple of minutes free to write about Apache 2.2.x Modules in Linux using FreePascal. The methodology is pretty much the same as my previous article about Win32 modules.The codeOpen your favorite editor and type this code, then save it as ...
8
votes
Apache 2.2.x modules with FreePascal (Win32)
Leonardo's blog
– Continuing with this series of articles, I will start with the FreePascal version using plain command line FreePascal 2.2.4 for Win32, and later I'll try to create a module for Apache 2.2.x on Linux.Before copying-pasting this example, I recommend you to read this Wiki to get a detailed knowledge of ...
1
vote
Apache 2.2.x modules with Delphi II
Leonardo's blog
– After my "Apache 2.2.x modules with Delphi" article, I received many requests for an example, and here it is.Creating the directory structureCreate a directory where your Delphi project will reside, for example C:\myModule, then copy the files HTTPD2.pas, ApacheTwoApp.pas and ApacheTwoHTTP.pas from ...
May 2009
1
vote
FindFirst...FindClose in Linux
Leonardo's blog
– Last week a customer asked for one application we sell for sending a work list from a Radiology Information System to different equipment called Modalities in medical terminology, they are CT, CR, MR and so on. The application is called Modality WorkList Server, and works as a Windows Service. It's ...




