Re: [fpc-pascal] Order of Precedence: FPC/Delphi vs Java
Bernd Oppolzer: > The story is documented in more detail here (including the > Pascal source code of the rounding function): > > http://bernd-oppolzer.de/job9i032.htm Wirth introduced the capitalisation of keywords, and you have decided to invert his style and capitalise everything except keywords? -- Please, do not forward replies to my e-mail. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FpWaitPid() multiplies status by 256
Marco van de Voort to Anton Shepelev: > > may return the status multiplied by 256? If my child > > process terminates with Halt(1), the status is 256, if > > with Halt(2), the status is 512, etc. > > Entirely normal. Status is an opague format in POSIX, and > there are macros to pry them apart. Thank you. -- Please, do not forward replies to my e-mail. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] MacOSX Mojave
On 06/10/18 16:01, C Western wrote: Possibly unwisely, I updated by Mac to Mojave. I found that things (including 32 bit apps) worked, but: I had to add -Fl/Applications/Xcode.app/Con tents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib to my fpc.cfg to avoid "/usr/lib/crt1.o not found" errors. It seems as though the startup files are no longer in /usr/lib I've created an FPC 3.0.4a release for macOS yesterday that adds the appropriate directives to /etc/fpc.cfg (no changes to the compiler). Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Using REST based Services
On Sun, 2018-10-07 at 00:23 +0200, Michael Van Canneyt wrote: > > On Sat, 6 Oct 2018, Marc Santhoff wrote: > > > Hi, > > > > being rather agnostic regarding web techniques I have to ask: > > > > What module or unit is best for being used when calling web services? > > fphttpclient is what you need. OK, fine. I have used that already. > > > > I want to try using Apache Tika running as a server for extracting the > > contents of files. Files are transferred using HTTP PUT method- > > > > See there for a quick overview: > > https://wiki.apache.org/tika/TikaJAXRS#Services > > Rest services are not very standardized. Each service is different, and > therefor the lowest common denominator is the use of the HTTP protocol. I see. It is simple enough to put a request together like when using curl in a terminal. > Which is exactly what is encapsulated in the fphttpclient unit. > > The demo programs for fphttpclient should get you going. Many thanks! Marc -- Marc Santhoff ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Using REST based Services
A bit off topic for the list but I've used a program called "Insomnia" which is a client for debugging REST APIs and it was incredibly handy. Especially so you don't try everything under the sun before, for example, realizing your API key is incorrect. Alex On 10/7/2018 4:03 PM, Marc Santhoff wrote: On Sun, 2018-10-07 at 00:23 +0200, Michael Van Canneyt wrote: On Sat, 6 Oct 2018, Marc Santhoff wrote: Hi, being rather agnostic regarding web techniques I have to ask: What module or unit is best for being used when calling web services? fphttpclient is what you need. OK, fine. I have used that already. I want to try using Apache Tika running as a server for extracting the contents of files. Files are transferred using HTTP PUT method- See there for a quick overview: https://wiki.apache.org/tika/TikaJAXRS#Services Rest services are not very standardized. Each service is different, and therefor the lowest common denominator is the use of the HTTP protocol. I see. It is simple enough to put a request together like when using curl in a terminal. Which is exactly what is encapsulated in the fphttpclient unit. The demo programs for fphttpclient should get you going. Many thanks! Marc ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal