News for hackers. Stuff that matters.
Re:Website hosted on a 24 year old Linux server by johnbellone on Thursday April 06, 2023 @12:08PM (#35470423)
I feel like you could do this without a database using the Linux kernel inotify API. Every time a file is accessed trigger an increment. It’s too beautiful of a day outside to try this right now but an interesting brain teaser!
Re:Website hosted on a 24 year old Linux server by LorenDB on Thursday April 06, 2023 @12:11PM (#35470467)
> It’s too beautiful of a day outside to try this right now

That's what laptops are for!

Re:Website hosted on a 24 year old Linux server by stronglikedan on Thursday April 06, 2023 @12:45PM (#35471004)
If you're just sitting outside, you may as well be inside.
Re:Website hosted on a 24 year old Linux server by hammyhavoc on Thursday April 06, 2023 @12:54PM (#35471122)
My mood says otherwise.
Re:Website hosted on a 24 year old Linux server by prmoustache on Thursday April 06, 2023 @02:23PM (#35472333)
Only if your laptop has some e-ink/e-paper tech screen really.
Re:Website hosted on a 24 year old Linux server by hammyhavoc on Thursday April 06, 2023 @02:46PM (#35472632)
Sitting in the shade works for me, but yes, e-ink or STN works well (decades-old tech).
Re:Website hosted on a 24 year old Linux server by SoftTalker on Thursday April 06, 2023 @12:44PM (#35470987)
Pretty sure Linux didn't have inotify then.

Probably a CGI script updates a counter in a file.

Re:Website hosted on a 24 year old Linux server by smashed on Thursday April 06, 2023 @01:14PM (#35471414)
Can confirm, that's how it was done. A simple text file.
Re:Website hosted on a 24 year old Linux server by yjftsjthsd-h on Thursday April 06, 2023 @02:18PM (#35472252)
> Pretty sure Linux didn't have inotify then.

Did FUSE exist yet? You could hack it up in userspace...

(Have the HTML on a FUSE filesystem, and every time it gets a read it updates the HTML)

Re:Website hosted on a 24 year old Linux server by dmd on Thursday April 06, 2023 @04:50PM (#35474216)
Re:Website hosted on a 24 year old Linux server by Zach_the_Lizard on Thursday April 06, 2023 @05:47PM (#35474987)
What about dnotify? I think that predated inotify. If so, I think it has the ability to notify a process when a file was accessed, so could fill a similar role.
Re:Website hosted on a 24 year old Linux server by treeman79 on Thursday April 06, 2023 @05:39PM (#35474888)
Would be flying with all the bots trying to hack Wordpress bugs