There are so many (how many?) regular expressions control tool. I always prefer to use TRegexpr. It is very simple and a little buggy. It was written in Delphi using TRegexpr component which was developed by same person.
If you are a delphi programmer you must also check TRegexpr component. It has simple methods and really easy to use. You already know that Delphi has no built-in regexp engine. If you are like me that you cannot be able to write programs without regexp or have no time to write 15 lines of code where you can make it with 3 lines this component is for you.
You can download both component and control tool from developer’s site
( TRegexpr control tool focusoncode.com mirror - 182 KB)
Tags:
delphi,
regex,
regular expressions
No Comments »
Last year while i was the administrator of a one of popular turkish it community we’ve made a programming contest which was cancelled for a reason of no contestants. The subject of contest was to make a blogging program including two parts. First part was the client side part which contestants need to made a blog administration interface. Second part was the web part which contestants need to made a web interface.
The idea of this subject was this : Making administration panels is a so hard process. So why don’t we make administration section with a more object oriented language like Delphi?
While contest some people made critics including that we were wanting a program which we were planning to sell it!
This critics made me sick. Then i wrote a program similar to contest. I wrote a “Delphi Component Index” site which can be still accessable via www.componentbeacon.com
I made web site with PHP and client side with Delphi. Site uses mySQL.
Lets go in detail.
Read the rest of this entry »
Tags:
.net,
ajax,
delphi,
focus on code,
ide,
idea,
php,
programming,
web programming
No Comments »
Mostly Delphi you have always chance to manage your executable. You can re-pack it, crypt it ( you know that we can see most of the strings or code strings in an executable compiled with delphi. Remember DeDe ) or compress the executable.
There’re many programs doing this job. You can look most of them at protools.
I tested most of them for my personal use. At last i choose pelock.
Pelock is a packer, crypter and compressor for your delphi programs. It has very simple and easy to use interface. Additionally you can make demo check by this program.
But not most of these are pelock’s good side. The good with pelock is the producer. If you encounter some problems he always help you on your job. He wants you to send the files, extra libs, etc. Solve the problem and recompile his program and then send it to you. So pelock is my first choice because of the very very nice producer.
While using pelock you always now that the producer is at the other side waiting there to solve the problem related to his software!
Tags:
delphi,
pelock,
software
1 Comment »
Posted by: Faruk in css, delphi, php
If you make a tag system and want to make a tag cloud page which will writes tags in different sizes accoring to use time refer to Tag Cloud document. That’s an easy and practical way for you. (Document Mirror on Focus on Code (186KB))
If you want to learn CSS Positioning or need a manual in your pocket you can refer to Learn CSS Positioning in Ten Steps article. That’s a very good and simple article including most of positioning styles. (Document Mirror on Focus on Code (88KB))
If you want to read and write to TWebBrowser component on Delphi you can refer to How to read and write form elements article. Article contains most wishes while using TWebBrowser. Before using these just insert Microsoft HTML Object Library to your project and add MSHTML_TLB class to your uses block.(Document Mirror on Focus on Code (52KB))
Tags:
css,
delphi,
php,
programming,
tags,
twebbrowser
No Comments »
Posted by: Faruk in delphi
When using Zeos Database Objects you can encounter some problems about charset. The main charset problem will be that you’re using a charset different than latin1. In this case you can get some errors while showing or fetching data from mySQL.
We have a simple solution :
Read the rest of this entry »
Tags:
charset,
database,
delphi,
errors,
mysql,
programming,
solutions,
zeoslib
No Comments »
Posted by: Faruk in delphi
PNG Delphi is Delphi Component (or Class) for doing PNG operations through Delphi. It has lots of functions and procedures to manipulate PNG files.
For example if you want to load a PNG image practically to a TImage area simply write this code :
Read the rest of this entry »
Tags:
component,
delphi,
png,
programming
No Comments »
Posted by: Faruk in delphi
If a field’s type is TEXT ( like LONGTEXT, MEDIUMTEXT etc) and we try to show it on a DBGrid it’ll be shown like (MEMO). But everyone in the world want to show some part of the TEXT field to user. For example you want to show user first 200 characters of the TEXT field.
To solve this situation;
Read the rest of this entry »
Tags:
database,
dbgrid,
delphi,
programming,
solutions
No Comments »
Posted by: Faruk in delphi
If you are using any OLE dedicated object (for example, if you’re parsing an xml document, there was a XMLDocument in your program, etc) and also if you’re using thread at the same time you can get some errors, mostly cache, ram errors. To solve this situation you must write;
CoInitialize(nil);
at your thread code before execute method. And after the thread function ends you must write;
CoUnInitialize;
Tags:
delphi,
errors,
ole,
solutions,
thread
No Comments »
Posted by: Faruk in delphi
Sometimes you can encounter errors like below while starting your Delphi IDE :
Unable to open key "SOFTWARE\\Borland\\BDS\\3.0\\Personalities" for read
or
Unable to open key "SOFTWARE\\Borland\\BDS\\4.0\\Personalities" for read
This error can occur by any of these :
Read the rest of this entry »
Tags:
codegear,
delphi,
errors,
ide,
solutions
1 Comment »