<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1874838794281078062</id><updated>2024-10-02T09:11:56.589+02:00</updated><category term="Der Blogger"/><category term="Der Mensch"/><category term="Der Geek"/><category term="Der Entwickler"/><category term="Der Student"/><category term="Der mit dem Hals"/><category term="The Developer"/><category term="Der Bahnfahrer"/><category term="Der Praktikant"/><category term="Der Leser"/><category term="Der Mitbewohner"/><category term="Delphi"/><category term="Der Cineast"/><category term="Der Pirat"/><category term="Der Diplomand"/><category term="Der Fan"/><category term="Der Gamer"/><category term="Der Arbeitnehmer"/><category term="Der Mann"/><category term="Der Regengott"/><category term="Der Urlauber"/><category term="Der Zombie"/><category term="JSON"/><category term="Der Benutzerfreund"/><category term="Der Proll"/><category term="XE"/><category term="Der Bundesbürger"/><category term="Der Glückspilz"/><category term="Der Knaller"/><category term="Der Kunde"/><category term="Der Leineweber"/><category term="Der Partylöwe"/><category term="Der Unbekannte"/><category term="Der Waver"/><category term="Fun"/><category term="Routing"/><category term="Tracert"/><title type='text'>Gloegg</title><subtitle type='html'>Developer by day&#xa;Coder by night</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://gloegg.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://gloegg.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07768182341129431497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>420</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1874838794281078062.post-5504094252163127511</id><published>2013-10-18T21:37:00.000+02:00</published><updated>2013-10-18T21:37:42.200+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delphi"/><category scheme="http://www.blogger.com/atom/ns#" term="Der Entwickler"/><category scheme="http://www.blogger.com/atom/ns#" term="JSON"/><category scheme="http://www.blogger.com/atom/ns#" term="The Developer"/><title type='text'>Recent additions to delphi-xe-json</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
I finally found some time to add two features to my &lt;a href=&quot;https://bitbucket.org/Gloegg/delphi-xe-json&quot; target=&quot;_blank&quot;&gt;delphi-xe-json&lt;/a&gt; library.&lt;br /&gt;
&lt;br /&gt;
I wrote a Formatter for JSON, that doesn&#39;t try to read the input into an IJSONArray or IJSONObject. The advantage is, that it even formats invalid JSON, which might make it easier to spot what is wrong with it.&lt;br /&gt;
I&#39;m not completely happy with it, because it violates the &lt;a href=&quot;http://principles-wiki.net/principles:don_t_repeat_yourself&quot; target=&quot;_blank&quot;&gt;DRY-Principle&lt;/a&gt; twice. I copied a method from TJSONReader and another one from TJSONReadableWriter, but I already have an idea how to fix that.&lt;br /&gt;
&lt;br /&gt;
The other addition is bigger and still a work in progress, which is why I haven&#39;t merged the branch back into the master branch. I decided to share it anyway, because it is working with some restrictions and I don&#39;t think that the interface is changing a lot in the next time.&lt;br /&gt;
&lt;br /&gt;
The idea was to generate Plain Old Delphi Objects (PODOs) from a JSON string. I utilized the code generator from &lt;a href=&quot;http://wiert.me/&quot; target=&quot;_blank&quot;&gt;Jeroen Pluimers&lt;/a&gt; which he kindly put under BSD-License in the repository from &lt;a href=&quot;https://bo.codeplex.com/&quot; target=&quot;_blank&quot;&gt;better-office benelux&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
For convenience, I copied the three needed units in the delphi-xe-json repository, but I recommend using the original ones.&lt;br /&gt;
&lt;br /&gt;
The usage is very simple:&lt;br /&gt;
&lt;pre class=&quot;brush:delphi&quot;&gt;var
  jo : IJSONObject;
begin
  jo := TJSON.NewObject({some json string});
  Memo1.Lines.Text := TJSON.GeneratePODOUnit(jo);
end;
&lt;/pre&gt;
&lt;br /&gt;
JSON-Input:&lt;br /&gt;
&lt;pre class=&quot;brush:js&quot;&gt;{
  &quot;Name&quot;:&quot;Test&quot;,
  &quot;AnswerToLife&quot;:42,
  &quot;Items&quot;:
  [
    1.41,
    2.72,
    3.13
  ]
}
&lt;/pre&gt;
&lt;br /&gt;
Generated Unit
&lt;pre class=&quot;brush:delphi&quot;&gt;unit GeneratedUnit;

interface

uses
  Generics.Collections,
  JSON;

type
  TItemsList = class;
  TGeneratedClass = class;

  TItemsList = class(TList&amp;lt;double&amp;gt;)
  public
  procedure LoadFromFile(aFilename : string);
  procedure SaveToFile(aFilename : string);
  procedure LoadFromJSON(ja : IJSONArray);
  procedure SaveToJSON(ja : IJSONArray);
  end;

  TGeneratedClass = class(TObject)
  strict private
  fItems: TItemsList;
  fAnswerToLife: integer;
  fName: string;
  public
  procedure LoadFromFile(aFilename : string);
  procedure SaveToFile(aFilename : string);
  constructor Create();
  destructor Destroy(); override;
  procedure LoadFromJSON(jo : IJSONObject);
  procedure SaveToJSON(jo : IJSONObject);
  property Items: TItemsList read fItems;
  property AnswerToLife: integer read fAnswerToLife write fAnswerToLife;
  property Name: string read fName write fName;
  end;

implementation

uses
  IOUtils;

{ TItemsList }

procedure TItemsList.LoadFromFile(aFilename : string);
var
  json: IJSONArray;
  s: string;
begin
  s := TFile.ReadAllText(aFilename);
  json := TJSON.NewArray(s);
  LoadFromJSON(json);
end;

procedure TItemsList.SaveToFile(aFilename : string);
var
  json: IJSONArray;
begin
  json := TJSON.NewArray;
  SaveToJSON(json);
  TFile.WriteAllText(aFilename, json.ToString);
end;

procedure TItemsList.LoadFromJSON(ja : IJSONArray);
var
  i: integer;
begin
  for i := 0 to ja.Count - 1 do
  begin
    Items[i] := ja.GetDouble(i);
  end;
end;

procedure TItemsList.SaveToJSON(ja : IJSONArray);
var
  i: integer;
begin
  for i := 0 to ja.Count - 1 do
  begin
    ja.put(Items[i]);
  end;
end;

{ TGeneratedClass }

procedure TGeneratedClass.LoadFromFile(aFilename : string);
var
  json: IJSONObject;
  s: string;
begin
  s := TFile.ReadAllText(aFilename);
  json := TJSON.NewObject(s);
  LoadFromJSON(json);
end;

procedure TGeneratedClass.SaveToFile(aFilename : string);
var
  json: IJSONObject;
begin
  json := TJSON.NewObject;
  SaveToJSON(json);
  TFile.WriteAllText(aFilename, json.ToString);
end;

constructor TGeneratedClass.Create();
begin
  fItems := TItemsList.Create;
end;

destructor TGeneratedClass.Destroy();
begin
  fItems.Free;
  inherited;
end;

procedure TGeneratedClass.LoadFromJSON(jo : IJSONObject);
begin
  fItems.LoadFromJSON(jo.GetJSONArray(&#39;Items&#39;));
  fAnswerToLife := jo.GetInteger(&#39;AnswerToLife&#39;);
  fName := jo.GetString(&#39;Name&#39;);
end;

procedure TGeneratedClass.SaveToJSON(jo : IJSONObject);
var
  jaItems: IJSONArray;
begin
  jaItems := TJSON.NewArray;
  fItems.SaveToJSON(jaItems);
  jo.Put(&#39;Items&#39;, jaItems);
  jo.Put(&#39;AnswerToLife&#39;, fAnswerToLife);
  jo.Put(&#39;Name&#39;, fName);
end;

end. &lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gloegg.blogspot.com/feeds/5504094252163127511/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1874838794281078062/5504094252163127511?isPopup=true' title='1 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/5504094252163127511'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/5504094252163127511'/><link rel='alternate' type='text/html' href='http://gloegg.blogspot.com/2013/10/recent-additions-to-delphi-xe-json.html' title='Recent additions to delphi-xe-json'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07768182341129431497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1874838794281078062.post-8291030474649559265</id><published>2013-10-11T11:12:00.002+02:00</published><updated>2013-10-11T11:14:02.954+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delphi"/><category scheme="http://www.blogger.com/atom/ns#" term="Der Entwickler"/><category scheme="http://www.blogger.com/atom/ns#" term="The Developer"/><title type='text'>Moving my public repositories</title><content type='html'>&lt;div style=&quot;text-align:justify&quot;&gt;I am moving my public repositories from Google Code to Bitbucket and also from SVN to git.

So far these repositories have moved:
delphi-xe-json: https://bitbucket.org/Gloegg/delphi-xe-json
delphi-redis: https://bitbucket.org/Gloegg/delphi-redis&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gloegg.blogspot.com/feeds/8291030474649559265/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1874838794281078062/8291030474649559265?isPopup=true' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/8291030474649559265'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/8291030474649559265'/><link rel='alternate' type='text/html' href='http://gloegg.blogspot.com/2013/10/moving-repositories.html' title='Moving my public repositories'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07768182341129431497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1874838794281078062.post-6739543952588603194</id><published>2013-08-16T14:28:00.002+02:00</published><updated>2013-08-16T14:28:55.915+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delphi"/><category scheme="http://www.blogger.com/atom/ns#" term="Der Entwickler"/><category scheme="http://www.blogger.com/atom/ns#" term="The Developer"/><title type='text'>How to include source, debug DCUs and release DCUs in the Delphi-Options</title><content type='html'>&lt;div style=&quot;text-align:justify&quot;&gt;Once again, StackOverflow proves to be a source of useful information:&lt;br/&gt;
This &lt;a href=&quot;http://stackoverflow.com/a/4107917/1131723&quot;&gt;answer&lt;/a&gt; on SO explains how libraries should be included in the Delphi-Options.
&lt;br/&gt;
In a nutshell:
&lt;ol&gt;
&lt;li&gt;Library Path = Release DCUs&lt;/li&gt;
&lt;li&gt;Browsing Path = Source&lt;/li&gt;
&lt;li&gt;Debug DCU Path = Debug DCUs&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gloegg.blogspot.com/feeds/6739543952588603194/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1874838794281078062/6739543952588603194?isPopup=true' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/6739543952588603194'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/6739543952588603194'/><link rel='alternate' type='text/html' href='http://gloegg.blogspot.com/2013/08/how-to-include-source-debug-dcus-and.html' title='How to include source, debug DCUs and release DCUs in the Delphi-Options'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07768182341129431497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1874838794281078062.post-6326111158819200381</id><published>2013-07-16T23:06:00.002+02:00</published><updated>2013-07-16T23:06:50.945+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delphi"/><category scheme="http://www.blogger.com/atom/ns#" term="Der Entwickler"/><category scheme="http://www.blogger.com/atom/ns#" term="The Developer"/><title type='text'>New Repository: Delphi-Helpers</title><content type='html'>&lt;div style=&quot;text-align:justify&quot;&gt;I am planning to collect all my little helper units in a single repository. 
&lt;br/&gt;
I&#39;m starting with TSpecialFolder.
&lt;br/&gt;
&lt;pre class=&quot;brush:delphi&quot;&gt;  TSpecialFolder = record
  private
    class function GetSpecialFolder(CSIDL: Integer) : string; static;
    class function GetProgramFiles : string; static;
    class function GetProgramFilesX86 : string; static;
    class function GetUserDocuments : string; static;
    class function GetAppData : string; static;
    class function GetCommonAppData : string; static;
    class function getTempPath: string; static;
  public
    class property ProgramFiles : string read GetProgramFiles;
    class property ProgramFilesX86 : string read GetProgramFilesX86;
    class property UserDocuments : string read GetUserDocuments;
    class property UserAppData : string read GetAppData;
    class property CommonAppData : string read GetCommonAppData;
    class property TempPath : string read getTempPath;
  end;&lt;/pre&gt;&lt;br/&gt;

Usage:&lt;br/&gt;
&lt;pre class=&quot;brush:delphi&quot;&gt;
procedure Save;
begin
  SaveDialog1.InitialDir := TSpecialFolder.UserDocuments;
  if SaveDialog1.Execute then
  begin
    // Save the file
  end;
end;&lt;/pre&gt;


You can get the unit from my delphi-helpers git repository
&lt;a href=&quot;https://code.google.com/p/delphi-helpers/&quot;&gt;https://code.google.com/p/delphi-helpers/&lt;/a&gt;
&lt;br/&gt;
&lt;br/&gt;
BTW:
You can now vote for this blog to be added to &lt;a href=&quot;http://www.delphifeeds.com/&quot;&gt;DelphiFeeds.com&lt;/a&gt;: &lt;a href=&quot;http://delphifeeds.uservoice.com/forums/14264-feedback/suggestions/4147767-add-gloegg-blogspot-com-to-delphi-feeds&quot;&gt;Vote here&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gloegg.blogspot.com/feeds/6326111158819200381/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1874838794281078062/6326111158819200381?isPopup=true' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/6326111158819200381'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/6326111158819200381'/><link rel='alternate' type='text/html' href='http://gloegg.blogspot.com/2013/07/new-repository-delphi-helpers.html' title='New Repository: Delphi-Helpers'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07768182341129431497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1874838794281078062.post-4430606845339059689</id><published>2013-07-16T22:51:00.001+02:00</published><updated>2013-07-16T22:51:53.202+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delphi"/><category scheme="http://www.blogger.com/atom/ns#" term="Der Entwickler"/><category scheme="http://www.blogger.com/atom/ns#" term="JSON"/><category scheme="http://www.blogger.com/atom/ns#" term="The Developer"/><category scheme="http://www.blogger.com/atom/ns#" term="XE"/><title type='text'>Some concepts for a Delphi Webserver with API versioning</title><content type='html'>&lt;div style=&quot;text-align:justify&quot;&gt;When I began programming at my first company in a practical semester, the very first application I wrote, used TCP/IP to communicate with the existing applications. Almose every application I developed since, was using some kind of network communication to control another application or to be controlled by other applications. Over the years, I added other platforms (iOS and Android), which controlled the delphi applications. In every new project, I tried to tune the server side a little bit, to make my life easier.&lt;br/&gt;
&lt;br/&gt;
Recently, I extended the server part to support multiple versions of an API.&lt;br/&gt;
&lt;br/&gt;
The idea is that there is one IWebAPI interface, which represents the public API. The TAbstractAPI &quot;implements&quot; this interface. The real API classes inherit from this class and implement the methods they want. Having an abstract class between the interface and the implementation releases the real API classes from having to implement every method from the interface.&lt;br/&gt;
&lt;br/&gt;
The API classes register themselves in a TWebAPIFactory, which will instantiate these classes when needed.&lt;br/&gt;
&lt;br/&gt;

An example of an API
&lt;pre class=&quot;brush:delphi&quot;&gt;
unit WebAPI.Version1;

interface // empty interface section, I think Nick Hodges would like this ;-) (http://www.nickhodges.com/post/Getting-Giddy-with-Dependency-Injection-and-Delphi-Spring-5-Delphi-Spring-Basics.aspx)

implementation

uses
  JSON, WebAPI.Abstract, WebAPI.Factory;

type
  TWebAPIVersion1 = class(TAbstractAPI)
    function ReverseString(jo: IJSONObject): string; override;
  end;

{ TWebAPIVersion1 }

function TWebAPIVersion1.ReverseString(jo: IJSONObject): string;
var
  ch: char;
begin
  result := &#39;&#39;;
  for ch in jo.GetString(&#39;value&#39;) do
  begin
    result := ch + result;
  end;
end;

initialization

begin
  TWebAPIFactory.RegisterAPI(&#39;1&#39;, TWebAPIVersion1);
end;

end.&lt;/pre&gt;

&lt;br/&gt;
Another concept, which has been used in my previous applications is that the methods of the api are not called directly. Instead, Rtti is used to invoke the right method.&lt;br/&gt;
&lt;pre class=&quot;brush:delphi&quot;&gt;class function TWebAPIInvoker.Invoke(const aAPI: IWebAPI; const aCommand: string; aParam: IJSONObject): string;
var
  o: TObject;
  ctx: TRttiContext;
  typ: TRttiType;
  m: TRttiMethod;
begin
  o := TObject(aAPI);
  typ := ctx.GetType(o.ClassInfo);
  m := typ.GetMethod(aCommand);
  if assigned(m) then
  begin
    result := m.Invoke(o, [TValue.From&amp;lt;IJSONObject&amp;gt;(aParam)]).AsString;
  end
  else
  raise Exception.Create(&#39;Unknown Command: &quot;&#39; + aCommand + &#39;&quot;&#39;);
end;&lt;/pre&gt;

I used the IJSONObject from my &lt;a href=&quot;http://gloegg.blogspot.de/2013/02/delphi-xe-json-update.html&quot;&gt;JSON-Library&lt;/a&gt; as a parameter, because it has been proven to be a reliable format for passing complex data over the borders of applications. &lt;br/&gt;
&lt;br/&gt;
These concepts are glued together in the datamodule, that holds an IdHTTPServer.&lt;br/&gt;

&lt;pre class=&quot;brush:delphi&quot;&gt;procedure TdmWebserver.IdHTTPServer1CommandGet(AContext: TIdContext; ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo);
begin
  if isAPIRequest(ARequestInfo.Document) then
    HandleAPIRequest(AContext, ARequestInfo, AResponseInfo)
  else // Is File Request
    HandleFileRequest(AContext, ARequestInfo, AResponseInfo);
end;

function TdmWebserver.isAPIRequest(const aDocument: string): boolean;
begin
  result := aDocument.StartsWith(&#39;/api/&#39;);
end;

procedure TdmWebserver.HandleAPIRequest(AContext: TIdContext; ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo);
var
  documentParts: TArray&amp;lt;string&amp;gt;;
  version, command: string;
  api: IWebAPI;
  i: integer;
begin
  // e.g. /api/1/ReverseString
  documentParts := ARequestInfo.Document.Split([&#39;/&#39;], TStringSplitOptions.ExcludeEmpty);
  version := documentParts[1];
  command := &#39;&#39;;
  for i := 2 to high(documentParts) do
  begin
    command := command + documentParts[i];
  end;
  api := TWebAPIFactory.newAPI(version);
  AResponseInfo.ContentText := TWebAPIInvoker.Invoke(api, command, nil)
end;&lt;/pre&gt;

&lt;br/&gt;
It is a work in progess, so use it carefully!&lt;br/&gt;
Delphi XE3 is required.&lt;br/&gt;
&lt;br/&gt;
You can get the source code from the git repository at &lt;a href=&quot;http://code.google.com/p/delphi-webapi/&quot;&gt;http://code.google.com/p/delphi-webapi/&lt;/a&gt;

&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gloegg.blogspot.com/feeds/4430606845339059689/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1874838794281078062/4430606845339059689?isPopup=true' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/4430606845339059689'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/4430606845339059689'/><link rel='alternate' type='text/html' href='http://gloegg.blogspot.com/2013/07/some-concepts-for-delphi-webserver-with.html' title='Some concepts for a Delphi Webserver with API versioning'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07768182341129431497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1874838794281078062.post-8476538180039459387</id><published>2013-02-10T16:59:00.000+01:00</published><updated>2013-02-10T16:59:13.652+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delphi"/><category scheme="http://www.blogger.com/atom/ns#" term="Der Entwickler"/><category scheme="http://www.blogger.com/atom/ns#" term="JSON"/><category scheme="http://www.blogger.com/atom/ns#" term="The Developer"/><category scheme="http://www.blogger.com/atom/ns#" term="XE"/><title type='text'>Delphi XE JSON Update</title><content type='html'>&lt;div style=&quot;text-align:justify&quot;&gt;I recently updated my &lt;a href=&quot;http://code.google.com/p/delphi-xe-json/&quot;&gt;JSON-Library&lt;/a&gt;. Both, IJSONObject and IJSONArray now have methods to check for the type of the nested items.

&lt;pre class=&quot;brush:delphi&quot;&gt;IJSONObject = interface
[&#39;{D00A665F-3CBB-4DDB-8300-FB8020DA564B}&#39;]
  .
  .
  .
  function isJSONObject(aKey : string) : boolean;
  function isJSONArray(aKey : string) : boolean;
  function isString(aKey : string) : boolean;
  function isInteger(aKey : string) : boolean;
  function isBoolean(aKey : string) : boolean;
  function isDouble(aKey : string) : boolean;
end;

IJSONArray = interface
[&#39;{B120D59A-1D00-469E-97CE-AE2A635A51ED}&#39;]
  .
  .
  .
  function isJSONObject(aIndex : integer) : boolean;
  function isJSONArray(aIndex : integer) : boolean;
  function isString(aIndex : integer) : boolean;
  function isInteger(aIndex : integer) : boolean;
  function isBoolean(aIndex : integer) : boolean;
  function isDouble(aIndex : integer) : boolean;
end;&lt;/pre&gt;
&lt;/br&gt;
Usage:
&lt;pre class=&quot;brush:delphi&quot;&gt;var
  jo : IJSONObject;
begin
  jo := TJSON.NewObject(&#39;{&quot;string&quot;:&quot;abc&quot;, &quot;integer&quot;:123}&#39;);

  jo.isString(&#39;string&#39;); // true
  jo.isInteger(&#39;integer&#39;); // true
  jo.isBoolean(&#39;string&#39;); // false
end;&lt;/pre&gt;

The implementation is very strict, e.g. isDouble will return false if the value is an integer and could be accessed as a double. I also included unit tests to cover these methods.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gloegg.blogspot.com/feeds/8476538180039459387/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1874838794281078062/8476538180039459387?isPopup=true' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/8476538180039459387'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/8476538180039459387'/><link rel='alternate' type='text/html' href='http://gloegg.blogspot.com/2013/02/delphi-xe-json-update.html' title='Delphi XE JSON Update'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07768182341129431497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1874838794281078062.post-9140337733016121817</id><published>2013-02-10T16:43:00.001+01:00</published><updated>2013-02-10T16:43:35.939+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Fun"/><category scheme="http://www.blogger.com/atom/ns#" term="Routing"/><category scheme="http://www.blogger.com/atom/ns#" term="Tracert"/><title type='text'>tracert -h 60 obiwan.scrye.net</title><content type='html'>&lt;div style=&quot;text-align:justify&quot;&gt;Someone had fun with the routing at &lt;a href=&quot;http://beaglenetworks.net/&quot;&gt;Beaglenetworks&lt;/a&gt;
&lt;br/&gt;
&lt;pre&gt;Routenverfolgung zu obiwan.scrye.net [216.81.59.173] über maximal 60 Abschnitte:

  7   137 ms   127 ms   127 ms  10gigabitethernet1-2.core1.atl1.he.net [184.105.213.110] 
  8   126 ms   126 ms   127 ms  216.66.0.26 
  9     *        *        *     Zeitberschreitung der Anforderung.
 10   163 ms   165 ms   164 ms  Episode.IV [206.214.251.1] 
 11   193 ms   166 ms   164 ms  A.NEW.HOPE [206.214.251.6] 
 12   169 ms   164 ms   167 ms  It.is.a.period.of.civil.war [206.214.251.9] 
 13   168 ms   164 ms   166 ms  Rebel.spaceships [206.214.251.14] 
 14   169 ms   163 ms   164 ms  striking.from.a.hidden.base [206.214.251.17] 
 15   169 ms   165 ms   165 ms  have.won.their.first.victory [206.214.251.22] 
 16   165 ms   167 ms   165 ms  against.the.evil.Galactic.Empire [206.214.251.25] 
 17   165 ms   164 ms   168 ms  During.the.battle [206.214.251.30] 
 18   166 ms   164 ms   165 ms  Rebel.spies.managed [206.214.251.33] 
 19   166 ms   167 ms   162 ms  to.steal.secret.plans [206.214.251.38] 
 20   166 ms   165 ms   163 ms  to.the.Empires.ultimate.weapon [206.214.251.41] 
 21   165 ms   163 ms   164 ms  the.DEATH.STAR [206.214.251.46] 
 22   168 ms   166 ms   167 ms  an.armored.space.station [206.214.251.49] 
 23   164 ms   169 ms   167 ms  with.enough.power.to [206.214.251.54] 
 24   164 ms   189 ms   168 ms  destroy.an.entire.planet [206.214.251.57] 
 25   170 ms   168 ms   174 ms  Pursued.by.the.Empires [206.214.251.62] 
 26   166 ms   169 ms   167 ms  sinister.agents [206.214.251.65] 
 27   166 ms   163 ms   166 ms  Princess.Leia.races.home [206.214.251.70] 
 28   168 ms   163 ms   163 ms  aboard.her.starship [206.214.251.73] 
 29   168 ms   171 ms   165 ms  custodian.of.the.stolen.plans [206.214.251.78] 
 30   169 ms   172 ms   168 ms  that.can.save.her [206.214.251.81] 
 31   166 ms     *      165 ms  people.and.restore [206.214.251.86] 
 32   168 ms   167 ms   164 ms  freedom.to.the.galaxy [206.214.251.89] 
 33   166 ms   166 ms   164 ms  0-------------------0 [206.214.251.94] 
 34   165 ms   170 ms   166 ms  0------------------0 [206.214.251.97] 
 35   168 ms   170 ms   164 ms  0-----------------0 [206.214.251.102] 
 36   166 ms   169 ms   168 ms  0----------------0 [206.214.251.105] 
 37   167 ms   168 ms   164 ms  0---------------0 [206.214.251.110] 
 38   163 ms   165 ms   165 ms  0--------------0 [206.214.251.113] 
 39   167 ms   171 ms   166 ms  0-------------0 [206.214.251.118] 
 40   167 ms   166 ms   172 ms  0------------0 [206.214.251.121] 
 41   166 ms   165 ms   165 ms  0-----------0 [206.214.251.126] 
 42   172 ms   169 ms   172 ms  0----------0 [206.214.251.129] 
 43   165 ms   168 ms   166 ms  0---------0 [206.214.251.134] 
 44   168 ms   163 ms   168 ms  0--------0 [206.214.251.137] 
 45   166 ms   167 ms   260 ms  0-------0 [206.214.251.142] 
 46   166 ms   164 ms   173 ms  0------0 [206.214.251.145] 
 47   164 ms   167 ms   165 ms  0-----0 [206.214.251.150] 
 48   168 ms   166 ms   168 ms  0----0 [206.214.251.153] 
 49   166 ms   164 ms   168 ms  0---0 [206.214.251.158] 
 50   184 ms   171 ms   169 ms  0--0 [206.214.251.161] 
 51   168 ms   170 ms   168 ms  0-0 [206.214.251.166] 
 52   165 ms   168 ms   169 ms  00 [206.214.251.169] 
 53   172 ms   169 ms   165 ms  I [206.214.251.174] 
 54   171 ms   169 ms   169 ms  By.Ryan.Werber [206.214.251.177] 
 55   171 ms   168 ms   171 ms  When.CCIEs.Get.Bored [206.214.251.182] 
 56   167 ms   168 ms   173 ms  read.more.at.beaglenetworks.net [206.214.251.185] 
 57   179 ms   170 ms   166 ms  FIN [216.81.59.173] 

Ablaufverfolgung beendet.&lt;/pre&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gloegg.blogspot.com/feeds/9140337733016121817/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1874838794281078062/9140337733016121817?isPopup=true' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/9140337733016121817'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/9140337733016121817'/><link rel='alternate' type='text/html' href='http://gloegg.blogspot.com/2013/02/tracert-h-60-obiwanscryenet.html' title='tracert -h 60 obiwan.scrye.net'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07768182341129431497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1874838794281078062.post-7631171830513387262</id><published>2013-01-31T16:03:00.001+01:00</published><updated>2013-01-31T16:03:45.439+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Der Entwickler"/><category scheme="http://www.blogger.com/atom/ns#" term="The Developer"/><title type='text'>Instacode</title><content type='html'>&lt;div style=&quot;text-align:justify&quot;&gt;&lt;a href=&quot;http://instacode.linology.info/&quot;&gt;Instacode&lt;/a&gt; is for developers what &lt;a href=&quot;http://instagram.com/&quot;&gt;Instagram&lt;/a&gt; is for hipsters.
Just paste your code into the textfield and choose the level of &quot;hipness&quot; to get a nice image of your code. The range of supported languages is amazing and our beloved Delphi is supported as well.
&lt;br/&gt;
&lt;br/&gt;
The service is currently not working, due to the heavy load of users, that are trying to &quot;beautify&quot; their code.
&lt;br/&gt;
Here&#39;s an example from the website:
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiekYhC478tdOyZGlMq0E9gdBIWSRytBp1-wUsJW5IyqbdudYNgNoa_qwqUk-Pehg3Z2FUSWF-2k5lPPCtqkW8Xg2Le2DhAfyu-2NCeIGq0wfOVZuymD1-KOiYJZD7ROE_gQEr0GtG69Eo/s1600/8432978818_eee9e5b4dd_o.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; width=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiekYhC478tdOyZGlMq0E9gdBIWSRytBp1-wUsJW5IyqbdudYNgNoa_qwqUk-Pehg3Z2FUSWF-2k5lPPCtqkW8Xg2Le2DhAfyu-2NCeIGq0wfOVZuymD1-KOiYJZD7ROE_gQEr0GtG69Eo/s320/8432978818_eee9e5b4dd_o.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;

&lt;br/&gt;
&lt;br/&gt;
PS: If you are visiting the site with IE, you are in for a treat ;-)
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gloegg.blogspot.com/feeds/7631171830513387262/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1874838794281078062/7631171830513387262?isPopup=true' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/7631171830513387262'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/7631171830513387262'/><link rel='alternate' type='text/html' href='http://gloegg.blogspot.com/2013/01/instacode.html' title='Instacode'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07768182341129431497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiekYhC478tdOyZGlMq0E9gdBIWSRytBp1-wUsJW5IyqbdudYNgNoa_qwqUk-Pehg3Z2FUSWF-2k5lPPCtqkW8Xg2Le2DhAfyu-2NCeIGq0wfOVZuymD1-KOiYJZD7ROE_gQEr0GtG69Eo/s72-c/8432978818_eee9e5b4dd_o.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1874838794281078062.post-224420180040148029</id><published>2013-01-28T21:58:00.000+01:00</published><updated>2013-01-28T21:58:00.366+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Der Entwickler"/><category scheme="http://www.blogger.com/atom/ns#" term="The Developer"/><title type='text'>Delphi and Sleepsort</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;A while ago, someone on 4chan posted a fun sorting algorithm. It is called &lt;a href=&quot;http://dis.4chan.org/read/prog/1295544154&quot;&gt;Sleepsort&lt;/a&gt; and is not recommended to be usedin production. However, I thought it would be fun to implement it in Delphi.

Here it is (for your amusement):

&lt;pre class=&quot;brush:delphi&quot;&gt;program Sleepsort;

var
  items: TArray&amp;lt;integer&amp;gt;;
  i: integer;

begin
  randomize;
  writeln(&#39;Random: &#39;);
  setlength(items, 25);
  for i := 0 to High(items) do
  begin
    items[i] := random(length(items) * 4);
    write(IntToStr(items[i]) + &#39; &#39;);
  end;
  writeln;
  writeln(&#39;Sorted: &#39;);
  for i := 0 to high(items) do
  begin
     TSortThread.Create(items[i]);
  end;
  readln;
end.&lt;/pre&gt;

&lt;pre class=&quot;brush:delphi&quot;&gt;unit uSortThread;

interface

uses
  Classes;

type
  TSortThread = class (TThread)
  private
    fValue : integer;
  protected
    procedure Execute; override;
  public
    constructor Create(n : integer);
  end;

implementation

uses SysUtils;

constructor TSortThread.Create(n: integer);
begin
  inherited Create;
  fValue := n;
end;

procedure TSortThread.Execute;
begin
  sleep(fValue * 333); // artificial slowdown, to make the process visible for the human eye
  write(IntToStr(fValue)+&#39; &#39;);
end;

end. &lt;/pre&gt;

&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gloegg.blogspot.com/feeds/224420180040148029/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1874838794281078062/224420180040148029?isPopup=true' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/224420180040148029'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/224420180040148029'/><link rel='alternate' type='text/html' href='http://gloegg.blogspot.com/2013/01/delphi-and-sleepsort.html' title='Delphi and Sleepsort'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07768182341129431497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1874838794281078062.post-9213425276496492823</id><published>2012-02-18T14:10:00.000+01:00</published><updated>2012-02-18T14:11:12.189+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Der Entwickler"/><category scheme="http://www.blogger.com/atom/ns#" term="The Developer"/><title type='text'>Delphi and Redis</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;a href=&quot;http://redis.io/&quot; target=&quot;_blank&quot;&gt;Redis&lt;/a&gt; is short for Remote Dictionary Server and it is a NoSQL-Database or more specific, a Key-Value-Store. Since there was no Client for Delphi, I decided to write one by myself. &lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The project is available on Google Code: &lt;a href=&quot;http://code.google.com/p/delphi-redis/&quot;&gt;http://code.google.com/p/delphi-redis/&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
It uses the Indy TCP Client by default, but you can use either Constructor or Property Injection to switch to another implementation.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gloegg.blogspot.com/feeds/9213425276496492823/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1874838794281078062/9213425276496492823?isPopup=true' title='1 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/9213425276496492823'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/9213425276496492823'/><link rel='alternate' type='text/html' href='http://gloegg.blogspot.com/2012/02/delphi-and-redis.html' title='Delphi and Redis'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07768182341129431497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1874838794281078062.post-3823392572100978636</id><published>2012-02-01T21:28:00.000+01:00</published><updated>2012-02-01T21:28:55.113+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Der Entwickler"/><category scheme="http://www.blogger.com/atom/ns#" term="The Developer"/><title type='text'>Delphi and JSON</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
I am currently developing my own JSON Library for Delphi. There are already libraries for that, but none of them suited my needs.&lt;br /&gt;
There is the built-in DBXJSON, which is used in the DataSnap part of Delphi. However, it is a bit of a hassle to work with.&lt;br /&gt;
There is &lt;a href=&quot;http://www.simonjstuart.com/delphi-stuff/tlakjson/&quot;&gt;TlkJSON&lt;/a&gt; from Simon Stuart, which has (or had, I don&#39;t know the current status) some problems with Umlauts (ä,ö,ü,ß, etc.)&lt;br /&gt;
There is the &lt;a href=&quot;http://sourceforge.net/projects/is-webstart/&quot;&gt;Delphi Web Utils&lt;/a&gt; from Jose Fabio N Almeida, which has some memory issues and other bugs, and most importantly, does not work well under XE2. It also hasn&#39;t been updated for a while.&lt;br /&gt;
And there is the &lt;a href=&quot;http://www.progdigy.com/?page_id=6&quot;&gt;SuperObject&lt;/a&gt; which is very powerful, but it has IMO a horrible syntax.&lt;br /&gt;
&lt;br /&gt;
Since I was using the Delphi Web Utils before and I didn&#39;t want to rewrite all my other code when switching libraries, I designed my Interfaces and Classes in a similar way, e.g. the objects and array have methods named &quot;Put&quot; and &quot;GetString&quot;.&lt;br /&gt;
&lt;br /&gt;
I have released &lt;a href=&quot;http://code.google.com/p/delphi-xe-json/&quot;&gt;my library&lt;/a&gt; on Google Code. You can check it out via subversion or you can download the zipfile. Any feedback or help is appreciated. 

It uses Generics, Rtti (for TValue) and Regular Expressions, which is why it is targeted only for newer versions of Delphi (XE and XE2).&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gloegg.blogspot.com/feeds/3823392572100978636/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1874838794281078062/3823392572100978636?isPopup=true' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/3823392572100978636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/3823392572100978636'/><link rel='alternate' type='text/html' href='http://gloegg.blogspot.com/2012/02/delphi-and-json.html' title='Delphi and JSON'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07768182341129431497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1874838794281078062.post-3175523298405659152</id><published>2011-10-23T10:43:00.000+02:00</published><updated>2011-10-23T14:45:13.603+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Der Entwickler"/><category scheme="http://www.blogger.com/atom/ns#" term="The Developer"/><title type='text'>Delphi and RTTI / Class Helper</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
In many of my applications I have some data-objects which look something like this:
&lt;br /&gt;
&lt;pre class=&quot;brush:delphi&quot;&gt;type
  TMyObject = class
  private
    fInt: integer;
    fDouble: double;
    fBool: boolean;
  public
    property IntegerProp : integer read fInt write fInt;
    property DoubleProp : double read fDouble write fDouble;
    property BoolProp : boolean read fBool write fBool;
  end;&lt;/pre&gt;
Writing a SaveToFile and LoadFromFile for each is tedious work and if I change the object I have to change the two procedures as well. With Delphis support for RTTI and class helpers we can get rid of the tedious work.
I am using a class helper for TObject, so technically its possible to do this with every object.

&lt;br /&gt;
&lt;pre class=&quot;brush:delphi&quot;&gt;  TSerialHelper = class helper for TObject
  private
    function isPublicProperty(aProperty : TRttiProperty): boolean;
  public
    function Serialize(aHumanreadable : boolean = true) : string;
    procedure Deserialize(const text : string);
  end;&lt;/pre&gt;
And here is the implementation:

&lt;br /&gt;
&lt;pre class=&quot;brush:delphi&quot;&gt;function TSerialHelper.Serialize(aHumanreadable : boolean = true): string;
var
  context : TRttiContext;
  typ : TRttiType;
  prop : TRttiProperty;
  soJSON : ISuperObject;
  value : TValue;
begin
  context := TRttiContext.Create;
  try
    typ := context.GetType(self.ClassType);
    soJSON := SO; // Get Superobject Interface
    for prop in typ.GetProperties do
    begin
      if isPublicProperty(prop) and prop.IsWritable then
      begin
        value := prop.GetValue(self);
        case value.Kind of
          tkInteger, tkInt64 :
            soJSON.I[prop.Name] := value.AsInteger;
          tkEnumeration:
            if value.IsType&amp;lt;boolean&amp;gt; then
              soJSON.B[prop.Name] := value.AsBoolean;
          tkFloat:
            soJSON.D[prop.Name] := value.AsExtended;
          tkChar, tkString, tkWChar, tkLString, tkWString, tkUString:
            soJSON.S[prop.Name] := value.AsString;
        end;
      end;
    end;
    result := soJSON.AsJSon(aHumanreadable);
  finally
    context.Free;
  end;
end;

procedure TSerialHelper.Deserialize(const text: string);
var
  context : TRttiContext;
  typ : TRttiType;
  prop : TRttiProperty;
  soJSON : ISuperObject;
begin
  context := TRttiContext.Create;
  try
    soJSON := SO(text); // Init the Superobject Interface
    typ := context.GetType(self.ClassType);
    for prop in typ.GetProperties do
    begin
      if isPublicProperty(prop) and prop.IsWritable then
      begin
        case prop.PropertyType.TypeKind of
          tkInteger, tkInt64 :
            prop.SetValue(self, TValue.From&amp;lt;int64&amp;gt;(soJSON.I[prop.Name]));
          tkEnumeration:
            if prop.GetValue(self).IsType&amp;lt;boolean&amp;gt; then
              prop.SetValue(self, TValue.From&amp;lt;boolean&amp;gt;(soJSON.B[prop.Name]));
          tkFloat:
            prop.SetValue(self, TValue.From&amp;lt;double&amp;gt;(soJSON.D[prop.Name]));
          tkChar, tkString, tkWChar, tkLString, tkWString, tkUString:
            prop.SetValue(self, TValue.From&amp;lt;string&amp;gt;(soJSON.S[prop.Name]));
        end;
      end;
    end;
  finally
    context.Free;
  end;
end;

function TSerialHelper.isPublicProperty(aProperty: TRttiProperty): boolean;
begin
  result := aProperty.Visibility in [mvPublic, mvPublished];
end;&lt;/pre&gt;
It is not finished, since it can&#39;t serialize sets, arrays or childobjects, but so far it works for simple objects.&lt;br /&gt;
&lt;br /&gt;
You can download the unit &lt;a href=&quot;http://dl.gl%c3%b6gg.de/delphi/uSerialHelper.pas&quot;&gt;here&lt;/a&gt;.&lt;br /&gt;
This unit uses the &lt;a href=&quot;http://www.progdigy.com/?page_id=6&quot;&gt;SuperObject&lt;/a&gt; by Henri Gourvest&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gloegg.blogspot.com/feeds/3175523298405659152/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1874838794281078062/3175523298405659152?isPopup=true' title='3 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/3175523298405659152'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/3175523298405659152'/><link rel='alternate' type='text/html' href='http://gloegg.blogspot.com/2011/10/delphi-and-rtti-class-helper.html' title='Delphi and RTTI / Class Helper'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07768182341129431497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1874838794281078062.post-3842925987881794324</id><published>2011-07-24T21:41:00.000+02:00</published><updated>2011-07-24T21:41:50.538+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Der Entwickler"/><category scheme="http://www.blogger.com/atom/ns#" term="The Developer"/><title type='text'>Delphi and TPropertyObserver</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;In Delphi you can use RTTI (RunTime Type Information) to get information about objects at runtime without knowing about them at compile time. To find out more about RTTI, you should check out these &lt;a href=&quot;http://robstechcorner.blogspot.com/2009/09/so-what-is-rtti-rtti-is-acronym-for-run.html&quot;&gt;articles&lt;/a&gt; by Robert Love.&lt;br /&gt;
&lt;br /&gt;
I used the RTTI to make an observer, that informs me, whenever a specific property gets changed. It is far from being complete, there are a lot of TypeKinds that I didn&#39;t implement a compare for. The observer could also be extended to support multiple properties.&lt;br /&gt;
&lt;pre class=&quot;brush:delphi&quot;&gt;uses
  Rtti, Classes;

type
  TProc = reference to procedure;
  TPropertyObserver = class
  private
    fTerminated : boolean;
  public
    constructor Create(aInstance : TObject; aPropertyName : string; aOnChange : TProc);
    procedure Terminate;
  end;

implementation

uses
  SysUtils, TypInfo;

{ TPropertyObserver }

constructor TPropertyObserver.Create(aInstance: TObject; aPropertyName: string; aOnChange : TProc);
begin
  TThread.CreateAnonymousThread(procedure
  var
    ctx : TRttiContext;
    t : TRttiType;
    oldValue, curValue : TValue;
    b : boolean;
    p : TRttiProperty;
  begin
    ctx := TRttiContext.Create;
    try
      t := ctx.GetType(aInstance.ClassType);
      p := t.GetProperty(aPropertyName);
      oldValue := p.GetValue(aInstance);
      while not fTerminated do
      begin
        curValue := p.GetValue(aInstance);
        b := false;
        case curValue.Kind of
          tkInt64,
          tkEnumeration,
          tkInteger: b := oldValue.AsOrdinal = curValue.AsOrdinal;
          tkWChar,
          tkLString,
          tkWString,
          tkString,
          tkUString,
          tkChar: b := oldValue.AsString = curValue.AsString;
          tkFloat: b := oldValue.AsExtended = curValue.AsExtended;
          // Some of these should get a compare, too
          tkUnknown: ;
          tkSet: ;
          tkClass: ;
          tkMethod: ;
          tkVariant: ;
          tkArray: ;
          tkRecord: ;
          tkInterface: ;
          tkDynArray: ;
          tkClassRef: ;
          tkPointer: ;
          tkProcedure: ;
        end;
        if not b then
        begin
          aOnChange;
          oldValue := curValue;
        end;
        sleep(10);
      end;
      finally
      ctx.Free;
    end;
  end).Start;
end;

procedure TPropertyObserver.Terminate;
begin
  fTerminated := true;
end;&lt;/pre&gt;&lt;br /&gt;
And how it is used:&lt;br /&gt;
&lt;pre class=&quot;brush:delphi&quot;&gt;procedure TForm1.FormCreate(Sender: TObject);
begin
  fObserver := TPropertyObserver.Create(self,&#39;Left&#39;,procedure
  begin
    TThread.Synchronize(TThread.CurrentThread,procedure // Changing the VCL has to be done in the main thread
    begin
      edit1.Text := IntToStr(self.Left);
    end);
  end);
end;&lt;/pre&gt;&lt;br /&gt;
Download is available &lt;a href=&quot;http://dl.glögg.de/delphi/uPropertyObserver.pas&quot;&gt;here&lt;/a&gt;.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gloegg.blogspot.com/feeds/3842925987881794324/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1874838794281078062/3842925987881794324?isPopup=true' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/3842925987881794324'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/3842925987881794324'/><link rel='alternate' type='text/html' href='http://gloegg.blogspot.com/2011/07/delphi-and-tpropertyobserver.html' title='Delphi and TPropertyObserver'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07768182341129431497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1874838794281078062.post-2209840880690850566</id><published>2011-07-17T18:36:00.000+02:00</published><updated>2011-07-17T18:36:26.052+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Der Entwickler"/><category scheme="http://www.blogger.com/atom/ns#" term="The Developer"/><title type='text'>Delphi and TAppSettings</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;Delphi has had Inifle-Support for as long as I can remember. Inifiles are great for storing Application- and Usersettings, but I found myself doing the same things in each Application I wrote. Retrieve an appropiate directory for storing the actual file, creating and freeing the TInifile-Object.&lt;br /&gt;
I wanted something that I can just add to my project to store and retrieve simple values in a TInifile-like manner. Here is the result: TAppSettings. It relies on the &lt;a href=&quot;http://gloegg.blogspot.com/2011/06/delphi-and-geocoding.html&quot;&gt;aforementioned&lt;/a&gt; JSON-Library &quot;&lt;a href=&quot;http://sourceforge.net/projects/is-webstart/&quot;&gt;Delphi Web Utils&lt;/a&gt;&quot;.&lt;br /&gt;
&lt;pre class=&quot;brush:delphi&quot;&gt;type
  TAppSettings = class
  protected
    fFilename : string;
    fSaveOnFree: boolean;
    fSettings : TJSONObject;
    function createOrGetSection(aSection : string) : TJSONObject;
  public
    constructor Create(aFilename : string);
    destructor Destroy; override;
    procedure Save;

    function getInteger(aSection, aKey : string; aDefault : integer) : integer;
    function getString(aSection, aKey : string; aDefault : string) : string;
    function getFloat(aSection, aKey : string; aDefault : double ) : double;
    function getBool(aSection, aKey : string; aDefault : boolean) : boolean;

    procedure setValue(aSection, aKey : string; aValue : integer); overload;
    procedure setValue(aSection, aKey : string; aValue : string); overload;
    procedure setValue(aSection, aKey : string; aValue : double); overload;
    procedure setValue(aSection, aKey : string; aValue : boolean); overload;

    property SaveOnFree : boolean read fSaveOnFree write fSaveOnFree;
    procedure OpenPathInExplorer;
  end;&lt;/pre&gt;&lt;br /&gt;
As an example the getter and setter for integer:&lt;br /&gt;
&lt;pre class=&quot;brush:delphi&quot;&gt;function TAppSettings.getInteger(aSection, aKey: string;
  aDefault: integer): integer;
var
  section : TJSONObject;
begin
  result := aDefault;
  section := fSettings.optJSONObject(aSection);
  if section &lt;&gt; nil then result := section.optInt(aKey);
end;

function TAppSettings.createOrGetSection(aSection: string): TJSONObject;
begin
  result := fSettings.optJSONObject(aSection);
  if result = nil then
  begin
    result := TJSONObject.create;
    fSettings.put(aSection,result);
  end;
end;

procedure TAppSettings.setValue(aSection, aKey: string; aValue: integer);
var
  section : TJSONObject;
begin
  section := createOrGetSection(aSection);
  section.put(aKey, aValue);
end;&lt;/pre&gt;&lt;br /&gt;
This alone doesn&#39;t help with the initial problem, it just changes the format of the file. The interesting part is at the bottom of the unit.&lt;br /&gt;
&lt;pre class=&quot;brush:delphi&quot;&gt;interface

const
  COMPANY_NAME = &#39;MyCompany&#39;;

[...]

var
  AppSettings, UserSettings : TAppSettings;

[...]

function GetSpecialFolder(Folder: Integer): String;
var
  Path: array[0..MAX_PATH] of char;
begin
  If SHGetSpecialFolderPath(0, @Path, Folder, false)
    then Result:=Path
    else Result:=&#39;&#39;;
end;

function GetApplicationName : string;
begin
  result := ExtractFilename(ParamStr(0));
  delete(result,length(result)-3,4);
end;

initialization
begin
  ForceDirectories(GetSpecialFolder(CSIDL_COMMON_APPDATA)+&#39;\&#39;+COMPANY_NAME+&#39;\&#39;+GetApplicationName);
  ForceDirectories(GetSpecialFolder(CSIDL_APPDATA)+&#39;\&#39;+COMPANY_NAME+&#39;\&#39;+GetApplicationName);
  AppSettings := TAppSettings.Create(GetSpecialFolder(CSIDL_COMMON_APPDATA)+&#39;\&#39;+COMPANY_NAME+&#39;\&#39;+GetApplicationName+&#39;\settings.json&#39;);
  UserSettings := TAppSettings.Create(GetSpecialFolder(CSIDL_APPDATA)+&#39;\&#39;+COMPANY_NAME+&#39;\&#39;+GetApplicationName+&#39;\settings.json&#39;);
end;

finalization
begin
  AppSettings.Free;
  UserSettings.Free;
end;&lt;/pre&gt;&lt;br /&gt;
Adding this unit to your project automatically creates two Objects of TAppSettings, one for UserSettings and one for ApplicationSettings. Before I wrote TAppSettings I always had two procedures &quot;LoadIni&quot; and &quot;SaveIni&quot; in my application where I would load and save all my application settings, because that were the only places I could access the settings. Now I just use the settings wherever I need them.&lt;br /&gt;
&lt;br /&gt;
You can download the complete unit &lt;a href=&quot;http://dl.glögg.de/delphi/uAppSettings.pas&quot;&gt;here&lt;/a&gt;.&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gloegg.blogspot.com/feeds/2209840880690850566/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1874838794281078062/2209840880690850566?isPopup=true' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/2209840880690850566'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/2209840880690850566'/><link rel='alternate' type='text/html' href='http://gloegg.blogspot.com/2011/07/delphi-and-tappsettings.html' title='Delphi and TAppSettings'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07768182341129431497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1874838794281078062.post-3240230593938048384</id><published>2011-07-09T17:20:00.002+02:00</published><updated>2011-07-10T11:08:02.154+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Der Entwickler"/><category scheme="http://www.blogger.com/atom/ns#" term="The Developer"/><title type='text'>Delphi and TTaskList</title><content type='html'>I was reading about some of the new features in Delphi XE in the new book from &lt;a href=&quot;https://plus.google.com/109099686252303180605/posts&quot;&gt;Marco Cantu&lt;/a&gt;, &lt;a href=&quot;http://www.amazon.de/Delphi-Xe-Handbook-Guide-Features/dp/1463600674/ref=sr_1_1?ie=UTF8&amp;amp;s=books-intl-de&amp;amp;qid=1310223426&amp;amp;sr=8-1&quot;&gt;Delphi XE Handbook&lt;/a&gt;. (He also told me about them earlier this year in Frankfurt on the Delphi Developer Days, but I didn&#39;t found time to play around with it until now)&lt;br /&gt;
The newest Delphi comes with anonymous Threads, which are a very easy way to make your application multithreaded, which is very useful to make some big calculations in the background, while the UI is still responding. However, sometimes you need things to be done in order. Enter TTasklist:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush:delphi&quot;&gt;type
  TProc = reference to procedure;
  TTaskList = class
  private
    fTasks : TThreadedQueue&amp;lt;TProc&amp;gt;;
    fTerminated : boolean;
    procedure start;
  public
    constructor Create;
    destructor Destroy; override;
    procedure addTask(aTask : TProc);
    procedure Terminate;
  end;&lt;/pre&gt;&lt;br /&gt;
TTaskList uses a ThreadSafe Queue to store the tasks, which are basically anonymous methods. The constructor creates the queue and starts a new thread which executes one task after another.&lt;br /&gt;
&lt;pre class=&quot;brush:delphi&quot;&gt;constructor TTaskList.Create;
begin
  fTasks := TThreadedQueue&amp;lt;TProc&amp;gt;.Create;
  fTerminated := false;
  start;
end;

procedure TTaskList.addTask(aTask: TProc);
begin
  fTasks.PushItem(aTask);
end;

procedure TTaskList.start;
begin
  TThread.CreateAnonymousThread(
  procedure
  begin
    while not fTerminated do
    begin
      if fTasks.QueueSize &gt; 0 then fTasks.PopItem.Invoke;
    end;
  end
  ).Start;
end;

procedure TTaskList.Terminate;
begin
  fTerminated := true;
end;

destructor TTaskList.Destroy;
begin
  Terminate;
  fTasks.Free;
  inherited;
end;&lt;/pre&gt;&lt;br /&gt;
Download is available &lt;a href=&quot;http://dl.gl%c3%b6gg.de/delphi/uTaskList.pas&quot;&gt;here&lt;/a&gt;.</content><link rel='replies' type='application/atom+xml' href='http://gloegg.blogspot.com/feeds/3240230593938048384/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1874838794281078062/3240230593938048384?isPopup=true' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/3240230593938048384'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/3240230593938048384'/><link rel='alternate' type='text/html' href='http://gloegg.blogspot.com/2011/07/delphi-and-ttasklist.html' title='Delphi and TTaskList'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07768182341129431497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>Unbekannter Ort.</georss:featurename><georss:point>52.036442273206845 8.565216064453125</georss:point><georss:box>51.958299773206846 8.4072875644531244 52.114584773206843 8.7231445644531256</georss:box></entry><entry><id>tag:blogger.com,1999:blog-1874838794281078062.post-6838905916386965546</id><published>2011-06-19T11:21:00.000+02:00</published><updated>2011-06-19T11:21:19.581+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Der Entwickler"/><category scheme="http://www.blogger.com/atom/ns#" term="The Developer"/><title type='text'>Delphi and Geocoding</title><content type='html'>&lt;div style=&quot;text-align:justify&quot;&gt;Google has some powerful APIs. One of them is the Maps API which is capable of geocoding an address to longitude and latitude information.&lt;br /&gt;
&lt;br /&gt;
It is pretty easy to use this functionality from Delphi. All you need is TIdHttp and a &lt;a href=&quot;http://json.org/&quot;&gt;JSON&lt;/a&gt; library. (I&#39;m using the &lt;a href=&quot;http://sourceforge.net/projects/is-webstart/&quot;&gt;Delphi Web Utils&lt;/a&gt;)&lt;br /&gt;
&lt;pre class=&quot;brush:delphi&quot;&gt;TLocationType = (ltRooftop, ltRangeInterpolated, ltGeometricCenter, ltApproximate);
  TAddress = class
  private
    fAddress : string;
    fLatitude: double;
    fLongitude: double;
    fLocationType: TLocationType;
  public
    constructor Create(aAddress : string; aHttp : TIdHttp = nil);
    property Address : string read fAddress write fAddress;
    property Latitude : double read fLatitude;
    property Longitude : double read fLongitude;
    property LocationType : TLocationType read fLocationType;
    procedure Geocode(aHttp : TIdHttp);
  end;&lt;/pre&gt;&lt;br /&gt;
The Google API returns a JSON structure with a couple of fields. However, I just grab the longitude and latitude information as well as the location_type, to determine the quality of the coordinates.&lt;br /&gt;
&lt;pre class=&quot;brush:delphi&quot;&gt;procedure TAddress.GeoCode(aHttp: TIdHttp);
var
  url : string;
  jo, location, geometry : TJSONObject;
  sc : TStringCase;
begin
  url := TIdURI.URLEncode(&#39;http://maps.google.com/maps/api/geocode/json?address=&#39;+fAddress+&#39;&amp;sensor=false&#39;);
  jo := TJSONObject.create(aHttp.Get(url));
  if jo.getString(&#39;status&#39;) = &#39;OK&#39; then
  begin
    geometry := jo.getJSONArray(&#39;results&#39;).getJSONObject(0).getJSONObject(&#39;geometry&#39;);
    location := geometry.getJSONObject(&#39;location&#39;);
    fLongitude := location.getDouble(&#39;lng&#39;);
    fLatitude := location.getDouble(&#39;lat&#39;);

    sc := TStringCase.Create;
    try
      sc.addEntry(&#39;ROOFTOP&#39;,procedure
      begin
        fLocationType := ltRooftop;
      end);
      sc.addEntry(&#39;RANGE_INTERPOLATED&#39;,procedure
      begin
        fLocationType := ltRangeInterpolated;
      end);
      sc.addEntry(&#39;GEOMETRIC_CENTER&#39;,procedure
      begin
        fLocationType := ltGeometricCenter;
      end);
      sc.addEntry(&#39;APPROXIMATE&#39;,procedure
      begin
        fLocationType := ltApproximate;
      end);
    finally
      sc.switch(geometry.getString(&#39;location_type&#39;));
    end;
    sc.Free;
  end
  else raise Exception.Create(jo.getString(&#39;status&#39;));
  jo.Free;
end;
&lt;/pre&gt;&lt;br /&gt;
I used this and &lt;a href=&quot;http://www.martinzone.biz/tgomaps/overview.html&quot;&gt;TGoMaps&lt;/a&gt; to create a simple application which takes a list of addresses, geocodes them and displays them on a GoogleMap.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzlNwA80hscEs9ghyphenhyphenmvvnr-XyQPv_vm6WkBvYh5eZ5rZotlyZBeBMTO6uIH9YQQaRD94XkfoYX6EQh-_-Cn16K3ISa1RGG3sQ2RH8CQK6hln958ku516x5jMVRoPOdJWGbkz1J9tUs1n8/s1600/geocode.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;250&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzlNwA80hscEs9ghyphenhyphenmvvnr-XyQPv_vm6WkBvYh5eZ5rZotlyZBeBMTO6uIH9YQQaRD94XkfoYX6EQh-_-Cn16K3ISa1RGG3sQ2RH8CQK6hln958ku516x5jMVRoPOdJWGbkz1J9tUs1n8/s400/geocode.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Source and binary are available &lt;a href=&quot;http://dl.glögg.de/delphi/Geocode/&quot;&gt;here&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
TAddress uses TStringCase from the &lt;a href=&quot;http://gloegg.blogspot.com/2011/06/delphi-and-tstringcase.html&quot;&gt;previous post&lt;/a&gt;.&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gloegg.blogspot.com/feeds/6838905916386965546/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1874838794281078062/6838905916386965546?isPopup=true' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/6838905916386965546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/6838905916386965546'/><link rel='alternate' type='text/html' href='http://gloegg.blogspot.com/2011/06/delphi-and-geocoding.html' title='Delphi and Geocoding'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07768182341129431497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzlNwA80hscEs9ghyphenhyphenmvvnr-XyQPv_vm6WkBvYh5eZ5rZotlyZBeBMTO6uIH9YQQaRD94XkfoYX6EQh-_-Cn16K3ISa1RGG3sQ2RH8CQK6hln958ku516x5jMVRoPOdJWGbkz1J9tUs1n8/s72-c/geocode.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1874838794281078062.post-8055658872110124155</id><published>2011-06-18T21:00:00.000+02:00</published><updated>2011-06-18T21:00:30.849+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Der Entwickler"/><category scheme="http://www.blogger.com/atom/ns#" term="The Developer"/><title type='text'>Delphi and TStringCase</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;Delphi&#39;s Case &amp;lt;X&amp;gt; of statement works with everything that is Ordinal. integer, char, enumerations, it even works with boolean.&lt;br /&gt;
&lt;pre class=&quot;brush:delphi&quot;&gt;case b of
  true : MakeSomething;
  false : DoNotMakeSomething;
end;&lt;/pre&gt;&lt;br /&gt;
However, it does not work with strings. And I&#39;ve come across some places where it would be very handy to have a Case &amp;lt;String&amp;gt; of.&lt;br /&gt;
&lt;br /&gt;
Luckily, with Delphi 2010 came &lt;a href=&quot;http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/devcommon/anonymousmethods_xml.html&quot;&gt;anonymous methods&lt;/a&gt; and with the combination of a Dictionary we can finally have something that works as a Case &amp;lt;String&amp;gt; of.&lt;br /&gt;
&lt;pre class=&quot;brush:delphi&quot;&gt;type
  TProc = reference to procedure;
  TCase&amp;lt;T&amp;gt; = class
  private
    fDict : TDictionary&amp;lt;T,TProc&amp;gt;;
    fElse: TProc;
  public
    constructor Create;
    destructor Destroy; override;
    procedure addEntry(aKey : T; aProc :TProc);
    procedure addEntries(const aKeys : array of T; aProc : TProc);
    procedure switch(aKey : T);
    property ElseCase : TProc read fElse write fElse;
  end;
  TStringCase = TCase&amp;lt;string&amp;gt;;
&lt;/pre&gt;&lt;br /&gt;
TStringCase is the type, that will be used the most, but with the generic TCase, (almost) everything can be used for a Case statement.&lt;br /&gt;
&lt;br /&gt;
The implementation is very simple:&lt;br /&gt;
&lt;pre class=&quot;brush:delphi&quot;&gt;procedure TCase&amp;lt;T&amp;gt;.addEntries(const aKeys: array of T; aProc: TProc);
var
  key : T;
begin
  for key in aKeys do
    addEntry(key,aProc);
end;

procedure TCase&amp;lt;T&amp;gt;.addEntry(aKey: T; aProc: TProc);
begin
  fDict.Add(aKey, aProc);
end;

constructor TCase&amp;lt;T&amp;gt;.Create;
begin
  fDict := TDictionary&amp;lt;T,TProc&amp;gt;.Create;
end;

destructor TCase&amp;lt;T&amp;gt;.Destroy;
begin
  fDict.Free;
  inherited;
end;

procedure TCase&amp;lt;T&amp;gt;.switch(aKey: T);
var
  p : TProc;
begin
  if fDict.TryGetValue(aKey, p) then
    p()
  else
    if assigned(fElse) then fElse();
end;&lt;/pre&gt;&lt;br /&gt;
And this is how it&#39;s used:&lt;br /&gt;
&lt;pre class=&quot;brush:delphi&quot;&gt;procedure UseStringCase;
var
  sc : TStringCase;
begin
  sc :=TStringCase.Create;
  try
    // setup the case
    sc.addEntry(&#39;STRING1&#39;,procedure
    begin
      Label1.Caption := &#39;First Option&#39;;
    end);

    sc.addEntry(&#39;STRING1&#39;,procedure
    begin
      Label1.Caption := &#39;Second Option&#39;;
    end);

    sc.addEntries([&#39;STRING3&#39;,&#39;STRING4&#39;,&#39;STRING5&#39;],procedure
    begin
      Label1.Caption := &#39;one of three options&#39;;
    end);

    sc.ElseProc := procedure
    begin
      Label1.Caption := &#39;Something else&#39;;
    end;

    sc.switch(Edit1.Text); // execute the right procedure
  finally
    sc.Free;
  end;

end;&lt;/pre&gt;&lt;br /&gt;
The usage has some overhead compared to the standard case, but I think it is still prettier than a bunch of if-then-else&#39;s.&lt;br /&gt;
&lt;pre class=&quot;brush:delphi&quot;&gt;procedure UseIfThenElse;
var
  s : string;
begin
  s := Edit1.Text;
  if s = &#39;STRING1&#39; then
  begin
    Label1.Caption := &#39;First Option&#39;;
  end
  else if s = &#39;STRING2&#39; then
  begin
    Label1.Caption := &#39;Second Option&#39;;
  end
  else if (s = &#39;STRING3&#39;) or (s = &#39;STRING4&#39;) or (s = &#39;STRING5&#39;) then
  begin
    Label1.Caption := &#39;one of three options&#39;;
  end
  else
  begin
    Label1.Caption := &#39;Something else&#39;;
  end;
end;&lt;/pre&gt;&lt;br /&gt;
Download is available &lt;a href=&quot;http://dl.glögg.de/delphi/uStringCase.pas&quot;&gt;here&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gloegg.blogspot.com/feeds/8055658872110124155/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1874838794281078062/8055658872110124155?isPopup=true' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/8055658872110124155'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/8055658872110124155'/><link rel='alternate' type='text/html' href='http://gloegg.blogspot.com/2011/06/delphi-and-tstringcase.html' title='Delphi and TStringCase'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07768182341129431497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1874838794281078062.post-4424026932488840691</id><published>2011-06-13T14:02:00.001+02:00</published><updated>2011-06-19T11:28:28.739+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Der Entwickler"/><category scheme="http://www.blogger.com/atom/ns#" term="The Developer"/><title type='text'>Delphi and Barcode scanning</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;Todays example uses a dll to access a Barcode Scanner. The used Barcode Scanner is the &lt;a href=&quot;http://www.motorola.com/business/v/index.jsp?vgnextoid=11607b103d175110VgnVCM1000008406b00aRCRD&quot;&gt;CS1504&lt;/a&gt; (SDK available &lt;a href=&quot;http://support.symbol.com/support/search.do?cmd=displayKC&amp;amp;docType=kc&amp;amp;externalId=KB100331&amp;amp;sliceId=&amp;amp;dialogID=235274197&amp;amp;stateId=1%200%20235264657&quot;&gt;here&lt;/a&gt;).&lt;br /&gt;
&lt;br /&gt;
The CS1504 has a buffer where it stores all scanned barcodes and this buffer can be accessed via a COM-Port. Luckily, the SDK has a dll which takes care of the communication. The only problem is, that the header is written in C/C++. I translated it (in parts) to Delphi, you can grab the file &lt;a href=&quot;http://dl.gl%c3%b6gg.de/delphi/uCSP2.pas&quot;&gt;here&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Now we could just use it as is, but it would be much nicer if we had a class to wrap it all up.&lt;br /&gt;
&lt;br /&gt;
We need some object to store the data, which is really simple:&lt;br /&gt;
&lt;pre class=&quot;brush:delphi&quot;&gt;TBarcode = class
  private
    fTimestamp : TDateTime;
    fCode : string;
  public
    constructor Create(aTimestamp : TDateTime; aCode : string);
    property TimeStamp : TDateTime read fTimestamp;
    property Code : string read fCode;
  end;&lt;/pre&gt;&lt;br /&gt;
And now the class that does all the work: &lt;br /&gt;
&lt;pre class=&quot;brush:delphi&quot;&gt;TScanner = class
  private
    fPort : integer;
    fReady : boolean;
    fHasData: boolean;
    function TimestampToDateTime(aTimestamp : Ansistring) : TDateTime;
  public
    constructor Create(aPort : integer);
    destructor Destroy; override;
    function getBarcodes : TList&amp;lt;TBarcode&amp;gt;;
    procedure clearBarcodes;
    property IsReady : boolean read fReady;
    property HasData : boolean read fHasData;
    procedure setDateTime(aDateTime : TDateTime);
    function getDateTime : TDateTime;
  end;&lt;/pre&gt;&lt;br /&gt;
The TScanner class returns a generic TList&amp;lt;TBarcode&amp;gt; with all the Barcodes from the device. &lt;br /&gt;
&lt;br /&gt;
The most important function is of course getBarcodes.&lt;br /&gt;
&lt;pre class=&quot;brush:delphi&quot;&gt;function TScanner.getBarcodes: TList&amp;lt;TBarcode&amp;gt;;
var
  bc : TBarcode;
  i, count, pl : integer;
  buffer : array[0..63] of AnsiChar;
  dt : TDateTime;
  s : string;
begin
  result := TList&amp;lt;TBarcode&amp;gt;.Create;
  begin
    count := csp2ReadData;
    for i := 0 to count -1 do
    begin
      FillChar(buffer,64,#0);
      pl := csp2GetPacket(@buffer,i,63);

      // The Last 4 Bytes hold the timestamp
      dt := TimestampToDateTime(copy(buffer,pl-3,4));

      s := copy(buffer,3,pl-6);
      bc := TBarcode.Create(dt,s);
      result.Add(bc);
    end;
  end;
end;&lt;/pre&gt;&lt;br /&gt;
The implementation is pretty much straight forward, the trickiest part was to convert the 4-byte timestamp from each barcode to TDateTime. They crammed the six values for year, month, day, hour, minute and second into 4 bytes. (seriously, a SD Card that has the size of my fingernail can hold easily 4 GB and they worry about 2 bytes per scanned barcode)&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhn6kN6-7u1z91hLhVZamwAQaX4zTC8mpZsjIijodIL3OS02VxITgmShblkiZAgzDwKpgdK425-3LldRIctwnYhD2pqjPLQ4IdtmIete0DCpI3eM9N2PnyJCXbfJUAWwOV9IQ3kCM5Pk1o/s1600/4_byte_date.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;35&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhn6kN6-7u1z91hLhVZamwAQaX4zTC8mpZsjIijodIL3OS02VxITgmShblkiZAgzDwKpgdK425-3LldRIctwnYhD2pqjPLQ4IdtmIete0DCpI3eM9N2PnyJCXbfJUAWwOV9IQ3kCM5Pk1o/s400/4_byte_date.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;pre class=&quot;brush:delphi&quot;&gt;function TScanner.TimestampToDateTime(aTimestamp: Ansistring): TDateTime;
var
  i1,i2,i3,i4,i5,i6 : integer;
  qb : T4Bytes;
  y,m,d,h,n,s : word;
begin
  // CharToByte
  qb.Bytes[3] := Ord(aTimestamp[1]);
  qb.Bytes[2] := Ord(aTimestamp[2]);
  qb.Bytes[1] := Ord(aTimestamp[3]);
  qb.Bytes[0] := Ord(aTimestamp[4]);

  // split up the bits
  i1 := qb.Total and $fc000000; // 6 Bit
  i2 := qb.Total and $03f00000; // 6 Bit
  i3 := qb.Total and $000f8000; // 5 Bit
  i4 := qb.Total and $00007c00; // 5 Bit
  i5 := qb.Total and $000003c0; // 4 Bit
  i6 := qb.Total and $0000003f; // 6 Bit

  // Shift right to align the bits
  s := i1 shr 26;
  n := i2 shr 20;
  h := i3 shr 15;
  d := i4 shr 10;
  m := i5 shr 6;
  y := i6;

  result := EncodeDate(y+2000,m,d) + EncodeTime(h,n,s,0);
end;&lt;/pre&gt;&lt;br /&gt;
This uses T4Bytes which is a packed record.&lt;br /&gt;
&lt;pre class=&quot;brush:delphi&quot;&gt;T4Bytes = packed record
   case Integer of
    0: (Bytes: array[0..3] of Byte);
    1: (Total: Cardinal);
  end;&lt;/pre&gt;&lt;br /&gt;
The bytes are accessible indivudually and as the resulting 4-Byte Cardinal.&lt;br /&gt;
&lt;br /&gt;
Full Sourcecode is available &lt;a href=&quot;http://dl.gl%c3%b6gg.de/delphi/uScanner.pas&quot;&gt;here&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gloegg.blogspot.com/feeds/4424026932488840691/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1874838794281078062/4424026932488840691?isPopup=true' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/4424026932488840691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/4424026932488840691'/><link rel='alternate' type='text/html' href='http://gloegg.blogspot.com/2011/06/delphi-and-barcode-scanning.html' title='Delphi and Barcode scanning'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07768182341129431497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhn6kN6-7u1z91hLhVZamwAQaX4zTC8mpZsjIijodIL3OS02VxITgmShblkiZAgzDwKpgdK425-3LldRIctwnYhD2pqjPLQ4IdtmIete0DCpI3eM9N2PnyJCXbfJUAWwOV9IQ3kCM5Pk1o/s72-c/4_byte_date.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1874838794281078062.post-43917616363130910</id><published>2011-06-13T00:44:00.000+02:00</published><updated>2011-06-13T00:44:23.622+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Der Entwickler"/><category scheme="http://www.blogger.com/atom/ns#" term="The Developer"/><title type='text'>Delphi and Generics</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;In this first developer-themed post, I am going to describe some basic stuff, before I delve into some real-world applications.&lt;br /&gt;
&lt;br /&gt;
Delphi 2009 brought Generics to the Delphi-World. And since then, they are found in all of my Applications. Especially Generics.Collections are heavily used by me.&lt;br /&gt;
&lt;br /&gt;
Before Generics.Collections I had to implement a TList for each Class I would like to store a variable amount of Objects. (Or I could use Contnrs.TObjectList and cast to TAnimal everytime I need one, but I don&#39;t find that very desirable)&lt;br /&gt;
&lt;pre class=&quot;brush:delphi&quot;&gt;interface

uses
  Classes;

type
  TAnimal = class
  private
    fName : string;
  public
    property Name : string read fName write fName;
  end;
  
  TAnimalList = class (TList)
  private
  procedure putAnimal(Index : integer; Value : TAnimal);
  function getAnimal(Index : integer) : TAnimal;
  public  
    property Items [Index : integer] : TAnimal read getAnimal write setAnimal;
  end;
  
implementation

procedure TAnimalList.putAnimal(Index : integer; Value : TAnimal);
begin
  inherited put(Index, Value);
end;

function TAnimalList.getAnimal(Index : integer) : TAnimal;
begin
  result := (TAnimal) inherited get(Index);
end;&lt;/pre&gt;&lt;br /&gt;
And this is just for TAnimal, if there are any other classes, I would have to copy&amp;amp;paste the code for the List and replace the data types.&lt;br /&gt;
&lt;br /&gt;
With Generics.Collections the same thing looks like this:&lt;br /&gt;
&lt;pre class=&quot;brush:delphi&quot;&gt;interface

uses
  Generics.Collections;

type
  TAnimal = class
  private
    fName : string;
  public
    property Name : string read fName write fName;
  end;

  TAnimalList = TList&amp;lt;TAnimal&amp;gt;&lt;/pre&gt;&lt;br /&gt;
And I don&#39;t even need the alias &quot;TAnimalList&quot;, I could use &quot;TList&amp;lt;TAnimal&amp;gt&quot; instead.&lt;br /&gt;
&lt;br /&gt;
Also, it is not limited to Classes, it can hold every datatype like integer, double, boolean and even records. In my case it is even better to use TObjectList&amp;lt;TAnimal&amp;gt, which automatically frees its containing objects if it is freed.&lt;br /&gt;
&lt;br /&gt;
Since all the Generics.Collectionshave an Enumerator the following is possible:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush:delphi&quot;&gt;var
  fAnimals : TList&amp;lt;TAnimal&amp;gt;

procedure init;
var
  a : TAnimal;
begin
  for a in fAnimals do
  begin
    a.DoSomething;
  end;
end;&lt;/pre&gt;&lt;br /&gt;
Generics.Collections has more then some simple Lists up its sleeve. There are also TQueue, which uses FIFO and TStack which uses LIFO to store its contents.&lt;br /&gt;
&lt;br /&gt;
TDictionary is a little different, because its taking two type parameters. One for the key, one for the Value.&lt;br /&gt;
A case that I often stumble upon is to store (and recieve) some object or value for a specific string. And then I always use a TDictionary&amp;lt;String,TValue&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There&#39;s also a TObjectDictionary, which takes care of memory of the keys, the values or even both.&lt;br /&gt;
&lt;pre class=&quot;brush:delphi&quot;&gt;procedure init;
var
  ownsKeys, ownsValues, ownsBoth : TObjectDictionary&amp;lt;TKey, TValue&amp;gt;
begin
  ownsKeys := TObjectDictionary&amp;lt;TKey, TValue&amp;gt;.Create([doKeys]);
  ownsValues := TObjectDictionary&amp;lt;TKey, TValue&amp;gt;.Create([doValues]);
  ownsBoth := TObjectDictionary&amp;lt;TKey, TValue&amp;gt;.Create([doKeys, doValues]);
end;&lt;/pre&gt;&lt;br /&gt;
That&#39;s it for today.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gloegg.blogspot.com/feeds/43917616363130910/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1874838794281078062/43917616363130910?isPopup=true' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/43917616363130910'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/43917616363130910'/><link rel='alternate' type='text/html' href='http://gloegg.blogspot.com/2011/06/delphi-and-generics.html' title='Delphi and Generics'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07768182341129431497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1874838794281078062.post-7019935212044287937</id><published>2011-06-12T23:41:00.000+02:00</published><updated>2011-06-12T23:41:36.220+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Der Entwickler"/><category scheme="http://www.blogger.com/atom/ns#" term="The Developer"/><title type='text'>Level Up</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhS6_yl_wwz-obyhvqrEhHomlZd_xIEnTq6omW5dvBrp3Qdyahkxtued0KhH0KxeBAOEEONLlbmf5XebTbI1-CUDTiRhJ4tQbAUPsDS1oXEfcDHGAH0X46AMgBQBH1kOxhsxle62MaWeso/s1600/cert_delphi_dev.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;191&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhS6_yl_wwz-obyhvqrEhHomlZd_xIEnTq6omW5dvBrp3Qdyahkxtued0KhH0KxeBAOEEONLlbmf5XebTbI1-CUDTiRhJ4tQbAUPsDS1oXEfcDHGAH0X46AMgBQBH1kOxhsxle62MaWeso/s400/cert_delphi_dev.png&quot; width=&quot;185&quot; /&gt;&lt;/a&gt;Time for another &lt;a href=&quot;http://gloegg.blogspot.com/2008/05/level-up.html&quot;&gt;Level Up&lt;/a&gt;. In this week I became a &lt;a href=&quot;http://www.embarcadero.com/certification/delphi-developer&quot;&gt;certified Delphi Developer&lt;/a&gt;. There is also the Delphi Master Certification, but since this certification deals a lot with DataSnap, which I have not used very much, I don&#39;t think I&#39;ll take it anytime soon.&lt;br /&gt;
&lt;br /&gt;
I think this is a good opportunity to blog about some techniques I am using in my every day work. Which may help some fellow Delphi Developers, who can learn a thing or two and also give me feedback to improve my work.&lt;br /&gt;
&lt;br /&gt;
For those interested in these kind of posts, you can grab the feed for the &quot;Developer&quot;-Posts right &lt;a href=&quot;http://gloegg.blogspot.com/feeds/posts/default/-/The%20Developer&quot;&gt;here&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gloegg.blogspot.com/feeds/7019935212044287937/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1874838794281078062/7019935212044287937?isPopup=true' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/7019935212044287937'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/7019935212044287937'/><link rel='alternate' type='text/html' href='http://gloegg.blogspot.com/2011/06/level-up.html' title='Level Up'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07768182341129431497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhS6_yl_wwz-obyhvqrEhHomlZd_xIEnTq6omW5dvBrp3Qdyahkxtued0KhH0KxeBAOEEONLlbmf5XebTbI1-CUDTiRhJ4tQbAUPsDS1oXEfcDHGAH0X46AMgBQBH1kOxhsxle62MaWeso/s72-c/cert_delphi_dev.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1874838794281078062.post-3237475623179544452</id><published>2010-11-11T22:20:00.000+01:00</published><updated>2010-11-11T22:20:49.437+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Der Entwickler"/><category scheme="http://www.blogger.com/atom/ns#" term="Der Geek"/><title type='text'>DOSPad</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
Nachdem die guten Leute von &lt;a href=&quot;http://www.dospad.net/forum/&quot;&gt;dospad&lt;/a&gt; ihren Quellcode veröffentlicht haben, konnte ich ohne Jailbreak den &lt;a href=&quot;http://www.dosbox.com/&quot;&gt;DOSBox&lt;/a&gt;-Port fürs iPad installieren. Und das öffnet natürlich eine Reihe von Möglichkeiten. &lt;br /&gt;
Aber ich lass erstmal ein paar Bilder für sich sprechen:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEju5S5_XuCUJkM3FvrtLuBXeDD_dMmRc6DYBYfa9GgbkG3unLiFsHQ6T1p-lHKVtxVpHiY2Zg8iav3YFwZjR_FNGytfmrOFP1BfaIUgVpAbD24IftuOZDB1mqsVXpYTkWR0dYl-ubLOSso/s1600/IMG_0001.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEju5S5_XuCUJkM3FvrtLuBXeDD_dMmRc6DYBYfa9GgbkG3unLiFsHQ6T1p-lHKVtxVpHiY2Zg8iav3YFwZjR_FNGytfmrOFP1BfaIUgVpAbD24IftuOZDB1mqsVXpYTkWR0dYl-ubLOSso/s320/IMG_0001.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;br&gt;Xenon2&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZe8DvdkQ6J8JynFHeBPrYM73B_7RDuzbxPWw8XL8BqemB_jj1-qc6cPfftwfxu2A_kp-RqLiEv4Wts8_1m-xdqZDYZulu4tcIskXp5F1i80d6W1dgpA_jHiXr8kgdKot5232YfVmKPAE/s1600/IMG_0002.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZe8DvdkQ6J8JynFHeBPrYM73B_7RDuzbxPWw8XL8BqemB_jj1-qc6cPfftwfxu2A_kp-RqLiEv4Wts8_1m-xdqZDYZulu4tcIskXp5F1i80d6W1dgpA_jHiXr8kgdKot5232YfVmKPAE/s320/IMG_0002.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;br&gt;Monkey Island 1&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicIllqJFcXHjd0XBYiVSHOqZYDtWL6YSBg6ztcWnZFtzRM-DutUjprDp438NQXuOoazsqyl_mfURtznpQAn9WMlmwKOUvzCVuL7se9Bv_0BkHqmfa2uWkQqx_5Xo8K07kgosU2cih7w_I/s1600/IMG_0003.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicIllqJFcXHjd0XBYiVSHOqZYDtWL6YSBg6ztcWnZFtzRM-DutUjprDp438NQXuOoazsqyl_mfURtznpQAn9WMlmwKOUvzCVuL7se9Bv_0BkHqmfa2uWkQqx_5Xo8K07kgosU2cih7w_I/s320/IMG_0003.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;br&gt;Civilization 1&lt;/div&gt;&lt;br /&gt;
Desweiteren hatte ich noch Crystal Caves, Ascendancy und Doom ausprobiert. Davon läuft aber nur Crystal Caves einigermaßen flüssig. Doom ist unspielbar und Ascendancy mag er garnicht starten.&lt;br /&gt;
&lt;br /&gt;
Wegen der eingeschränkten Tastatur sind Spiele mit hohem Geschicklichkeitsfaktor leider noch schwieriger als sie normalerweise sind. Desweiteren ist es schade, das es den Rechtsklick nicht im Fullscreenmodus gibt. Soweit ich weiß gibt es auch noch keine Unterstützung für externe Tastaturen, die soll aber noch kommen.&lt;br /&gt;
&lt;br /&gt;
Fazit: Als Spielerei ganz nett, aber echte iPhone-Varianten von Spielen sind deutlich einfacher zu handlen.&lt;br /&gt;
&lt;br /&gt;
PS: Als nächstes könnte man mal Win 3.11 probieren...&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gloegg.blogspot.com/feeds/3237475623179544452/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1874838794281078062/3237475623179544452?isPopup=true' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/3237475623179544452'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/3237475623179544452'/><link rel='alternate' type='text/html' href='http://gloegg.blogspot.com/2010/11/dospad.html' title='DOSPad'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07768182341129431497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEju5S5_XuCUJkM3FvrtLuBXeDD_dMmRc6DYBYfa9GgbkG3unLiFsHQ6T1p-lHKVtxVpHiY2Zg8iav3YFwZjR_FNGytfmrOFP1BfaIUgVpAbD24IftuOZDB1mqsVXpYTkWR0dYl-ubLOSso/s72-c/IMG_0001.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1874838794281078062.post-2159318393090800551</id><published>2010-11-08T14:17:00.000+01:00</published><updated>2010-11-08T14:17:30.675+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Der Student"/><title type='text'>Studienbücher</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;Gestern überkam es mich und ich habe tatsächlich mein Bücherregal aufgeräumt. Und schweren Herzens habe ich mich entschlossen ein paar alte Studienbücher von mir zu versteigern.&lt;br /&gt;
&lt;br /&gt;
Von den folgenden vier konnte ich mich trennen:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.amazon.de/Mathematik-Ingenieure-Naturwissenschaftler-Arbeitsbuch-Grundstudium/dp/3528942363/ref=sr_1_9?ie=UTF8&amp;amp;qid=1289222127&amp;amp;sr=8-9&quot;&gt;Mathematik für Ingenieure und Naturwissenschaftler 1&lt;/a&gt; - Lothar Papula&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.amazon.de/Mathematik-f%C3%BCr-Ingenieure-Naturwissenschaftler-Band/dp/3834803049/ref=sr_1_11?ie=UTF8&amp;amp;qid=1289222127&amp;amp;sr=8-11&quot;&gt;Mathematik für Ingenieure und Naturwissenschaftler 2&lt;/a&gt; - Lothar Papula&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.amazon.de/Taschenbuch-Physik-Horst-Kuchling/dp/3446217606/ref=sr_1_3?s=books&amp;amp;ie=UTF8&amp;amp;qid=1289222163&amp;amp;sr=1-3&quot;&gt;Taschenbuch der Physik&lt;/a&gt; - Horst Kuchling&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.amazon.de/Taschenbuch-Elektrotechnik-Elektronik-Helmut-Lindner/dp/3446210563/ref=sr_1_5?s=books&amp;amp;ie=UTF8&amp;amp;qid=1289222183&amp;amp;sr=1-5&quot;&gt;Taschenbuch der Elektrotechnik und Elektronik&lt;/a&gt; - Helmut Lindner, Harry Brauer, Constans Lehmann&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
Alle Bücher sind in einem guten bis Top-Zustand. &lt;br /&gt;
&lt;br /&gt;
Hier der Link zu den eBay-Auktionen: &lt;a href=&quot;http://shop.ebay.de/real_gloegg/m.html&quot;&gt;http://shop.ebay.de/real_gloegg/m.html&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gloegg.blogspot.com/feeds/2159318393090800551/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1874838794281078062/2159318393090800551?isPopup=true' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/2159318393090800551'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/2159318393090800551'/><link rel='alternate' type='text/html' href='http://gloegg.blogspot.com/2010/11/studienbucher.html' title='Studienbücher'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07768182341129431497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1874838794281078062.post-5955973884100945554</id><published>2010-06-02T10:07:00.002+02:00</published><updated>2010-11-20T09:31:43.989+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Der Pirat"/><title type='text'>Not my president</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;Nur weil &#39;gefühlt&#39; jedes zweite Kind in Deutschland aus ihrer Lende kam, ist sie noch lange nicht als &quot;Mutter der Nation&quot; qualifiziert.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYn5QfjlCkYLZ81l3sqsf3wF_fyz1XNfczXfy5fyo0wOZTXVQYS_hF2zsA50uOsKFZrLMOmGQCt9nMDuSjLKLNmg94VJLJIRSDQLpM17bcUKMx9fpvuUdXze3vcAtIVflIBrhGRP-ANzM/s1600/notmypresident.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYn5QfjlCkYLZ81l3sqsf3wF_fyz1XNfczXfy5fyo0wOZTXVQYS_hF2zsA50uOsKFZrLMOmGQCt9nMDuSjLKLNmg94VJLJIRSDQLpM17bcUKMx9fpvuUdXze3vcAtIVflIBrhGRP-ANzM/s320/notmypresident.png&quot; width=&quot;247&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Wer das Volk belügt, darf nicht Bundespräsidentin werden!&lt;br /&gt;
&lt;a href=&quot;http://www.carechild.de/news/politik/internetzensur_die_grossen_luegen_der_ursula_von_der_leyen_572_120.html&quot;&gt;Link 1&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://handelsblatt6.blogg.de/eintrag.php?id=2147&quot;&gt;Link 2&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gloegg.blogspot.com/feeds/5955973884100945554/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1874838794281078062/5955973884100945554?isPopup=true' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/5955973884100945554'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/5955973884100945554'/><link rel='alternate' type='text/html' href='http://gloegg.blogspot.com/2010/06/not-my-president.html' title='Not my president'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07768182341129431497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYn5QfjlCkYLZ81l3sqsf3wF_fyz1XNfczXfy5fyo0wOZTXVQYS_hF2zsA50uOsKFZrLMOmGQCt9nMDuSjLKLNmg94VJLJIRSDQLpM17bcUKMx9fpvuUdXze3vcAtIVflIBrhGRP-ANzM/s72-c/notmypresident.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1874838794281078062.post-116702124791803454</id><published>2010-05-21T10:18:00.000+02:00</published><updated>2010-05-21T10:18:37.958+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Der Blogger"/><title type='text'>Chips mit Geschmack</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;Ich bin ja durchaus ein Freund von &lt;a href=&quot;http://gloegg.blogspot.com/2008/05/bier-chips.html&quot;&gt;speziellen Chipssorten&lt;/a&gt;. Gut das Walkers momentan gleich 5 ausgefallene Sorten im Angebot hat.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxnrb-8xKj4eo2gQ3OKevRqlQH9s1CiDMiBBMBGGhBVUpEZZEfwBK2JH7VyKbAwSj3lspg0dtg9Tg1zyJjTvJzATBMuMckQn1UrSTTaVhuVgXqgvrKJlZVU4Ph0oDLddoPF5oDfVrPrQg/s1600/brazil.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxnrb-8xKj4eo2gQ3OKevRqlQH9s1CiDMiBBMBGGhBVUpEZZEfwBK2JH7VyKbAwSj3lspg0dtg9Tg1zyJjTvJzATBMuMckQn1UrSTTaVhuVgXqgvrKJlZVU4Ph0oDLddoPF5oDfVrPrQg/s320/brazil.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVZzkHeNfBSB9jgOmMDlO6iA0FXBdz8GKwy2Q8BqD5RrjmxtbjeaDRYKJSPqpe_Z8Cte5ZJ1C3vvkyyk0CxBkPH3t_wPdpo3ef7mJaQNDqHBwvvoCNWkTegVEORH6_SBsjkpMdiS33He4/s1600/burger.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVZzkHeNfBSB9jgOmMDlO6iA0FXBdz8GKwy2Q8BqD5RrjmxtbjeaDRYKJSPqpe_Z8Cte5ZJ1C3vvkyyk0CxBkPH3t_wPdpo3ef7mJaQNDqHBwvvoCNWkTegVEORH6_SBsjkpMdiS33He4/s320/burger.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCRDLjtxgIXzHy3y8PBrt0KYx7rBQ6vtHTSr8zO4glJ03lH_N0eDGUB-LjYZjRjcX15j3I0HHkHiEsf1G2pcBRT1jY4xdJsAbyGzIiLb5w8FTGJA9B0IxV67xcQwqpNTir8B5STyQpJTQ/s1600/french.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCRDLjtxgIXzHy3y8PBrt0KYx7rBQ6vtHTSr8zO4glJ03lH_N0eDGUB-LjYZjRjcX15j3I0HHkHiEsf1G2pcBRT1jY4xdJsAbyGzIiLb5w8FTGJA9B0IxV67xcQwqpNTir8B5STyQpJTQ/s320/french.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaVBsEFgEoKWz5wsBBb5qIqUM8xSTkwwEwgND-CiZRwmMT5Zs4TC10vKzqfJFAtTmofMn_g8F7STtlGMNPq6F6wJuDVejlBm9RSwmwPJdVJubU6mVrIr_32DsbOsftXYrZfc6afpuAw8w/s1600/japan.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaVBsEFgEoKWz5wsBBb5qIqUM8xSTkwwEwgND-CiZRwmMT5Zs4TC10vKzqfJFAtTmofMn_g8F7STtlGMNPq6F6wJuDVejlBm9RSwmwPJdVJubU6mVrIr_32DsbOsftXYrZfc6afpuAw8w/s320/japan.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpOFpGoa_-28oD_uu3stM57AeDVJ_ORhLIwM6tuJHSGYG4JWhqLAy8KHEZXegjWMDE1-Uf6Bf6_VN4jGtz-wQ4NPSZUVotMpaLLOobeOor3oVx52CqUbC7ptxt893r4HXlsZoQQwafxzM/s1600/bratwurst.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpOFpGoa_-28oD_uu3stM57AeDVJ_ORhLIwM6tuJHSGYG4JWhqLAy8KHEZXegjWMDE1-Uf6Bf6_VN4jGtz-wQ4NPSZUVotMpaLLOobeOor3oVx52CqUbC7ptxt893r4HXlsZoQQwafxzM/s320/bratwurst.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Die German Bratwurst schmeckt tatsächlich nicht schlecht und auch der American Cheeseburger ist lecker. Die restlichen Sorten werden dann beim Mittag verköstigt.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gloegg.blogspot.com/feeds/116702124791803454/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1874838794281078062/116702124791803454?isPopup=true' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/116702124791803454'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/116702124791803454'/><link rel='alternate' type='text/html' href='http://gloegg.blogspot.com/2010/05/chips-mit-geschmack.html' title='Chips mit Geschmack'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07768182341129431497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxnrb-8xKj4eo2gQ3OKevRqlQH9s1CiDMiBBMBGGhBVUpEZZEfwBK2JH7VyKbAwSj3lspg0dtg9Tg1zyJjTvJzATBMuMckQn1UrSTTaVhuVgXqgvrKJlZVU4Ph0oDLddoPF5oDfVrPrQg/s72-c/brazil.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1874838794281078062.post-4799584808686540590</id><published>2010-04-21T15:03:00.000+02:00</published><updated>2010-04-21T15:03:54.773+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Der Entwickler"/><title type='text'>Warum ich Oracle hasse</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;Grund #4312 &lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;CREATE TABLE T (
  id number,
  value float)
INSERT INTO T (id, value) VALUES (1, 3.3)
SELECT * FROM T
ID    Value
 1    3.29999981356&lt;/pre&gt;&lt;br /&gt;
q.e.d.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gloegg.blogspot.com/feeds/4799584808686540590/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1874838794281078062/4799584808686540590?isPopup=true' title='1 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/4799584808686540590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1874838794281078062/posts/default/4799584808686540590'/><link rel='alternate' type='text/html' href='http://gloegg.blogspot.com/2010/04/warum-ich-oracle-hasse.html' title='Warum ich Oracle hasse'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07768182341129431497</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>