Hacker Newsnew | past | comments | ask | show | jobs | submit | Elzear's commentslogin

One year ago I created this list and demo of databases that are "free forever". I wonder how long it will take until none are left.

https://free-databases.vercel.app


Depends on how long those companies want to keep paying for something they're giving away for free.


> Now I get that this is a small subset of the climate activism but I even then I think that climate activists need to seriously rethink their tactics.

All means to fight climate change will always be used, and many people will always find a strawman to justify their inaction, or worse their actions against a better future... I don't think it's fair to put more blame on environmental activists than on the rest of people.


Even if you extend 'all means' to exterminating the entire population of rich countries (where most activism takes place), it's not going to be enough to stop climate change.


This is true. However, no matter how desperate the situation is, we'll still have opportunities to make it less bad, or much much worse.


Morally this justifies killing climate activists. You’re painting them as terrorists and monsters.


Funny, I actually tried finding tricks exploiting the cache from Vercel, but it didn't work. Initially I thought I could find a way to use it to share data across users, but nothing worked. Do you have any links to resources that could help getting a datastore from the Vercel cache?

I will try adding things you mentioned, and I'd love to find way to also have stupidly complex/convoluted storage systems, inspired by tom7's harder drives: https://www.youtube.com/watch?v=JcJSW7Rprio


My example is very simple. I am pretty much using it as a cache I guess.

Firstly there is an external product feed API that returns JSON.

In a single file I have an async function fetch from it and do some transformations.

In various pages (and I am using the new App Router so this might be different) I just call the function from an async React component and then use that data to do server-side generation.

The catch is that it is limited to 2Mb calls for caching. Otherwise the fetch works but they don't cache it. I am going to experiment to see if I can just store the data in memory globally.

This may not be a great approach for data provided by users. And it is a cache, so the data can be lost of course. Since in my case I can go back to the API it is of no concern.


6 * 50 / 25 + 100 + 75 = 187

is one step less


I wonder how you do the input on Countle. It is still 4 steps, like above.


Thanks for the comment! It made me realize I forgot to move a file. It's fixed now (you might need to clear your cache). And the live data toggle is now enabled.


Thank you for the follow up and fix. It's a great project you have there!


Thanks for sharing this! It will definitely be helpful, as I am considering updating my map to use WebGL.


Thanks a lot for the feedback!! The "live mode" is already developed using hafas-client[1] and VBB-API[2]. I just asked VBB to give me API access, I'll release the feature when I get it. If you are interested, VBB already made a live map[3]

1: https://github.com/public-transport/hafas-client 2: https://www.vbb.de/vbb-services/api-open-data/api/ 3: https://www.vbb.de/fahrinfo/


Author of hafas-client here!

Do you know about v5.vbb.transport.rest's /radar API [1]? Because it wraps VBB's de-facto-open unofficial API [2][3], it doesn't require authentication or even signing a contract.

If you have problems using it, please get in touch with me!

[1] https://v5.vbb.transport.rest/api.html#get-radar [2] https://github.com/public-transport/hafas-client/tree/5.25.0... [3] https://github.com/public-transport/transport-apis/blob/8e05...


Hi, I know you! You're hard to miss when working on public transportation. Very happy to see you're looking at my project! I sent you an email.

v5.vbb.transport.rest's frames were missing something I needed, if I recall correctly. With a fork of hafas-client, I got something to work okay. I was going to release it too, but then I realised I should use another user agent than 'my-awesome-program' which only VBB can provide, I think.


> v5.vbb.transport.rest's frames were missing something I needed, if I recall correctly. With a fork of hafas-client, I got something to work okay.

It would be great if you could create an Issue in hafas-client about this, so everyone can benefit from the changes.

> I realised I should use another user agent than 'my-awesome-program' which only VBB can provide, I think

If you're talking about hafas-client: No, you can use anything! It's merely about being transparent towards VBB who/what is using their API, but they don't have to approve it beforehand; They can't in fact, because the "mobile" HAFAS API just uses a static auth token.


Oh okay. Here is an old version of Ubähnchen with the toggle for "live mode / planned mode" on the top right: https://ubahnchen-inona1te6-lzear.vercel.app/?live The URL parameter still works in the current version by the way.

When I changed 'my-awesome-program' to 'ubahnchen' or something else when creating the hafas-client, it stopped getting valid responses. So I thought I should wait for VBB to give me an ID that works.


> When I changed 'my-awesome-program' to 'ubahnchen' or something else when creating the hafas-client, it stopped getting valid responses.

Please report this as an Issue in the hafas-client repo, so we can discuss this further.

> So I thought I should wait for VBB to give me an ID that works.

This is not how it works: - The official VBB API is an entirely different API, which they give you an auth token for when you ask. - hafas-client uses the "mobile" API, which has a static universal auth token. But it sends a (slightly randomised) User-Agent in order to communicate who/what is making requests. It might be that some User-Agents are blocked.


The link I posted was https://ubahnchen.vercel.app but, because there is a redirection, HackerNews changed it automatically.

You can also memorize ubaehnchen.vercel.app


fair enough, but then the HN is the problem and I have no way knowing you posted correct (memorable) link


Sorry you faced downvotes. No offense taken.


I think the lesson here would be using only ordinary characters in domain names (then what HN does would not matter), if you (and I mean anyone, not you in particular) advertise domain with special characters people will be confused because some companies advertise domain with special characters while you should actually read it with normal characters and not literally plus there is quite a stigma that these special characters are used for malicious purposes to pretend they are different sites. Dunno what's situation in Germany but here in Czechia where we also widely use special Latin characters in language, but they are pretty much non existent from domain names, though sometimes you can see them and they mean you should strip the domain name in your head and type it without special characters.


Very nice! I am working on a very similar project ( https://www.elzear.de/posts/2021-01-10-polls , https://rank-votes.vercel.app) but I had never seen your work, thanks for sharing!


Oh cool. I only knew of 2 or 3 similar projects before starting this project, but since then I've come across dozens of other ones. I'll add to my list. Some day I'll add a webring of similar projects on my site

Mine is currently lacking in Condorcet methods. The original prototype of it had a few more condorcet methods in it, but the core reason I wanted to rebuild it was to make heavy use of cacheing. E.g. no reason why both STAR and Borda should have to make the same calculation twice. Or why all these head to head methods need to produce the same exact matrix. So I have this "SuperElection" class that tries to break things down as much as possible

I think this did in fact help my performance but it's also made everything so... interconnected. Definitely been a good learning journey. But I might just re-implement kemeny-young and some others in a less efficient way and worry about optimizing them later


There are a lot of very nice articles showing the mortality in France during Covid-19 compared to other years and events (epidemics, heat waves), good reads.

https://www.insee.fr/en/statistiques/5359584


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: