Firebird day in Paris

September 1st, 2010


I will speak at the Firebird Day in Paris on October 1st about Firebird, UIB and Unicode.

Other speakers will be:
- Dmitry Yemanov: v3.0 – either architecture or optimizer related.
- Paul Reeves : PHP Framework and Firebird.
- Alexey Kovyazin (IBSurgeon): anti-corruption approach for Firebird.
- Philippe Makowski (Firebird Foundation President).
- Thierry Laborde (Codegear France).
- Frédéric Guillien.

register here

spams

July 30th, 2010

Some spammers have altered a fifties messages in the forums.
They have used accounts whose password was the same as the identifier.
I disabled these accounts and deleted the spam, but I lost 50 threads.
I will not reactivate these accounts.

Google Chrome Frame in your Delphi application

May 24th, 2010

Chrome Frame is an ActiveX control to use Google Chrome in IE.
Unfortunately, this component can not be imported into Delphi as most of the other ActiveX controls.
So I created a component to use Chrome Frame in your application.

First you need Google Chrome Frame.
And this this is the source code.

By default GCF can only load HTTP and HTTPS URI, it is a bit annoying …
but if you enable the “privileged” property it is possible to use the data URI scheme, install extensions and use named profiles.

The Chrome Frame exposes an object named “externalHost” which lets you exchange text messages with your application.
Using JSON and SuperObject it is possible to exchange complex objects with GCF.

I hope this will help to enhance your applications.

sevenzip v1.2

April 15th, 2010

A new version of the Delphi Sevenzip API is available.
This version fixes some problems when handling large archives (>4gb).

download

threads & anonymous methods

February 23rd, 2010

I had a funny idea this weekend, I was looking for a way to multithread a part of my code without having to break my code.
Using an anonymous method the thread is able to access the local variables of the method that executes the thread.
The trick is very simple and allows great flexibility in the code.

type
  TRefProc = reference to procedure;

function Thread(const proc: TRefProc): THandle;
  function run(const proc: TRefProc): Integer; stdcall;
  begin
    proc;
    Result := 0;
  end;
begin
  CreateThread(nil, 0, @run, PPointer(@proc)^, 0, Result);
end;

procedure DoIt;
var
  done: THandle;
begin
  done := CreateEvent(nil, True, False, nil);
  try
    Thread(procedure
    begin
      sleep(2000);
      SetEvent(done);
    end);
    WaitForSingleObject(done, INFINITE);
  finally
    CloseHandle(done);
  end;
end;

About me

February 11th, 2010


I have a good resolution for this new year I will socialize me.

I am 34 years old and live in Metz in France.

I am self taught for nearly 15 years after abandoning my studies in accounting, and after failing the entrance examination of an art school, the world will never know what artist I could be.
I console myself by saying that what I do is also art.

If you like my work, you can follow me on facebooktwitter and buzz of course. If you can not live without me, there is a button “donate” :D


Henri Gourvest

SuperObject v1.2.3

January 12th, 2010

This new version fixes a critical bug that prevents a “currency” to serialize correctly.

http://code.google.com/p/superobject/downloads/list

Delphi on Rails – 1st screencast

November 30th, 2009
This is my first screencast, that shows how to create a controller with DoR.
Using RTTI, it is not necessary to write a lot of code.
DoR also use “Convention over Configuration” design pattern !
This is my first screencast, that shows how to create a controller with DoR.
Using RTTI, it is not necessary to write a lot of code.
DoR also use “Convention over Configuration” design pattern This is my first screencast, that shows how to create a controller with DoR.
Using RTTI, it is not necessary to write a lot of code.
DoR also use “Convention over Configuration” design pattern !

SuperObject v1.2

November 28th, 2009

There is a new release of SO, take a look on changes.

Downloads and SVN repository moved to Google Code.

Delphi on Rails coming …

November 27th, 2009

Hi friends,

I started a new project hosted on google code: Delphi on Rails (DoR).

This project is a web application framework using REST MVC architecture.

It use latest Delphi improvements (RTTI, Generics, Unicode …).

It use open source and cross-platform technologies:

  • scripting:  LUA, the fast and popular script langage.
  • graphic:  CAIRO, is the gnome vector library able to produce PNG, SVG, PDF, PS …

It use my own projects:

  • UIB:  for the interbase/firebird driver.
  • superobject: for JSON parsing and many other things.

Ready for future versions of Delphi:

  • Ready for 64 bits.
  • Ready for cross-plateform.

Are you ready ?

http://www.delphionrails.com

http://code.google.com/p/delphionrails/source/checkout