Re: [fpc-pascal] Changing variable in conditional

2013-01-08 Thread Jorge Aldo G. de F. Junior
C programmers are (usually, but there are a lot of exceptions) bad programmers who confuse the power of a language with the capability of decrease the ammount of typing needed to reach a certain goal. They despise pascal because pascal is somewhat verbose (ignoring that this is what makes pascal

Re: [fpc-pascal] Changing variable in conditional

2013-01-08 Thread Jorge Aldo G. de F. Junior
answer, so i infer you are the idiot here. 2013/1/8 Henry Vermaak henry.verm...@gmail.com: On Tue, Jan 08, 2013 at 08:19:15AM -0300, Jorge Aldo G. de F. Junior wrote: C programmers are (usually, but there are a lot of exceptions) bad programmers who confuse the power of a language with the capability

Re: [fpc-pascal] class destructor not recognised

2013-01-06 Thread Jorge Aldo G. de F. Junior
Are you SURE you need class constructor ? because usually all you need is a plain old constructor... like constructor create(const aparam : integer); // etc to be honest i never used a class constructor before... (dont even know this exists). 2013/1/6 Paul Ishenin paul.ishe...@gmail.com:

Re: [fpc-pascal] Complex circular references

2012-11-22 Thread Jorge Aldo G. de F. Junior
I still dont understand why FPC doesnt support circular references... There is no way to solve that ? 2012/11/22 denisgolovan denisgolo...@yandex.ru: PasDoc can produce 'dot' files of unit dependencies. (No idea if it will handle circular refs though). GraphViz can then be used to produce

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

2012-11-01 Thread Jorge Aldo G. de F. Junior
the Google Code page, but no downloads, only SVN access it looks like). Thank you, Noah Silva 2012/11/1 Jorge Aldo G. de F. Junior jagf...@gmail.com i reiterate that my Pascal-Actor-Model can do exactly what you are saying... writing a save file in background type of actor is trivial

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

2012-10-31 Thread Jorge Aldo G. de F. Junior
in-between (Class factories, etc.) is something one probably has to put together themselves. Either way, it makes everything more complicated to do something that is in principle relatively simple. Thank you, Noah Silva 2012/10/31 Jorge Aldo G. de F. Junior jagf...@gmail.com Hm... if you

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

2012-10-30 Thread Jorge Aldo G. de F. Junior
:37, Jorge Aldo G. de F. Junior jagf...@gmail.com wrote: Ah, and you will need a class factory to register the tpersistent class creators... And i said my unit is neater ? here it is : http://code.google.com/p/pascal-actor-model/source/browse/trunk/rttiobjects.pas I use it on a lot

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

2012-10-29 Thread Jorge Aldo G. de F. Junior
I have a very simple unit that uses RTTI to stream class instances to and from strings/streams. i believe this is an easy foundation on wich to develop something along the lines of what you are trying to do 2012/10/29 Frank Church vfcli...@gmail.com: On 29 October 2012 09:43, Michael Van

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

2012-10-29 Thread Jorge Aldo G. de F. Junior
Simple solution : Use TSimpleIPC components + my own RTTIObjects unit. All messages must be descendants of TRTTIObject. (You can use TPersistent, but i believe my unit is neater for this specific task). Well, using only standard components i believe you should use TSimpleIPC components +

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

2012-10-29 Thread Jorge Aldo G. de F. Junior
creating instead of bytecode creating) means that you cannot slurp an object from one application to another (IE.: Stream an unknown object around). Each class should be know in advance by both applications. 2012/10/30 Jorge Aldo G. de F. Junior jagf...@gmail.com: Simple solution : Use TSimpleIPC

Re: [fpc-pascal] Function for checking correct file name

2012-09-16 Thread Jorge Aldo G. de F. Junior
about my caution. 2012/9/16 Jürgen Hestermann juergen.hesterm...@gmx.de: Am 2012-09-15 23:48, schrieb Jorge Aldo G. de F. Junior: This is a security risk, because, if the function isnt almost perfect, someone could end up reading the passwords file (security.sam on windows ? whatever im

Re: [fpc-pascal] Function for checking correct file name

2012-09-15 Thread Jorge Aldo G. de F. Junior
Vinzent, i dont know why you need to check the filename - would fileexists() be enough ? - but i suspect that you already know about that function, so, if you need something more complex, i *feel* that it is something related to security. Supose you wrote a webserver (or whatever thing similar

Re: [fpc-pascal] Function for checking correct file name

2012-09-14 Thread Jorge Aldo G. de F. Junior
am i the only one seeing a security risk here ? 2012/9/14 Vinzent Höfler jellyfish.softw...@gmx.net: On Fri, 14 Sep 2012 14:48:08 +0200, Krzysztof dib...@wp.pl wrote: I just quicky googled not allowed characters and wrote this simple function: Seems, you found one of the many (I'd suspect)

Re: [fpc-pascal] Re: Delphi's anonymous functions in Free Pascal

2012-08-30 Thread Jorge Aldo G. de F. Junior
I still fail to see where annonymous functions could succeed where functional types (part of pascal since last millenia) wouldnt... 2012/8/30 Ralf A. Quint free...@gmx.net: At 01:18 AM 8/30/2012, Arioch wrote: tcoq wrote a laziness to software design: what you can't name you actually

[fpc-pascal] TObjectQueue with ability to dequeue arbitrary positions

2012-08-24 Thread Jorge Aldo G. de F. Junior
while working on my actor model concurrency for freepascal i met the following problem. Each actor has a mailbox, that is made of the following components : A standard TObjectQueue wich holds the messages A TMultiReadExclusiveWriteSynchronizer that avoids race conditions while acessing the

Re: [fpc-pascal] Re: How to avoid namespace name clashes after USES ?

2012-08-21 Thread Jorge Aldo G. de F. Junior
I am trying hard to think of a situation where unit prefixes are not enough, but its hard to see. 2012/8/21 Timothy Madden terminato...@gmail.com: On 08/21/2012 02:17 PM, DaWorm wrote: Very tedious, but you could create a wrapper unit and/or class for each library, and expose a prefixed name

Re: [fpc-pascal] Re: How to avoid namespace name clashes after USES ?

2012-08-21 Thread Jorge Aldo G. de F. Junior
With no error messages, or even with no changes to the program since 1 and a half year in the repository, the scientific calculations are now all blown up, and program outputs only errors at runtime. The maintainer now curses and chases me for having the nerve to leave a program known as working

Re: [fpc-pascal] Re: How to avoid namespace name clashes after USES ?

2012-08-21 Thread Jorge Aldo G. de F. Junior
: Am 21.08.2012 14:10, schrieb Jorge Aldo G. de F. Junior: With no error messages, or even with no changes to the program since 1 and a half year in the repository, the scientific calculations are now all blown up, and program outputs only errors at runtime. The maintainer now curses

Re: [fpc-pascal] Network mutex

2012-08-21 Thread Jorge Aldo G. de F. Junior
You could implement such a thing using my Pascal-Actor-Model classes. Simple TCP streams (or UDP with added guarantees) and a central actor that decides who use what. http://code.google.com/p/pascal-actor-model/ theres an udp sender/receiver actor that share a socket to send and receive

Re: [fpc-pascal] How to avoid namespace name clashes after USES ?

2012-08-21 Thread Jorge Aldo G. de F. Junior
Instead of implementing the half-assed C++ namespace model, just add to the compiler a warning when it detects that there is a collision in the current scope (two functions with the same parameters from different units that can be called from the scope being inspected). I believe function overload

Re: [fpc-pascal] How to avoid namespace name clashes after USES ?

2012-08-21 Thread Jorge Aldo G. de F. Junior
Douglas m...@delfire.net: On Tue, Aug 21, 2012 at 5:19 PM, Marcos Douglas m...@delfire.net wrote: On Tue, Aug 21, 2012 at 4:42 PM, Jorge Aldo G. de F. Junior jagf...@gmail.com wrote: 2012/8/21 Marcos Douglas m...@delfire.net: On Tue, Aug 21, 2012 at 3:08 PM, Marco van de Voort mar...@stack.nl

Re: [fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

2012-08-16 Thread Jorge Aldo G. de F. Junior
I still dont understand why dont you hack passrc and grab all the strings from the source ? You can even replace them with identifiers and do all the resource string mumbo jumbo automatically if you write a app to do this based on passrc... Actually, why theres no such tool included with

Re: [fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

2012-08-16 Thread Jorge Aldo G. de F. Junior
Thursday 16 August 2012 12:23:00 schrieb Jorge Aldo G. de F. Junior: I still dont understand why dont you hack passrc and grab all the strings from the source ? Because I have an almost finished solution. I worked already for a while on it. Some integrated piece of code is easier to handle for me than

Re: [fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

2012-08-15 Thread Jorge Aldo G. de F. Junior
And a disadvantage is may the longer time to find a solution. Thats not the only disadvantage. Reinventing the wheel usually means you get something less correct and less researched. Its simple, 1000 eyes looking for a bug into a standard library will spot much more problems than your lone eye

Re: [fpc-pascal] linux: should we hard-code versioned or unversioned shared libraries in our apps?

2012-08-15 Thread Jorge Aldo G. de F. Junior
But creating correct symlinks IS one of the tasks of a system administrator... His up to know the distro he is using and the software he wants to install. I bet a in the field sysadmin will be much more flexible than a hardcoded implementation that would need to take zillions of obscure distros

Re: [fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

2012-08-14 Thread Jorge Aldo G. de F. Junior
Why not scan the code with passrc, find the strings, build a table and then replace the strings with calls to a function that does the translation ? your hack sounds like a maintenance nightmare... Thats what a C programmer would do and then boast about his programming skills, just to later

Re: [fpc-pascal] Get all caller adresses of a given function/procedure before executing

2012-08-12 Thread Jorge Aldo G. de F. Junior
cents... 2012/8/11 Rainer Stratmann rainerstratm...@t-online.de: Am Saturday 11 August 2012 19:18:39 schrieb Jorge Aldo G. de F. Junior: Sorry for posting without bringing a solution, but i am curious, why do you need this ? Doesnt sound like good programming practice... See Thread: Get all

Re: [fpc-pascal] Get all caller adresses of a given function/procedure before executing

2012-08-11 Thread Jorge Aldo G. de F. Junior
Sorry for posting without bringing a solution, but i am curious, why do you need this ? Doesnt sound like good programming practice... 2012/8/11 Marco van de Voort mar...@stack.nl: In our previous episode, Rainer Stratmann said: There are not many different ways for a call.

Re: [fpc-pascal] [OT] GPL Lisence help

2012-07-29 Thread Jorge Aldo G. de F. Junior
: On Sat, 28 Jul 2012 02:28:43 -0300 Jorge Aldo G. de F. Junior jagf...@gmail.com wrote: Think about this : Can you think about the relationship of your modules versus someone else modules as being intrinsecally the same relation between linux and proprietary apps that happen to run in linux

Re: [fpc-pascal] [OT] GPL Lisence help

2012-07-27 Thread Jorge Aldo G. de F. Junior
Do dynamic linked executables really need to not be GPL ? I mean, application subdivision in modules has nothing to not be accepted at courts as a valid concept. Your module/lib is GPL but code linked to it must not be and this is not a violation of GPL. Provided that the code to your module/lib

Re: [fpc-pascal] Small and not instalable web server for a local Pascal CGI application

2012-07-12 Thread Jorge Aldo G. de F. Junior
Theres lightwebserver in Powutils 2012/7/12 Michael Van Canneyt mich...@freepascal.org: On Thu, 12 Jul 2012, luciano de souza wrote: Hello all, I am running some CGIs in localhost. When talking about web servers, the name of Apache comes as natural. However, I would like to share

Re: [fpc-pascal] SIGTERM and thread

2012-07-11 Thread Jorge Aldo G. de F. Junior
Did you try a simpler handler ? Maybe just set a variable and exit. Just a kind of test case... 2012/7/11 jmbottu jm.bott...@novaxel.tm.fr: Hello, I wrote a handler to intercept the SIGTERM signal and execute some processing before terminating the program. It works fine. But when i add the

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

2012-06-22 Thread Jorge Aldo G. de F. Junior
Use event properties (Properties to a procedural type) Adding completely free methods to a class makes no sense. By free i mean a method that has no clear signature (parameters and result type) because calling them will be a nightmare (You will have to do the compiler work and build your own

Re: [fpc-pascal] encryption and decryption

2012-06-22 Thread Jorge Aldo G. de F. Junior
Theres a blowfish encryption system in freepascal http://www.freepascal.org/docs-html/fcl/blowfish/index.html 2012/6/22 Rainer Stratmann rainerstratm...@t-online.de: Does someone know how to do encryption and decryption with keys? ___ fpc-pascal

Re: [fpc-pascal] Playing sounds with standard components

2012-06-09 Thread Jorge Aldo G. de F. Junior
You can use OpenAL or SDL... 2012/6/9 luciano de souza luchya...@gmail.com: Hello all, Bass is a very good library for sound playing and recording. However, it's not included as an standard feature of Freepascal. For whom wich wants to work with standard components, are there other options:

Re: [fpc-pascal] Streaming of Generics

2012-05-28 Thread Jorge Aldo G. de F. Junior
Can you create a generic that is based on a class that can stream itself using rtti regardles of its structure ? Something like Type TFundamentalClass = Class(TObject) Public Function GetProperty(Propertyname : String): Variant; Procedure SetProperty(PropertyName : String; Value : Variant);

Re: [fpc-pascal] Extend multiple classes with same code

2012-05-19 Thread Jorge Aldo G. de F. Junior
So basically they are in the same branch (Well you could argue that every object inherits from TObject, but i cant imagine someone creating a helper class for TObject). Please not that the extended classes (in this case T_B1 and T_B2) need to inherited from T_A, otherwise the compiler will

Re: [fpc-pascal] Extend multiple classes with same code

2012-05-18 Thread Jorge Aldo G. de F. Junior
You simply cant do it. Not even multiple inheritance would help you in this case. You will have to extend each class by hand. Multiple inheritance would allow you to join back branches in the class hierarchy, but in this case you want to add the same functionality to multiple branches, but keep

Re: [fpc-pascal] Re: Parsing parameters inside an interpreter

2012-05-14 Thread Jorge Aldo G. de F. Junior
I have a parser function somewhere around that can do more than that... let me find it... 2012/5/14 Lukasz Sokol el.es...@gmail.com: On 14/05/2012 10:39, Lukasz Sokol wrote: On 13/05/2012 11:20, luciano de souza wrote: Hello all, I trying to build a very small interpreter. I can type

Re: [fpc-pascal] Unicodestrings and Assign(File)

2012-05-12 Thread Jorge Aldo G. de F. Junior
does TFileStream use the same code as assign ? you could create a TFileStream instance and then use AssignStream to a regular file type and keep on using plain old read/write... not tested here, but could be worth a try... 2012/5/12 印場 乃亜 shir...@galapagossoftware.com: Hi, On 2012/05/12, at

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

2012-04-29 Thread Jorge Aldo G. de F. Junior
What would be usefull is to move the loads of code stored in sysutils/runtime into a dll/so. thats what makes C code look smaller, theres a nice libc (and others) there that groups mostly used functions into a single instance, while in pascal every executable replicates the very same code for

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

2012-04-29 Thread Jorge Aldo G. de F. Junior
Klämpfl flor...@freepascal.org: Am 29.04.2012 14:23, schrieb Jorge Aldo G. de F. Junior: What would be usefull is to move the loads of code stored in sysutils/runtime into a dll/so. thats what makes C code look smaller, theres a nice libc (and others) there that groups mostly used functions

[fpc-pascal] RGB32 video

2012-04-17 Thread Jorge Aldo G. de F. Junior
how to generate a RGB32 video to be consumed by, lets say ffmpeg ? i want to programatically generate video in some know format and rgb32 seems like the most simple to write is there any other way to easily generate video ? ___ fpc-pascal maillist -

Re: [fpc-pascal] Network Library

2012-03-24 Thread Jorge Aldo G. de F. Junior
I think ararat synapse is a possible solution to you... 2012/3/24 Carver Carver carver...@yahoo.com: you might try the PGD Pascal Game Development - Front Page From: Ian Macintosh ian.macint...@igmac.co.uk To: fpc-pascal@lists.freepascal.org Sent: Friday,

Re: [fpc-pascal] Burn a CD

2012-03-13 Thread Jorge Aldo G. de F. Junior
you are lucky ! a quick search at google returned the following document : http://tools.assembla.com/svn/zalex/FuzzyReader/WNaspi32.pas i dont know the license of this code, but it can be used, at least, as reference... 2012/3/13 Jorge Aldo G. de F. Junior jagf...@gmail.com: you should : 1

[fpc-pascal] status of MIPS port

2012-03-10 Thread Jorge Aldo G. de F. Junior
Whats the status of the MIPS port ? I am currently working on a project called OpenTik, wich aims at replacing mikrotik's routeros with a completely opensource alternative. Originally i wanted to use FreeBSD on ARM but theres no freepascal compiler for this. I switched to a Linux based system

Re: [fpc-pascal] Data persistance in CGI projects

2012-02-26 Thread Jorge Aldo G. de F. Junior
You can use rtti and create a base class that knows how to save/load itself from sql database... 2012/2/26 Luciano de Souza luchya...@gmail.com: Actually, reading the tiOPF, I found the support for Firebird, Microsoft SQL Server, Oracle, but not for PostgreSQL. This is the first reason. I

Re: [fpc-pascal] dbus in Pascal

2012-02-23 Thread Jorge Aldo G. de F. Junior
i need dbus too... i was going to do with plain tcp sockets, but dbus would be nice to integrate 2012/2/23 michael.vancann...@wisa.be: On Thu, 23 Feb 2012, Felipe Monteiro de Carvalho wrote: On Thu, Feb 23, 2012 at 8:42 AM, Michael Van Canneyt mich...@freepascal.org wrote: I have

Re: [fpc-pascal] Re: level curve and surface generation code

2012-02-21 Thread Jorge Aldo G. de F. Junior
i can translate for you if you need 2012/2/20 Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com: On Mon, Feb 20, 2012 at 3:59 PM, leledumbo leledumbo_c...@yahoo.co.id wrote: Something like http://www.sulaco.co.za/opengl_project_terrain_generation_using_heightmaps.htm terrain ?

[fpc-pascal] Exception withing exception handling

2012-02-17 Thread Jorge Aldo G. de F. Junior
I am in the process or writing a interpreter for a specific task (not turing complete, just something to make easier to express something to the computer) and for the erro handling i decided to use plain old exceptions. Code works that way : 1 - Everytime an error occurs, an exception is

Re: [fpc-pascal] Re: TLinkedList

2012-02-15 Thread Jorge Aldo G. de F. Junior
the comparision function) while in C++ the template specialization makes the comparision function work for a greater number of types, simplifying resulting code... 2012/2/15 Juha Manninen juha.mannine...@gmail.com: 2012/2/15, Jorge Aldo G. de F. Junior jagf...@gmail.com: i once read a textbook about

Re: [fpc-pascal] Re: TLinkedList

2012-02-14 Thread Jorge Aldo G. de F. Junior
i once read a textbook about generics (C++ generics) showing how C++ code can end up being FASTER than C equivalent due to lack of type checks... it uses a quick sort routing as example. on C you end up having to check the type of storage to get a similar result, while on C++ you check this at

Re: [fpc-pascal] Re: TLinkedList

2012-02-11 Thread Jorge Aldo G. de F. Junior
I believe generics makes faster code due to having no need to test types during runtime... i maybe wrong. 2012/2/11 ik ido...@gmail.com: 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

Re: [fpc-pascal] What ARM targets are supported by FPC?

2012-02-08 Thread Jorge Aldo G. de F. Junior
i tried to do, but while understanding directfb was easy, understanding how fpgui draws was quite hard... 2012/2/8 Graeme Geldenhuys graemeg.li...@gmail.com: On 7 February 2012 16:19, Jorge Aldo G. de F. Junior  wrote: Graeme, can you help port fpGui to DirectFB ? this would help embedded

Re: [fpc-pascal] What ARM targets are supported by FPC?

2012-02-08 Thread Jorge Aldo G. de F. Junior
layer (sort of), but using C language only... it can be used almost 1:1 in pascal... 2012/2/8 Graeme Geldenhuys graemeg.li...@gmail.com: On 8 February 2012 20:17, Jorge Aldo G. de F. Junior  wrote: i tried to do, but while understanding directfb was easy, understanding how fpgui draws was quite

Re: [fpc-pascal] What ARM targets are supported by FPC?

2012-02-07 Thread Jorge Aldo G. de F. Junior
Graeme, can you help port fpGui to DirectFB ? this would help embedded development a lot... 2012/2/7 Henry Vermaak henry.verm...@gmail.com: On 07/02/12 13:05, Bernd wrote: 2012/2/7 Henry Vermaakhenry.verm...@gmail.com:  Just make sure you have enough swap space, since I've got 512MB and that

Re: [fpc-pascal] TStringStream.DataString returns garbage?

2012-02-02 Thread Jorge Aldo G. de F. Junior
I would vote for a new function on all stream types to allow writing strings in the expected way. Everybody hits that problem once. 2012/2/1 Lars nore...@z505.com: Graeme Geldenhuys wrote: On 2 February 2012 00:14, Michael Van Canneyt  wrote: Ehm.. this should be S[1], now you're writing the

[fpc-pascal] tthread.waitfor with timeout

2012-01-16 Thread Jorge Aldo G. de F. Junior
hi ! while working on my pascal actor model concurrency framework i hit a problem with the way tthread is currently implemented. i need to quit all actors (threads) before closing the main application. this is done by waitfor/free each actor until none is left in the pool of locally running

Re: [fpc-pascal] How to poll for a byte in Input?

2011-12-09 Thread Jorge Aldo G. de F. Junior
Thats an old problem on the way TStream was implemented. I for one needed to know the result size of a uncompress stream (IE.: i have a compressed stream and want to know in advance how many bytes the uncompress method would yield). The stream system is currently a mess, sometimes you can know

Re: [fpc-pascal] Why is Random(255) some 529x slower compared to Delphi 7?

2011-12-09 Thread Jorge Aldo G. de F. Junior
Well, lets go to theory : One way to build a cypher is to XOR the stream that must be encrypted against a fixed value. But, this is easy to break using statistical methods. So the next logical way to do this is to XOR the stream against another stream of numbers, kind of one time password.

Re: [fpc-pascal] Why is Random(255) some 529x slower compared to Delphi 7?

2011-12-09 Thread Jorge Aldo G. de F. Junior
even if FPC implemented a ultra high tech PRNG it would be compatible with DELPHI : 1 - Delphi asserts that you should not use the Random function to encryption porpuses. 2 - Delphi asserts no speed guarantees. 3 - Delphi asserts no randomness quality guarantees. IE : to be compatible you only

Re: [fpc-pascal] How to poll for a byte in Input?

2011-12-09 Thread Jorge Aldo G. de F. Junior
I think the main problem is that TStream tries to abstract two kinds of resources : Character based resources and block based resources. The end result is that it is no good for neither of the two cases. 2011/12/9 Michael Van Canneyt mich...@freepascal.org: On Fri, 9 Dec 2011, Jorge Aldo G

Re: [fpc-pascal] Why is Random(255) some 529x slower compared to Delphi 7?

2011-12-07 Thread Jorge Aldo G. de F. Junior
Maybe implementing something other : The main advantages of the MWC method are that it invokes simple computer integer arithmetic and leads to very fast generation of sequences of random numbers with immense periods, ranging from around 260 to 2200.

Re: [fpc-pascal] The best approaching for templating

2011-11-09 Thread Jorge Aldo G. de F. Junior
I once wrote a very nice template system for Powutils. Dont remember how it was called. I can search the svn for you if you want. 2011/11/9 tcoq t...@free.fr: Dear Luciano. I would suggest using the StringReplace function (Sysutiles) in combination with a TStringList. Easy to do and quite

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

2011-10-18 Thread Jorge Aldo G. de F. Junior
I think all this info can be found on /proc directory... 2011/10/18 ik ido...@gmail.com: 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

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

2011-08-03 Thread Jorge Aldo G. de F. Junior
You can use L7 filtering to select actions based on packet content. 2011/8/1 Andrew Brunner andrew.t.brun...@gmail.com: 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

Re: [fpc-pascal] Re: operator overloading and counting references / creating / destoying anonymous instances

2011-07-30 Thread Jorge Aldo G. de F. Junior
if i understand correctly, your problem is not operator overloading or whatever in the language. You have references. Now you want to write counted references to references and deal with this in the overloaded operators your problem is right into the counted reference to reference. A := B

Re: [fpc-pascal] Re: operator overloading and counting references / creating / destoying anonymous instances

2011-07-30 Thread Jorge Aldo G. de F. Junior
Imagine the following : A - C - E B - D - E A is ref counted, and says that theres 10 references to the object C B is ref counted, and says that theres 5 references to the object D But both C and D points to the same object ! So now you have actually 15 references to the same object. Lets say

Re: [fpc-pascal] Re: Library for network calculation

2011-07-27 Thread Jorge Aldo G. de F. Junior
yet :D I'm talking about this: === source begin === procedure SomeProc; var    somevar: Integer = 42; begin end; === source end === This works in FPC, but doesn't in Delphi ;) Regards Sven Am 26.07.2011 21:27, schrieb Jorge Aldo G. de F. Junior: I dont like to take local variable

Re: [fpc-pascal] Re: Library for network calculation

2011-07-26 Thread Jorge Aldo G. de F. Junior
lnet etc). Some people might prefer to use other library instead of the default choosen one, etc... 2011/7/26 Sven Barth pascaldra...@googlemail.com: On 26.07.2011 01:23, Paul Nicholls wrote: Jorge Aldo G. de F. Junior jagf...@gmail.com  wrote in message news:CAAHHabS9aUe9gwyNjkve

[fpc-pascal] Re: Library for network calculation

2011-07-25 Thread Jorge Aldo G. de F. Junior
Some time ago someone asked for a library able to do network calculations. Here is something that might evolve into such library : Uses Classes, SysUtils, StrUtils; Type TNetworkIP = Record Case Mode : Boolean Of True : (IP1, IP2, IP3, IP4 :

[fpc-pascal] Pascal Actor Model

2011-07-24 Thread Jorge Aldo G. de F. Junior
V2 Release of Pascal Actor Model is done. I am now im the process of adding UDP message streaming support. This will allow multithreading to include threads running in other computers on the same broadcast domain. Actor is a thread of sorts (it IS a thread but with some specific semantic rules

[fpc-pascal] Problem with virtual constructors

2011-06-01 Thread Jorge Aldo G. de F. Junior
I am having problems with virtual methods. I have two classes, the second one is a descendent of the first : 1st: TTreeNode = Class(TObject) Public Constructor Create(Const aOwner : TTreeNode); Virtual; 2nd : TTreeNodeWithProperties =

Re: [fpc-pascal] Re: Problem with virtual constructors

2011-06-01 Thread Jorge Aldo G. de F. Junior
2011/6/1 leledumbo leledumbo_c...@yahoo.co.id: Yep, this situation would confuse the compiler as it's possible to assign descendant class instance to a class. 1st solution: rename one of the constructor, don't need to use virtual/override Its a class factory, i cannot have multiple

Re: [fpc-pascal] Re: Problem with virtual constructors

2011-06-01 Thread Jorge Aldo G. de F. Junior
Cobines solution worked ! not tested constref. 2011/6/1 Jorge Aldo G. de F. Junior jagf...@gmail.com: 2011/6/1 leledumbo leledumbo_c...@yahoo.co.id: Yep, this situation would confuse the compiler as it's possible to assign descendant class instance to a class. 1st solution: rename one

Re: [fpc-pascal] Message methods

2011-04-19 Thread Jorge Aldo G. de F. Junior
will it really traverse the classes ? from what i understood about the manual (and i heavily use that mechanism) it will only trigger the class where you dispatch to, so, self.dispatch(msg) only works for the TForm. if you need more than that you will need to traverse the component tree

Re: [fpc-pascal] Re: Converting code from C++ to FP....

2011-03-19 Thread Jorge Aldo G. de F. Junior
no one explained so let me try : void ForwardModel::SetMixedBoundaryCondition(const int iElec, void somefunction means its a pascal procedure const double* SX0, const has the same effect as fpc const before a parameter, double* SX0 is the same as double *SX0 or double * SX0 so this

[fpc-pascal] double dispatch

2011-03-18 Thread Jorge Aldo G. de F. Junior
Can FPC deal with double-dispatch ? Say you have an object defined as : Type TMyObject = Class Public Procedure DoSomething(Const aObject : TObject); Virtual; End; TMyParameterObject = Class Public End; TMyOtherParameterObject = Class Public End; Can you do something like : Type

Re: [fpc-pascal] com port using prolific driver

2011-03-13 Thread Jorge Aldo G. de F. Junior
try synaser, its portable across various O.S. and provides a very modern interface. 2011/3/12 Paul Breneman paul2...@brenemanlabs.com: John, I'm trying to get data from a device via a serial (com) port, 9600 baud, connected via the prolific cable (serial to usb). This allows one to connect

Re: [fpc-pascal] Actor Model implementation in Pascal

2011-03-13 Thread Jorge Aldo G. de F. Junior
, for this little library Pascal-Actor-Model, is the reason behind so many questions i've sent to this mailing list about multi-threading, blowfish and SHA1 encryption...) 2011/3/13 Sven Barth pascaldra...@googlemail.com: Am 13.03.2011 22:08, schrieb Jorge Aldo G. de F. Junior: This is my attempt

Re: [fpc-pascal] Actor Model implementation in Pascal

2011-03-13 Thread Jorge Aldo G. de F. Junior
messages around, wich, in the case of my little library, are just plain tobject descendents... 2011/3/13 Sven Barth pascaldra...@googlemail.com: Am 13.03.2011 22:30, schrieb Jorge Aldo G. de F. Junior: yes, its a kind of message passing. but mine is in native pascal and i have no intention

[fpc-pascal] Mutithreaded book

2011-03-07 Thread Jorge Aldo G. de F. Junior
I am developing an application that should scale well into those multicore CPUs that we have today, so, basically, i have to use threads. Anybody knows a good book about multi-thread programming in general, message passing etc ? I need to know some technices to deal with some problems i am

Re: [fpc-pascal] TBlowfishDecryptStream flaw

2011-03-06 Thread Jorge Aldo G. de F. Junior
), this is not a good choice for other algorithms wich could yield different output sizes for a given input... 2011/3/6 Michael Van Canneyt mich...@freepascal.org: On Sat, 5 Mar 2011, Jorge Aldo G. de F. Junior wrote: i have a problem with TBlowfishDecryptStream : [snip] The problem now

[fpc-pascal] SHA1 of a TMemoryStream

2011-03-05 Thread Jorge Aldo G. de F. Junior
I need to perform a Hash of data stored at a TMemoryStream... But unfortunately, the following program spits out different results if i run it in sucession... Note that the file being read (test6.pas) never changes. Uses Classes, SHA1; Var Data : TMemoryStream;

Re: [fpc-pascal] SHA1 of a TMemoryStream

2011-03-05 Thread Jorge Aldo G. de F. Junior
besides it, until data.size is meet). The solution was to dereference the pointer : SHA1Buffer(Data.Memory^, Data.Size); // damm little ^ ! Thanks !! 2011/3/5 Marco van de Voort mar...@stack.nl: In our previous episode, Jorge Aldo G. de F. Junior said: Uses       Classes,       SHA1; Var

[fpc-pascal] TBlowfishDecryptStream flaw

2011-03-05 Thread Jorge Aldo G. de F. Junior
i have a problem with TBlowfishDecryptStream : Try lBuffer := TMemoryStream.Create; lSource := (aObject As TMemoryStream); lSource.Seek(0, soFromBeginning);

Re: [fpc-pascal] Forward type not resolved

2011-03-03 Thread Jorge Aldo G. de F. Junior
im still trying to understand how the compiler understood that sentence in order to generate THAT specific error... (while ignoring a totally out of place 'of' token) 2011/3/3 waldo kitty wkitt...@windstream.net: On 3/3/2011 17:15, Leonardo M. Ramé wrote: Sorry, the error was here:    

[fpc-pascal] Consumer producer unit (donation to fcl)

2011-03-01 Thread Jorge Aldo G. de F. Junior
i have implemented a small consumer x producer unit (ie: threads that produce or consume tobjects) it is thread safe (based around a tthreadsafequeue with signalling - the thread can sleep/wait arbitrary timeout time while its queue is empty waiting for the producer) is it interesting for the

Re: [fpc-pascal] Re: Embedded web server

2011-02-25 Thread Jorge Aldo G. de F. Junior
iirc aservia was an experiment. why would you choose aservia over lightwebserver ? 2011/2/25 Ben ben.smith.li...@gmail.com: Op 2011-02-25 10:27, Ben het geskryf: I checked out the whole 'dev' tree sitting at revision r444. That code [Aservia] doesn't compile at all... I read the readme file

Re: [fpc-pascal] Re: Embedded web server

2011-02-25 Thread Jorge Aldo G. de F. Junior
whos going to mantain nYume ? cause lightwebserver is mantained... (while i dont mantain the rest of powtils site, i can mantain lightwebserver, webtemplate and pasjs...), yet nYume is unmantained... (i understand that using lightwebserver places the burden of having to use synapse, but, you

[fpc-pascal] Passing objects to libraries and back

2011-02-25 Thread Jorge Aldo G. de F. Junior
I want to add plugin suport to an network app i am developing, the easiest way of doing this is passing the internal objects as parameters to funcions inside libraries (.so or .dll) something like procedure plugin(const parameter : tobject): tobject; external; is it allowed ? or if i cant use

Re: [fpc-pascal] Embedded web server

2011-02-24 Thread Jorge Aldo G. de F. Junior
in powutils theres a lightwebserver that does almost everything. and you can register your own request handling procedures 2011/2/23 Héctor S. Ponce hectorspo...@gmail.com: Hello, could you please send me information about the web server? link is broken... Thanks Leonardo M. Ramé Wrote

Re: [fpc-pascal] Embedded web server

2011-02-24 Thread Jorge Aldo G. de F. Junior
http://powtils.googlecode.com/svn/dev/tools/lightwebserver/ lightwebserver is more stable and has all features (Even https) its easily expansible. theres two versions : the faster threaded and the slower but safer forked version (lightwebserver2). the forked version can even plug the powutils

Re: [fpc-pascal] Embedded web server

2011-02-24 Thread Jorge Aldo G. de F. Junior
lightwebserver uses synapse as its socket handling library 2011/2/24 Marcos Douglas m...@delfire.net: On Thu, Feb 24, 2011 at 12:34 PM, Jorge Aldo G. de F. Junior jagf...@gmail.com wrote: http://powtils.googlecode.com/svn/dev/tools/lightwebserver/ lightwebserver is more stable and has all

Re: [fpc-pascal] Embedded web server

2011-02-24 Thread Jorge Aldo G. de F. Junior
G. de F. Junior jagf...@gmail.com wrote: lightwebserver uses synapse as its socket handling library lighwebserver uses Synapse and is in Powtils' SVN? Okay... I think. Marcos Douglas ___ fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org

[fpc-pascal] IXP435

2011-02-21 Thread Jorge Aldo G. de F. Junior
Does the ARM port of freepascal compile to the XScale IXP435/Linux archtecture ? I want to write some small network apps for the Yanomami Routerboard, that is based on the IXP435... If true, any directions to help me get started ? Thanks in advance !

Re: [fpc-pascal] Skipping an the inherited of an ancestor

2011-01-15 Thread Jorge Aldo G. de F. Junior
does inherited inherited work ? as in procedure TD.DoSomething; Begin Inherited Inherited DoOtherthing; End; 2011/1/15 Andrew Haines andrewd...@aol.com: On 01/14/11 14:38, Torsten Bonde Christiansen wrote: Hi List. Is it possible to jump a couple of levels in the inherited hierarchy when

Re: [fpc-pascal] Re: [Lazarus] complex ini like syntax parser

2011-01-05 Thread Jorge Aldo G. de F. Junior
i have a small parser called PON Compiler that stores objects into a file using the following syntax : Instance nameofinstance Of classofinstance ( propertiesofsuchinstance ) Begin other instances here etc End. properties can itself point to instances wich can be declared in place. with this

Re: [fpc-pascal] Pascal Scripting Engines

2010-12-10 Thread Jorge Aldo G. de F. Junior
I once wrote a script engine that generated bytecodes. At the time it was harder due to defective variants support (something like that). Now it would be easier. 2010/12/10 Andrew Brunner andrew.t.brun...@gmail.com: Hi there, I'm considering pascal scripting engines in stead of hot-swaped

Re: [fpc-pascal] Property Tags

2010-08-04 Thread Jorge Aldo G. de F. Junior
i already know about virtual metods, by dynamic dispatch i mean to call a procedure by its name, at runtime, not at compile time... i simply dont know how to do it (maybe object pascal doesnt support this ?) 2010/8/4 leledumbo leledumbo_c...@yahoo.co.id: and what about property tags and

  1   2   >