News for hackers. Stuff that matters.
Re:A minimalistic site to vent and see others doing the same... by typhonius on Tuesday January 26, 2021 @10:26PM (#25923871)
Looks like you can query the database directly via their REST API: https://api.ventspace.life/api/v1/ventpost?sort=id,desc&size...
Re:A minimalistic site to vent and see others doing the same... by vorticalbox on Wednesday January 27, 2021 @12:50AM (#25924775)
I'm not sure why there is a database at all, if you want messages to just appear and not stick around you could do this over websockets and never need to touch a database
Re:A minimalistic site to vent and see others doing the same... by VentScape on Wednesday January 27, 2021 @02:37AM (#25925369)
I'm brand new to full stack so I have no idea what I'm doing. Kind of figuring it out as I go along. Decided to start with short polling since I was having trouble getting websockets working and just wanted to get a v1.0 out in the wild.

Switching over to websockets eventually is 100% on my mind, but I have a near infinite amount of work to do on all fronts so we'll see when I have time!

Re:A minimalistic site to vent and see others doing the same... by dstick on Wednesday January 27, 2021 @02:50AM (#25925454)
Good on you. Learning about DB structure is far more important than websockets when starting out full-stack. You’d need to run your own websocket server anyway or pay through the nose for a service like Pusher (or stay on the free tier and not learn a single thing about either).

You choose well! Nice job, keep at it :)

Re:A minimalistic site to vent and see others doing the same... by friend-monoid on Wednesday January 27, 2021 @05:28AM (#25926485)
I agree absolutely - just want to add that learning when not to use a db, which db to use when you need one, and which network protocols to use for an application, is also important
Re:A minimalistic site to vent and see others doing the same... by maximp on Wednesday January 27, 2021 @10:08AM (#25929067)
Not sure what your backend is, but websockets are pretty straightforward with socket.io! Happy to help get you up to speed - don't hesitate to reach out (@maxverse on twitter, email in profile)

Great job figuring things out as you go, and I love the experience. Keep up the good work!

Re:A minimalistic site to vent and see others doing the same... by randomP on Wednesday January 27, 2021 @04:11AM (#25925924)
Congrats for the little project, pls opensource the db!
Re:A minimalistic site to vent and see others doing the same... by csunbird on Wednesday January 27, 2021 @10:35AM (#25929448)
Most of my requests are failing with

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://api.ventspace.life/api/v1/ventpost. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).

Re:A minimalistic site to vent and see others doing the same... by g-erson on Wednesday January 27, 2021 @11:38AM (#25930305)
Me too :( Seems to be broken now!
Re:A minimalistic site to vent and see others doing the same... by maximp on Tuesday January 26, 2021 @11:10PM (#25924161)
Looks like it caps off at 2,000, and we're currently at 130K+ messages
Re:A minimalistic site to vent and see others doing the same... by distribot on Wednesday January 27, 2021 @01:03AM (#25924836)
what does this mean?
Re:A minimalistic site to vent and see others doing the same... by maximp on Wednesday January 27, 2021 @02:24PM (#25932660)
The API returns at most 2000 messages at a time (this might have changed since I last tried), and last I looked the message IDs were around 130K, meaning that's how messages there have been.
Re:A minimalistic site to vent and see others doing the same... by PhillyG on Tuesday January 26, 2021 @10:33PM (#25923917)
I wonder what the most common word will be? I'd guess between "covid" and "Maddie"
Re:A minimalistic site to vent and see others doing the same... by 867-5309 on Thursday January 28, 2021 @02:20AM (#25939129)
over the last ~20hrs, the most common words and their frequencies are "the": 12263, "i": 12212, "fuck": 9015, "you": 8940. with stopwords removed, these become "fuck": 9015, "guess": 4084, "nums": 4062, "cunny": 3728. out of interest "maddie": 857, "covid": 231

I wondered too

Re:A minimalistic site to vent and see others doing the same... by cosmojg on Wednesday January 27, 2021 @02:42AM (#25925405)
Who is Maddie?
Re:A minimalistic site to vent and see others doing the same... by maximp on Wednesday January 27, 2021 @02:21PM (#25932602)
A guy was on talking about his ex-gf Maddie, and then it carried on.
Re:A minimalistic site to vent and see others doing the same... by HDMI_Cable on Wednesday January 27, 2021 @02:52AM (#25925462)
I think Maddie McCann, she was a young girl who disappeared in Portugal sometime a few years ago. She's been in the news recently I believe.
Re:A minimalistic site to vent and see others doing the same... by PhillyG on Wednesday January 27, 2021 @03:48AM (#25925772)
Oooof I was assuming it was a different Maddie. But yes that's the most famous Maddie in the UK. Might be a coincidence though. It feels like it was over ten years the Maddie you're thinking of disappeared while on holiday

(Edit: looked it up) Maddie McCann disappeared in may 2007