Re: [Lazarus] storing big dynamic matrices in file ?

2023-08-27 Thread DougC via lazarus
Look at procedures BlockWrite and BlockRead for faster way to write/read large 
quantities of data.



Doug C.-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] [fpc-devel] Unicode RTL

2023-07-28 Thread DougC via lazarus
I like WideChar RTL over Unicode RTL!!-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] TMask revisited

2021-10-15 Thread DougC via lazarus
Shouldn't the mask "*.pas*" be used to match file.pas.bak ? If so, the old code 
and new code are ok.



Doug C.






 On Fri, 15 Oct 2021 17:09:03 -0400 Bart via lazarus 
 wrote 


On Fri, Oct 15, 2021 at 2:38 PM Maxim Ganetsky via lazarus
 wrote:

> Please try with, for example bla.pas and bla.pas.bak files.

Mask: *.pas;*.pp;*.inc
Filename: file.pas.bak
Result: does not match, both in the old code and the new code.

-- 
Bart
-- 
___
lazarus mailing list
mailto:lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] libgphoto2 camera capture and control

2020-03-03 Thread DougC via lazarus
Sounds like a configuration change in the camera settings is called for so it 
will stop shutting down after apparent inactivity.





 On Tue, 03 Mar 2020 07:57:28 -0500 Anthony Walter via lazarus 
 wrote 



The library seems to have some application idle timeout functions, but they 
don't seem to do anything with my camera at least.



I appreciate your thoughts.-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] The future of the Lazarus IDE

2019-11-26 Thread DougC via lazarus
On coastal islands here in Maine, USA, some islands have chosen to simply lay 
the fiber cables on the ground rather than bury them or place them on poles as 
long as the run does not cross roads or other potentially damaging obstacles. 
Seems to be working well.



Good luck getting faster service!



Doug C.



 On Tue, 26 Nov 2019 15:38:09 -0500 Bo Berglund via lazarus 
 wrote 



On Sun, 24 Nov 2019 11:35:20 +0100, Florian Klämpfl via lazarus
 wrote:
>May I quote you in discussions :)))? Here in Germany, Sweden is always 
>taken as an example where even the smallest cottage has internet by fiber.

Of course :-)
But my summer cottage case is a special one: sparesly populated area
with difficult terrain, mostly granite islands with very little soil
for digging.-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Multi-platform console application, how to handle file paths?

2019-10-29 Thread DougC via lazarus
For me A: is  always my archives and B: is my regular backup. Easy to remember!





 On Tue, 29 Oct 2019 17:16:56 -0400 Michael Thompson via lazarus 
 wrote 



> 
maybe they could start from A:



N :-) I work offshore for a variety of clients, and using their PCs.  



I always ensure my USB key mount at B: (so I don't have to tweak paths in my 
fpc and Lazarus installs), 

I code in an encrypted folder that I mount at A: (using Veracrypt).-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Website/Mantis back online

2019-04-20 Thread DougC via lazarus
No, you are not alone. Mantis and SVN: Yuch!





 On Sat, 20 Apr 2019 18:35:22 -0400 Vojtěch Čihák via lazarus 
 wrote 



So I am not alone (I chose more diplomatic words).

 

Vojtěch


__

 > Od: "Bart via lazarus" 

 > Komu: "Lazarus mailing list" 

 > Datum: 21.04.2019 00:16

 > Předmět: Re: [Lazarus] Website/Mantis back online

 >


On Sat, Apr 20, 2019 at 11:36 PM Michael Van Canneyt via lazarus

  wrote:

 

 > ... Mantis has been updated to the latest version.

 

 That's a bit of a shock.

 It looks horrible to me ;-(

 

 -- 

 Bart

 -- 

 ___

 lazarus mailing list

 mailto:lazarus@lists.lazarus-ide.org

 https://lists.lazarus-ide.org/listinfo/lazarus

 -- 

___

lazarus mailing list

mailto:lazarus@lists.lazarus-ide.org

https://lists.lazarus-ide.org/listinfo/lazarus-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Cross compile for Linux x64 on Windows 7 x64?

2019-04-02 Thread DougC via lazarus
I am VERY interested in how this question is answered and resolved. It 
seems to be a weak point in how the Lazarus/FPC effort has developed. 



This type of question has prevented me from diving into the Lazarus/FPC 
ecosystem because there seem to be regular requests for help in resolving this 
type of issue. 



Doug C.





 On Tue, 02 Apr 2019 08:14:39 -0400 Bo Berglund via lazarus 
 wrote 



I have a command line utility created in Lazarus 2.0.0/fpc 3.0.4 on

Windows 7 x64. I use the Lazarus/fpc downloaded via this page:

https://www.lazarus-ide.org/index.php?page=downloads



Now I want to compile this project for Linux on the same x64 Intel CPU

so I can run it under Ubuntu 16.4 LTS Server x64.

Since that is a headless machine (it is a server) I need to build the

utility by cross-compile on my Windows x64 Lazarus installation.



Is there a *simple* instruction on how to do this? I have looked at

the doc page:

http://wiki.lazarus.freepascal.org/Cross_compiling

but it is too complex for me to understand. I tried to just go to the

sections I deemed relevant to my simple (and probably very common)

case but they all cross-reference into a maze...



I need a "For Dummies" how-to which presupposes I have installed

Lazarus/Fpc for Windows x64 and then tells me what to download extra

(and from where) and also how to set up the project environment to

make the Linux target.

Is something like that available?





-- 

Bo Berglund

Developer in Sweden



-- 

___

lazarus mailing list

mailto:lazarus@lists.lazarus-ide.org

https://lists.lazarus-ide.org/listinfo/lazarus-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Tell me, does this application exist?

2019-01-06 Thread DougC via lazarus
Anthony- Never heard of such an app. However, I'd like to ask: What is the 
problem this app is designed to solve?



Doug C.-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] 2 small designer improvements ?

2018-12-14 Thread DougC via lazarus
I like and support both ideas, allowing drop on component to replace it with 
another and allowing typed text to be entered into a component property of the 
selected widget!-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Google geocoding API help

2018-06-05 Thread DougC via Lazarus
I'm working through how to obtain LAT/LONG for street addresses in the USA and 
just found GMLib at http://www.cadetill.com/gmlib/  This library is more than I 
need but I'm working my way through the source to find what I need. 

In the meantime I'm asking if anyone knows of a simple how-to or demo or 
example of just sending a street address through the Goggle API
and just getting back LAT and LONG values. No mapping involved - I'll do that 
later.

Doug C.






-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Package and project file format

2018-03-03 Thread DougC via Lazarus
+1 for switch to JSON!





 On Sat, 03 Mar 2018 06:11:19 -0500 Michael Van Canneyt via Lazarus 
lazarus@lists.lazarus-ide.org wrote 




Well, I originally wanted to propose switching to JSON, but I thought that

might be stretching the goodwill a bit too much...






-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Form events firing order and count

2018-02-19 Thread DougC via Lazarus






 On Mon, 19 Feb 2018 13:47:14 -0500 Michael Van Canneyt via Lazarus 
lazarus@lists.lazarus-ide.org wrote 




And documented behaviour is what the language guide of Delphi states.




Is there such a language guide for the language features introduced in the last 
10 years?

AFAIK the last one was published around 2002 so this is hardly a good basis.




-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Favourite stand-alone db file?

2017-11-26 Thread DougC via Lazarus
It would be hard to beat SQLite for a small stand-alone single-user RDBMS.





 On Wed, 22 Nov 2017 00:07:02 -0500 Chavoux Luyt via Lazarus 
lazarus@lists.lazarus-ide.org wrote 




Hi,

I remember that years ago in Delphi I often used Paradox (less often dBase) to 
create a small stand-alone database with my Delphi desktop programs. It had tge 
advantage of 

 1. using Delphi database controls,

 2. no need for a database server or DBMS to be installed on the client's 
machine (= less resources), 

 3. having the ability to deploy the database (basically the DB file(s) (I 
think it was one file per table), a .dll and a setup file telling the program 
where the db is stored (and links between tables?)) all together in a single 
install file (Installshield most of the time, sometimes a custom 
self-extracting file).


I am sure that Lazarus must still be used for these kind of quick-and-easy 
small stand-alone desktop applications. But what is your favourite 
small/embedded database for this kind of once-off personal programs these days, 
and why? Preferably something that can be used on both Linux and Windows 
without the need for ODBC or similar.

Cheers

 Chavoux


--

___

Lazarus mailing list

Lazarus@lists.lazarus-ide.org

https://lists.lazarus-ide.org/listinfo/lazarus






-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Online Package Manager

2017-03-31 Thread DougC via Lazarus
Seems to me you should have at minimum 3 status for packages:

New - Not yet installed but available in repository

Updated - Already installed but a new version is in repository

Up-To-Date - Already installed and installed version is same as in repository



Using "new" for both "not yet installed" and "installed but with available 
updates" is confusing.



 On Wed, 29 Mar 2017 07:37:37 -0400 Balázs Székely via Lazarus 
lazarus@lists.lazarus-ide.org wrote 




Online Package Manager shows the packages with "new" icon if the latest

 release time was in the given number of days, but shows them with normal

 icon if they are older than that days regardless if they are up-to-date

 or not.

 I my opinion:

 - It would be better to show up-to-date packages with normal icon

 and

 - Show all packages with "new" icon if their last release is newer than

 the installed one...




The idea was to notify the user if something has changed in the main 
repository. With your method non-installed packages wouldn't show up as "new" 
packages. For example if a completely new package is added to the main 
repository, you cannot see it as new, which is not optimal in my opinion.Beside 
if a new update is available a bold NEW text appears in the update column(see 
attachment).







-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Old Lazarus code fail at runtime

2016-12-27 Thread DougC via Lazarus
Has OpenDialog been created at this point? Better to double check by changing to



if Assigned(OpenDialog) then

  OpenDialog.Execute

else

  raise Exception.Create('OpenDialog not yet created');





 On Tue, 27 Dec 2016 16:00:19 -0500 Giuliano Colla via Lazarus 
lazarus@lists.lazarus-ide.org wrote 




Il 27/12/2016 12:26, Chavoux Luyt via Lazarus ha scritto:

Hi,



I wrote a small program for Linux in a previous version of Lazarus which 
compiled and ran without problems before. I have now updated to fpc 3.0.0 and 
Lazarus 1.6 (backports version for Debian X86_64 Jessie). The code still 
compiles perfectly (it had a number of warnings, but these have now 
disappeared: e.g. unixfileutil.inc(6,51) Warning: Symbol "UTF8ToSys" is 
deprecated: "Use the function in LazUTF8 unit"), but it results in a runtime 
error 

"Project birds raised exception class 'External: SIGFPE'.



 At address 7FFFEF8FC57F"



when running the following code:

procedure THoofVrm.OpenBtnClick(Sender: TObject);

begin

  OpenDlg.Execute;

end;




What is wrong with my code (and how should I change it)?



I know that there has been a change in FPC/Lazarus string implementation, but 
this is just a standard Lazarus File Open dialog (TOpenDialog) and result in 
the error before even allowing me to select the file to open.



 I am not using either UTF8ToSys or even the unixfileutil unit AFAICT:

"uses

Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,

  IpHtml, StdCtrls, ExtCtrls, Buttons, ExtDlgs, AsyncProcess, Ipfilebroker,

  strutils, Soek;"



Any pointers appreciated...



Regards,

Chavoux








Just a wild guess. The villain might be some property (such as FileName, Filter 
or InitialDir) that you did set up with old Lazarus at design time and which 
isn't compatible with current version. Revising the design time properties of 
your File Open Dialog with Object Inspector should fix the issue.

 Giuliano

 

 

 -- 

___

Lazarus mailing list

Lazarus@lists.lazarus-ide.org

http://lists.lazarus-ide.org/listinfo/lazarus






-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] TPageControl OnChange calling issue

2016-10-25 Thread DougC via Lazarus
Delphi's developers faced exactly the same dilemma with respect to Windows' 
behavior. Some of the standard behavior triggering events did not make much 
sense and they had to decide to keep it as it was or define an improvement. For 
the most part they kept it as it was. 



These are not easy decisions. One logical approach does not always work in all 
cases. However, good documentation alone goes a long, long way to improving the 
situation.





 On Tue, 25 Oct 2016 14:43:09 -0400vfclists . via Lazarus 
lazarus@lists.lazarus-ide.org wrote 




On 10 October 2016 at 10:12, Bart via Lazarus 
lazarus@lists.lazarus-ide.org wrote:

I think this is not logical. If the OnChange event is supposed to fire when the 
tab changes, and a PageIndex or a TabIndex changes the tab then it should do as 
it says. If the programmer wants Delphi compatibility then it is for the 
programmer to set a flag so that the OnChange event only fires when the end 
user changes the tab. In that case there should be a new event such as 
OnUserChange or something similar.




These illogical compatibility related definitions cause no end of trouble.If 
ill thought out definitions went into Delphi it is not smart to conform to 
them. Better make it known that they are illogical and that Lazarus and 
Freepascal do it the right way and gives them the option of switching to Delphi 
behaviour.


-- 

Frank Church









-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Helper for arrays

2016-10-02 Thread DougC via Lazarus
I don't know the answer about helper function but I also dislike Length() for 
arrays.

I solve this dislike by using

  for i := Low(IntegerArray) to High(IntegerArray) do

which covers more possibilities because it handles lower index limit that is 
non-zero. 

Low() and High() also work with static arrays so you can use it almost 
everywhere.



Doug C.



 On Sun, 02 Oct 2016 08:39:51 -0400Aradeonas via Lazarus 
lazarus@lists.lazarus-ide.org wrote 




Hi,



Can I have or make helper for arrays? like making Count property so I can use 
it instead of Length ?

For example :



IntegerArray : array of integer;



for i:= to IntegerArray.Count -1 do





Regards,

Ara




-- http://www.fastmail.com - The professional email service 
--

___

Lazarus mailing list

Lazarus@lists.lazarus-ide.org

http://lists.lazarus-ide.org/listinfo/lazarus






-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Messages from who?

2016-10-01 Thread DougC via Lazarus
I have no problem figuring out how to reply to the place I want to reply to.



The problem I have is seeing who the original sender was. There is nothing in 
the way the messages are presented to me that indicates the original author.



Doug C.





 On Sat, 01 Oct 2016 12:56:21 -0400wkitty42--- via Lazarus 
lazarus@lists.lazarus-ide.org wrote 




On 10/01/2016 08:44 AM, DougC via Lazarus wrote:

 Yes, DougC is me but I see lazarus@lists.lazarus-ide.org

 mailto:lazarus@lists.lazarus-ide.org; in FROM: so I guess it's my 
email client

 doing this. Sigh. Sorry about the noise!



no... the list was changed due to the email security stuff that some major ISPs 

now require... they were refusing to pass on list messages with from address of 

users instead of the list... they were viewed as forgeries even though they 
were 

not...



depending on which button you click to reply to a post, the To: or CC: lines 
may 

include the list as well as the original poster... at least one button should 

reply off-list to the original poster but that one may be broken now and simply 

requires manual intervention to place the original poster's email address in 
the 

field in place of the list's email address...



-- 

 NOTE: No off-list assistance is given without prior approval.

 *Please keep mailing list traffic on the list* unless

 private contact is specifically requested and granted.

-- 

___

Lazarus mailing list

Lazarus@lists.lazarus-ide.org

http://lists.lazarus-ide.org/listinfo/lazarus






-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Messages from who?

2016-10-01 Thread DougC via Lazarus
Recent changes to the Lazarus mailing list make it more difficult to identify 
who has posted a message. The FROM field is always the list, itself, now.



I've noticed that a specific address is CC: to each message. Is this the person 
who actually posted the message?



Are there any plans to restore the actual FROM source to the messages?



Doug C.






-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Mailinglist issues

2016-09-24 Thread DougC via Lazarus
If you are sending from a gmail account do not expect to see your emails sent 
back to you. Gmail actively works to suppress this regardless of how the 
mailing list server works.





 On Sat, 24 Sep 2016 09:06:28 -0400Andrew Haines via Lazarus 
lazarus@lists.lazarus-ide.org wrote 




Now lets see if I get a copy of my email back.






-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus