[fpc-pascal] Proper way to assign data to fields documentation

2011-08-01 Thread Reinier Olislagers
(Reposted from the forum; I think I might actually get a response here ;) While writing a test program with TBufDataset, I'm trying to create a dataset with as many field types as possible. The following code compiles: FTestDataset.Fieldbyname('ftBCD').Asfloat := Testextended;

[fpc-pascal] Unicode output on console works for me on Linux, not on Windows

2011-08-01 Thread Reinier Olislagers
(Reposted from the forum) I tried to output Unicode text to console on English Windows Vista (using Lucida Console font, which shows Greek and Cyrillic characters). Doesn't seem to work. (On Debian x64 it works perfectly - maybe because the default encoding I've got is UTF8: LANG environment

[fpc-pascal] Cross Compiling from Linux to a Mac OS X 10.5 or 10.6 target. How?

2011-08-01 Thread Bruce Tulloch
Is anyone on the list doing this? If so, how did you set it up? The information on the FPC wiki and elsewhere in the lists is woefully out of date. Many thanks, Bruce. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Cross Compiling from Linux to a Mac OS X 10.5 or 10.6 target. How?

2011-08-01 Thread Jonas Maebe
On 01 Aug 2011, at 09:49, Bruce Tulloch wrote: The information on the FPC wiki and elsewhere in the lists is woefully out of date. In general, this is not supported (and personally I've never done it). You have to build an Apple tool chain (assembler, linker) on a Linux host, which is not

Re: [fpc-pascal] Cross Compiling from Linux to a Mac OS X 10.5 or 10.6 target. How?

2011-08-01 Thread Felipe Monteiro de Carvalho
On Mon, Aug 1, 2011 at 9:49 AM, Bruce Tulloch br...@causal.com wrote: Is anyone on the list doing this? If so, how did you set it up? If your objective is writing software for Mac OS X without actually having a Mac computer, then I seriously doubt it would work, unless your app is a simple

[fpc-pascal] sdlutils on linux 64 bits

2011-08-01 Thread Daniel Gaspary
Hi, I was trying to run the example from [1], but I have noticed fpcmake from sdl package does not compile sdlutils for my environment, Linux (ubuntu 11.04) 64 bits. sdlutils is the only unit with restrictions in fpmake.pp . Tyring to compile myself I got errors like the following:

Re: [fpc-pascal] Cross Compiling from Linux to a Mac OS X 10.5 or 10.6 target. How?

2011-08-01 Thread Marco van de Voort
In our previous episode, Jonas Maebe said: The information on the FPC wiki and elsewhere in the lists is woefully out of date. In general, this is not supported (and personally I've never done it). You have to build an Apple tool chain (assembler, linker) on a Linux host, which is not

Re: [fpc-pascal] Unicode output on console works for me on Linux, not on Windows

2011-08-01 Thread Marcos Douglas
On Mon, Aug 1, 2011 at 3:09 AM, Reinier Olislagers reinierolislag...@gmail.com wrote: (Reposted from the forum) I tried to output Unicode text to console on English Windows Vista (using Lucida Console font, which shows Greek and Cyrillic characters). Doesn't seem to work. (On Debian x64 it

Re: [fpc-pascal] Unicode output on console works for me on Linux, not on Windows

2011-08-01 Thread Jonas Maebe
On 01 Aug 2011, at 08:09, Reinier Olislagers wrote: I tried to output Unicode text to console on English Windows Vista (using Lucida Console font, which shows Greek and Cyrillic characters). Doesn't seem to work. I think that you have to configure the console to use UTF-8 output (but I

[fpc-pascal] Cross Compiling from Linux to a Mac OS X 10.5 or 10.6 target. How?

2011-08-01 Thread Bruce Tulloch
Thanks for the feedback everyone. I have a Mac on which I can run a native FPC/Lazarus environment for debugging purposes. My goal here is to add a cross compiling build for OS X along side existing Linux and Win32/64 targets so all our OS and CPU targets can be rebuilt at once. So, from what I

Re: [fpc-pascal] sdlutils on linux 64 bits

2011-08-01 Thread Jonas Maebe
On 31 Jul 2011, at 23:11, Daniel Gaspary wrote: The last activity on this unit seems to be from 2008. Any new solution or workaround to make the code compatible ? It's a third party unit that was imported from JEDI-SDL. It was even deleted in the past because it wasn't part of the

Re: [fpc-pascal] Unicode output on console works for me on Linux, not on Windows

2011-08-01 Thread Ondrej
I think that you have to configure the console to use UTF-8 output (but I don't know how this is done on Windows). I think that should be: SetConsoleOutputCP(CP_UTF8); ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] FPImage and WebP support

2011-08-01 Thread Graeme Geldenhuys
Hi, Has anybody started work on supporting WebP image format for FPImage? http://code.google.com/speed/webp/ Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ ___ fpc-pascal

Re: [fpc-pascal] FPImage and WebP support

2011-08-01 Thread Michael Van Canneyt
On Mon, 1 Aug 2011, Graeme Geldenhuys wrote: Hi, Has anybody started work on supporting WebP image format for FPImage? http://code.google.com/speed/webp/ Not yet. But it looks very interesting. Michael. ___ fpc-pascal maillist -

[fpc-pascal] How to use tilog from tiopf2?

2011-08-01 Thread Felipe Monteiro de Carvalho
Does anyone know how to use this? I tryed googling, but didn't have much luck ... thanks, -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] web app and application persistency

2011-08-01 Thread Felipe Monteiro de Carvalho
Hello, This is kind of a theorical question, but I though I'd ask before starting to code =) Basically I have a desktop app which I need to retrofit into a web-app. My idea is to cut it in a visual and a non-visual part and implement the visual part in HTML+JavaScript and keep the non-visual

Re: [fpc-pascal] web app and application persistency

2011-08-01 Thread Michael Van Canneyt
On Mon, 1 Aug 2011, Felipe Monteiro de Carvalho wrote: Hello, This is kind of a theorical question, but I though I'd ask before starting to code =) Basically I have a desktop app which I need to retrofit into a web-app. My idea is to cut it in a visual and a non-visual part and implement

Re: [fpc-pascal] web app and application persistency

2011-08-01 Thread Marcos Douglas
On Mon, Aug 1, 2011 at 11:21 AM, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: Hello, This is kind of a theorical question, but I though I'd ask before starting to code =) Basically I have a desktop app which I need to retrofit into a web-app. My idea is to cut it in

Re: [fpc-pascal] web app and application persistency

2011-08-01 Thread Gustavo Enrique Jimenez
Hi: I send cookies to the client. One of those cookies is a sessionID, a random number generated at login. My sequence is something like Login Client: username/password -Login html button Server: run cgi app with username/password parameters - ¿Valid user? - generate sessionID, store in DB.

Re: [fpc-pascal] web app and application persistency

2011-08-01 Thread Andrew Brunner
On Mon, Aug 1, 2011 at 10:07 AM, Gustavo Enrique Jimenez gejime...@gmail.com wrote: Hi:  I send cookies to the client. One of those cookies is a sessionID, a random number generated at login.  My sequence is something like Login Client: username/password -Login html button Server: run cgi

Re: [fpc-pascal] web app and application persistency

2011-08-01 Thread Gustavo Enrique Jimenez
Hi: If you don't want to use cookies, you could write the sessionID in a hidden field in every html form (cgi app must write this hidden field in every form). Or, if you use ajax, you could attach the sessionID to every link (cgi app must write the sessionID parameter in every link). Gustavo

RE : [fpc-pascal] web app and application persistency

2011-08-01 Thread Ludo Brands
So how should I proceed to obtain a application which will keep running for the entire session of a user? I don't want to simply save session info because the application is rather large, there are lots of things going on and it would be much easier for my coding if I could keep

Re: [fpc-pascal] web app and application persistency

2011-08-01 Thread Felipe Monteiro de Carvalho
On Mon, Aug 1, 2011 at 5:23 PM, Andrew Brunner andrew.t.brun...@gmail.com wrote: I agree with this one.  The only thing I could add would be AJAX WebSockets for really advanced applications. Do WebSockets allow to use TCP sockets in JavaScript or is it something else? -- Felipe Monteiro de

Re: [fpc-pascal] web app and application persistency

2011-08-01 Thread Marco van de Voort
In our previous episode, Andrew Brunner said: username/sessionID, then send an empty sessionID cookie (this will delete the sessionID cookie in client) I agree with this one. The only thing I could add would be AJAX WebSockets for really advanced applications. I thought websockets were

Re: [fpc-pascal] web app and application persistency

2011-08-01 Thread Andrew Brunner
On Mon, Aug 1, 2011 at 10:43 AM, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: On Mon, Aug 1, 2011 at 5:23 PM, Andrew Brunner andrew.t.brun...@gmail.com wrote: I agree with this one.  The only thing I could add would be AJAX WebSockets for really advanced applications.

Re: [fpc-pascal] web app and application persistency

2011-08-01 Thread Michael Van Canneyt
On Mon, 1 Aug 2011, Andrew Brunner wrote: On Mon, Aug 1, 2011 at 10:43 AM, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: On Mon, Aug 1, 2011 at 5:23 PM, Andrew Brunner andrew.t.brun...@gmail.com wrote: I agree with this one.  The only thing I could add would be AJAX

Re: [fpc-pascal] web app and application persistency

2011-08-01 Thread Andrew Brunner
On Mon, Aug 1, 2011 at 12:05 PM, Michael Van Canneyt mich...@freepascal.org wrote: ..But it is not always supported by the browser (as Marco indicated) and many firewalls simply don't agree with websockets. Can firewalls detect websockets over port 80?

Re: [fpc-pascal] web app and application persistency

2011-08-01 Thread Michael Van Canneyt
On Mon, 1 Aug 2011, Andrew Brunner wrote: On Mon, Aug 1, 2011 at 12:05 PM, Michael Van Canneyt mich...@freepascal.org wrote: ..But it is not always supported by the browser (as Marco indicated) and many firewalls simply don't agree with websockets. Can firewalls detect websockets over

Re: [fpc-pascal] web app and application persistency

2011-08-01 Thread Andrew Brunner
The only thing I can think of would be packet inspection. Firewalls included with Linux and Windows do not perform deep packet inspection. They only allow/deny packets with specific ports over either TCP or UDP. Am I missing something? On Mon, Aug 1, 2011 at 12:31 PM, Michael Van Canneyt

[fpc-pascal] Trouble setting/getting ftVarBytes field data in TBufDataset

2011-08-01 Thread Reinier Olislagers
I've got trouble finding out how to fill and retrieve data for a ftVarBytes field in a TBufDataset. .AsString doesn't seem to work well - if I fill it with the string How do I fill this field? I get back How I tried SetData, which takes a buffer as data, so I tried filling a PChar with the