Re: [fpc-pascal] Calculating Pixels to represent 3D coordinates

2019-09-17 Thread Gustavo Enrique Jimenez
A simple transformation is: P3D=(X,Y,Z) P2D=(x,y) x=X+Y*0.707 y=Y*0.707+Z I did not tried it, but I think that this is the transformation that you are looking for. Gustavo El mar., 17 sept. 2019 a las 17:37, James Richters () escribió: > > >What exactly are you trying to do? Usually if

Re: [fpc-pascal] libmosquitto headers for FPC

2019-03-14 Thread Gustavo Enrique Jimenez
El jue., 14 mar. 2019 a las 13:14, Karoly Balogh (Charlie/SGR) () escribió: > > Hi, > > Not sure if anyone have done this already, but I converted the > libmosquitto (which is a C-written MQTT client library) header > (mosquitto.h) to Free Pascal, so it allows using libmosquitto from Pascal >

[fpc-pascal] Raspberry Pi

2015-02-13 Thread Gustavo Enrique Jimenez
Thank you very much to all Freepascal and Lazarus developers. Today I was able to compile all my applications within Raspberry Pi. I am very happy. Many thanks to everyone for this amazing tool that you gave to the world. Gustavo ___ fpc-pascal

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 Gustavo Enrique Jimenez
2011/8/1 Gustavo Enrique Jimenez gejime...@gmail.com: 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

Re: [fpc-pascal] One experience with the unit serial

2009-11-19 Thread Gustavo Enrique Jimenez
Thank you for your answer. I played with different baud rates. The sender delivers a stream of bytes. The faster a transmission rate is, the less amount of data can be received. This leds me to two conclusions: At first, there must be a queue for incoming data despite I ruled out a queue with

Re: [fpc-pascal] One experience with the unit serial

2009-11-19 Thread Gustavo Enrique Jimenez
2009/11/19 Holger Bruns holger.br...@gmx.net: Gustavo Enrique Jimenez schrieb: Thank you for your answer. I played with different baud rates. The sender delivers a stream of bytes. The faster a transmission rate is, the less amount of data can be received. This leds me to two conclusions

Re: [fpc-pascal] One experience with the unit serial

2009-11-19 Thread Gustavo Enrique Jimenez
2009/11/19 Marco van de Voort mar...@stack.nl: In our previous episode, Gustavo Enrique Jimenez said: Did you try Synaser? http://www.ararat.cz/synapse/doku.php/download . I use it on all my projects since 2006 without problems (linux, windows, etc...). How do you use it? I'm used

Re: [fpc-pascal] x86.pp and oldlinux.pp

2009-11-03 Thread Gustavo Enrique Jimenez
2009/11/3 Holger Bruns holger.br...@gmx.net: Jonas Maebe schrieb: And regarding your later remark about FPC only being usable as root: it's the Linux kernel that only allows direct port access by root. Please stop blaming every single one of your problems on the compiler or the RTL. Under

Re: [fpc-pascal] Access to RS232 ports with fpc

2009-11-02 Thread Gustavo Enrique Jimenez
No, the 1000 means the size of a buffer, not a part address. The port address I try to use is 0xEC00, which is the base address for an UART on a PCI card. Linux sees this UART as /dev/ttyS2. Accessing the registers direcly should be easy, because 3 lines of assembler code should do this job:

Re: [fpc-pascal] Division by Zero: EDivByZero and EZeroDivide

2009-10-19 Thread Gustavo Enrique Jimenez
2009/10/18 Tom Verhoeff t.verho...@tue.nl: A simple example is the situation where one needs to calculate the replacement resistor value R for parallel resistors having values R1, R2, ..., Rk.  The formula is R = 1/(1/R1 + 1/R2 + ... + 1/Rk). The formula gives a divide-by-zero if one of the

Re: [fpc-pascal] Who said Pascal isn't popular

2009-10-12 Thread Gustavo Enrique Jimenez
2009/10/12 Rainer Stratmann rainerstratm...@t-online.de: Am Montag, 12. Oktober 2009 11:02 schrieb Jürgen Hestermann: Remember, Pascal is merely a TEACHING language, unsuitable for commercial software development, which is why we have C.  :) And why should that be the case? What are the

Re: [fpc-pascal] Who said Pascal isn't popular

2009-10-12 Thread Gustavo Enrique Jimenez
2009/10/12 Rainer Stratmann rainerstratm...@t-online.de: Am Montag, 12. Oktober 2009 16:21 schrieb Gustavo Enrique Jimenez: 2009/10/12 Rainer Stratmann rainerstratm...@t-online.de: Am Montag, 12. Oktober 2009 11:02 schrieb Jürgen Hestermann: Remember, Pascal is merely a TEACHING language

Re: [fpc-pascal] A question or two regarding the FPC

2009-05-08 Thread Gustavo Enrique Jimenez
Hi Nino: I am using FPC since 2000-2001. I use it for data aquisition and temperature control. Console programs compiled with FPC 1.x work for days, even weeks. In the Laboratorio de Física del Sólido, Tucumán - Argentina (Solid state physics laboratory) we have used programs compiled with FPC

Re: [fpc-pascal] XML files and the ext4 bug

2009-03-12 Thread Gustavo Enrique Jimenez
Ok, thanks for all your replys ! I will take more care with my xml files. Gustavo 2009/3/12 Jonas Maebe jonas.ma...@elis.ugent.be: Michael Van Canneyt wrote on do, 12 mrt 2009: On Thu, 12 Mar 2009, Florian Klaempfl wrote: Journaling means only: the file system is always in an internally

[fpc-pascal] XML files and the ext4 bug

2009-03-11 Thread Gustavo Enrique Jimenez
Hi Seems like the ext4 file system has a bug or some issue with files updated often : https://bugs.edge.launchpad.net/ubuntu/+source/linux/+bug/317781 I use XML files heavily. It is great, XML units save me a lot of work ! My programs update de xml files quite often. I am concerned about this

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-05 Thread Gustavo Enrique Jimenez
2008/10/4 Antal [EMAIL PROTECTED]: You might use the CSV, which can be easily open with Office and to generate by your application. I am using this way to handle data to/from excel It is a plain text file, each row is separated with CRLF (#13#10), each cell separated with tab (#9) Also, if

Re: [fpc-pascal] Binary compatibility between Intel CPU and PowerPC CPU

2008-09-16 Thread Gustavo Enrique Jimenez
2008/9/16 Adriaan van Os [EMAIL PROTECTED]: Roland Turcan wrote: Hello FPC-Pascal users discussions! What is the best way to keep the binary compatibility among different CPU architectures. I need to make our own database engine compatible and other binary files, that user still can use

[fpc-pascal] writeln in fpc 2.0.2

2006-05-30 Thread Gustavo Enrique Jimenez
I use Lazarus. So, I've upgraded fpc from 1.0.10 to 2.0.2 . I've recompiled my cgi apps, and now something is wrong: lines with more than 80 char writed with writeln seems to be truncated at position 80. A #10 char follows, an then the rest of the line. If I send the output to a text file,

Re: [fpc-pascal] writeln in fpc 2.0.2

2006-05-30 Thread Gustavo Enrique Jimenez
You MUST remove the CRT unit. It's mentioned explicitly in the documentation that you are not allowed to use it for CGI. ok ! I will remove crt references. Sorry for not read the docs Thank you very much (Marco and Michael)... Gustavo Enrique Jiménez

Re: [fpc-pascal] writeln in fpc 2.0.2

2006-05-30 Thread Gustavo Enrique Jimenez
You MUST remove the CRT unit. It's mentioned explicitly in the documentation that you are not allowed to use it for CGI. I've removed all crt references. My cgi app works perfectly now. As an unexpected side effect, this app works perfectly also with Apache for windows. Thank you, thank