Re: [Lazarus] How to connect to MariaDB/mySql database from fpc/Lazarus?

2019-09-13 Thread Graeme Geldenhuys via lazarus
On 27/08/2019 3:22 pm, AB via lazarus wrote:
> There is nothing wrong with using mysql or mariadb for websites, it
> is not an accident that they are popular.

I beg to differ - it is terrible!

https://forum.lazarus.freepascal.org/index.php/topic,20826.0.html


Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] How to connect to MariaDB/mySql database from fpc/Lazarus?

2019-09-13 Thread Graeme Geldenhuys via lazarus
On 26/08/2019 10:39 pm, Michael Van Canneyt via lazarus wrote:
> MariaDB/MySQLDB are the probably the worst choices you can make.
> Postgres, Firebird, SQLIte: all better choices, depending on your use case.

+1000

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


Re: [Lazarus] How to connect to MariaDB/mySql database from fpc/Lazarus?

2019-09-13 Thread Graeme Geldenhuys via lazarus
On 26/08/2019 8:53 pm, Bo Berglund via lazarus wrote:
> I am confused about the SQLDB component tab in the IDE since it lists
> many connection components for MySql (7 in fact). Which one do I use?

If you want to hide all complexity of database components, maybe take a
look at tiOPF. It abstracts away all database components and allows you
to freely switch between backend databases and database components
simply with a compiler define change and recompile. You can even switch
from a client/server application to a n-tier application - again just
with a compiler define changes and recompile. Not a single line of code
needs to change. As a bonus, your application works 100% with objects
instead of database tables and fields - thus making unit testing so much
easier.

tiOPF homepage:  http://tiopf.sourceforge.net
tiOPF help on FPC wiki:  https://wiki.lazarus.freepascal.org/tiOPF

Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Code explorer implementation

2019-09-13 Thread Michael Van Canneyt via lazarus



On Fri, 13 Sep 2019, Ryan Joseph via lazarus wrote:


I want to make a tool that can analyze source files for functions/classes
etc...  that can be used for auto complete in 3rd party editors.  I see
Lazarus already has such a “Code Explorer” feature and I wonder how it
gets this information and if I could scavenge it from the project.  Does
anyone have any ideas on this, where to look in the Lazarus sources,
etc...?  I think it may be possible to use .ppu files also but I’m not
sure if the information is as complete as what Lazarus has.


No the ppu will not be as complete.

You can also try the fcl-passrc sources. It is standalone by design, 
and can give you all info that lazarus gives you.


It's used for the pas2js compiler, so you can be sure the info is very complete.

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


[Lazarus] Code explorer implementation

2019-09-13 Thread Ryan Joseph via lazarus
I want to make a tool that can analyze source files for functions/classes 
etc... that can be used for auto complete in 3rd party editors. I see Lazarus 
already has such a “Code Explorer” feature and I wonder how it gets this 
information and if I could scavenge it from the project. Does anyone have any 
ideas on this, where to look in the Lazarus sources, etc...? I think it may be 
possible to use .ppu files also but I’m not sure if the information is as 
complete as what Lazarus has.

Regards,
Ryan Joseph

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


Re: [Lazarus] gtk2: GetOrCreateWidgetInfo: MainWidget info was created causing a memory leak

2019-09-13 Thread Martin Frb via lazarus

On 13/09/2019 17:45, Martin Frb via lazarus wrote:

On 13/09/2019 16:17, AlexeyT via lazarus wrote:

It is fixed; thanks.
New build of Lazarus (trunk) gives errors with CudaText gtk2 build. 
How to fix that? 



If you mean it now longer *prints*

now => no

Now I have No idea where the w came from

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


Re: [Lazarus] gtk2: GetOrCreateWidgetInfo: MainWidget info was created causing a memory leak

2019-09-13 Thread Martin Frb via lazarus

On 13/09/2019 16:17, AlexeyT via lazarus wrote:

It is fixed; thanks.
New build of Lazarus (trunk) gives errors with CudaText gtk2 build. 
How to fix that? 


If you mean it now longer *prints* the message then yes. (This has been 
converted to a compile time warning, if you compile the LCL/interfaces.)
If you mean the leak itself (if indeed that exists/existed), then not 
necessarily. Unless there are more fixes, that I am not aware off.

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


Re: [Lazarus] gtk2: GetOrCreateWidgetInfo: MainWidget info was created causing a memory leak

2019-09-13 Thread AlexeyT via lazarus

It is fixed; thanks.
New build of Lazarus (trunk) gives errors with CudaText gtk2 build. 
How to fix that? 


--
Regards,
Alexey

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


[Lazarus] Win8/Win10 taskbar button is not focused on CudaText start

2019-09-13 Thread AlexeyT via lazarus
I'm not sure it is Laz issue, seem it is- please see the report and GIF 
animation:


https://github.com/Alexey-T/CudaText/issues/2183

--
Regards,
Alexey

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