Re: [Lazarus] Firefox OS

2013-07-16 Thread Sven Barth
Am 16.07.2013 01:57, schrieb Jy V: I do agree with Sven, the way to go is http://goldparser.org/ the same technique has been used for project llvm_pascal http://code.google.com/p/llvm-pascal/ Why would I want to use a parser generator if we have a fully

Re: [Lazarus] Lazarus, Jedi etc.

2013-07-16 Thread Reinier Olislagers
On 15-7-2013 18:40, Ludo Brands wrote: On 07/15/2013 05:53 PM, Graeme Geldenhuys wrote: Need other default (mis)behaviors for MySQL? -insert 123test in an integer field: no error, it inserts 123 -insert 123test in a datetime field: no error, it inserts -00-00 00:00:00 -insert 123 in a

Re: [Lazarus] Losing data when saving Database fileds with Size defined and UTF8 chars

2013-07-16 Thread Reinier Olislagers
On 15-7-2013 18:43, Hans-Peter Diettrich wrote: Reinier Olislagers schrieb: On 14-7-2013 8:00, Daniel Simoes de Ameida wrote: Workaround: make your field size as large as the maximum number of UTF8 bytes you expect. Another workaround: use the appropriate codepage for storing strings in

Re: [Lazarus] Losing data when saving Database fileds with Size defined and UTF8 chars

2013-07-16 Thread Graeme Geldenhuys
On 2013-07-15 17:43, Hans-Peter Diettrich wrote: Another workaround: use the appropriate codepage for storing strings in the database, so that all characters are single bytes. You should know by now that not all characters can be represented in a single byte. Also Unicode was developed to

Re: [Lazarus] Lazarus, Jedi etc.

2013-07-16 Thread Mark Morgan Lloyd
Reinier Olislagers wrote: It's not a bug, it's a feature: MySQL accepts data other DBs wouldn't touch with a 10 foot pole ;) (Don't ask about it proceeding and mangling that data - that's beside the point ;) ) If it really is so bad, why have so many developers- in particularly web

Re: [Lazarus] Firefox OS

2013-07-16 Thread Michael Schnell
On 07/15/2013 10:47 PM, Mark Morgan Lloyd wrote: asm.js does seem to have a lot going for it. So I suppose a fair question is to what extent custom-drawn LCLs for Android and Firefox OS could share code, and whether this abstraction could be useful for other targets e.g. framebuffer or naked

Re: [Lazarus] Firefox OS

2013-07-16 Thread Michael Schnell
On 07/15/2013 09:24 PM, Sven Barth wrote: I would keep out LLVM and emscripten and just directly generate asm.js code which is then simply compatible to the libraries provided by the emscripten project. That of course is advantageous, as it can be done in Pascal, as the fpc is used to and

Re: [Lazarus] Firefox OS

2013-07-16 Thread Michael Schnell
On 07/15/2013 10:19 PM, Sven Barth wrote: Why would I want to use a parser generator if we have a fully working multi-backend compiler available?! +1 Either stay with the current (excellent) Parser, or switch to a major standard such as LLVM or gcc ! -Michael --

Re: [Lazarus] Firefox OS

2013-07-16 Thread Michael Schnell
On 07/16/2013 10:44 AM, Michael Schnell wrote: http://asmjs.org/spec/latest/#introduction looks really interesting as a target arch for fpc. Should we switch to the fpc-devel mailing list on that issue ? -Michael -- ___ Lazarus mailing list

Re: [Lazarus] Lazarus, Jedi etc.

2013-07-16 Thread Michael Van Canneyt
On Tue, 16 Jul 2013, Mark Morgan Lloyd wrote: Reinier Olislagers wrote: It's not a bug, it's a feature: MySQL accepts data other DBs wouldn't touch with a 10 foot pole ;) (Don't ask about it proceeding and mangling that data - that's beside the point ;) ) If it really is so bad, why have

Re: [Lazarus] Lazarus, Jedi etc.

2013-07-16 Thread Chavoux Luyt
Hi Mark On 16 July 2013 09:47, lazarus-requ...@lists.lazarus.freepascal.org wrote: Send Lazarus mailing list submissions to lazarus@lists.lazarus.freepascal.org From: Mark Morgan Lloyd markmll.laza...@telemetry.co.uk snip If it really is so bad, why have so many developers- in

Re: [Lazarus] Lazarus, Jedi etc.

2013-07-16 Thread Reinier Olislagers
On 16-7-2013 10:59, Michael Van Canneyt wrote: On Tue, 16 Jul 2013, Mark Morgan Lloyd wrote: Reinier Olislagers wrote: It's not a bug, it's a feature: MySQL accepts data other DBs wouldn't touch with a 10 foot pole ;) (Don't ask about it proceeding and mangling that data - that's beside the

Re: [Lazarus] Lazarus, Jedi etc.

2013-07-16 Thread Henry Vermaak
On Tue, Jul 16, 2013 at 08:33:45AM +, Mark Morgan Lloyd wrote: Reinier Olislagers wrote: It's not a bug, it's a feature: MySQL accepts data other DBs wouldn't touch with a 10 foot pole ;) (Don't ask about it proceeding and mangling that data - that's beside the point ;) ) If it

Re: [Lazarus] Lazarus, Jedi etc.

2013-07-16 Thread Reinier Olislagers
On 16-7-2013 11:17, Henry Vermaak wrote: On Tue, Jul 16, 2013 at 08:33:45AM +, Mark Morgan Lloyd wrote: If it really is so bad, why have so many developers- in particularly web developers- clasped it to their bosom? Probably not, no, given that it's used by wikipedia, google, twitter,

Re: [Lazarus] Lazarus, Jedi etc.

2013-07-16 Thread Michael Schnell
On 07/16/2013 11:17 AM, Henry Vermaak wrote: Probably not, no, given that it's used by ... I seem to find out that this discussion is about experts making fun on each other, just wasting some bandwidth :-) . -Michael -- ___ Lazarus mailing list

Re: [Lazarus] Lazarus, Jedi etc.

2013-07-16 Thread Mark Morgan Lloyd
Reinier Olislagers wrote: There's lots of whacky code out there that still is used in production, and patched endlessly whenever the next error pops up. Doesn't mean it's a good idea to go down that path. That said, I agree about the configuring+ranting part, but I'm not sure to what level of

Re: [Lazarus] Lazarus, Jedi etc.

2013-07-16 Thread Michael Van Canneyt
On Tue, 16 Jul 2013, Michael Schnell wrote: On 07/16/2013 11:17 AM, Henry Vermaak wrote: Probably not, no, given that it's used by ... I seem to find out that this discussion is about experts making fun on each other, just wasting some bandwidth :-) . That's the best joke I've heard in

Re: [Lazarus] Lazarus, Jedi etc.

2013-07-16 Thread Henry Vermaak
On Tue, Jul 16, 2013 at 11:22:44AM +0200, Reinier Olislagers wrote: On 16-7-2013 11:17, Henry Vermaak wrote: On Tue, Jul 16, 2013 at 08:33:45AM +, Mark Morgan Lloyd wrote: If it really is so bad, why have so many developers- in particularly web developers- clasped it to their bosom?

Re: [Lazarus] Lazarus, Jedi etc.

2013-07-16 Thread Henry Vermaak
On Tue, Jul 16, 2013 at 11:28:38AM +0200, Michael Schnell wrote: On 07/16/2013 11:17 AM, Henry Vermaak wrote: Probably not, no, given that it's used by ... I seem to find out that this discussion is about experts making fun on each other, just wasting some bandwidth :-) . They're just

Re: [Lazarus] Firefox OS

2013-07-16 Thread Sven Barth
Am 16.07.2013 10:44, schrieb Michael Schnell: On 07/15/2013 10:47 PM, Mark Morgan Lloyd wrote: asm.js does seem to have a lot going for it. So I suppose a fair question is to what extent custom-drawn LCLs for Android and Firefox OS could share code, and whether this abstraction could be useful

Re: [Lazarus] Firefox OS

2013-07-16 Thread Mark Morgan Lloyd
Michael Schnell wrote: On 07/16/2013 10:44 AM, Michael Schnell wrote: http://asmjs.org/spec/latest/#introduction looks really interesting as a target arch for fpc. Should we switch to the fpc-devel mailing list on that issue ? I think an important issue is whether asm.js can be translated

Re: [Lazarus] Firefox OS

2013-07-16 Thread Michael Van Canneyt
On Tue, 16 Jul 2013, Michael Schnell wrote: On 07/15/2013 10:47 PM, Mark Morgan Lloyd wrote: asm.js does seem to have a lot going for it. So I suppose a fair question is to what extent custom-drawn LCLs for Android and Firefox OS could share code, and whether this abstraction could be

[Lazarus] Anders Hejlsberg interview

2013-07-16 Thread Howard Page-Clark
People may be interested to listen to this 20 minute interview with Anders (and a MS colleague named Steve Lucco) in which they discuss Java, Javascript, C#, Typescript, XMl... http://www.codeproject.com/Articles/619759/CodeProject-interviews-Anders-Hejlsberg-and-Steve They also mention

Re: [Lazarus] Lazarus, Jedi etc.

2013-07-16 Thread Chavoux Luyt
Hi Henry On 16 July 2013 10:28, lazarus-requ...@lists.lazarus.freepascal.org wrote: From: Henry Vermaak henry.verm...@gmail.com snip If it really is so bad, why have so many developers- in particularly web developers- clasped it to their bosom? Probably not, no, given that it's used by

[Lazarus] LHelp flickering solution: request for comments

2013-07-16 Thread Reinier Olislagers
Hi *, I've written up a proposal to stop lhelp from flickering (e.g. when loading multiple chm files on start) and close it when the IDE is closed. See bug: http://bugs.freepascal.org/view.php?id=24743 Comments/suggestions welcome. Thanks, Reinier --

Re: [Lazarus] Anders Hejlsberg interview

2013-07-16 Thread Michael Van Canneyt
On Tue, 16 Jul 2013, Howard Page-Clark wrote: People may be interested to listen to this 20 minute interview with Anders (and a MS colleague named Steve Lucco) in which they discuss Java, Javascript, C#, Typescript, XMl...

Re: [Lazarus] Firefox OS

2013-07-16 Thread Michael Schnell
On 07/16/2013 12:23 PM, Sven Barth wrote: show how you can execute it on the command line as well. Do you start Firefox, a part of same (or whatever) with some command line arguments to do this ? -Michael -- ___ Lazarus mailing list

Re: [Lazarus] Firefox OS

2013-07-16 Thread Michael Schnell
On 07/16/2013 12:11 PM, Sven Barth wrote: Ehm... you do know that the Android GUI is not based on any HTML? It's a Java based system... While I learned this only after I phrased this message, OTOH HTML5 also is a Java based system and thus the thought might not be _completely_ wrong.

Re: [Lazarus] Firefox OS

2013-07-16 Thread Sven Barth
Am 16.07.2013 12:58 schrieb Michael Schnell mschn...@lumino.de: On 07/16/2013 12:11 PM, Sven Barth wrote: Ehm... you do know that the Android GUI is not based on any HTML? It's a Java based system... While I learned this only after I phrased this message, OTOH HTML5 also is a Java based

Re: [Lazarus] Firefox OS

2013-07-16 Thread Reinier Olislagers
On 16-7-2013 12:56, Michael Schnell wrote: On 07/16/2013 12:11 PM, Sven Barth wrote: Ehm... you do know that the Android GUI is not based on any HTML? It's a Java based system... While I learned this only after I phrased this message, OTOH HTML5 also is a Java based system and thus the

[Lazarus] version of fpuname function for windows

2013-07-16 Thread Johan Tu Toit
Dear Fellow, Please I would like to know if its possible to fpuname function for windows? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Firefox OS

2013-07-16 Thread Sven Barth
Am 16.07.2013 12:54 schrieb Michael Schnell mschn...@lumino.de: On 07/16/2013 12:23 PM, Sven Barth wrote: show how you can execute it on the command line as well. Do you start Firefox, a part of same (or whatever) with some command line arguments to do this ? If you want a GUI you'll need

Re: [Lazarus] Lazarus, Jedi etc.

2013-07-16 Thread Reinier Olislagers
On 16-7-2013 11:53, Henry Vermaak wrote: On Tue, Jul 16, 2013 at 11:22:44AM +0200, Reinier Olislagers wrote: On 16-7-2013 11:17, Henry Vermaak wrote: On Tue, Jul 16, 2013 at 08:33:45AM +, Mark Morgan Lloyd wrote: If it really is so bad, why have so many developers- in particularly web

Re: [Lazarus] Firefox OS

2013-07-16 Thread Sven Barth
Am 16.07.2013 12:13, schrieb Mark Morgan Lloyd: Michael Schnell wrote: On 07/16/2013 10:44 AM, Michael Schnell wrote: http://asmjs.org/spec/latest/#introduction looks really interesting as a target arch for fpc. Should we switch to the fpc-devel mailing list on that issue ? I think an

Re: [Lazarus] Firefox OS

2013-07-16 Thread Michael Van Canneyt
On Tue, 16 Jul 2013, Michael Schnell wrote: On 07/16/2013 12:11 PM, Sven Barth wrote: Ehm... you do know that the Android GUI is not based on any HTML? It's a Java based system... While I learned this only after I phrased this message, OTOH HTML5 also is a Java based system and thus the

Re: [Lazarus] Firefox OS

2013-07-16 Thread Michael Schnell
On 07/16/2013 01:09 PM, Sven Barth wrote: but otherwise a JS command line interpreter is sufficient. That was what I tried to ask. I never heard of any JS command line interpreter. Is there one provided by Mozilla ? -Michael -- ___ Lazarus

Re: [Lazarus] Firefox OS

2013-07-16 Thread Michael Schnell
On 07/16/2013 01:09 PM, Sven Barth wrote: JS command line interpreter OK, I did find Rhino. https://developer.mozilla.org/en-US/docs/Rhino -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Firefox OS

2013-07-16 Thread Michael Schnell
On 07/16/2013 01:07 PM, Sven Barth wrote: HTML5 has *nothing* to do with Java. Sorry for again typing faster than thinking. :-( -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Firefox OS

2013-07-16 Thread Michael Schnell
On 07/16/2013 01:25 PM, Michael Van Canneyt wrote: Where do you get your information ? I was just being confused and apologize for wasted bandwidth :-( . -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] LHelp flickering solution: request for comments

2013-07-16 Thread Mark Morgan Lloyd
Reinier Olislagers wrote: Hi *, I've written up a proposal to stop lhelp from flickering (e.g. when loading multiple chm files on start) and close it when the IDE is closed. See bug: http://bugs.freepascal.org/view.php?id=24743 Comments/suggestions welcome. Two questions if I may. First,

Re: [Lazarus] LHelp flickering solution: request for comments

2013-07-16 Thread Reinier Olislagers
On 16-7-2013 14:56, Mark Morgan Lloyd wrote: Reinier Olislagers wrote: http://bugs.freepascal.org/view.php?id=24743 Comments/suggestions welcome. Two questions if I may. Of course, that's why I posted this... First, what happens if two copies of the IDE are open? Are there two separate

Re: [Lazarus] Firefox OS

2013-07-16 Thread Michael Schnell
I Do know that confusing Java and Java-Script is similar to confusing a HedgeHog and a Pig, But things like that happen in my advanced age :-( . -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Firefox OS

2013-07-16 Thread Reimar Grabowski
On Tue, 16 Jul 2013 12:53:02 + Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: So can anybody provide step-by-step instructions for writing a Hello, World! in Javascript, compiling it to asm.js, and running that from a (Linux) shell? Even better, converting the asm.js to native

Re: [Lazarus] version of fpuname function for windows

2013-07-16 Thread leledumbo
Please I would like to know if its possible to fpuname function for windows? No, the containing unit is BaseUnix, Windows doesn't implement unix functions. You have to use the one from Windows unit since I don't think cross platform function exists yet. -- View this message in context:

Re: [Lazarus] Firefox OS

2013-07-16 Thread Jy V
Hello Mark, So can anybody provide step-by-step instructions for writing a Hello, World! in Javascript, compiling it to asm.js, and running that from a (Linux) shell? Even better, converting the asm.js to native code so it can be run without a wrapper? asm.js is just a subset of JavaScript.

Re: [Lazarus] Losing data when saving Database fileds with Size defined and UTF8 chars

2013-07-16 Thread Hans-Peter Diettrich
Graeme Geldenhuys schrieb: On 2013-07-15 17:43, Hans-Peter Diettrich wrote: Another workaround: use the appropriate codepage for storing strings in the database, so that all characters are single bytes. You should know by now that not all characters can be represented in a single byte. I

Re: [Lazarus] Lazarus, Jedi etc.

2013-07-16 Thread Henry Vermaak
On Tue, Jul 16, 2013 at 12:23:10PM +0200, Reinier Olislagers wrote: On 16-7-2013 11:53, Henry Vermaak wrote: Ranting from a position of ignorance seriously dilutes your credibility in my book. I'm just saying the rants may be justified if mysql cannot be configured to follow the RDBMS

Re: [Lazarus] Losing data when saving Database fileds with Size defined and UTF8 chars

2013-07-16 Thread Hans-Peter Diettrich
Reinier Olislagers schrieb: On 15-7-2013 18:43, Hans-Peter Diettrich wrote: Reinier Olislagers schrieb: On 14-7-2013 8:00, Daniel Simoes de Ameida wrote: Workaround: make your field size as large as the maximum number of UTF8 bytes you expect. Another workaround: use the appropriate codepage

Re: [Lazarus] Losing data when saving Database fileds with Size defined and UTF8 chars

2013-07-16 Thread Reinier Olislagers
On 16/07/2013 17:18, Hans-Peter Diettrich wrote: Reinier Olislagers schrieb: On 15-7-2013 18:43, Hans-Peter Diettrich wrote: Reinier Olislagers schrieb: On 14-7-2013 8:00, Daniel Simoes de Ameida wrote: Workaround: make your field size as large as the maximum number of UTF8 bytes you expect.

Re: [Lazarus] Firefox OS

2013-07-16 Thread Reimar Grabowski
On Tue, 16 Jul 2013 15:33:50 + Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: So can anybody provide step-by-step instructions for writing a Hello, World! in Javascript, compiling it to asm.js, and running that from a (Linux) shell? Nothing gets compiled from JS to asm.js

Re: [Lazarus] LHelp flickering solution: request for comments

2013-07-16 Thread Reinier Olislagers
On 16/07/2013 18:37, Vincent Snijders wrote: 2013/7/16 Reinier Olislagers reinierolislag...@gmail.com On 16-7-2013 14:56, Mark Morgan Lloyd wrote: First, what happens if two copies of the IDE are open? Are there two separate lhelp instances, and do they track correctly?

Re: [Lazarus] Firefox OS

2013-07-16 Thread Mark Morgan Lloyd
Reimar Grabowski wrote: On Tue, 16 Jul 2013 15:33:50 + Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: So can anybody provide step-by-step instructions for writing a Hello, World! in Javascript, compiling it to asm.js, and running that from a (Linux) shell? Nothing gets compiled

Re: [Lazarus] Rx: rxdbgrid.pas: compile error: Internal error 200501152

2013-07-16 Thread Maxim Ganetsky
16.07.2013 5:20, Marcos Douglas пишет: On Mon, Jul 15, 2013 at 8:07 PM, Maxim Ganetsky gan...@narod.ru wrote: 16.07.2013 2:31, Marcos Douglas пишет: Hi, I updated my CCR sources and now I found an error, on RX Lib, when I try to compile my Lazarus: Lazarus 1.1 r42095 FPC 2.6.2

Re: [Lazarus] Lazarus, Jedi etc.

2013-07-16 Thread Mark Morgan Lloyd
Henry Vermaak wrote: On Tue, Jul 16, 2013 at 12:23:10PM +0200, Reinier Olislagers wrote: On 16-7-2013 11:53, Henry Vermaak wrote: Ranting from a position of ignorance seriously dilutes your credibility in my book. I'm just saying the rants may be justified if mysql cannot be configured to

Re: [Lazarus] Rx: rxdbgrid.pas: compile error: Internal error 200501152

2013-07-16 Thread Marcos Douglas
On Tue, Jul 16, 2013 at 4:36 PM, Maxim Ganetsky gan...@narod.ru wrote: 16.07.2013 5:20, Marcos Douglas пишет: On Mon, Jul 15, 2013 at 8:07 PM, Maxim Ganetsky gan...@narod.ru wrote: 16.07.2013 2:31, Marcos Douglas пишет: Hi, I updated my CCR sources and now I found an error, on RX Lib,

Re: [Lazarus] Can not find package unit used by Lazarus

2013-07-16 Thread Kenneth Cochran
On Tue, Jul 16, 2013 at 2:49 PM, Mattias Gaertner nc-gaert...@netcologne.de wrote: ide? I hope you did not add the package 'ide' to the requirements of your package. The package 'ide' is only for testing purpose. You should use the package IDEIntf instead. No I didn't add the ide package

Re: [Lazarus] Firefox OS

2013-07-16 Thread Mattias Gaertner
On Tue, 16 Jul 2013 19:19:34 + Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: [...]asm.js has strictly numeric types, yes so you can't write a conventional Hello, World! in it. There are javascript libraries implementing strings via arrays. If you want to do that, then you

Re: [Lazarus] Firefox OS

2013-07-16 Thread Mark Morgan Lloyd
Mattias Gaertner wrote: On Tue, 16 Jul 2013 19:19:34 + Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: [...]asm.js has strictly numeric types, yes so you can't write a conventional Hello, World! in it. There are javascript libraries implementing strings via arrays. Yes,

Re: [Lazarus] Can not find package unit used by Lazarus

2013-07-16 Thread Kenneth Cochran
On Tue, Jul 16, 2013 at 3:11 PM, Kenneth Cochran kenneth.coch...@gmail.comwrote: No I didn't add the ide package to my package's requirements but you may have touched on the problem. I have a unit called 'ide' that provides an abstraction over the Lazarus and Delphi extension apis. If all

Re: [Lazarus] Lazarus, Jedi etc.

2013-07-16 Thread Henry Vermaak
On 16 Jul 2013 20:39, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: Henry Vermaak wrote: On Tue, Jul 16, 2013 at 12:23:10PM +0200, Reinier Olislagers wrote: On 16-7-2013 11:53, Henry Vermaak wrote: Ranting from a position of ignorance seriously dilutes your credibility in my

Re: [Lazarus] Losing data when saving Database fileds with Size defined and UTF8 chars

2013-07-16 Thread Hans-Peter Diettrich
Reinier Olislagers schrieb: On 16/07/2013 17:18, Hans-Peter Diettrich wrote: Reinier Olislagers schrieb: On 15-7-2013 18:43, Hans-Peter Diettrich wrote: Reinier Olislagers schrieb: On 14-7-2013 8:00, Daniel Simoes de Ameida wrote: Workaround: make your field size as large as the maximum

Re: [Lazarus] Losing data when saving Database fileds with Size defined and UTF8 chars

2013-07-16 Thread waldo kitty
On 7/16/2013 13:14, Reinier Olislagers wrote: No it isn't. Why shouldn't a user be able to enter Chinese, Greek, Cyrillic and Latin characters? should one be allowed to place [chinese glyph][greekglyph][cyrillic glyph][latin glyph] all in the same string? what codepage will that string

[Lazarus] Report with Fortesreport

2013-07-16 Thread sumaryadi
Hello .. I'm still new to learn, please teach me to use fortesrepotin Lazarus, .. may of you have already saved on the web. thanks -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org