Earlier quoted context omitted.
What solutions were you using?
I was using Heroku, but thinking back it may have been just a factor of inexperience (I don't do web much, not had I used Heroku before and the UX is not great there). I can't actually remember which go framework I used, but I associate negative feelings with the experience (take this entire thing with a grain of salt - I just thought shuttle.rs + the general rust buildsystem seemed so much cleaner than what I recall…
Zerocal – A Serverless Calendar App in Rust
51–60 of 64 posts
Re: Zerocal – A Serverless Calendar App in Rust
#52Earlier quoted context omitted.
Sorry but how is it serverless? Is it a static HTML file with JS that does the job? Isn't there a server that the request goes to?
Good question. It depends on your definition of serverless. Strictly speaking there is no serverless, there's always some infrastructure somewhere. However the calendar file gets created out of thin air from the GET parameters alone. There is no state or storage involved. Other calendar apps have a backend with a DB; this one doesn't. Now whether that counts as truly serverless is up to you I guess. It's as close as…
Re: Zerocal – A Serverless Calendar App in Rust
#53Speaking of zerocal, have you ever noticed that low calorie packaged foods like pickles and cauliflower will put tiny serving sizes on the package so they can advertise 0 calories? I think they round down to zero when it's less than 5 calories.
Yep. Another suspect of this is cooking oil spray, like Pam. They can advertise very low calories, usually 0, per serving but a serving is considered like 1/3 of a second spray.
Re: Zerocal – A Serverless Calendar App in Rust
#54Re: Zerocal – A Serverless Calendar App in Rust
#55I want to make sure I understand this: You made a VCALENDAR generator with a web-accessible endpoint. It fills in the VCALENDAR with info passed in via URL parameters. And rather than returning a webpage, it just returns the VCALENDAR file. So you send your friends the link, they click it, rather then returning text/html content, it returns a downloadable response consisting of a pre-filled VCALENDAR file with the co…
That's correct.
> Now I can finally send my friends a link to a calendar event for our next pub crawl.
I suggest you update the tagline to say "link" as there is no "terminal" involved. That is, you don't use cURL and you don't send a normal calendar invitation email, but instead you send a message with a link that gives them the ical file when they click it.
Re: Zerocal – A Serverless Calendar App in Rust
#56> I wanted a way to create calendar entries from my terminal. > There is no state on the server, it just generates a calendar event on the fly and returns it. Didn't see that coming. I suppose it's handy that you can call it anywhere curl is installed (or even use the browser address bar as your command line) instead of having to install and run the Rust program locally.
Re: Zerocal – A Serverless Calendar App in Rust
#57I'm wondering if this or a similar tool could be hooked into emacs to make working with calendars in emacs a bit easier. I don't think there is a good way to send calendar invites to people from emacs (but happy to be wrong on this one).
As seen in the article, the invites are simple text files. (I haven't tried, but you might be able to create one with icalendar-export-region?) I think the more difficult part is sending an email that looks and works right with the invite attached in a way compatible with the receiving systems. Invitations from Microsoft systems are especially horrible as they look like normal, plain text messages (without an invite)…
Re: Zerocal – A Serverless Calendar App in Rust
#58Given that this just creates an ics file, why bother with a server at all?
Re: Zerocal – A Serverless Calendar App in Rust
#59Earlier quoted context omitted.
I was using Heroku, but thinking back it may have been just a factor of inexperience (I don't do web much, not had I used Heroku before and the UX is not great there). I can't actually remember which go framework I used, but I associate negative feelings with the experience (take this entire thing with a grain of salt - I just thought shuttle.rs + the general rust buildsystem seemed so much cleaner than what I recall…
We have come a long way since Heroku. Vercel/Zeit has really raised the bar and expectations for a modern PaaS.
Re: Zerocal – A Serverless Calendar App in Rust
#60Given that this just creates an ics file, why bother with a server at all?
Apparently, to craft and send the link rather than the file.