[fpc-pascal] OT A bit, will you vote for this feature request for FB ?

2011-10-12 Thread ik
Hi, I have created a feature request for Firebird SQL, to add support for multibyte characters when dealing with the string functions in FB. http://tracker.firebirdsql.org/browse/CORE-3630 Can you please vote for it ? Thanks, Ido LINESIP - Opening the source for communication

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-14 Thread ik
On Sat, Oct 15, 2011 at 00:25, Andrew Pennebaker andrew.penneba...@gmail.com wrote: E.g., if fpi existed, I would add a shebang like this to my code: #!/usr/bin/env fpi InstantFPC http://wiki.freepascal.org/InstantFPC Cheers, Andrew Pennebaker www.yellosoft.us

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-14 Thread ik
On Sat, Oct 15, 2011 at 00:43, Andrew Pennebaker andrew.penneba...@gmail.com wrote: Thanks ik. Merf, it appears fpc can't compile when a shebang is added. In future versions, can fpc treat shebangs as comments so that instantfpc code could be compiled like normal Free Pascal code? $ cat

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-14 Thread ik
On Sat, Oct 15, 2011 at 00:48, ik ido...@gmail.com wrote: On Sat, Oct 15, 2011 at 00:43, Andrew Pennebaker andrew.penneba...@gmail.com wrote: Thanks ik. Merf, it appears fpc can't compile when a shebang is added. In future versions, can fpc treat shebangs as comments so that instantfpc code

[fpc-pascal] Getting Hardware information in Linux

2011-10-18 Thread ik
Hello list, I'm trying to figure out how to get hardware information about the machine i'm running at in Linux OS. For example: hard-drive size, manufacture etc... BIOS information, screen information (regardless of X, that is the hardware itself), cards that are assigned and the whole

Re: [fpc-pascal] Getting Hardware information in Linux

2011-10-18 Thread ik
On Tue, Oct 18, 2011 at 21:44, Michael Van Canneyt mich...@freepascal.orgwrote: On Tue, 18 Oct 2011, ik wrote: Hello list, I'm trying to figure out how to get hardware information about the machine i'm running at in Linux OS. For example: hard-drive size, manufacture etc... BIOS

[fpc-pascal] parent class as a parameter type

2011-11-12 Thread ik
Hello List, Since 2.6.0, when you write something like this: procedure foo(AClass : TStrings); foo(MyStringList); // Will return an error that TStrings is expected ... I can not use TStringList as the parameter without casting it to TStrings. But I do not understand why this limitation added.

Re: [fpc-pascal] parent class as a parameter type

2011-11-17 Thread ik
On Mon, Nov 14, 2011 at 23:03, Jonas Maebe jonas.ma...@elis.ugent.bewrote: On 13 Nov 2011, at 17:56, Graeme Geldenhuys wrote: On 12/11/2011, ik idokan@ wrote: procedure foo(AClass : TStrings); foo(MyStringList); // Will return an error that TStrings is expected ... I can

Re: [fpc-pascal] parent class as a parameter type

2011-11-17 Thread ik
On Thu, Nov 17, 2011 at 16:03, Sven Barth pascaldra...@googlemail.comwrote: Am 17.11.2011 09:23, schrieb ik: It's not allowed in Delphi in case of a var/out parameter. It's allowed in both FPC and Delphi in case of a value/const parameter. Sorry for the late response, but why does

Re: [fpc-pascal] parent class as a parameter type

2011-11-17 Thread ik
On Thu, Nov 17, 2011 at 16:15, Sven Barth pascaldra...@googlemail.comwrote: Am 17.11.2011 15:07, schrieb ik: On Thu, Nov 17, 2011 at 16:03, Sven Barth pascaldra...@googlemail.com mailto:pascaldragon@**googlemail.com pascaldra...@googlemail.com wrote: Am 17.11.2011 09:23, schrieb ik

[fpc-pascal] FPC And D-Bus

2011-11-24 Thread ik
Hello, I'm Trying to send notification using D-Bus Notify method. The thing is, that I do not understand how to properly use it. My current code: https://github.com/ik5/display-quotes/blob/master/src/units/untquotedbus.pas#L92 I'ved marked the place where i Have AccessViolation exception. What

Re: RE : [fpc-pascal] FPC And D-Bus

2011-11-24 Thread ik
On Thu, Nov 24, 2011 at 20:19, Ludo Brands ludo.bra...@free.fr wrote: ** I'm Trying to send notification using D-Bus Notify method. The thing is, that I do not understand how to properly use it. My current code:

Re: RE : RE : [fpc-pascal] FPC And D-Bus

2011-11-25 Thread ik
On Thu, Nov 24, 2011 at 21:33, Ludo Brands ludo.bra...@free.fr wrote: ** I'm Trying to send notification using D-Bus Notify method. The thing is, that I do not understand how to properly use it. My current code:

[fpc-pascal] dll for C#

2011-11-28 Thread ik
Hello, I have a requirement to create an API for application that C# can communicate with using dll (rather then REST). What is required by FPC to be able to create such DLL ? Thanks, Ido ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] Re: dll for C#

2011-11-28 Thread ik
On Mon, Nov 28, 2011 at 10:22, ik ido...@gmail.com wrote: Hello, I have a requirement to create an API for application that C# can communicate with using dll (rather then REST). What is required by FPC to be able to create such DLL ? And one other thing I forgot, it must support classes

Re: [fpc-pascal] Re: dll for C#

2011-11-28 Thread ik
On Mon, Nov 28, 2011 at 10:57, Elmar Haneke el...@haneke.de wrote: And one other thing I forgot, it must support classes. You have to write an procedural wrapper around your class - each method gets an Procedure thar recieves the object as parameter and calls that object's method. These

Re: [fpc-pascal] Shared libries

2011-12-11 Thread ik
On Sun, Dec 11, 2011 at 23:35, Torsten Bonde Christiansen t...@epidata.dkwrote: Hi. I'm trying to create a shared library (under linux) and I not sure what the difference between the modifier *export* and the section *exports* is? Or perhaps when to use one and the other... export means

[fpc-pascal] PPU checksum issue

2011-12-13 Thread ik
Hello, I'm trying to rebuild Lazarus with some components, and having the following error message on an FPC based unit: PPU Loading /usr/lib/fpc/2.5.1/units/x86_64-linux/fcl-db/fpxmlxsdexport.ppu Recompiling fpXMLXSDExport, checksum changed for base64

[fpc-pascal] Re: PPU checksum issue

2011-12-13 Thread ik
It only happen on Lazarus. normal app does not raise such error. On Tue, Dec 13, 2011 at 18:55, ik ido...@gmail.com wrote: Hello, I'm trying to rebuild Lazarus with some components, and having the following error message on an FPC based unit: PPU Loading /usr/lib/fpc/2.5.1/units/x86_64

Re: [fpc-pascal] Re: PPU checksum issue

2011-12-13 Thread ik
On Tue, Dec 13, 2011 at 22:14, leledumbo leledumbo_c...@yahoo.co.id wrote: Old PPU of base64, try recompiling everything (because there's a chance that more packages are having the same problem), make a clean build if possible. A clean svn version of fpc 2.6.0 (rc), and Lazarus 0.9.31 r34161

Re: [Lazarus] [fpc-pascal] Re: PPU checksum issue

2011-12-13 Thread ik
On Tue, Dec 13, 2011 at 23:40, Mattias Gaertner nc-gaert...@netcologne.dewrote: On Tue, 13 Dec 2011 23:08:39 +0200 ik ido...@gmail.com wrote: On Tue, Dec 13, 2011 at 22:14, leledumbo leledumbo_c...@yahoo.co.id wrote: Old PPU of base64, try recompiling everything (because there's

[fpc-pascal] possible json parser memory leak

2011-12-18 Thread ik
Hello, I'm using FPC 2.6 (rc) x86_64 on Linux with JSONParser. I've written the following code: --- uses fpjson, jsonparser, SysUtils, classes; var parser: TJSONParser; json_file : TFileStream; begin json_file := TFileStream.Create('/tmp/test.json', fmOpenRead);

Re: [fpc-pascal] possible json parser memory leak

2011-12-18 Thread ik
On Sun, Dec 18, 2011 at 19:34, silvioprog silviop...@gmail.com wrote: 2011/12/18 ik ido...@gmail.com: Hello, I'm using FPC 2.6 (rc) x86_64 on Linux with JSONParser. I've written the following code: Use: var parser: TJSONParser; json_data: TJSONData; json_file: TFileStream

Re: [fpc-pascal] possible json parser memory leak

2011-12-18 Thread ik
On Sun, Dec 18, 2011 at 22:27, Frank Church vfcli...@gmail.com wrote: On 18 December 2011 17:34, silvioprog silviop...@gmail.com wrote: 2011/12/18 ik ido...@gmail.com: Hello, I'm using FPC 2.6 (rc) x86_64 on Linux with JSONParser. I've written the following code: Use: var

Re: [fpc-pascal] possible json parser memory leak

2011-12-18 Thread ik
On Sun, Dec 18, 2011 at 19:39, Michael Van Canneyt mich...@freepascal.orgwrote: On Sun, 18 Dec 2011, ik wrote: Hello, I'm using FPC 2.6 (rc) x86_64 on Linux with JSONParser. I've written the following code: --- uses fpjson, jsonparser, SysUtils, classes; var

[fpc-pascal] using exceptions

2011-12-19 Thread ik
Hello, Exceptions like the name suggested, is to mark something that you are not suppose to expect. For example while getting a data something went wrong, like disconnection, wrong size of data etc... The usage of exception is very costly in performance, and there for should use only on specific

[fpc-pascal] Re: How to create this union ?

2011-12-26 Thread ik
Better redefining my problem: I have a first union. But on records we do not end case with end. and beneath the union, I have to place another union, or another fields that is not part of the union. How can I do that ? Thanks, Ido On Mon, Dec 26, 2011 at 16:41, ik ido...@gmail.com wrote

Re: [fpc-pascal] How to create this union ?

2011-12-27 Thread ik
Thank you all for your help Ido On Mon, Dec 26, 2011 at 20:54, dmitry boyarintsev skalogryz.li...@gmail.com wrote: Chelper also has hard-timer converting the structure: It failed on union nf_inet_addr haddr, hmask; so I had to comment it out. Some structures are missing completely. type

[fpc-pascal] GCC attributes when binding code

2011-12-28 Thread ik
Hello, I found the following code: /* this is a special 64bit data type that is 8-byte aligned */ #define aligned_u64 u_int64_t __attribute__((aligned(8))) And few other __attribute__ based code as well. Some of them are useless for Pascal at all, but changing alignment for a variable type is

[fpc-pascal] How can I trap signals

2012-01-03 Thread ik
Hello, I wish to trap two signals in Linux (ABRT and HUP), how can I do that ? Thanks, Ido ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How can I trap signals

2012-01-03 Thread ik
On Tue, Jan 3, 2012 at 12:16, michael.vancann...@wisa.be wrote: On Tue, 3 Jan 2012, ik wrote: Hello, I wish to trap two signals in Linux (ABRT and HUP), how can I do that ? Install a signal handler. See e.g. http://www.freepascal.org/**docs-html/rtl/baseunix/**fpsigaction.htmlhttp

Re: [fpc-pascal] How can I trap signals

2012-01-03 Thread ik
On Tue, Jan 3, 2012 at 12:24, ik ido...@gmail.com wrote: On Tue, Jan 3, 2012 at 12:16, michael.vancann...@wisa.be wrote: On Tue, 3 Jan 2012, ik wrote: Hello, I wish to trap two signals in Linux (ABRT and HUP), how can I do that ? Install a signal handler. See e.g. http

[fpc-pascal] format string - number padding

2012-01-09 Thread ik
Hello, I'm trying to use the Format function to pad a number like so: 01 where the original value is $1. I tried to do the following: writeln(Format('%02X', [$1])); writeln(Format('%0:2X', [$1])); writeln(Format('%:2X', [$1])); All of them created the following output: 1 What am I doing

Re: [fpc-pascal] format string - number padding

2012-01-09 Thread ik
On Mon, Jan 9, 2012 at 13:17, Sven Barth pascaldra...@googlemail.comwrote: Am 09.01.2012 12:08 schrieb ik ido...@gmail.com: Hello, I'm trying to use the Format function to pad a number like so: 01 where the original value is $1. I tried to do the following: writeln(Format

[fpc-pascal] OT: Delphi HLPlib is discontinued

2012-01-09 Thread ik
Hello, I've read today a thread about the subject's projecthttp://code.google.com/p/delphilhlplib/%20 . It is a free software project that we also be interested in. So if any existed Pascal based code library can adopt it, I think we can all benefit from it. Ido

Re: [fpc-pascal] OT: Delphi HLPlib is discontinued

2012-01-09 Thread ik
On Mon, Jan 9, 2012 at 18:24, Ralf A. Quint free...@gmx.net wrote: At 05:17 AM 1/9/2012, ik wrote: Hello, I've read today a thread about http://code.google.com/p/** delphilhlplib/%20 http://code.google.com/p/delphilhlplib/%20the subject's project. It is a free software project that we

[fpc-pascal] Redis client for FPC

2012-01-11 Thread ik
Hello, Does anyone know of a Redis client for FPC (and open source) ? Another question: If I need to implement it, how would you do it regarding dataset ? I'm not sure that it is suited for the task, what do you think ? Thanks, Ido ___ fpc-pascal

Re: [fpc-pascal] Redis client for FPC

2012-01-11 Thread ik
On Wed, Jan 11, 2012 at 18:54, michael.vancann...@wisa.be wrote: On Wed, 11 Jan 2012, ik wrote: Hello, Does anyone know of a Redis client for FPC (and open source) ? Another question: If I need to implement it, how would you do it regarding dataset ? I'm not sure that it is suited

Re: [fpc-pascal] Redis client for FPC

2012-01-11 Thread ik
On Wed, Jan 11, 2012 at 21:36, Daniel Gaspary dgasp...@gmail.com wrote: On Wed, Jan 11, 2012 at 15:32, ik ido...@gmail.com wrote: Here is a new request for the new year/version of FPC :) Additional way beside dataset to control databases, even if they are not table/structure based

Re: [fpc-pascal] MySQL5

2012-01-17 Thread ik
On Tue, Jan 17, 2012 at 15:19, michael.vancann...@wisa.be wrote: On Tue, 17 Jan 2012, Mattias Gaertner wrote: michael.vancann...@wisa.be hat am 17. Januar 2012 um 13:28 geschrieben: On Tue, 17 Jan 2012, Mattias Gaertner wrote: Hi, I tried connecting to a mysql 5.5 database and used

[fpc-pascal] procedure variable and inc/dec procedures

2012-01-17 Thread ik
Hello, I'm trying to do the following: - var a : procedure(var x : TOrdinal); b : procedure(var x : integer); begin a := @inc; b := @dec; end. --- I simplified the original code of mine to this specific example to make it more clear. At variable a, I get the following

Re: [fpc-pascal] IPTables log parser?

2012-01-19 Thread ik
On Thu, Jan 19, 2012 at 11:37, Reinier Olislagers reinierolislag...@gmail.com wrote: Hi list, I noticed ik has started a project to manipulate Linux iptables firewall rules... which got me thinking. Is there any FreePascal/Delphi code lying around to parse IPtables log output (e.g

[fpc-pascal] detect the version of fpc that a feature added to it

2012-01-19 Thread ik
Hello, I was looking to understand in what version of FPC ($IF defined ... } was added, and realized that it is not very simple to detect such information. So beside this question of when was it added ? What is the best way to find such information ? Another question, should I open a bug for

[fpc-pascal] Redis client for object Pascal

2012-01-20 Thread ik
Hello, I've started to work on protocol implementation for Redis. It seems that there isn't even one implementation for it for Pascal (including Delphi). At the moment it is built to work only with Synapse, however after the first implementation, I'll wish to create additional libraries such as

[fpc-pascal] detecting if a socket is open in synapse

2012-01-21 Thread ik
Hello, How can I detect if a tcp socket is open or not in synapse ? Thanks, Ido ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] detecting if a socket is open in synapse

2012-01-21 Thread ik
On Sat, Jan 21, 2012 at 14:19, Daniel Gaspary dgasp...@gmail.com wrote: On Sat, Jan 21, 2012 at 09:28, ik ido...@gmail.com wrote: Hello, How can I detect if a tcp socket is open or not in synapse ? Trying to send and detecting if an error was raisen: http://www.ararat.cz/synapse

Re: [fpc-pascal] Redis client for object Pascal

2012-01-21 Thread ik
On Sat, Jan 21, 2012 at 14:27, Daniel Gaspary dgasp...@gmail.com wrote: On Fri, Jan 20, 2012 at 18:18, ik ido...@gmail.com wrote: The code is released under LGPL 3. I do wish to allow open/free and commercial usage, but to have any changes, additions etc, contribute back for everyone

[fpc-pascal] Access violation that I do not understand while creating a class instance

2012-01-23 Thread ik
Hello, In the following code ( https://github.com/ik5/redit_client.fpc/blob/master/tests/test_parser.lpr#L55), when I point, I have access violation when trying to create TRedisErrorReturnType.Create It does not happen for TRedisStatusReturnType.Create for example, that have the same parent as

[fpc-pascal] Re: Access violation that I do not understand while creating a class instance

2012-01-23 Thread ik
On Mon, Jan 23, 2012 at 16:28, ik ido...@gmail.com wrote: Hello, In the following code ( https://github.com/ik5/redit_client.fpc/blob/master/tests/test_parser.lpr#L55), when I point, I have access violation when trying to create TRedisErrorReturnType.Create It does not happen

Re: [fpc-pascal] Re: Access violation that I do not understand while creating a class instance

2012-01-23 Thread ik
On Mon, Jan 23, 2012 at 17:10, Henry Vermaak henry.verm...@gmail.comwrote: On 23/01/12 14:56, ik wrote: On Mon, Jan 23, 2012 at 16:28, ik ido...@gmail.com mailto:ido...@gmail.com wrote: Hello, In the following code (https://github.com/ik5/redit_**client.fpc/blob/master/tests

[fpc-pascal] Re: Redis client for object Pascal

2012-01-23 Thread ik
On Fri, Jan 20, 2012 at 22:18, ik ido...@gmail.com wrote: Hello, I've started to work on protocol implementation for Redis. It seems that there isn't even one implementation for it for Pascal (including Delphi). At the moment it is built to work only with Synapse, however after the first

[fpc-pascal] memory corruption

2012-01-25 Thread ik
Hello, While testing my following code: https://github.com/ik5/redis_client.fpc/blob/master/tests/test_parser.lpr#L166 When I'm executing the code on the second item (that is suppose to be null in the protocol - '$-1#13#10'), the program crashes with the following message: *** glibc detected ***

Re: [fpc-pascal] memory corruption

2012-01-26 Thread ik
On Thu, Jan 26, 2012 at 09:10, Michael Müller mueller_mich...@alice-dsl.net wrote: Am 26.01.2012 um 03:50 schrieb ik: Hello, While testing my following code: https://github.com/ik5/redis_client.fpc/blob/master/tests/test_parser.lpr#L166 When I'm executing the code on the second item

Re: [fpc-pascal] I found FPC v0.2 source code :-)

2012-01-29 Thread ik
On Sun, Jan 29, 2012 at 13:15, Florian Klämpfl flor...@freepascal.orgwrote: Am 29.01.2012 11:55, schrieb Bart: On 1/29/12, Florian Klämpfl flor...@freepascal.org wrote: I've still backups back to 0.1 on 5 1/4 floppies somewhere :) Though I've no idea if they still work :)

[fpc-pascal] add a string to existed open array

2012-01-31 Thread ik
Hello, I wish to create something like this: function foo(a : String; b : array of const) : string; begin Result := bar([a] + b); end; But this works only on Sets. The thing is, that A must be before the rest of b. and it is different then the b values, that's why I extract it to a different

Re: [fpc-pascal] add a string to existed open array

2012-01-31 Thread ik
On Tue, Jan 31, 2012 at 11:19, Sven Barth pascaldra...@googlemail.comwrote: Am 31.01.2012 09:55, schrieb ik: Hello, I wish to create something like this: function foo(a : String; b : array of const) : string; begin Result := bar([a] + b); end; But this works only on Sets

Re: [fpc-pascal] How to use pam?

2012-02-06 Thread ik
On Mon, Feb 6, 2012 at 18:37, Mattias Gaertner nc-gaert...@netcologne.dewrote: ** Hi, I need to authenticate user name and password under Linux. These are normal accounts so I guess libpam is the weapon of choice. But I can't find any pam binding in the FPC sources. Is there a better

Re: [fpc-pascal] Too tired? Forcedirectories does not seem to work

2012-02-06 Thread ik
On Mon, Feb 6, 2012 at 18:40, Reinier Olislagers reinierolislag...@gmail.com wrote: Busy porting FPCUP to Linux... think it's time to quit for the day This code: OperationSucceeded:=ForceDirectories(BootstrapCompilerDirectory); debugln('todo: debug: forcedirectories bootstrap compiler

[fpc-pascal] inline function vs recursive function

2012-02-06 Thread ik
Hello, Let's say I have a function that some of it's code (or all) can be used in more then one location inside the function itself. I can make a nested function with the code and set it to inline, make it normal, or make a recursion with it. What's the best practice in your opinion to take, and

Re: [fpc-pascal] inline function vs recursive function

2012-02-07 Thread ik
On Mon, Feb 6, 2012 at 21:58, Sven Barth pascaldra...@googlemail.comwrote: On 06.02.2012 19:51, ik wrote: Hello, Let's say I have a function that some of it's code (or all) can be used in more then one location inside the function itself. I can make a nested function with the code and set

[fpc-pascal] Dynamic array and dimensions

2012-02-08 Thread ik
Hello, I need to rewrite the way I split data today, after I found out that the specs and the reality of the content are different things. At the moment I'm using a dynamic array of single dimension to store each element of a list, however the actual data can arrive as a list inside a list. Can I

[fpc-pascal] Re: Dynamic array and dimensions

2012-02-08 Thread ik
, ik ido...@gmail.com wrote: Hello, I need to rewrite the way I split data today, after I found out that the specs and the reality of the content are different things. At the moment I'm using a dynamic array of single dimension to store each element of a list, however the actual data can arrive

[fpc-pascal] TLinkedList

2012-02-09 Thread ik
Hello, If my memory is not misleading me, there was once a TLinkedList class under Classes unit, but I can't find any documentation on it. I found an include file that contains it, but it is not meant for the interface part. Is there a reason for this ? Should I use records instead ? Thanks,

Re: [fpc-pascal] Re: TLinkedList

2012-02-11 Thread ik
On Fri, Feb 10, 2012 at 17:53, leledumbo leledumbo_c...@yahoo.co.id wrote: I don't remember having that since 2.X.X... there was always TList, however. And that's what I was using (I use generics for all my containers use now). Thanks. Personally I dislike generics at all. They are not that

Re: [fpc-pascal] Re: TLinkedList

2012-02-14 Thread ik
On Tue, Feb 14, 2012 at 07:45, Carver413 carver...@gmail.com wrote: doesn't generics more or less duplicate the class every time you use it with different type, and if so would this not cause alot of bloating ? ‎That's one of the things that I'm afraid of actually.

Re: [fpc-pascal] Re: TLinkedList

2012-02-15 Thread ik
On Wed, Feb 15, 2012 at 11:19, Juha Manninen juha.mannine...@gmail.com wrote: 2012/2/15, Jorge Aldo G. de F. Junior jagf...@gmail.com: i once read a textbook about generics (C++ generics) showing how C++ C++ does not have generics, it has templates. Templates syntax is complex, you can do

[fpc-pascal] benchmarking functions

2012-02-16 Thread ik
Hello, What is the best way measure execution time of functions ? Thanks, Ido ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] benchmarking functions

2012-02-17 Thread ik
On Fri, Feb 17, 2012 at 10:06, Graeme Geldenhuys graemeg.li...@gmail.com wrote: On 16 February 2012 18:10, ik ido...@gmail.com wrote: Hello, What is the best way measure execution time of functions ? You can also use fpprofiler. Search the wiki for more info. Thank I'll look

[fpc-pascal] Reactor Pattern for Pascal ?

2012-02-21 Thread ik
Hello, I'm looking for an open source based implementation (but not limiting for commercial usage) of Reactor Pattern (http://en.wikipedia.org/wiki/Reactor_pattern) to have something like Ruby's EventMachine . Does anyone know of such implementation ? Thanks, Ido

[fpc-pascal] OT: Amazing new development tools

2012-02-25 Thread ik
Hello, I found the following amazing lecture that present a new idea of a development tool, that I think will interest you all: http://vimeo.com/36579366 Enjoy Ido ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] OT: Amazing new development tools

2012-02-26 Thread ik
On Sun, Feb 26, 2012 at 13:25, zeljko zel...@holobit.net wrote: On Sunday 26 of February 2012 11:43:38 Michael Van Canneyt wrote: I don't see him doing this in huge corporate administrative business programs where hundreds of database tables are involved. and that tables can contain

[fpc-pascal] does the following translation of a c struct to FPC is correct ?

2012-02-26 Thread ik
Hello, I translated the following struct struct iphdr { #if defined(__LITTLE_ENDIAN_BITFIELD) __u8ihl:4, version:4; #elif defined (__BIG_ENDIAN_BITFIELD) __u8version:4, ihl:4; #else #error Please fix asm/byteorder.h #endif __u8

[fpc-pascal] Re: does the following translation of a c struct to FPC is correct ?

2012-02-26 Thread ik
Answering myself: On Sun, Feb 26, 2012 at 14:54, ik ido...@gmail.com wrote: Hello, I translated the following struct struct iphdr { #if defined(__LITTLE_ENDIAN_BITFIELD)        __u8    ihl:4,                version:4; #elif defined (__BIG_ENDIAN_BITFIELD)        __u8    version:4

Re: [fpc-pascal] does the following translation of a c struct to FPC is correct ?

2012-02-26 Thread ik
On Sun, Feb 26, 2012 at 15:08, Jonas Maebe jonas.ma...@elis.ugent.be wrote: On 26 Feb 2012, at 13:54, ik wrote: to the following Pascal record: iphdr    = record {$IFDEF ENDIAN_LITTLE}              jhl     : Cardinal; // __u8      ihl:4,              version : Cardinal; // version:4

Re: [fpc-pascal] does the following translation of a c struct to FPC is correct ?

2012-02-26 Thread ik
On Sun, Feb 26, 2012 at 15:19, Jonas Maebe jonas.ma...@elis.ugent.be wrote: On 26 Feb 2012, at 14:16, ik wrote: I'ved replaced it to iphdr    = bitpacked record This is wrong. The record is a C record, and hence follows {$packrecord c} rules. bitpacked record overrides any current

[fpc-pascal] fpweb and security

2012-02-27 Thread ik
Hello, I'm thinking now to use fpweb for a web application I need to build, but the application is going to be over the internet, and I'm interesting in knowing about few security issues that are supported or not. Does it have any CSRF protection ? What other if any security tools does it have ?

[fpc-pascal] compiling jvmbackend

2012-04-10 Thread ik
the following error message: make[4]: Leaving directory `/home/ik/projects/foss/fpc/jvmbackend/rtl/android/jvm' fpcmake -p -Tjvm-android Makefile.fpc Processing Makefile.fpc Error: No targets set make[3]: *** [fpc_install] Error 1 make[3]: Leaving directory `/home/ik/projects/foss/fpc/jvmbackend/rtl' make[2

Re: [fpc-pascal] compiling jvmbackend

2012-04-10 Thread ik
‎On Tue, Apr 10, 2012 at 17:15, Jonas Maebe jonas.ma...@elis.ugent.be wrote: ik wrote on Tue, 10 Apr 2012: Hello, I'm trying to compile jvmbacked (once again after a long time). It seems to work well at first with the following cli make: sudo make CROSSOPT=-O2 -g -FD/usr/share/java

[fpc-pascal] making FPC more code optimized

2012-04-29 Thread ik
Hello, Here is something that I'm asking without really know anything about the subject, so please bear with me. I'ved asked few places that works with Pascal (Delphi and FPC), why does they use C as the infrastructure, and they all say that there is not even one Pascal compiler that makes the

Re: [fpc-pascal] Re: making FPC more code optimized

2012-04-29 Thread ik
On Sun, Apr 29, 2012 at 12:58, Reinier Olislagers reinierolislag...@gmail.com wrote: On 29-4-2012 11:40, ik wrote: Hello, Here is something that I'm asking without really know anything about the subject, so please bear with me. I'ved asked few places that works with Pascal (Delphi and FPC

[fpc-pascal] have anyone binded librsync to pascal yet ?

2012-05-25 Thread ik
Hello, Is there anyone who binded librsync into Pascal/FPC ? Thanks, Ido ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Linux elf with signed checksum

2012-05-28 Thread ik
Hello, I see that most of the ELF on my system, contain a signature like so: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=0x39645af26ea483eaae81df45bf34701580506115, stripped There are two very interesting

Re: [fpc-pascal] Linux elf with signed checksum

2012-05-28 Thread ik
On Mon, May 28, 2012 at 3:34 PM, Jonas Maebe jonas.ma...@elis.ugent.bewrote: On 28 May 2012, at 14:09, ik wrote: The second part is more interesting for this subject: It signs a checksum of the ELF file, so any change to it will break the checksum. It helps you to discover for example

Re: [fpc-pascal] header translation question, 64 bit problem

2012-06-17 Thread ik
On Sun, Jun 17, 2012 at 2:02 AM, Bernd prof7...@googlemail.com wrote: Hi, I am translating parts of the libpurple headers. Now I seem to have a problem with this: typedef enum { PURPLE_PLUGIN_UNKNOWN = -1, /** Unknown type.*/ PURPLE_PLUGIN_STANDARD = 0, /**

[fpc-pascal] Dynamically Execute method

2012-06-18 Thread ik
Hi, I'm playing a bit with the notion of execute a method dynamically on demand. I'ved created the following PoC: https://gist.github.com/2950789 It works, but for some strange reason, I find myself feeling that I'm missing something, or it should be done differently. Does this code written

Re: [fpc-pascal] Dynamically Execute method

2012-06-18 Thread ik
On Tue, Jun 19, 2012 at 12:51 AM, Bernd prof7...@googlemail.com wrote: 2012/6/18 ik ido...@gmail.com: Hi, I'm playing a bit with the notion of execute a method dynamically on demand. I'ved created the following PoC: https://gist.github.com/2950789 Souldn't this be Exec: procedure

Re: RE : RE : [fpc-pascal] Dynamically Execute method

2012-06-19 Thread ik
On Tue, Jun 19, 2012 at 10:38 AM, Ludo Brands ludo.bra...@free.fr wrote: As Bern said you can't call an object method without passing the reference to the instance. In this case you are lucky because TMyClass.SayHi doesn't use any properties or class vars. Add a property to TMyClass and

[fpc-pascal] Adding method dynamically to a class

2012-06-19 Thread ik
Hello, Is there a way to tell in run-time that a specific function/procedure should belong to a class ? For example, let's say I have the following class: Type TTest = class procedure Foo; end; And I have also: procedure Bar; ... end; Is there a way to make at some point of my code

Re: [fpc-pascal] Adding method dynamically to a class

2012-06-19 Thread ik
On Tue, Jun 19, 2012 at 4:13 PM, Mattias Gaertner nc-gaert...@netcologne.de wrote: ** ik ido...@gmail.com hat am 19. Juni 2012 um 14:22 geschrieben: Hello, Is there a way to tell in run-time that a specific function/procedure should belong to a class ? For example, let's say I have

Re: [fpc-pascal] Adding method dynamically to a class

2012-06-20 Thread ik
On Wed, Jun 20, 2012 at 8:33 AM, LacaK la...@zoznam.sk wrote: ** Class helpers would not help ? http://wiki.freepascal.org/Helper_types They can, but there is a protocol that I'm trying to create that provides me information what to execute (out of white list). The thing is, that the first

Re: [fpc-pascal] Adding method dynamically to a class

2012-06-20 Thread ik
On Wed, Jun 20, 2012 at 10:20 AM, michael.vancann...@wisa.be wrote: On Wed, 20 Jun 2012, ik wrote: On Wed, Jun 20, 2012 at 8:33 AM, LacaK la...@zoznam.sk wrote: ** Class helpers would not help ? http://wiki.freepascal.org/**Helper_typeshttp://wiki.freepascal.org/Helper_types

Re: [fpc-pascal] Adding method dynamically to a class

2012-06-21 Thread ik
On Wed, Jun 20, 2012 at 2:15 PM, Inoussa OUEDRAOGO inouss...@gmail.comwrote: Think of a plug-able system. I have an engine, and code to execute. Instead of compile everything to an ELF/PE, I place code on dynamic shard library, and load it on run time when needed. The idea is that the

[fpc-pascal] Writing an outlook addons in FPC

2012-06-24 Thread ik
Hello, What is require in order to develop addons for MS Outlook using FPC ? Are there any existed headers that where bind to Pascal that does it ? Thanks, Ido ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] printing each Friday the 13 using Pascal

2012-08-06 Thread ik
Hi list, A friend of mine started a hobby project: Printing every Friday the 13, in a range of 5 yearshttp://blogs.perl.org/users/sawyer_x/2012/07/yet-another-friday-the-13th.html . I lack of the time for doing it at the moment, and I wish to add to his github

Re: [fpc-pascal] variant.inc(82, 10) Error: Illegal type conversion: Text to TextRec

2012-08-24 Thread ik
On Sat, Aug 25, 2012 at 1:07 AM, Sven Barth pascaldra...@googlemail.comwrote: Am 24.08.2012 21:21 schrieb Jonas Maebe jonas.ma...@elis.ugent.be: On 24 Aug 2012, at 20:52, ik wrote: For two weeks now, I have the following error message with FPC 2.7.1: variant.inc(82,10) Error

Re: [fpc-pascal] variant.inc(82, 10) Error: Illegal type conversion: Text to TextRec

2012-08-24 Thread ik
On Sat, Aug 25, 2012 at 1:48 AM, Jonas Maebe jonas.ma...@elis.ugent.bewrote: On 25 Aug 2012, at 00:37, ik wrote: On Sat, Aug 25, 2012 at 1:07 AM, Sven Barth pascaldra...@googlemail.com wrote: Am 24.08.2012 21:21 schrieb Jonas Maebe jonas.ma...@elis.ugent.be: It is something

[fpc-pascal] What version of FPC should I use to develop android application ?

2012-09-27 Thread ik
Hello, In order to use FPC jvm for android, what version should I be using of FPC ? I tried to compile FPC 2.7.1 r22465. It complains on: symdef.pas(620,38) Error: Identifier not found TAsmList Thanks, Ido ___ fpc-pascal maillist -

[fpc-pascal] does FPC support static variable inside a procedure ?

2012-09-27 Thread ik
Hello, Is there a way to create a static variable inside a procedure ? The following code: procedure static_variable; var static_var : Integer = -1; begin inc(static_var); writeln('static_var ', static_var); end; begin while true do begin static_variable; sleep(1000);

[fpc-pascal] creating msgpack port to Pascal

2012-10-10 Thread ik
Hi List, I've started working on porting msgpack (messagepack.org) to native FreePascal code: (https://github.com/ik5/fp-msgpack). If you do not know it, then it's a way to move data around with minimal amount of bytes in process. It was designed to take things like JSON and translate it into

Re: [fpc-pascal] Best way to transfer data between applications?

2012-10-29 Thread ik
On Mon, Oct 29, 2012 at 5:52 AM, 印場 乃亜 shir...@galapagossoftware.com wrote: Greetings, I am familiar with the basic underlying methods available for transferring data between processes on Windows and Unix, i.e. Pipes, Shared memory, and TCP/IP - but what I am not familiar with is any higher

  1   2   3   4   5   >