[lazarus] [patch] - CodeToolsDefPreview

2006-11-24 Thread Graeme Geldenhuys
Hi, Attached is a patch that changes the TSynEdit.Align to alClient instead of alBottom. This prevents the text being clipped by the GroupBox title under Linux (Gtk1). It's a one property change, but Lazarus decided to rearrange a whole bunch of other properties in the lfm file, so the patch loo

[lazarus] Password hashing function

2006-11-24 Thread A.J. Venter
Hi all, Hitherto, I have used the md5 unit to do simple encryption of passwords before sending them over the network for zybacafe. The database holds the MD5 checksum of the password, the clients on-login generate an MD5SUM and then compares this to the stored one - ergo there is never any plai

Re: [lazarus] Password hashing function

2006-11-24 Thread Michael Van Canneyt
On Fri, 24 Nov 2006, A.J. Venter wrote: > Hi all, > Hitherto, I have used the md5 unit to do simple encryption of passwords > before > sending them over the network for zybacafe. > The database holds the MD5 checksum of the password, the clients on-login > generate an MD5SUM and then compare

Re: [lazarus] Password hashing function

2006-11-24 Thread Bram Kuijvenhoven
A.J. Venter wrote: That seemed to work fine - except it turns out that MD5 is even LESS reliable than I thought, at least on small data. I had a bug report (and confirmed it) that you can log into anybody's account if you simply know how many characters his password has. Apparently '123456' g

Re: Problem with message handling

2006-11-24 Thread Gabor Boros
It's working! Thanks Felipe! Gabor Felipe Monteiro de Carvalho írta: On 11/23/06, Gabor Boros <[EMAIL PROTECTED]> wrote: My problem is, the Scan procedure not executed. I tried with Delphi and working. I am missed something or is this a bug? User messages are disabled by default. It should w

Re: [lazarus] Password hashing function

2006-11-24 Thread A.J. Venter
> $ echo 123456|md5sum > f447b20a7fcbf53a5d5be013ea0b15af *- > > $ echo beebob|md5sum > bd9dc720ce0f1976d760a803c1d12370 *- > > Maybe you somehow only hash the string length? E.g. you do a > md5(password[1])? Then it seems I am doing something wrong. My code is: Procedure TZC_Login.setPassword(Ne

Re: Problem with message handling

2006-11-24 Thread Gabor Boros
I am developing an application for a mobil computer with an integrated barcode scanner which is running WinCE. The API presents two solutions. DWORD SCAN_ReadLabelMsg(HANDLE hScanner,LPSCAN_BUFFER lpScanBuffer, HWND,UINT uiMsgNo, DWORD dwTimeOut, L

Re: [lazarus] Stretchdraw implemented.

2006-11-24 Thread Patrick Chevalley
Hi, I start to play with you new stretchdraw, this work fine with today Lazarus snapshot. I quickly hack TCanvas.StretchDraw to use it and I am pleased with the first result as this solve the ugly stretchdraw we have previously on Win32. See the attached image that show the result,new stretchdra

Re[2]: [lazarus] Password hashing function

2006-11-24 Thread Sergei Gorelkin
Friday, November 24, 2006, 12:36:35 PM, Bram wrote: BK> A.J. Venter wrote: >> That seemed to work fine - except it turns out that MD5 is even LESS >> reliable >> than I thought, at least on small data. >> I had a bug report (and confirmed it) that you can log into anybody's >> account >> if y

Re: Problem with message handling

2006-11-24 Thread Henry Vermaak
hi gabor the "event" function is there so you can give the handle to your event (which you get from CreateEvent). then you can create a thread that blocks on this event with one of the wait functions (WaitForSingleObject, for instance). when the reader receives a scan, it will set the event and

[lazarus] Unusual problem with Lazarus & gdb

2006-11-24 Thread Sam Washkansky
Hi all, I have a bit of a problem. I'm using Lazarus v9.21 build 10233M on Windows XP pro with SP2, and am using GDB 6.2.1 as my debugger. The problem is that whenever I Try and run my application I get the same result as if I had Pressed Ctrl-F9. The Application is compiled but the ide does not

Re: Problem with message handling

2006-11-24 Thread Gabor Boros
Thanks Henry! I think using messages is simpler and right for me. Gabor Henry Vermaak írta: hi gabor the "event" function is there so you can give the handle to your event (which you get from CreateEvent). then you can create a thread that blocks on this event with one of the wait functions (

Re: [lazarus] Unusual problem with Lazarus & gdb

2006-11-24 Thread Vincent Snijders
Sam Washkansky schreef: Hi all, I have a bit of a problem. I'm using Lazarus v9.21 build 10233M on Windows XP pro with SP2, and am using GDB 6.2.1 as my debugger. The problem is that whenever I Try and run my application I get the same result as if I had Pressed Ctrl-F9. The Application is co

Re: [lazarus] Unusual problem with Lazarus & gdb

2006-11-24 Thread Sam Washkansky
Not sure will try that now and let you know On 11/24/06, Vincent Snijders <[EMAIL PROTECTED]> wrote: Sam Washkansky schreef: > Hi all, > > I have a bit of a problem. I'm using Lazarus v9.21 build 10233M on > Windows XP pro with SP2, and am using GDB 6.2.1 as my debugger. The > problem is that w

Re: [lazarus] Unusual problem with Lazarus & gdb

2006-11-24 Thread Sam Washkansky
if I use gdb v6.0 distributed with Lazarus things work as they should. The app also seems to compile a lot quicker. On 11/24/06, Vincent Snijders <[EMAIL PROTECTED]> wrote: Sam Washkansky schreef: > Hi all, > > I have a bit of a problem. I'm using Lazarus v9.21 build 10233M on > Windows XP pro

Re: svn2revisioninc

2006-11-24 Thread Mattias Gaertner
On Sun, 19 Nov 2006 13:09:10 +0100 "Darius Blaszijk" <[EMAIL PROTECTED]> wrote: > And now WITH patch :) Thanks. Applied. Why do you use GetOpts? TCustomApplication already provides such functions. Mattias > > - Original Message - > From: "Darius Blaszijk" <[EMAIL PROTECTED]> > To:

Re: [lazarus] TFormStorage

2006-11-24 Thread Mattias Gaertner
On Tue, 21 Nov 2006 09:52:00 +0100 Andrea Mauri <[EMAIL PROTECTED]> wrote: > Hi, > When I put a TFormStorage on a form (last SVN) an error occurs. > Error Creating Component: error creating TFormStorage A TFormStorage is an abstract base class. Use TXMLPropStorage or TINIPropStorage instead. Mat

Re: [lazarus] TFormStorage

2006-11-24 Thread Andrea Mauri
thanks andrea Mattias Gaertner wrote: On Tue, 21 Nov 2006 09:52:00 +0100 Andrea Mauri <[EMAIL PROTECTED]> wrote: Hi, When I put a TFormStorage on a form (last SVN) an error occurs. Error Creating Component: error creating TFormStorage A TFormStorage is an abstract base class. Use TXM

Re: [lazarus] Invalid floating point operation

2006-11-24 Thread Mattias Gaertner
On Wed, 22 Nov 2006 17:22:06 -0800 Jon Foster <[EMAIL PROTECTED]> wrote: > Mattias Gaertner wrote: > > The "invalid floating point operation" are raised at several places, > > where the codetools check for inconsistency. This prevents further > > chaos and normally helps to create a useful backtra

Re: [lazarus] virtual method runs?!

2006-11-24 Thread Mattias Gaertner
On Thu, 23 Nov 2006 19:33:38 +0300 Sergey Kamenskiy <[EMAIL PROTECTED]> wrote: > Im work on helpconfig Bug > http://www.freepascal.org/mantis/view.php?id=7775 > and complit lost. > > error in save function. > helpoptions.xml: > > > > > > > > > > > >

Re: [lazarus] Password hashing function

2006-11-24 Thread Florian Klaempfl
Sergei Gorelkin schrieb: > Friday, November 24, 2006, 12:36:35 PM, Bram wrote: > > BK> A.J. Venter wrote: >>> That seemed to work fine - except it turns out that MD5 is even LESS >>> reliable >>> than I thought, at least on small data. >>> I had a bug report (and confirmed it) that you can log

Re: [lazarus] Password hashing function

2006-11-24 Thread Florian Klaempfl
Sergei Gorelkin schrieb: > Friday, November 24, 2006, 12:36:35 PM, Bram wrote: > > BK> A.J. Venter wrote: >>> That seemed to work fine - except it turns out that MD5 is even LESS >>> reliable >>> than I thought, at least on small data. >>> I had a bug report (and confirmed it) that you can log

Re: [lazarus] [PATCH] tlistbox.font

2006-11-24 Thread Mattias Gaertner
On Thu, 23 Nov 2006 16:41:52 +0300 Sergey Kamenskiy <[EMAIL PROTECTED]> wrote: > * Marc Weustink <[EMAIL PROTECTED]> [Thu, 23 Nov 2006 12:08:49 > +0100]: > > > You can also the diff program on a command line. > > > > diff -U 5 orig_file modified_file > mychanges.diff > > > > diff -U 5 orig_direc

Re: [lazarus] [patch] - CodeToolsDefPreview

2006-11-24 Thread Mattias Gaertner
On Fri, 24 Nov 2006 11:00:04 +0200 "Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote: > Hi, > > Attached is a patch that changes the TSynEdit.Align to alClient > instead of alBottom. This prevents the text being clipped by the > GroupBox title under Linux (Gtk1). Applied. Thanks. > It's a one pro

Re: [lazarus] Stretchdraw implemented.

2006-11-24 Thread Mattias Gaertner
On Fri, 24 Nov 2006 11:01:51 +0100 "Patrick Chevalley" <[EMAIL PROTECTED]> wrote: > Hi, > > I start to play with you new stretchdraw, this work fine with today > Lazarus snapshot. > I quickly hack TCanvas.StretchDraw to use it and I am pleased with > the first result as this solve the ugly stret

Re: [lazarus] Stretchdraw implemented.

2006-11-24 Thread Christian Ulrich
I dont think its an good idea to use the fpcanvas functions in the interfaces becaose the native functions of the interfaces especially in windows can be faster. I use this to set another StretchBltMode in Windows and the results looks great: {$IFDEF MSWINDOWS} SetStretchBltMode(CanvasHandle

Re: [lazarus] virtual method runs?!

2006-11-24 Thread Sergey Kamenskiy
Virtual: yes, abstract: no. (Do not shout please) Mattias very much apologize, i have mixed don`t see error. Why does not work right? I shall search further procedure THTMLHelpDatabase.Save(Storage: TConfigStorage); begin inherited Save(Storage); Storage.SetDeleteValue('BaseURL/Value',

Re: [lazarus] TDBF FieldDefs aren't persisting - sort of

2006-11-24 Thread Jon Foster
Micha Nelissen wrote: Jon Foster wrote: I created a TDBF component on a form and created some FieldDefs in it. The FieldDefs won't stay between Lazarus sessions. I use this TDBF as a The FieldDefs or the Fields ? FieldDefs. sort work table so its used only

Re: [lazarus] Data Module Access Violation

2006-11-24 Thread Jon Foster
Sergey Kamenskiy wrote: * Jon Foster <[EMAIL PROTECTED]> [Wed, 22 Nov 2006 18:07:25 -0800]: With Lazarus from SVN revision 10233 compiled with FPC2.1.1 I get an Lazarus does not work absolutely with fpc 2.1.1 use 2.0.4 only Interesting. I was having trouble with MySQL and someone on the list

Re: [lazarus] Data Module Access Violation

2006-11-24 Thread Vincent Snijders
Jon Foster schreef: With Lazarus from SVN revision 10233 compiled with FPC2.1.1 I get an "access violation" message anytime I move the mouse pointer over a freshly created "data module". Of course I don't know if it occurs with "data modules" that have been in use because I can't create one. :-

[lazarus] Lazarus 0.9.20 beta and Rx compoments

2006-11-24 Thread Nataraj S Narayan
Hi I tried installing Rx components into my Lazarus 0.9.20 on windows. Its compiles and then restarts when given the 'Install' button. But nothing shows in the Component pallete. I need to convert many delphi programs with Rx compos. Plz help. regards Nataraj begin:vcard fn:http://www.gsis