Re: [Lazarus] Lazarus Release Candidate 1 of 1.4
Thanks. Оригинално писмо От: Juha Manninen Относно: Re: [Lazarus] Lazarus Release Candidate 1 of 1.4 До: Lazarus mailing list Изпратено на: Вторник, 2015, Февруари 17 16:06:02 EET On Tue, Feb 17, 2015 at 4:03 PM, Kamen Ketev kamenl...@abv.bg wrote: When I load project says: Component Class: TDateEdit Error reading deData.DialogTitle: Unknown property: Dialog Title... Why you remove this property? How can fix the problem? http://wiki.lazarus.freepascal.org/Lazarus_1.4.0_release_notes#TDateEdit.DialogTitle_property_was_removed -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Confusing compiler hint on unused parameter
Am 17.02.2015 16:58 schrieb Werner Pamler werner.pam...@freenet.de: This compiler message looks strange to me: tatextelements.pas(177,24) Hint: Value parameter AValue is assigned but never used. It occurs when TAChart is recompiled (see bug report #0027484). Here is the corresponding code: procedure TGenericChartMarks.SetFrame(AValue: _TFramePen); begin if FFrame = AValue then exit; FFrame.Assign(AValue); StyleChanged(Self); end; I would say that the parameter AValue *is* used. So, what is this hint for? What compiler version? If 2.6.x please retest with a 3.x version. If it is still reproducible then try to reproduce it in a smaller, self contained example and report as a bug for FPC. Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Embedded/small database
On 02/17/2015 03:21 PM, Michael Van Canneyt wrote: Sqlite is only good for storing preferences. Anyone using it for something else is playing with fire. Since I've already burned my fingers ... + 1 :)) zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Confusing compiler hint on unused parameter
This compiler message looks strange to me: tatextelements.pas(177,24) Hint: Value parameter AValue is assigned but never used. It occurs when TAChart is recompiled (see bug report #0027484). Here is the corresponding code: procedure TGenericChartMarks.SetFrame(AValue: _TFramePen); begin if FFrame = AValue then exit; FFrame.Assign(AValue); StyleChanged(Self); end; I would say that the parameter AValue *is* used. So, what is this hint for? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Confusing compiler hint on unused parameter
On Tue, 17 Feb 2015 17:35:17 +0100 Sven Barth pascaldra...@googlemail.com wrote: Am 17.02.2015 16:58 schrieb Werner Pamler werner.pam...@freenet.de: This compiler message looks strange to me: tatextelements.pas(177,24) Hint: Value parameter AValue is assigned but never used. It occurs when TAChart is recompiled (see bug report #0027484). Here is the corresponding code: procedure TGenericChartMarks.SetFrame(AValue: _TFramePen); begin if FFrame = AValue then exit; FFrame.Assign(AValue); StyleChanged(Self); end; I would say that the parameter AValue *is* used. So, what is this hint for? What compiler version? 1.4RC1 is built with 2.6.4. If 2.6.x please retest with a 3.x version. If it is still reproducible then try to reproduce it in a smaller, self contained example and report as a bug for FPC. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Confusing compiler hint on unused parameter
What compiler version? If 2.6.x please retest with a 3.x version. Thank you, fpc trunk does not show the hint. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Embedded/small database
On 2015-02-17 14:54, leledumbo wrote: It has much easier setup, though. Even easier than embedded firebird. Firebird's setup is pretty easy. I've deployed Client/Server and Embedded firebird under Windows, Linux and FreeBSD. For embedded I simply shipped the DLL/SO files needed and it all worked like a charm. Something else to comment on - I have no clue about this for Sqlite. Firebird has loads and loads of 3rd party tools like Flamerobin etc to view, query and analyse your database. In recent Firebird versions you also have server side tracing support which is awesome for debugging SQL calls. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Confusing compiler hint on unused parameter
On Tue, 17 Feb 2015 16:54:59 +0100 Werner Pamler werner.pam...@freenet.de wrote: This compiler message looks strange to me: tatextelements.pas(177,24) Hint: Value parameter AValue is assigned but never used. It occurs when TAChart is recompiled (see bug report #0027484). Here is the corresponding code: procedure TGenericChartMarks.SetFrame(AValue: _TFramePen); begin if FFrame = AValue then exit; FFrame.Assign(AValue); StyleChanged(Self); end; I would say that the parameter AValue *is* used. So, what is this hint for? This is a generic class. The compiler does not know at this point what _TFramePen is. The hint sounds like a compiler bug. Please report to FPC. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] need suggestion about ParamStrUTF8(0)
Yes, this can not be standart but, for me useful. Why, My application work with database, on first run, no any db created. On my login screen have create db form, user can create more db files. year by year or what they want. When db create many settings added on create. user permission etc. So I have to set db files folder some where. In win and linux same folder with application. and some time need to help to user, first job get backup data, if all files be in /applications/myproject.app/ folder, they have to just copy all of them, xx gb can be, data folder used change. some time just one db has a problem and tey want to sent me ? can do on terminal of course, but how to tell this to blonde stuff on telephone :) usually I create partition or volume, and use my application and data from there. And for backup, show to user this folder is all your data, just copy out of this computer where you want. so I any on broke system I'm not get risk. {$IFDEF UNIX} S := ParamStrUTF8(0); //CheckIfFileIsSymlink(S); I wish, this be a function and result be is fpReadLink, 'cos its in :) FileAttr := FileGetAttr(S); if(FileAttr and faSymLink)0then S := fpReadLink(S) else s:= 'normal file'; {$ENDIF} On 17.02.2015 16:32, Schindler Karl-Michael wrote: On Tue, 17 Feb 2015 14:33:41 +0200 FreeMan freema...@delphiturkiye.com wrote: osx yosemite fpc, lazarus svn qt x64 ParamStrUTF8(0) in /lazarus/components/lazutils/fileutil.pas this function result in osx : .../myproject.app/Contents/MacOS/myproject showing normal, but its symbolink link, not application. When deploying your application you can remove the symbolic link and move the binary into that folder. Eventually Lazarus will put the binary into the folder. Why I need real application path, I need create some folder and create ini files in application's same folder. In osx myproject.app is a folder, and finder show it like a application, so end user not find and access to that created folder and ini files. I need real application path. How to do this? Although the Finder does not show the contents of this folder by default, programs can read and write there normally. You can store ini files there. If you want the user to see your ini files in Finder, then you should create a normal directory. As far as I know there is no standard for that. Maybe I misunderstand some details, but i understand the Apple Human Interface Guidelines that preference files should be put in ~/Library/Preferences for user specific preferences and in /Library/Preferences for global ones. Other files can be kept within the .app bundle, in particular if they should be replaced by a new installation or update and unless they should survive an update of the program. In the later case they should be placed in ~/Library/Application Support/NAME_OF_YOUR_PROGRAM or /Library/Application Support/NAME_OF_YOUR_PROGRAM if they are global. Simillarly, log files should be placed in ~/Library/Logs/NAME_OF_YOUR_PROGRAM or /Library/Logs/NAME_OF_YOUR_PROGRAM. For further details read here: https://developer.apple.com/library/mac/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/MacOSXDirectories/MacOSXDirectories.html -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Embedded/small database
Sqlite is only good for storing preferences. Anyone using it for something else is playing with fire. Tested, it can't even manage 50,000 rows efficiently. Searching a string takes minutes, while it takes a fraction of second in real dbms. It has much easier setup, though. Even easier than embedded firebird. Choose wisely. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Embedded-small-database-tp4040516p4040573.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Embedded/small database
On Tue, Feb 17, 2015 at 07:54:00AM -0700, leledumbo wrote: Tested, it can't even manage 50,000 rows efficiently. Searching a string takes minutes, while it takes a fraction of second in real dbms. Interesting. I've seen benchmarks where sqlite query times for a full-text search on 12+ rows is less than 20ms. Did you use FTS4 for your search index? Lucene was the only embedded database that could beat sqlite for full-text search, IIRC. Henry -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Embedded/small database
On Tue, Feb 17, 2015 at 10:34 AM, Kostas Michalopoulos badsectorac...@gmail.com wrote: Possibly, but if there is no need to be networked then this adds extra baggage (ie. bloat) for no reason at all. Sqlite is a tiny db designed specifically for local use, used in a ton of places (including Firefox and almost everything made by Apple these days) and has some of the highest quality source code. Also it is very easy to integrate and supported everywhere. Since it is a very common starting point, there are conversion tools to other DBs in case it proves limiting in the future. But all that only if the program is local. +1 Marcos Douglas -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] need suggestion about ParamStrUTF8(0)
Am 17.02.2015 um 15:04 schrieb lazarus-requ...@lists.lazarus.freepascal.org: Message: 3 Date: Tue, 17 Feb 2015 13:43:50 +0100 From: Mattias Gaertner nc-gaert...@netcologne.de Subject: Re: [Lazarus] need suggestion about ParamStrUTF8(0) To: lazarus@lists.lazarus.freepascal.org Message-ID: 20150217134350.32bb3...@limapholos.matflo.wg Content-Type: text/plain; charset=US-ASCII On Tue, 17 Feb 2015 14:33:41 +0200 FreeMan freema...@delphiturkiye.com wrote: osx yosemite fpc, lazarus svn qt x64 ParamStrUTF8(0) in /lazarus/components/lazutils/fileutil.pas this function result in osx : .../myproject.app/Contents/MacOS/myproject showing normal, but its symbolink link, not application. When deploying your application you can remove the symbolic link and move the binary into that folder. Eventually Lazarus will put the binary into the folder. Why I need real application path, I need create some folder and create ini files in application's same folder. In osx myproject.app is a folder, and finder show it like a application, so end user not find and access to that created folder and ini files. I need real application path. How to do this? Although the Finder does not show the contents of this folder by default, programs can read and write there normally. You can store ini files there. If you want the user to see your ini files in Finder, then you should create a normal directory. As far as I know there is no standard for that. Maybe I misunderstand some details, but i understand the Apple Human Interface Guidelines that preference files should be put in ~/Library/Preferences for user specific preferences and in /Library/Preferences for global ones. Other files can be kept within the .app bundle, in particular if they should be replaced by a new installation or update and unless they should survive an update of the program. In the later case they should be placed in ~/Library/Application Support/NAME_OF_YOUR_PROGRAM or /Library/Application Support/NAME_OF_YOUR_PROGRAM if they are global. Simillarly, log files should be placed in ~/Library/Logs/NAME_OF_YOUR_PROGRAM or /Library/Logs/NAME_OF_YOUR_PROGRAM. For further details read here: https://developer.apple.com/library/mac/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/MacOSXDirectories/MacOSXDirectories.html Michael. signature.asc Description: Message signed with OpenPGP using GPGMail -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus Release Candidate 1 of 1.4
On Tue, Feb 17, 2015 at 4:03 PM, Kamen Ketev kamenl...@abv.bg wrote: When I load project says: Component Class: TDateEdit Error reading deData.DialogTitle: Unknown property: Dialog Title... Why you remove this property? How can fix the problem? http://wiki.lazarus.freepascal.org/Lazarus_1.4.0_release_notes#TDateEdit.DialogTitle_property_was_removed -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Embedded/small database
On Tue, 17 Feb 2015, Kostas Michalopoulos wrote: Possibly, but if there is no need to be networked then this adds extra baggage (ie. bloat) for no reason at all. There is no baggage. Both systems work with a dll, which you must ship. Up to that point, it is the same. The difference is that Firebird - in difference with sqlite - is a REAL rdbms, with fully functional type safety, actual stored procedures, triggers and whatnot. Sqlite is only good for storing preferences. Anyone using it for something else is playing with fire. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Confusing compiler hint on unused parameter
On Tue, 17 Feb 2015 18:32:15 +0100 Werner Pamler werner.pam...@freenet.de wrote: The bug report mention in the first post refers to another set of compilation messages which I do not understand: tachartlazaruspkg.pas(18,23) Verbose: Unit TAFitUtils not used in TAChartLazarusPkg. I cannot reproduce this, neither in fpc 2.6.4 nor fpc trunk. Is this due to some non-standard compilation message parameters used by the OP? The original message comes from FPC and is a hint. Each package has an option (Compiler Options / Verbosity / Show hints for unused units in main), which is off by default. The IDE changes the Hint into a mere Verbose. By default the Messages windows does not show Verbose messages. You can change the filter: Right click on Messages window, then Filter non urgent messages. The bug submitter has turned the filter off. This filter is a new feature of 1.4. With the default settings you see the same as in Lazarus 1.2. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Embedded/small database
Sqlite can be very fast, but it needs the proper setup for that (which may not be relevant in all cases). Beyond that, Sqlite has a lot of high profile users (not to make a piss match, but i couldn't see any big users in Firebird's site and even those didn't seem to mention if it was embedded or client/server): https://www.sqlite.org/famous.html There are other less known uses of course, like the Fossil VCS and AFAIK Apple also uses it for the time capsule and FS versioning. Honestly, i wouldn't put down Sqlite :-). However you need to make sure that Sqlite is what you are looking for. After all in their site they say that SQLite is not designed to compete with Oracle. SQLite is designed to compete with fopen(). (or AssignFile in Lazarus' case :-P). To put it differently, if i wanted to make an application to associate tags and colors with images (for fast theme lookup), i'd use Sqlite. If i wanted to make a bookstore chain application, i'd probably use PostgreSQL. I wouldn't use Sqlite for configuration since this is what INIs are for :-P On Tue, Feb 17, 2015 at 6:26 PM, Graeme Geldenhuys mailingli...@geldenhuys.co.uk wrote: On 2015-02-17 14:54, leledumbo wrote: It has much easier setup, though. Even easier than embedded firebird. Firebird's setup is pretty easy. I've deployed Client/Server and Embedded firebird under Windows, Linux and FreeBSD. For embedded I simply shipped the DLL/SO files needed and it all worked like a charm. Something else to comment on - I have no clue about this for Sqlite. Firebird has loads and loads of 3rd party tools like Flamerobin etc to view, query and analyse your database. In recent Firebird versions you also have server side tracing support which is awesome for debugging SQL calls. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] need suggestion about ParamStrUTF8(0)
Its just a bit, no problem. On 17.02.2015 20:16, Mattias Gaertner wrote: The function is very specific to your environment. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] need suggestion about ParamStrUTF8(0)
On Tue, 17 Feb 2015 20:03:14 +0200 FreeMan freema...@delphiturkiye.com wrote: This is my solution, this function's job is: If parameter AFilename is symbolic link, get it's target path, and ../ symbols remove and result set to link's target path. this function useful for unix based system, I tested just osx. Can it add in main source utils of lazarus ? The function is very specific to your environment. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Confusing compiler hint on unused parameter
The bug report mention in the first post refers to another set of compilation messages which I do not understand: tachartlazaruspkg.pas(18,23) Verbose: Unit TAFitUtils not used in TAChartLazarusPkg. I cannot reproduce this, neither in fpc 2.6.4 nor fpc trunk. Is this due to some non-standard compilation message parameters used by the OP? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] need suggestion about ParamStrUTF8(0)
This is my solution, this function's job is: If parameter AFilename is symbolic link, get it's target path, and ../ symbols remove and result set to link's target path. this function useful for unix based system, I tested just osx. Can it add in main source utils of lazarus ? function GetTargetIfFileIsSymlink(const AFilename: string): string; var FileAttr: LongInt; I, J : Integer; begin Result := ''; if not FileExistsUTF8(AFilename) then begin raise Exception.Create(Format(lrsFileDoesNotExist, [AFilename])); end; FileAttr := FileGetAttr(AFilename); if(FileAttr and faSymLink)=0then Result := ExtractFilePath(AFilename) else begin Result := fpReadLink(AFilename); with TStringList.Create do begin Delimiter := DirectorySeparator; DelimitedText := Result; J := 0; for I:=0 to Count -1 do if Strings[I]='..'then inc(J); if J0then begin DelimitedText := ExtractFilePath(AFilename); while (J0) and (Count0) do begin Delete(Count-1); Dec(J); end; end; Result := DelimitedText; Free; end; end; end; On 17.02.2015 18:12, FreeMan wrote: {$IFDEF UNIX} S := ParamStrUTF8(0); //CheckIfFileIsSymlink(S); I wish, this be a function and result be is fpReadLink, 'cos its in :) FileAttr := FileGetAttr(S); if(FileAttr and faSymLink)0then S := fpReadLink(S) else s:= 'normal file'; {$ENDIF} -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus Release Candidate 1 of 1.4
On Tue, 17 Feb 2015 12:12:55 +0100 Luca Olivetti l...@wetron.es wrote: [...] ERROR: Broken dependency: camviewpkg 0.0camviewpkg 0.0 make: *** [useride] Error 3 It means it can't find camviewpkg.lpk. Maybe the error message can be improved for lazbuild. [...] Sorry, that was a PEBKAC (just yesterday I removed one of the packages to use the upstream one instead of what I cooked myself). Now the make bigide is stuck (i.e. it doesn't proceed) C:\lazextra\rx\tooledit.pas(109,15) Error: (3058) There is no method in an ances tor class to be overridden: TCustomRxDateEdit.Change; Have you seen this: http://wiki.lazarus.freepascal.org/Lazarus_1.4.0_release_notes#TEditButton_was_rewritten ? C:\lazextra\rx\tooledit.pas(112,15) Error: (3058) There is no method in an ances tor class to be overridden: TCustomRxDateEdit.DoButtonClick(TObject); C:\lazextra\rx\tooledit.pas(219,1) Fatal: (10026) There were 2 errors compiling module, stopping Fatal: (1018) Compilation aborted Error: C:\FPC\2.6.4\bin\i386-Win32\ppc386.exe returned an error exitcode (normal if you did not specify a source file to be compiled) Compiling package rxnew 2.4.2.120: stopped with exit code 1 (3104) Compiling C:\laz_1_4\components\jcf2\Settings\SetWordList.pas (3104) Compiling C:\laz_1_4\components\jcf2\Settings\SetAlign.pas (3104) Compiling C:\laz_1_4\components\jcf2\Settings\SetReplace.pas (3104) Compiling C:\laz_1_4\components\jcf2\Settings\SetUses.pas (3104) Compiling C:\laz_1_4\components\jcf2\Settings\SetPreProcessor.pas TLazPackageGraph.CompileRequiredPackages ERROR=Exit code 1 ERROR: BuildLazarusIDE: Compile AutoInstall Packages failed. I had to interrupt it with CTRL+C It didn't stop automatically? Can you reproduce it? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus Release Candidate 1 of 1.4
El 17/02/15 a les 12:25, Mattias Gaertner ha escrit: C:\lazextra\rx\tooledit.pas(109,15) Error: (3058) There is no method in an ances tor class to be overridden: TCustomRxDateEdit.Change; Have you seen this: http://wiki.lazarus.freepascal.org/Lazarus_1.4.0_release_notes#TEditButton_was_rewritten ? No, but I just got the svn version of rxnew, and the author read it ;-) TLazPackageGraph.CompileRequiredPackages ERROR=Exit code 1 ERROR: BuildLazarusIDE: Compile AutoInstall Packages failed. I had to interrupt it with CTRL+C It didn't stop automatically? Can you reproduce it? I did it twice, I waited for a couple of minutes with no disk activity then hit CTRL+C. I suppose that if I reinstall the broken version of rx I can trigger it again...let me trymmh, it seems I cannot find a way to install the broken package, make useride just uses the good version now. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Embedded/small database
On Tue, 17 Feb 2015, Kostas Michalopoulos wrote: Sqlite can be very fast, but it needs the proper setup for that (which may not be relevant in all cases). Beyond that, Sqlite has a lot of high profile users (not to make a piss match, but i couldn't see any big users in Firebird's site and even those didn't seem to mention if it was embedded or client/server): https://www.sqlite.org/famous.html There are other less known uses of course, like the Fossil VCS and AFAIK Apple also uses it for the time capsule and FS versioning. Honestly, i wouldn't put down Sqlite :-). I would. Any database that allows you to store a string in a field that is declared as integer (as sqlite does), is out. It goes against the basic rules of the RDBMs: ACID. Period. If you ever encounter such a situation, the whole pascal db code simply goes 'poof'. If the table definition says 'integer', it should be an integer. if sqlite does not guarantee this (and it does not, it considers this a feature), it is out. I don't even understand that any pascal programmer (pascal being stronly typed) can consider such a system. But there are many things I don't understand :) Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Promoting Lazarus: A Case Study Video
On 02/16/2015 11:29 AM, Giuliano Colla wrote: Il 16/02/2015 04:47, Den ha scritto: It also plays for me, Ubuntu 14.10 64bit, Chrome. Thanks to all for the feedback. Given other's experience, I tested with Linux-FC14 and it works for me too. It must be a CentOs 6 specific issue. Most likely a decoder is missing, because it isn't strictly Open Source. RH is very accurate in providing only purely OS software. Sometimes it's a nuisance. I'll investigate. It's not because of open source-ness, but due to patents. The H.264 codec is heavily patented in the United States and other countries and requires an expensive license fee to use: http://en.wikipedia.org/wiki/H.264/MPEG-4_AVC#Patent_licensing Free browsers such as Firefox only provide H.264 playback capability, if the underlying OS has the codec installed. So, it only works in Windows and Android, because Microsoft and Google have paid the license fees for distributing the codec with the OS. If you want to support free operating systems, it's better to also provide WebM or Ogg/Theora versions of the video: http://en.wikipedia.org/wiki/WebM http://en.wikipedia.org/wiki/Theora Unfortunately, there are some very popular devices (e.g. the iPhone and the iPad) that *only* support H.264 and that don't allow you to install other codecs, so if you want the best compatibility, you need two versions for every video - one H.264 and one WebM or Ogg/Theora :( Nikolay -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus Release Candidate 1 of 1.4
On 17/02/2015 07:32, Dejan Boras wrote: Compiled a few of my projects, works on Fedora 21 x64. But trying to rebuild the IDE gives: File /usr/lib64/lazarus/ide/cmdlinedebugger.pp not found. It never was in this location. But yes it has moved. So if you have an old lazbuild, or previous IDE it will not build (a package must be added by hand). I only tested 1.4RC on windows, and had no issues recompiling. Which method do you use to build? IDE, Lazbuild, ...? And does (temporarily) cleaning the old config dir help? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Embedded small database
Sent from Samsung Mobile div Original message /divdivFrom: lazarus-requ...@lists.lazarus.freepascal.org /divdivDate:16/02/2015 20:52 (GMT+01:00) /divdivTo: lazarus@lists.lazarus.freepascal.org /divdivCc: /divdivSubject: Lazarus Digest, Vol 85, Issue 51 /divdiv /div Original message From: lazarus-requ...@lists.lazarus.freepascal.org Date:16/02/2015 20:52 (GMT+01:00) To: lazarus@lists.lazarus.freepascal.org Cc: Subject: Lazarus Digest, Vol 85, Issue 51 Send Lazarus mailing list submissions to lazarus@lists.lazarus.freepascal.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus or, via email, send a message with subject or body 'help' to lazarus-requ...@lists.lazarus.freepascal.org You can reach the person managing the list at lazarus-ow...@lists.lazarus.freepascal.org When replying, please edit your Subject line so it is more specific than Re: Contents of Lazarus digest... Today's Topics: 1. Freepascal/Lazarus port of JEDI Code Library (JCL) (luiz americo pereira camara) 2. Re: Embedded/small database (Kostas Michalopoulos) 3. Hi everyone (Vincenzo Campanella) 4. Re: Embedded/small database (Graeme Geldenhuys) 5. GIS (Terry A. Haimann) 6. Re: Hi everyone (Travis Ayres) 7. Re: How to access libraries from other languages? (Chavoux Luyt) -- Message: 1 Date: Mon, 16 Feb 2015 12:23:27 -0300 From: luiz americo pereira camara luiz...@oi.com.br Subject: [Lazarus] Freepascal/Lazarus port of JEDI Code Library (JCL) To: Lazarus mailing list lazarus@lists.lazarus.freepascal.org Message-ID: cama0j61lkt4glktfupqv7u82k5y7xhso5laftccxitfancw...@mail.gmail.com Content-Type: text/plain; charset=utf-8 Hi, I ported JCL to Freepascal/Lazarus. More info at https://github.com/blikblum/jcl Although most of the changes was adjusting defines / uses clause to make compilable, it needs more tests since I only tested JclExprval. Luiz -- next part -- An HTML attachment was scrubbed... URL: http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150216/3edfdb8b/attachment-0001.html -- Message: 2 Date: Mon, 16 Feb 2015 16:50:04 +0100 From: Kostas Michalopoulos badsectorac...@gmail.com Subject: Re: [Lazarus] Embedded/small database To: Lazarus mailing list lazarus@lists.lazarus.freepascal.org Message-ID: CAH=mexwcopxkvkl_mnywpkhnwalvqdacx+zwrbwjtbvx8bb...@mail.gmail.com Content-Type: text/plain; charset=utf-8 Is this something that will be networked or running locally? If it is a local only program, i'd go with sqlite. On Sun, Feb 15, 2015 at 7:16 PM, Graeme Geldenhuys mailingli...@geldenhuys.co.uk wrote: On 2015-02-15 16:58, zeljko wrote: Maybe you should look at Firebird. +1 Regards, - Graeme - -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- next part -- An HTML attachment was scrubbed... URL: http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150216/7e8fa54e/attachment-0001.html -- Message: 3 Date: Mon, 16 Feb 2015 16:54:55 +0100 From: Vincenzo Campanella vin...@gmail.com Subject: [Lazarus] Hi everyone To: Lazarus mailing list lazarus@lists.lazarus.freepascal.org Message-ID: 54e212cf.4020...@gmail.com Content-Type: text/plain; charset=iso-8859-15; format=flowed Hi everyone I have just subscribed to this mailing list, being interested in a future (in the next few months) development of an accounting program using Pascal + Lazarus. For the time being, I'll probably lurk keeping silent, but then I'll start asking questions, hoping not to disturb you, as my Pascal and Lazarus skills are for sure not the best (up to now experiences in C and Access VBA only). Meanwhile, thank you for Lazarus that seems a very very interesting development tool. Sorry for my bad English, but my mother tongue is Italian and I am from Switzerland. Cheers, vince -- Message: 4 Date: Mon, 16 Feb 2015 16:11:56 + From: Graeme Geldenhuys mailingli...@geldenhuys.co.uk Subject: Re: [Lazarus] Embedded/small database To: lazarus@lists.lazarus.freepascal.org Message-ID: 54e216cc.6090...@geldenhuys.co.uk Content-Type: text/plain; charset=utf-8 On 2015-02-16 15:50, Kostas Michalopoulos wrote: Is this something that will be networked or running locally? If it is a local only program, i'd go with sqlite. Firebird RDBMS allows you to run both Embedded (local DB access only) or Client/Server (TCP/IP access). This means the application can easily scale from a Embedded DB (desktop database app) to a full blown Client/Server application Add RemObjects or RealThinClient to the mix you have a full blown multi tier database
Re: [Lazarus] Lazarus Release Candidate 1 of 1.4
El 17/02/15 a les 12:00, Luca Olivetti ha escrit: El 16/02/15 a les 23:38, Mattias Gaertner ha escrit: == How to test == Download and install the 1.4RC1. - On Windows you can install as a 2ndary install, that will not affect your current install: http://wiki.lazarus.freepascal.org/Multiple_Lazarus#Installation_of_multiple_Lazarus - On other platforms, if you install to a new location you need to use --primary-config-path I used the svn copy and made a different test (note that I modified the useride target in the makefile to add the pcp): C:\laz_1_4make useride ./lazbuild.exe --pcp=config --lazarusdir=. --build-ide= SetPrimaryConfigPath NewValue=config - C:\laz_1_4\config primary config path: C:\laz_1_4\config\ NOTE: Building Lazarus IDE with profile Build IDE with Packages TBuildManager.SetBuildTargetIDE OS=win32 CPU=i386 WS=win32 ERROR: Broken dependency: camviewpkg 0.0camviewpkg 0.0 make: *** [useride] Error 3 I'll build a standard ide to see what happens, but the above procedure worked until now. Sorry, that was a PEBKAC (just yesterday I removed one of the packages to use the upstream one instead of what I cooked myself). Now the make bigide is stuck (i.e. it doesn't proceed) C:\lazextra\rx\tooledit.pas(109,15) Error: (3058) There is no method in an ances tor class to be overridden: TCustomRxDateEdit.Change; C:\lazextra\rx\tooledit.pas(112,15) Error: (3058) There is no method in an ances tor class to be overridden: TCustomRxDateEdit.DoButtonClick(TObject); C:\lazextra\rx\tooledit.pas(219,1) Fatal: (10026) There were 2 errors compiling module, stopping Fatal: (1018) Compilation aborted Error: C:\FPC\2.6.4\bin\i386-Win32\ppc386.exe returned an error exitcode (normal if you did not specify a source file to be compiled) Compiling package rxnew 2.4.2.120: stopped with exit code 1 (3104) Compiling C:\laz_1_4\components\jcf2\Settings\SetWordList.pas (3104) Compiling C:\laz_1_4\components\jcf2\Settings\SetAlign.pas (3104) Compiling C:\laz_1_4\components\jcf2\Settings\SetReplace.pas (3104) Compiling C:\laz_1_4\components\jcf2\Settings\SetUses.pas (3104) Compiling C:\laz_1_4\components\jcf2\Settings\SetPreProcessor.pas TLazPackageGraph.CompileRequiredPackages ERROR=Exit code 1 ERROR: BuildLazarusIDE: Compile AutoInstall Packages failed. I had to interrupt it with CTRL+C Oh, and I have a one line patch to dbgrids.pas, but Jesus didn't acknowledge it yet: http://bugs.freepascal.org/view.php?id=27232 Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] In source Editor, cmd, alt key problem on osx
osx yosemite fpc, lazarus svn qt x64 *-)alt + g key not working, I mean this is procedure list short cut. we talked with zeljko, maybe still working on it. This message about, pressed alt + spell any key some combination paint some char, if its not paint char, alter then release alt key, then press some spell key, paint some chars (not spell) then paint spell. second press and later normal *-) just click cmd key and release, then move mouse on to any function or variable or etc, painting like a mouse link when click on action is normal, not mouse link. or press any key, turn to normal, and paint normal pressed key. alt and cmd key pressed not work properly, ctrl key is normal, I couldn't unnormal action yet. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus Release Candidate 1 of 1.4
Rebuilding works after cleaning out the compiled units/ lib/ and bin/ out of the profile directory. On Tue, Feb 17, 2015 at 12:37 PM, Martin Frb laza...@mfriebe.de wrote: On 17/02/2015 07:32, Dejan Boras wrote: Compiled a few of my projects, works on Fedora 21 x64. But trying to rebuild the IDE gives: File /usr/lib64/lazarus/ide/cmdlinedebugger.pp not found. It never was in this location. But yes it has moved. So if you have an old lazbuild, or previous IDE it will not build (a package must be added by hand). I only tested 1.4RC on windows, and had no issues recompiling. Which method do you use to build? IDE, Lazbuild, ...? And does (temporarily) cleaning the old config dir help? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] need suggestion about ParamStrUTF8(0)
osx yosemite fpc, lazarus svn qt x64 ParamStrUTF8(0) in /lazarus/components/lazutils/fileutil.pas this function result in osx : .../myproject.app/Contents/MacOS/myproject showing normal, but its symbolink link, not application. Why I need real application path, I need create some folder and create ini files in application's same folder. In osx myproject.app is a folder, and finder show it like a application, so end user not find and access to that created folder and ini files. I need real application path. How to do this? thank you. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus Release Candidate 1 of 1.4
Hi, Totally interested in helping test RC1...but...I'm scared. I have Lazarus 1.2.6 installed now and I would like to install RC1 to a separate directory structure. I've downloaded the 3 fpc/laz RC1 DEB files and am ready to go except: I'm working in Kubuntu 14.04. I'm new-ish with Linux, and with DEB packages before this I've simply right clicked and allowed the system to install them. I assume this will overwrite my existing Laz install. So how do I use the deb file such that I consistently get the packages into a new directory structure that will work separately from 1.2.6? using a dpkg switch? If I get to this desired structure, I assume I will need to do the makes manually, yes? (first time...shiver). Also you said if you install to a new location you need to use: --primary-config-path I've done some searching and can find no reference to this switch, I don't even know which program (lazarus? FPC? DPKG?) would expect this switch. Any help, links or whatever, would be appreciated. Once I've convinced myself that I can get the RC onto my system and it will play nicely, I will install and test. Thanks in advance, Julius On 02/16/2015 11:38 PM, Mattias Gaertner wrote: The Lazarus team would like to announce the first release candidate for the upcoming Version 1.4. We would like to invite all users to test this release candidate. Please read below why everybody really should join the testing now. News in this Version http://wiki.lazarus.freepascal.org/Lazarus_1.4.0_release_notes On Windows the installer now allows 2 independent installations. http://wiki.lazarus.freepascal.org/Multiple_Lazarus#Installation_of_multiple_Lazarus About the release process: http://wiki.lazarus.freepascal.org/Lazarus_1.4_fixes_branch#Roadmap_to_1.4 The 1.4RC1 is built with fpc 2.6.4. The release candidate is available for download on SourceForge: http://sourceforge.net/projects/lazarus/files/ Choose your CPU, OS, distro and then the Lazarus 1.4RC1 directory. Minimum requirements: Windows: 98, 2k, XP, Vista, 7, 32 or 64bit. On 64bit it is recommended to use the 32bit IDE. Win98 IDE needs building with flag -dWIN9XPLATFORM. FreeBSD/Linux: gtk 2.8 or qt4.5, 32 or 64bit. Mac OS X: 10.5 to 10.10, 10.9+ without IDE debugger (gdb works), LCL only 32bit, non LCL apps can be 64bit. == Why should everybody (including you) test the release candidate? == In the past weeks the Lazarus team has stabilized the 1.4 fixes branch. The resulting 1.4RC1 is now stable enough to be used by any one for test purposes. However many of the fixes and new features that where committed since the release of 1.2 required changes to the code of existing features too. While we have tested those ourself, there may still be problems that only occur with very specific configurations or one project in a million. Yes, it may be that you are the only person with a project, that will not work in the new IDE. So if you do not test, we can not fix it. Please do not wait for the final release, in order to test. It may be too late. Once the release is out we will have to be more selective about which fixes can be merged for further 1.4.x releases. So it may be, that we can not merge the fix you require. And then you will miss out on all the new features. == How to test == Download and install the 1.4RC1. - On Windows you can install as a 2ndary install, that will not affect your current install: http://wiki.lazarus.freepascal.org/Multiple_Lazarus#Installation_of_multiple_Lazarus - On other platforms, if you install to a new location you need to use --primary-config-path In either case you should make backups. (including your primary config) Open your project in the current Lazarus (1.2.6), and use Publish Project from the project menu. This creates a clean copy of your project. You can then open that copy in the RC1. Please test: - If you can edit forms in the designer - rename components / change properties in Object inspector / Add new events - Add components to form / Move components on form - Frames, if you use them - If you can navigate the source code (e.g. jump to implementation) - Auto completion in source code - Compile, debug and run - Anything else you use in your daily work Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] need suggestion about ParamStrUTF8(0)
On Tue, 17 Feb 2015 14:33:41 +0200 FreeMan freema...@delphiturkiye.com wrote: osx yosemite fpc, lazarus svn qt x64 ParamStrUTF8(0) in /lazarus/components/lazutils/fileutil.pas this function result in osx : .../myproject.app/Contents/MacOS/myproject showing normal, but its symbolink link, not application. When deploying your application you can remove the symbolic link and move the binary into that folder. Eventually Lazarus will put the binary into the folder. Why I need real application path, I need create some folder and create ini files in application's same folder. In osx myproject.app is a folder, and finder show it like a application, so end user not find and access to that created folder and ini files. I need real application path. How to do this? Although the Finder does not show the contents of this folder by default, programs can read and write there normally. You can store ini files there. If you want the user to see your ini files in Finder, then you should create a normal directory. As far as I know there is no standard for that. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus Release Candidate 1 of 1.4
On Tue, 17 Feb 2015 13:42:42 +0100 JuuS j...@mykolab.ch wrote: [...] I have Lazarus 1.2.6 installed now and I would like to install RC1 to a separate directory structure. I've downloaded the 3 fpc/laz RC1 DEB files and am ready to go except: Lazarus 1.2.6 and 1.4 use the same compiler. If you installed 1.2.6 from our sourceforge site, then you only need to update the lazarus deb. It doesn't hurt to install the fpc debs though. deb is clever enough to figure it out. Note: In a few months FPC 3.0 will be released. The following Lazarus 1.4.x release will use that. I'm working in Kubuntu 14.04. I'm new-ish with Linux, and with DEB packages before this I've simply right clicked and allowed the system to install them. I assume this will overwrite my existing Laz install. So how do I use the deb file such that I consistently get the packages into a new directory structure that will work separately from 1.2.6? using a dpkg switch? These deb files are not made for parallel installation. As always: Before installing a new Lazarus version make a backup of your ~/.lazarus directory. Installing the 1.4 deb will replace the old 1.2.6. You can downgrade by installing the 1.2.6 deb. When starting the IDE it will give you an upgrade or downgrade message. Note that downgrade from 1.4 to 1.2.x may loose some settings. You can install a second Lazarus version in parallel. Do you want that? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus