Re: [Lazarus] Selectable desktops in Lazarus IDE
09.07.2015 22:22, Juha Manninen пишет: I am happy to tell that Lazarus trunk now (r49514) supports desktop settings which can be saved and selected by user. Looks good. Also a "debug desktop" is supported. What is "debug desktop"? This is brought to you by Ondrej Pokorny and myself. Please test. -- Best regards, Maxim Ganetsky mailto:gan...@narod.ru -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Solarized 2 color schemes for Lazarus
I just update tree schemes for better Syncron Edit support. Ara -- http://www.fastmail.com - Send your email first class -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Selectable desktops in Lazarus IDE
On Thu, 9 Jul 2015, Juha Manninen wrote: On Thu, Jul 9, 2015 at 10:48 PM, luiz americo pereira camara wrote: Can you elaborate a bit about the feature? Yes, sorry, I forgot to mention even where the GUI is. It can be opened from Tools -> Desktops ... The idea is the same as Delphi has had for a long time. Their GUI is at the right side of main menu items, on top of the menubar. The cross-platform main menu in Lazarus would not allow putting it there, and it is not a good place anyway. Ondrej noted that the Delphi's solution does not let you select desktops without mouse. The new Lazarus solution does because there is a new IDE command which can be mapped to a key combination. So what belongs to a "desktop"? List of open IDE windows and their positions + sizes, IDE coolbar configuration, component palette configuration, editor toolbar configuration. This feature also changed the format of environmentoptions.xml file. Settings belonging to a desktop are now under tag. Reading the old format is supported obviously. I think it pretty much solves this issue : http://bugs.freepascal.org/view.php?id=21076 Nice job! I can use this to change between GUI project layouts and web project layouts, where I don't need the object inspector etc. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Selectable desktops in Lazarus IDE
On Thu, Jul 9, 2015 at 10:48 PM, luiz americo pereira camara wrote: > Can you elaborate a bit about the feature? Yes, sorry, I forgot to mention even where the GUI is. It can be opened from Tools -> Desktops ... The idea is the same as Delphi has had for a long time. Their GUI is at the right side of main menu items, on top of the menubar. The cross-platform main menu in Lazarus would not allow putting it there, and it is not a good place anyway. Ondrej noted that the Delphi's solution does not let you select desktops without mouse. The new Lazarus solution does because there is a new IDE command which can be mapped to a key combination. So what belongs to a "desktop"? List of open IDE windows and their positions + sizes, IDE coolbar configuration, component palette configuration, editor toolbar configuration. This feature also changed the format of environmentoptions.xml file. Settings belonging to a desktop are now under tag. Reading the old format is supported obviously. I think it pretty much solves this issue : http://bugs.freepascal.org/view.php?id=21076 Regards, Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Compiler Options - Conditionally add a package dependency?
Guys, i suggest to create another thread to discuss namespace. This thread is a different topic, related to the IDE, while namespace is a compiler thing. Luiz Em 09/07/2015 16:12, "silvioprog" escreveu: > On Thu, Jul 9, 2015 at 4:05 PM, silvioprog wrote: > [...] > >> This option also enables the 'UseUnitScopeNames' directive, so you can >>> use a unit declaration like 'uses {$IFNDEF >>> UseUnitScopeNames}MyCompany.{$ENDIF}SysUtils'. >> >> > Oops, > > "... so you can use an unit declaration like 'uses {$IFNDEF > UseUnitScopeNames}MyCompany.{$ENDIF}SysUtils'", that is very useful for > keep support for legacy codes. > > -- > Silvio Clécio > My public projects - github.com/silvioprog > > -- > ___ > 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] LazReport - Feature questions
On Thu, 9 Jul 2015, silvioprog wrote: On Thu, Jul 9, 2015 at 4:45 PM, Michael Van Canneyt wrote: [...] I think Lazreport's design contains some fundamental flaws, which can only be remedied by re-implementing a reporting engine from scratch. This is a very good new! I smell TFPReport in the air... =) Right on :-) Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] LazReport - Feature questions
On Thu, Jul 9, 2015 at 4:45 PM, Michael Van Canneyt wrote: [...] > I think Lazreport's design contains some fundamental flaws, which can only > be remedied by re-implementing a reporting engine from scratch. This is a very good new! I smell TFPReport in the air... =) -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Selectable desktops in Lazarus IDE
Em 09/07/2015 16:23, "Juha Manninen" escreveu: > > I am happy to tell that Lazarus trunk now (r49514) supports desktop > settings which can be saved and selected by user. Can you elaborate a bit about the feature? Luiz > Also a "debug desktop" is supported. > This is brought to you by Ondrej Pokorny and myself. > Please test. > > Regards, > Juha > > -- > ___ > 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] Compiler Options - Conditionally add a package dependency?
On Thu, 9 Jul 2015, silvioprog wrote: On Thu, Jul 9, 2015 at 2:58 PM, Michael Van Canneyt mich...@freepascal.org wrote: [...] We have support for dotted unit names. The only thing missing is a namespace directive. Is there any plan for implementing the -NS[1] compiler parameter? This option allows to use scoped unit names, that is very good for dotted unit names, e.g: MyCompany.SysUtils; // . That is what I am talking about, this is the missing piece. Patches welcome :-) Michael.-- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] LazReport - Feature questions
On Thu, 9 Jul 2015, Gabor Boros wrote: Hi All, Earlier I think will use LazReport for my new project. Implemented Child feature for my needs but now see many other lack of features, problems, reported bugs. Features for example... - Page, Band not have Frames and FillColor properties - FillColor not have (Brush.Style) property - Stretched not working with Line - Frames not have Color, Style, Width properties/side - Keep together feature for Band (e.g. Parent and Child(s)) - In Designer Text object not resized when Font changed - On Preview can scroll below the page - On Preview Find highlight the whole text of view and only the first occurence - Barcode not have Font property Reported bugs for example... http://bugs.freepascal.org/view.php?id=19996 http://bugs.freepascal.org/view.php?id=26263 How easy or hard or impossible to implement the above features into LazReport? In the main source not in a fork. Seeing the above features from LazReport POV better for me if create a report engine from scratch which fit my needs? Opinions? Just an opinion: I am working with Graeme Geldenhuys to create a reporting engine from scratch. I think Lazreport's design contains some fundamental flaws, which can only be remedied by re-implementing a reporting engine from scratch. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Selectable desktops in Lazarus IDE
I am happy to tell that Lazarus trunk now (r49514) supports desktop settings which can be saved and selected by user. Also a "debug desktop" is supported. This is brought to you by Ondrej Pokorny and myself. Please test. Regards, Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Compiler Options - Conditionally add a package dependency?
On Thu, Jul 9, 2015 at 4:05 PM, silvioprog wrote: [...] > This option also enables the 'UseUnitScopeNames' directive, so you can use >> a unit declaration like 'uses {$IFNDEF >> UseUnitScopeNames}MyCompany.{$ENDIF}SysUtils'. > > Oops, "... so you can use an unit declaration like 'uses {$IFNDEF UseUnitScopeNames}MyCompany.{$ENDIF}SysUtils'", that is very useful for keep support for legacy codes. -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Compiler Options - Conditionally add a package dependency?
On Thu, Jul 9, 2015 at 3:45 PM, Michael Van Canneyt wrote: > > > On Thu, 9 Jul 2015, Marcos Douglas wrote: > >> On Thu, Jul 9, 2015 at 2:58 PM, Michael Van Canneyt >> wrote: >>> >>> >>> >>> On Thu, 9 Jul 2015, Marcos Douglas wrote: >>> On Thu, Jul 9, 2015 at 12:58 PM, Michael Van Canneyt wrote: > > > > > On Thu, 9 Jul 2015, Graeme Geldenhuys wrote: > >> Hi, >> >> I have two independent packages. I would like my project to toggle >> between either one (but never both at the same time). Both have a unit >> with the exact same name, hence both packages can't be added to the >> dependency list at the same time. >> >> Is there a way with the Compiler Options -> Other (or Additions and >> Overrides) to include a specific package based on a compiler define? >> >> eg: >> if defined UsePackageA >>PackageDependecy.Add(PackageA) >> else >>PackageDependency.Add(PackageB) >> >> Well something like that at least. > > > > > I would even go further, and have a package included or not depending > on > the > OS. > Similar, I think it should be possible to include a unit in a package, > depending on the OS. > > In short, a set of conditions for package dependencies and contains > lists. I would even go further even more: If we have two units with the same name, would be better if were possible to create an alias namespace for each unit, like C# does. https://msdn.microsoft.com/en-us/library/aa664765(v=vs.71).aspx But you, guys, will talk about "an Unit is a namespace" -- we know this is true -- and this is not necessary... anyway. >>> >>> >>> >>> This is not correct. >>> >>> We have support for dotted unit names. The only thing missing is a >>> namespace >>> directive. >> >> >> I know we have support for dotted unit names -- and this is not so >> important, ie, what the difference between MyUnitName to my.unit.name? >> -- the real problem, IMHO, is the names collisions between packages. > > > I repeat: > "The only thing missing is a namespace directive." > > And then you have what you need. Ok. To get ideas, Graeme has created this years ago: http://wiki.lazarus.freepascal.org/Namespaces Regards, Marcos Douglas -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Compiler Options - Conditionally add a package dependency?
> > On Thu, Jul 9, 2015 at 2:58 PM, Michael Van Canneyt mich...@freepascal.org > wrote: [...] > We have support for dotted unit names. The only thing missing is a > namespace directive. Is there any plan for implementing the -NS[1] compiler parameter? This option allows to use scoped unit names, that is very good for dotted unit names, e.g: MyCompany.SysUtils; // . ... uses SysUtils; // this is an 'alias' for my 'MyCompany.SysUtils' unit ... $ fpc -NSMyCompany (it could be enabled via Lazarus package too) This option also enables the 'UseUnitScopeNames' directive, so you can use a unit declaration like 'uses {$IFNDEF UseUnitScopeNames}MyCompany.{$ENDIF}SysUtils'. P.S.: you can pass two or more scopes via this options, e.g: -NSMyCompany;OtherCompany;SomeLib [1] http://docwiki.embarcadero.com/RADStudio/XE8/en/Delphi_Compiler -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] LazReport - Feature questions
Hi All, Earlier I think will use LazReport for my new project. Implemented Child feature for my needs but now see many other lack of features, problems, reported bugs. Features for example... - Page, Band not have Frames and FillColor properties - FillColor not have (Brush.Style) property - Stretched not working with Line - Frames not have Color, Style, Width properties/side - Keep together feature for Band (e.g. Parent and Child(s)) - In Designer Text object not resized when Font changed - On Preview can scroll below the page - On Preview Find highlight the whole text of view and only the first occurence - Barcode not have Font property Reported bugs for example... http://bugs.freepascal.org/view.php?id=19996 http://bugs.freepascal.org/view.php?id=26263 How easy or hard or impossible to implement the above features into LazReport? In the main source not in a fork. Seeing the above features from LazReport POV better for me if create a report engine from scratch which fit my needs? Opinions? Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Compiler Options - Conditionally add a package dependency?
On Thu, 9 Jul 2015, Marcos Douglas wrote: On Thu, Jul 9, 2015 at 2:58 PM, Michael Van Canneyt wrote: On Thu, 9 Jul 2015, Marcos Douglas wrote: On Thu, Jul 9, 2015 at 12:58 PM, Michael Van Canneyt wrote: On Thu, 9 Jul 2015, Graeme Geldenhuys wrote: Hi, I have two independent packages. I would like my project to toggle between either one (but never both at the same time). Both have a unit with the exact same name, hence both packages can't be added to the dependency list at the same time. Is there a way with the Compiler Options -> Other (or Additions and Overrides) to include a specific package based on a compiler define? eg: if defined UsePackageA PackageDependecy.Add(PackageA) else PackageDependency.Add(PackageB) Well something like that at least. I would even go further, and have a package included or not depending on the OS. Similar, I think it should be possible to include a unit in a package, depending on the OS. In short, a set of conditions for package dependencies and contains lists. I would even go further even more: If we have two units with the same name, would be better if were possible to create an alias namespace for each unit, like C# does. https://msdn.microsoft.com/en-us/library/aa664765(v=vs.71).aspx But you, guys, will talk about "an Unit is a namespace" -- we know this is true -- and this is not necessary... anyway. This is not correct. We have support for dotted unit names. The only thing missing is a namespace directive. I know we have support for dotted unit names -- and this is not so important, ie, what the difference between MyUnitName to my.unit.name? -- the real problem, IMHO, is the names collisions between packages. I repeat: "The only thing missing is a namespace directive." And then you have what you need. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Compiler Options - Conditionally add a package dependency?
On Thu, Jul 9, 2015 at 2:58 PM, Michael Van Canneyt wrote: > > > On Thu, 9 Jul 2015, Marcos Douglas wrote: > >> On Thu, Jul 9, 2015 at 12:58 PM, Michael Van Canneyt >> wrote: >>> >>> >>> >>> On Thu, 9 Jul 2015, Graeme Geldenhuys wrote: >>> Hi, I have two independent packages. I would like my project to toggle between either one (but never both at the same time). Both have a unit with the exact same name, hence both packages can't be added to the dependency list at the same time. Is there a way with the Compiler Options -> Other (or Additions and Overrides) to include a specific package based on a compiler define? eg: if defined UsePackageA PackageDependecy.Add(PackageA) else PackageDependency.Add(PackageB) Well something like that at least. >>> >>> >>> >>> I would even go further, and have a package included or not depending on >>> the >>> OS. >>> Similar, I think it should be possible to include a unit in a package, >>> depending on the OS. >>> >>> In short, a set of conditions for package dependencies and contains >>> lists. >> >> >> I would even go further even more: >> If we have two units with the same name, would be better if were >> possible to create an alias namespace for each unit, like C# does. >> >> https://msdn.microsoft.com/en-us/library/aa664765(v=vs.71).aspx >> >> But you, guys, will talk about "an Unit is a namespace" -- we know >> this is true -- and this is not necessary... anyway. > > > This is not correct. > > We have support for dotted unit names. The only thing missing is a namespace > directive. I know we have support for dotted unit names -- and this is not so important, ie, what the difference between MyUnitName to my.unit.name? -- the real problem, IMHO, is the names collisions between packages. Marcos Douglas -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Compiler Options - Conditionally add a package dependency?
On Thu, 9 Jul 2015, Marcos Douglas wrote: On Thu, Jul 9, 2015 at 12:58 PM, Michael Van Canneyt wrote: On Thu, 9 Jul 2015, Graeme Geldenhuys wrote: Hi, I have two independent packages. I would like my project to toggle between either one (but never both at the same time). Both have a unit with the exact same name, hence both packages can't be added to the dependency list at the same time. Is there a way with the Compiler Options -> Other (or Additions and Overrides) to include a specific package based on a compiler define? eg: if defined UsePackageA PackageDependecy.Add(PackageA) else PackageDependency.Add(PackageB) Well something like that at least. I would even go further, and have a package included or not depending on the OS. Similar, I think it should be possible to include a unit in a package, depending on the OS. In short, a set of conditions for package dependencies and contains lists. I would even go further even more: If we have two units with the same name, would be better if were possible to create an alias namespace for each unit, like C# does. https://msdn.microsoft.com/en-us/library/aa664765(v=vs.71).aspx But you, guys, will talk about "an Unit is a namespace" -- we know this is true -- and this is not necessary... anyway. This is not correct. We have support for dotted unit names. The only thing missing is a namespace directive. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Compiler Options - Conditionally add a package dependency?
On Thu, Jul 9, 2015 at 12:58 PM, Michael Van Canneyt wrote: > > > On Thu, 9 Jul 2015, Graeme Geldenhuys wrote: > >> Hi, >> >> I have two independent packages. I would like my project to toggle >> between either one (but never both at the same time). Both have a unit >> with the exact same name, hence both packages can't be added to the >> dependency list at the same time. >> >> Is there a way with the Compiler Options -> Other (or Additions and >> Overrides) to include a specific package based on a compiler define? >> >> eg: >> if defined UsePackageA >>PackageDependecy.Add(PackageA) >> else >>PackageDependency.Add(PackageB) >> >> Well something like that at least. > > > I would even go further, and have a package included or not depending on the > OS. > Similar, I think it should be possible to include a unit in a package, > depending on the OS. > > In short, a set of conditions for package dependencies and contains lists. I would even go further even more: If we have two units with the same name, would be better if were possible to create an alias namespace for each unit, like C# does. https://msdn.microsoft.com/en-us/library/aa664765(v=vs.71).aspx But you, guys, will talk about "an Unit is a namespace" -- we know this is true -- and this is not necessary... anyway. Best regards, Marcos Douglas -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] how to use HASP HL
Hello, Any one use HASP HL (sentinel) with lazarus? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Compiler Options - Conditionally add a package dependency?
2015-07-09 12:58 GMT-03:00 Michael Van Canneyt : > > > On Thu, 9 Jul 2015, Graeme Geldenhuys wrote: > > >> >> Is there a way with the Compiler Options -> Other (or Additions and >> Overrides) to include a specific package based on a compiler define? >> >> >> > I would even go further, and have a package included or not depending on > the OS. > +1. I hit similar issue and tried to use the Conditionals script with the IDE Macro but could not get working . My idea was do the following, but did not work: if SomeCondition then begin UsageSrcPath += GetIDEValue('$PkgSrcPath(''apackagname'')'); end; In my specific case the condition was the avaibility of a package. See thread "Check if a package is available through macros" Luiz -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Compiler Options - Conditionally add a package dependency?
On 2015-07-09 16:58, Michael Van Canneyt wrote: > I would even go further, and have a package included or not depending > on the OS. Similar, I think it should be possible to include a unit > in a package, depending on the OS. +1 on both counts. I've hit the issue of your second point many years ago with fpGUI packages and had to resort to using two packages of the same name, but in different OS directories. 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] Compiler Options - Conditionally add a package dependency?
On Thu, 9 Jul 2015, Graeme Geldenhuys wrote: Hi, I have two independent packages. I would like my project to toggle between either one (but never both at the same time). Both have a unit with the exact same name, hence both packages can't be added to the dependency list at the same time. Is there a way with the Compiler Options -> Other (or Additions and Overrides) to include a specific package based on a compiler define? eg: if defined UsePackageA PackageDependecy.Add(PackageA) else PackageDependency.Add(PackageB) Well something like that at least. I would even go further, and have a package included or not depending on the OS. Similar, I think it should be possible to include a unit in a package, depending on the OS. In short, a set of conditions for package dependencies and contains lists. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Compiler Options - Conditionally add a package dependency?
Hi, I have two independent packages. I would like my project to toggle between either one (but never both at the same time). Both have a unit with the exact same name, hence both packages can't be added to the dependency list at the same time. Is there a way with the Compiler Options -> Other (or Additions and Overrides) to include a specific package based on a compiler define? eg: if defined UsePackageA PackageDependecy.Add(PackageA) else PackageDependency.Add(PackageB) Well something like that at least. 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] File sync system approach
On 09/07/15 14:22, aradeonas wrote: > Yes,not only but big question. > Im reading about SFTP but it seems not to be a good choice for something > like OwnCloud or DropBox or ... . > >From the idea these systems work like, you'd need a bilateral IP connection from one end to the other, and then (S)FTP protocol working on that, much like OpenVPN or IPSec does, and then some 'automatic' discovery of either end... Usually for hassle-free establishing of such anonymous tunnel over NATs and firewalls, a helper publicly-available server is required; In such manner, either end first try to contact the public server and then the public server passes the either-end info around and makes them 'mate' together (much alike Teamviewer or Skype works) Why? For either end may be behind NAT or restrictive firewall; Also some NAT/Router/Firewall/Office Gateway solutions tend to run weird port masking/protection schemes; or NAT-T; and then there is the weird (and wonderful...) world of UPNP, where you can request a WAN port of your internet gateway to be forwarded to a port you listen on (in an ideal world, more often than not it ends up being abused by NAS devices that tend to hijack your WAN's port 80 or 443...) > Regards, > Ara > > el es -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] File sync system approach
Yes,not only but big question. Im reading about SFTP but it seems not to be a good choice for something like OwnCloud or DropBox or ... . Regards, Ara -- http://www.fastmail.com - A no graphics, no pop-ups email service -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] File sync system approach
On Do, 2015-07-09 at 05:50 -0700, aradeonas wrote: > Database schemes is not a big problem. for me complicity is more in file > sending and receiving and dont know a good source in this subject so I > asked maybe someone done it or know about. > Or even choosing library for this subject,Indy or synapse or else? OK, you only need sth. for transferring the file from one machine to another? For me SFTP woul be the protocoll of choice, but I don't know what pascal library implements it. Marc -- Marc Santhoff -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] File sync system approach
Database schemes is not a big problem. for me complicity is more in file sending and receiving and dont know a good source in this subject so I asked maybe someone done it or know about. Or even choosing library for this subject,Indy or synapse or else? Regards, Ara -- http://www.fastmail.com - Faster than the air-speed velocity of an unladen european swallow -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] File sync system approach
On Mi, 2015-07-08 at 11:54 -0700, aradeonas wrote: > For one of my projects I want to send and receive files between server > and client and for years I saw demos in Indy,Synapse ... but I wonder if > any one done it in real world and have experience or suggestion that > want to share with so prevent me to go wrong or reinvent wheel or engine > if they are out. > > I want to know what is the best approach for making a sync system,what > is the powerfullest library and live library,tips to know about security > or even file changes recognition and upload just changed part like > DropBox. > I don't want all,just if you can help me in some part please do. Maybe it would be a good idea to search for other projects doing the job. How about Owncloud or other server centric application programs? SourceForge or google code and many others are your friend. Or ask your colleagues or friends, if they know something helpful where you can look at the code. If you find a library written in plain C it's not so complicated to make an object pascal binding using fpc's h2pas tool. Additionally you could have a look at relational databases. Locking schemes and replication would be the keywords. HTH, Marc -- Marc Santhoff -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] File sync system approach
Yes you are right. One of my big problems is the file send and receiving,so with library is better or with way. Regards, Ara -- http://www.fastmail.com - Accessible with your email software or over the web -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] File sync system approach
aradeonas wrote: About DB I meant use DB for controlling files not storing them but you noticed good points. Even if your app polls the database server asking if a notification has been issued, it's much less demanding than issuing a full query asking for the timestamp of the most recent file. I'm doing this on Linux, Solaris and Windows using Postgres, and have done it on (only x86) Linux for Firebird. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] File sync system approach
About DB I meant use DB for controlling files not storing them but you noticed good points. Regards, Ara -- http://www.fastmail.com - Does exactly what it says on the tin -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] File sync system approach
aradeonas wrote: Thanks. I think database is a better way. Did you know about libraries and better ways for sending and receiving files,both kind,binary and text? I can't really speak for the non-text situation, and there's a risk that any solution would start giving problems in cases where the number or size of binary files exceeded some arbitrary threshold. In the case of text, I've typically used TDBMemo or similar for the transfer, although a better solution would be to have a DB-aware TStrings descendant (I don't know whether this exists and is accessible). In the case of at least PostgreSQL and Firebird you can also get at a notification mechanism that allows a program instance to advise others that it's changed something, but doing this requires fiddling with handles directly and might not be portable across Lazarus/FPC versions. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] File sync system approach
Thanks. I think database is a better way. Did you know about libraries and better ways for sending and receiving files,both kind,binary and text? Regards, Ara -- http://www.fastmail.com - Faster than the air-speed velocity of an unladen european swallow -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] File sync system approach
aradeonas wrote: [Cross posted on forum so if you want answer there : http://forum.lazarus.freepascal.org/index.php/topic,29007.0.html] Hi, For one of my projects I want to send and receive files between server and client and for years I saw demos in Indy,Synapse ... but I wonder if any one done it in real world and have experience or suggestion that want to share with so prevent me to go wrong or reinvent wheel or engine if they are out. I want to know what is the best approach for making a sync system,what is the powerfullest library and live library,tips to know about security or even file changes recognition and upload just changed part like DropBox. I don't want all,just if you can help me in some part please do. I think that some of this depends on whether you're talking about text or binary files, whether the sharing structure is like a tree or like an arbitrary graph, and the anticipated level of traffic. One possibility would be to put files into Subversion and either invoke svn or use libsvn (I think somebody was working on a wrapper for this). Another would be to put them into a database (I use this for application-level scripts). Don't use something like a discussion group server, since there could be unexpected indexing problems. Another possibility would be to look at what a multiuser-aware program like Inkscape uses. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Is there a bug in auto indentation in 1.4 or is it just me?
Ok, I have a working minimal example, see the attached file. It seems to be related to the setting: "context sensitive" In my above example I have two functions "foo" and "bar". The first one is formatted like K+R-Style (begin on end of line), I have been doing this with all my code since the early days already without problems, the only times I am using traditional formatting is when I am working on someone elses project with different formatting. The second function uses the traditional Pascal formatting (begin on own line). * It only ever seems to affect the else branch of an if, no other constructs I have found to be affected. In the first function it will still work, it seems when it is trying to figure out the formatting it is looking at the second function (which is formattet like the standard pascal formatting). But as soon as there is more than one else with K+R formatting in the file it will stop working correctly. * Even if my entire file is formatted strictly K+R it won't be able to indent the else branch correctly anymore, but all other constructs seem to work just fine with this formatting style. * If I turn "context sensitive" OFF then all problems disappear (even with mixed traditional and K+R formatting). * If I use an entirely K+R formatted laz_indentation file it makes no difference, it still always works (even for mixed sources). * If context sensitive is ON it will stop working, regardless of the formatting of the laz_indentation file, even if there is NO (!) laz_indentation file at all, the else branch will always be broken in K+R, all other constructs will be working fine. Bernd 2015-07-08 15:22 GMT+02:00 Martin Frb : > On 08/07/2015 10:51, Bernd wrote: >> >> >> I cannot find any way to influence this behavior in the editor >> settings (which are very confusing btw), I cannot even change anything >> at all there, even if I set everything to 4 spaces instead of 2 it >> will still use 2 spaces everywhere (and 4 in an else begin branch). >> >> Is this just me or is this a bug in the 1.4 release? >> > > You probably have "smart indent" on (see codetools section of config). The > editor section has a link that takes you there too. > > afaik the smart indent takes it rules from a sample source in the config > path... > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus Unit1.pas Description: Binary data -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus