Delphigeist

The spirit of Delphi -- moved to delphigeist.blogspot.com

Subscribe to RSS feed

Blog moved to Blogspot

,

I've decided to move my blog to Blogspot the new address of delphigeist blog is delphigeist.blogspot.com.

Tools: XML/HTML Tag Validator

, ,

Today I've worked on a tool which validates XML/HTML tags, it doesn't check if number of opened tags is equal to closed tags, but instead it verifies each tag and logs errors, most XML/HTML(if not all) are showing only first invalid tag, my tool shows all!
Here's a screenshot of main window in action

After all done it will show a log window like this(if you wish)

You also have options like:
  • Stop processing XML File on: First invalid tag and/or line longer than specified
  • With valid XML's do: Copy/Move to a specified folder
  • With invalid XML's do: Copy/Move to a specified folder
  • After all XML's from specified folders are validated you can choose from: Show Log/Shutdown/Restart/Log Off PC/Show Message
  • I'm sure there are more options to implement but these are the functions that I needed for work, if YOU can think of anything else that it should or you need to be implemented please post here


If you're a Delphi (beginner)programmer please don't hang me because of the *well* commented sourcecode, I don't spend time commenting.

The sourcecode + binary can be downloaded from this link.

P.S. In case you are wondering on what PC configuration I was running this application here it is
  • CPU: Intel; Dual Core; 2.8 GHz
  • Motherboard: A cheap MSI, Neo 945 PL
  • RAM: 2 GB DDR2; Kingston + Apacer(yuky)
  • Display: NEC 22 WV, 22″(showoff smile)

What feauters would you like to see in Delphi?

,

Someone named Jarn asked me what feauters would make me upgrade from Delphi 7... Here are a couple, you could post aswell.

Code Completion:

When you type a identifier name that doesn't exist, maybe you forgot to declare you should have this options

Loops:

C++/C#/Java/Other languages benefit have a nice feauter in for loops like so
void myFreakyLoop(){
  for (int index = 0; index<=MaxValue; index++){
    // do the samba //
  }
}
You can write index+=2, so it won't increment index by 1 but by 2 or whatever value you want.

An equivalent in Delphi should be

procedure NewKindOfLoop;
var
  index: Integer;
begin
  for index := 0 to 1000 step 2 do
    // nada //
end;
Looks better ey?

Inlined variables(who, what, where, why...?):

This should be available but in order to keep code readable not like other programming languages i.e. C++ we can live without it. Delphi IDE is very rich, but developers need more feauters that let them focus on the job not on the(where was that option), IDE must be intuitive and options like code completion that I've mentioned above should have been implemented in Delphi 7 aswell(I know you have CTRL+J, but you use CTRL+SPACE alot and it should know what you want or give you options).

For example, how does generics help me, seriously now i can't really see it increasing my productivity one bit, here are some links to learn about generics(i won't post any of this ever)

  • Felix Colibri has a nice article here
  • Dr. Bob here
  • You really want to check out this article about generics if your interested in them.
I really hope Delphi developers open eyes and ask for more, because Delphi 7 was a really good release, developers who used it for a long time don't really want to change it just for generics or other price of crap wich doesn't increase you productivity but slows it down!

First impression of Delphi 2010


Yup, that's my impression, nothing that worths upgrading from Delphi 7, in my opinion.
There's one problem that bothers the current developers(i bulive...): What da' hell can we do to offer a better IDE than Delph 7?
Except for a few things here and there(wich does not provide much prouctivity) on wich i won't comment(because I'm disappointed), there's no use to upgrade.
Long live the guys that developed Delphi 7!

Delphi Package Installer

, ,

Delphi Package Installer is a cool tool, if your in a hurry but need to install some packages into the IDE.
Delphi PI steps:
  • Start DelphiPI
  • Select the folder where both package file (*.dpk) and source files (*.pas) reside.
    If the directory structure is like:
    SuperLibrary\packages SuperLibrary\source
    then just select SuperLibrary folder.
  • Specify a pattern that matches for your delphi installation. If you don't want to use a pattern just leave it as *.dpk and unselect the packages that are not suitable for your delphi installation.
  • Click Compile. Packages will be compiled and installed.

Screenshots




Download Delphi Package Installer sourcecode or binary.

Delphi Distiller

, ,

There's a tool on the net called Delphi Distiller wich can start Delphi IDE a bit faster than it would start if you execute it, but this is not the subject.
Delphi Distiller can bypass the security that Borland/CodeGear/Embarcadero uses for their software, if you press Ctrl+Alt+L keys you will get a new TAB in Delphi Distiller named "Secret Stuff" check it out.

WARNING
Using pirated software is illegal in most countries and you can be sued to
the full extend possible by law in your country.
Countries like Sweden does not recognize this as a crime, but most
countries do.


I've decided to move my blog to Blogspot the new address of delphigeist blog is delphigeist.blogspot.com.

What's my Delphi serial, again?

,

Here's a little application wich shows your Delphi verison, serial number and authorization key until version 7 if i'm not mistaking.

You can get the sourcecode + bin from this link.