Re: [Lazarus] fpWeb and server-sent events

2020-06-03 Thread Luca Olivetti via lazarus
El 3/6/20 a les 19:41, silvioprog via lazarus ha escrit: On Wed, Jun 3, 2020 at 2:04 PM Luca Olivetti via lazarus mailto:lazarus@lists.lazarus-ide.org>> wrote: El 3/6/20 a les 18:53, silvioprog via lazarus ha escrit: Thank you. I tested the 2 ports approach (fpweb on one port and a

Re: [Lazarus] fpWeb and server-sent events

2020-06-03 Thread silvioprog via lazarus
On Wed, Jun 3, 2020 at 2:04 PM Luca Olivetti via lazarus < lazarus@lists.lazarus-ide.org> wrote: > El 3/6/20 a les 18:53, silvioprog via lazarus ha escrit: > Thank you. > I tested the 2 ports approach (fpweb on one port and a custom socket for > SSE on a different port) and it works, but this is n

Re: [Lazarus] fpWeb and server-sent events

2020-06-03 Thread Luca Olivetti via lazarus
El 3/6/20 a les 18:53, silvioprog via lazarus ha escrit: 2) As Michael explained, unfortunately, it is not supported in FCL-Web (yet) . However, if you want a SSE structure out-of-the-box, you can provide it using the Brook streaming, e.g.: Minimal console example: https://github.com/risoflo

Re: [Lazarus] fpWeb and server-sent events

2020-06-03 Thread silvioprog via lazarus
Hi Luca. I hope you are fine in the current world situation. Some answers below to your questions 1 and 2. On Wed, Jun 3, 2020 at 10:30 AM Luca Olivetti via lazarus < lazarus@lists.lazarus-ide.org> wrote: > Hello, > > I need to embed a simple web server in my application that > > 1) should serv

Re: [Lazarus] fpWeb and server-sent events

2020-06-03 Thread Michael Van Canneyt via lazarus
On Wed, 3 Jun 2020, Luca Olivetti via lazarus wrote: El 3/6/20 a les 15:54, Michael Van Canneyt via lazarus ha escrit: On Wed, 3 Jun 2020, Luca Olivetti via lazarus wrote: Hello, I need to embed a simple web server in my application that 1) should server a couple of static files 2) send

Re: [Lazarus] fpWeb and server-sent events

2020-06-03 Thread Luca Olivetti via lazarus
El 3/6/20 a les 16:32, Luca Olivetti via lazarus ha escrit: El 3/6/20 a les 15:54, Michael Van Canneyt via lazarus ha escrit: On Wed, 3 Jun 2020, Luca Olivetti via lazarus wrote: Hello, I need to embed a simple web server in my application that 1) should server a couple of static files 2)

Re: [Lazarus] fpWeb and server-sent events

2020-06-03 Thread Luca Olivetti via lazarus
El 3/6/20 a les 15:54, Michael Van Canneyt via lazarus ha escrit: On Wed, 3 Jun 2020, Luca Olivetti via lazarus wrote: Hello, I need to embed a simple web server in my application that 1) should server a couple of static files 2) send server-sent events https://developer.mozilla.org/en-US/

Re: [Lazarus] Google Calendar API TEvent start or _end (TDatetime) question

2020-06-03 Thread Michael Van Canneyt via lazarus
On Wed, 3 Jun 2020, Francesco Sammarco wrote: sorry and how do I set the date and time of the apartment ?! I would think this is sufficient: Entry := FCalendarAPI.EventsResource.Get(CalendarFindedId, my_id_app); start_e := TEventDateTime.Create(); end_e := TEventDateTime.Create();

Re: [Lazarus] Google Calendar API TEvent start or _end (TDatetime) question

2020-06-03 Thread Francesco Sammarco via lazarus
sorry and how do I set the date and time of the apartment ?! Il mer 3 giu 2020, 15:55 Michael Van Canneyt ha scritto: > > > On Wed, 3 Jun 2020, Francesco Sammarco wrote: > > > sorry I don't understand, you say that just remove the lines where I > > specify the timezone ?! > > No, remove the > >

Re: [Lazarus] Google Calendar API TEvent start or _end (TDatetime) question

2020-06-03 Thread Michael Van Canneyt via lazarus
On Wed, 3 Jun 2020, Francesco Sammarco wrote: sorry I don't understand, you say that just remove the lines where I specify the timezone ?! No, remove the start_e.dateTime := LocalTimeToUniversal(start_e.dateTime); I think it is not necessary if you set the timezone. Michael. Il mer

Re: [Lazarus] fpWeb and server-sent events

2020-06-03 Thread Michael Van Canneyt via lazarus
On Wed, 3 Jun 2020, Luca Olivetti via lazarus wrote: Hello, I need to embed a simple web server in my application that 1) should server a couple of static files 2) send server-sent events https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events I can se

Re: [Lazarus] Google Calendar API TEvent start or _end (TDatetime) question

2020-06-03 Thread Francesco Sammarco via lazarus
sorry I don't understand, you say that just remove the lines where I specify the timezone ?! Il mer 3 giu 2020, 14:51 Michael Van Canneyt ha scritto: > > > On Wed, 3 Jun 2020, Francesco Sammarco via lazarus wrote: > > > Hi everyone, I have the following problem. I have a calendar (Italian) to >

[Lazarus] fpWeb and server-sent events

2020-06-03 Thread Luca Olivetti via lazarus
Hello, I need to embed a simple web server in my application that 1) should server a couple of static files 2) send server-sent events https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events I can see that 1) is easy, but 2) I cannot see how (fpWeb model d

Re: [Lazarus] Google Calendar API TEvent start or _end (TDatetime) question

2020-06-03 Thread Michael Van Canneyt via lazarus
On Wed, 3 Jun 2020, Francesco Sammarco via lazarus wrote: Hi everyone, I have the following problem. I have a calendar (Italian) to sync with Google Calendar. With the following code I can work quite well. If today (2020-06-03) I set a new appointment it is saved on google calendar on the righ

[Lazarus] Google Calendar API TEvent start or _end (TDatetime) question

2020-06-03 Thread Francesco Sammarco via lazarus
Hi everyone, I have the following problem. I have a calendar (Italian) to sync with Google Calendar. With the following code I can work quite well. If today (2020-06-03) I set a new appointment it is saved on google calendar on the right day and time, but if for example: always today if I set an ap

Re: [Lazarus] SQLdb Tab lost

2020-06-03 Thread Special via lazarus
Am 30.05.2020 um 21:02 schrieb Juha Manninen via lazarus: On Sat, May 30, 2020 at 1:17 PM Special via lazarus wrote: On a Raspberry Pi 4B 4GB, I installed Lazarus Trunc with fpcupdeluxe. All seemed well, but then I discovered the SQLdb tab is lost. So I cannot compile my SQLite Applications. Ho