Re: [Lazarus] Support for MariaDB 10.0

2015-06-09 Thread Michael Van Canneyt



On Tue, 9 Jun 2015, Josef Schnieder wrote:


Hi,

I have also problems to connect with TMySQL56Connection. The error-message is 
"can not work with the installed MySql client version: Expected (5.6) got 
(10.0.13-MariaDB)".

(fpc 2.6.4-2.10, lazarus 1.4.0.0, OpenSuse 13.2)


Well. 
The code checks if 5.6 or 10.0 is present in the version string reported by the client.
So normally it should work, but with trunk only. Not with 2.6.4. 
So you'll have to wait for the upcoming 3.0


Michael.



Josef


Am 09.06.2015 um 07:27 schrieb Michael Van Canneyt:



On Mon, 8 Jun 2015, Koenraad Lelong wrote:


Op 12-05-15 om 10:03 schreef leledumbo:

Any support for MariaDB 10.0 branch?
client library?


TMySQL56Connection can connect to MariaDB perfectly.


Hi,

I have the MariaDB 10.0.13 client-libs. TMySQL56Connection can not 
connect. Any solution ?


What is the error ?

Michael.

--
___
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 mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Support for MariaDB 10.0

2015-06-09 Thread leledumbo
> fpc 2.6.4-2.10, lazarus 1.4.0.0, OpenSuse 13.2

Perhaps opensuse team creates its own 2.6.4? AFAIR TMySQL56Connection is not
available in 2.6.4. You should either use fixes 3.0.0 or trunk.



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Support-for-MariaDB-10-0-tp4042171p4042549.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] Support for MariaDB 10.0

2015-06-09 Thread Josef Schnieder

Hi,

I have also problems to connect with TMySQL56Connection. The 
error-message is "can not work with the installed MySql client version: 
Expected (5.6) got (10.0.13-MariaDB)".

(fpc 2.6.4-2.10, lazarus 1.4.0.0, OpenSuse 13.2)

Josef


Am 09.06.2015 um 07:27 schrieb Michael Van Canneyt:



On Mon, 8 Jun 2015, Koenraad Lelong wrote:


Op 12-05-15 om 10:03 schreef leledumbo:

Any support for MariaDB 10.0 branch?
client library?


TMySQL56Connection can connect to MariaDB perfectly.


Hi,

I have the MariaDB 10.0.13 client-libs. TMySQL56Connection can not 
connect. Any solution ?


What is the error ?

Michael.

--
___
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] (no subject)

2015-06-09 Thread Lukasz Sokol
Hi Graeme,

On 09/06/15 14:17, Graeme Geldenhuys wrote:
> On 2015-05-06 15:27, Lukasz Sokol wrote:
>> You are consistently:
>>
>> - top posting (please don't unless you have a good reason like need to use 
>> of screen reader)
> 
> Lukasz, here is a good response that explains the issue clearly (screen
> reader exception applies).
> 
> 
> A: Yes.
>> Q: Are you sure?
>>> A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?
> 
> 
> :-)

Cool although it must be noted I prefer to hand-craft my top-posting warnings ;)

It gets them* to gtfo what top-posting means :) and there is no knowledge like 
having gtfo'd something by oneself ;)

*hopefully

> 
> Regards,
>   - Graeme -
> 
Kind Regards

Lukasz


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


Re: [Lazarus] (no subject)

2015-06-09 Thread aradeonas
Good one !

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] (no subject)

2015-06-09 Thread Graeme Geldenhuys
On 2015-05-06 15:27, Lukasz Sokol wrote:
> You are consistently:
> 
> - top posting (please don't unless you have a good reason like need to use of 
> screen reader)

Lukasz, here is a good response that explains the issue clearly (screen
reader exception applies).


A: Yes.
> Q: Are you sure?
> > A: Because it reverses the logical flow of conversation.
> > > Q: Why is top posting annoying in email?


:-)

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] Specialize for Object

2015-06-09 Thread aradeonas
Specialize for object or record need operator definition.
I really missed easy to use collections in Delphi.In this field I never
could use it easy even everything goes well but still JCF will face to
problem.

Regards,
Ara


-- 
http://www.fastmail.com - Access your email from home and the web


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


Re: [Lazarus] fast mathematical matrix operations

2015-06-09 Thread Andrea Mauri
Since I am not experienced with thread and actually I am involved in 
other projects I cannot work on it.
I am evaluating to propose a bounty (150 euro) to make mrmath fully 
compatible with fpc (and working on win 32/64 linux 32/64..).

How can I do that?
I know that there is a page for bounties:
http://wiki.lazarus.freepascal.org/Bounties
how can I propose my bounty?
Anybody interested?

Thanks,
Andrea

Il 09/06/2015 09:42, Michael Schnell ha scritto:

On 06/08/2015 03:29 PM, Andrea Mauri wrote:


It is difficult for me ;-) since it uses two different thread
implementations (one for windows and one for MAC OS).

That is why I mentioned the Thread-pool implementation. It uses just
TThread and hence is as cross-platform as fpc is.

(In fact I suppose there are several more thread-pool units that are
better tested than my proof of concept.)

-Michael


--
___
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] Specialize for Object

2015-06-09 Thread Michael Van Canneyt



On Tue, 9 Jun 2015, aradeonas wrote:


Thank you very much.
Its weird that I couldn't find any thing about this.


What exactly ?

Michael.

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


Re: [Lazarus] Specialize for Object

2015-06-09 Thread aradeonas
Thank you very much. Its weird that I couldn't find any thing
about this.

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] Specialize for Object

2015-06-09 Thread Sven Barth
Am 09.06.2015 11:30 schrieb "aradeonas" :
>
> Thank you but I cant understand,can you explain more?
> This problem also happen for record but not classes.
> I am searching for easiest way to make list of records or objects.

Records and objects don't have an = operator defined, while for classes it
is defined as pointer comparison.

Regards,
Sven
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Export of wiki pages to html/chm

2015-06-09 Thread Werner Pamler
It is my intention to distribute the next release version of 
fpspreadsheet with the relevant chm snapshot of the wiki page. 
Therefore, I am experimenting with exporting the wiki to the local 
computer and coverting it to html and chm files. I am using the 
following command lines for this purpose:


   wikiget --page=FPSpreadsheet
   wikiconvert --format=chm --css=chm\wiki.css
   wikixml\FPSpreadsheet.s00.xml

At first, I was extremely surprised how easy this is and how well it 
works (after fixing some minor issues - see bugtracker). In detail, 
however, there are some issues left which I cannot fix without digging 
very deeply into the wiki and html parsers:


 * All the text of the converted wiki page is shown in the color of the
   anchors. After searching for a while I found that IMHO the "a" tag
   is not correctly used in the converted html files: A header line in
   the text is currently converted as:

  

API Documentation 
...

   I think the correct syntax is

  
API Documentation 
...

   After this modification in the html file the browser shows the text
   in black.

 * Links to external or wiki-internal documents are not working.

 * In table headers of the wiki I had separated the individual header
   cells by double exclamation marks (!!). I think - maybe from this
   page http://meta.wikimedia.org/wiki/Help:Sorting - that this is a
   legal syntax, and it has been working perfectly in the wiki. The
   converted file, however, does not separate the line at the
   exclamation marks, and the exclamation files are still in the file.
   After replacing the double exclamation marks with double pipe
   symbols, I could make it work; but I think the converter has a bug here.

In the final end, I would like to create a navigation tree in the left 
pane of the chm file. Any idea how this can be done?



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


Re: [Lazarus] Specialize for Object

2015-06-09 Thread aradeonas
Thank you but I cant understand,can you explain more? This problem also
happen for record but not classes. I am searching for easiest way to
make list of records or objects.

Regards, Ara


-- 
http://www.fastmail.com - Access all of your messages and folders
  wherever you are

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


Re: [Lazarus] Specialize for Object

2015-06-09 Thread Sven Barth
Am 09.06.2015 11:12 schrieb "aradeonas" :
>
> Hi,
>
>>
>>   TTestObject = object
>> i: integer;
>>   end;
>>
>>   TTestObjectList = specialize TFPGList;
>
>
> When I try to compile this code compiler said :
>
>>
>> Error: Operator is not overloaded: "TTestObject" = "TTestObject"
>
>
> I dont even know what is this mean!

TFPGList<> requires an = operator for the type you want to specialize with.
While you could declare a global operator overload for TTestObject this
won't help as it needs to be a local one. Only records with modeswitch
advancedrecords support this currently, thus you should adjust your code
like this:

=== code begin ===

{$modeswitch advancedrecords} // this needs to be after the $mode, but
before the uses section

type
  TTestObject = record
 i: integer;
  class operator = (const aLeft, aRight: TTestObject): Boolean;
  end;

  TTestObjectList = specialize TFPGList;

// ...

class operator TTestObject.=(const aLeft, aRight: TTestObject): Boolean;
begin
  // whatever you need for equality
end;

=== code end ===

Regards,
Sven
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] EPIKTIMER etc

2015-06-09 Thread Sven Barth
Am 09.06.2015 09:44 schrieb "Michael Schnell" :
>
> On 06/08/2015 05:13 PM, Sven Barth wrote:
>>
>>
>> Then maybe the recommendation was that all systems using AD should get
their time using NTP. Thus you should now have even less login problems
than before :P
>>
>
> Clients using their own NTP sync is a no-go in AD, according to the IT
department. You are locked in M$-Time.

As long as the server and the client synchronize to the same time (not
necessarily the same NTP server) in the end I see no problem. Of course
it's recommended that the client synchronize their time with the AD server
though as this would reduce the risk of misconfiguration.

Regards,
Sven
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Specialize for Object

2015-06-09 Thread aradeonas
Hi,

> TTestObject = object    i: integer;  end;
>
> TTestObjectList = specialize TFPGList;

When I try to compile this code compiler said :

> Error: Operator is not overloaded: "TTestObject" = "TTestObject"

I dont even know what is this mean!

Regards, Ara

-- 
http://www.fastmail.com - Access all of your messages and folders
  wherever you are

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


Re: [Lazarus] EPIKTIMER etc

2015-06-09 Thread Lukasz Sokol
On 09/06/15 08:44, Michael Schnell wrote:
> On 06/08/2015 05:13 PM, Sven Barth wrote:
>> 
>> Then maybe the recommendation was that all systems using AD should
>> get their time using NTP. Thus you should now have even less login
>> problems than before :P
>> 
> 
> Clients using their own NTP sync is a no-go in AD, according to the
> IT department. You are locked in M$-Time.
> 
> -Michael

Some of this page might be interesting to you :

http://phk.freebsd.dk/time/

(tl;dr: he could detect remote NTP servers' clock PHASE fluctuation 8-O )

el es



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


Re: [Lazarus] EPIKTIMER etc

2015-06-09 Thread Michael Schnell

On 06/08/2015 05:13 PM, Sven Barth wrote:


Then maybe the recommendation was that all systems using AD should get 
their time using NTP. Thus you should now have even less login 
problems than before :P




Clients using their own NTP sync is a no-go in AD, according to the IT 
department. You are locked in M$-Time.


-Michael

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


Re: [Lazarus] fast mathematical matrix operations

2015-06-09 Thread Michael Schnell

On 06/08/2015 03:29 PM, Andrea Mauri wrote:


It is difficult for me ;-) since it uses two different thread 
implementations (one for windows and one for MAC OS).
That is why I mentioned the Thread-pool implementation. It uses just 
TThread and hence is as cross-platform as fpc is.


(In fact I suppose there are several more thread-pool units that are 
better tested than my proof of concept.)


-Michael


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