The best Hacker News stories from Show from the past week
Latest posts:
Show HN: Prevent your computer sleeping with just a webpage
There's often times I want to prevent a computer/laptop/VM from sleeping and while, yes, there's various Caffeine/Amphetamine apps they're often overkill.<p>Instead, this small (12Kb) page does the job and only needs a web browser.<p>It's just a very simple usage of a web api normally used for things like video players: <a href="https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_API" rel="nofollow">https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake...</a>
Show HN: Prevent your computer sleeping with just a webpage
There's often times I want to prevent a computer/laptop/VM from sleeping and while, yes, there's various Caffeine/Amphetamine apps they're often overkill.<p>Instead, this small (12Kb) page does the job and only needs a web browser.<p>It's just a very simple usage of a web api normally used for things like video players: <a href="https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_API" rel="nofollow">https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake...</a>
Show HN: I created a collection of useful websites
Show HN: Favicons for HN
Show HN: I built a website to find nearby cafes to work remotely from
Show HN: Emacs Configuration Generator
Show HN: I built a simulator for personal finance
Show HN: Make your PDF look scanned in browser
Implement scanyourpdf.com in JavaScript. No backend servers needed.
Show HN: Employees.fyi – Easily compare U.S. workforce demographic data
Hi HN! We built Employees.fyi to make it easy to compare U.S. workforce demographic data across companies and against industry reference data.<p>In the U.S., the Equal Employment Opportunity Commission (EEOC) requires the collection and submission of demographic workforce data. We collected and organized the publicly available federal data from the EEOC as well as publicly available EEO-1 submissions from individual companies. By doing so, we hope to make it easy to compare U.S. workforce demographic data across companies and against industry reference data.<p>The URL contains your current selection. Just copy the URL and share it!<p>Some examples:<p>* A comparison of 2018 data for the "Professionals" job category across the Information industry, Facebook, and Netflix: <a href="https://employees.fyi/?year=2018&job=PROFESSIONALS&reference=51&company1=Facebook&company2=Netflix" rel="nofollow">https://employees.fyi/?year=2018&job=PROFESSIONALS&reference...</a><p>* A comparison of 2018 data for all job categories across the Finance and Insurance industry, BlackRock, and PayPal: <a href="https://employees.fyi/?year=2018&job=ALL&reference=52&company1=BlackRock&company2=PayPal" rel="nofollow">https://employees.fyi/?year=2018&job=ALL&reference=52&compan...</a><p>* A comparison of 2018 data for the "Exec/Sr Officials & Managers" category across the Professional, Scientific, and Technical Services industry, Accenture, and Nvidia: <a href="https://employees.fyi/?year=2018&job=SRMANAGERS&reference=54&company1=Accenture&company2=Nvidia" rel="nofollow">https://employees.fyi/?year=2018&job=SRMANAGERS&reference=54...</a><p>If there's a company with EEO-1 data that you would like to see, consider submitting a URL via this form: <a href="https://forms.gle/8cVfXpg69fiiemzc8" rel="nofollow">https://forms.gle/8cVfXpg69fiiemzc8</a><p>Let us know what feedback you have for us! For those who are curious: at runtime, Employees.fyi uses normalize.css and the Open Sans font. They are hosted with the website.
Show HN: My website, hosted on a 386 25 MHz, 4 MiB of RAM, 38400 baud internet
Show HN: Slow Social, a social network built for friends, not influencers
Show HN: Slow Social, a social network built for friends, not influencers
Show HN: I made a website to search for half loaves of bread
Show HN: Monocle – bidirectional code generation library
I just published a bidirectional code generation library. Afaik it's the first of its kind, and it opens up a lot of possibilities for cool new types of dev tools. The PoC is for ruby, but the concept is very portable. <a href="https://blog.luitjes.it/posts/monocle-bidirectional-code-generation/" rel="nofollow">https://blog.luitjes.it/posts/monocle-bidirectional-code-gen...</a>
Show HN: Discover the IndieWeb, one blog post at a time
Inspired by the "Ask HN: Share your personal site" last week, I finally came around and built a thing I wanted for a long time: a simple website to randomly explore all the awesome personal blogs without having to subscribe to them all.<p>So this is what I built over the weekend. You click a button and indieblog.page will redirect you to a random page from a personal page...<p>I'm happy to answer any questions you might have.
Show HN: How to compile C/C++ for WASM, pure Clang, no libs, no framework
A little help for programmers, who wants to run C/C++ code in the browser.<p>(This is my second attempt to show it, first time I got banned bcoz of my personal page domain, I don't really understand it why is is suspicious.)
Show HN: Multiplayer Demo Built with Elixir
Hey HN, I’m an engineer at Supabase [0] and one of the creators of this demo. My team and I have been working hard to bring developers the next version of Supabase Realtime.<p>The current version of Realtime [1] is a Change Data Capture (CDC) server for a PostgreSQL database that broadcasts changes via WebSockets to authorized subscribers. It’s written in Elixir/Phoenix.<p>The server utilizes PostgreSQL’s logical replication functionality, which writes database changes to Write-Ahead Logging (WAL) segment files, and a replication slot, responsible for managing and retaining WAL files.<p>Database changes are polled from WAL by the server using PostgreSQL’s replication function pg_logical_slot_get_changes and changes converted to JSON objects using the wal2json [2] extension by setting it as the output plugin.<p>Security is enforced through two checks - each check ensures only authorized client subscribers are sent database changes. The first check validates a JWT that is sent by clients subscribing to database changes. This JWT must contain an existing database role and optional claims, both of which can be referenced in Row Level Security (RLS) policies. Every valid client subscription is then inserted into the realtime.subscription table with an assigned UUID, database role, and claims. The second check calls the realtime.apply_rls SQL function from Write Ahead Log Realtime Unified Security (WALRUS) utility lib [3]. This function takes the database changes, executes a prepared statement to verify if the database role and claims have SELECT permissions on the changes, and outputs an array of authorized UUIDs. Then, the server finds all the subscribers whose UUIDs are in that array and broadcasts the changes to them.<p>The next version of Supabase Realtime will offer three features: Broadcast, Presence, and Extensions.<p>Broadcast, our Pub/Sub offering, can be used to pass ephemeral data from client to client such as cursor movements. This runs on a distributed cluster of nodes built on top of Phoenix PubSub + Channels.<p>Presence, can be used for tracking online/offline users and their state. This is built into Phoenix, and uses replicated state across a cluster using an Observe-Remove-Set-Without-Tombstones (ORSWOT) CRDT [4] which prefers adds over removes when resolving conflicts.<p>Extensions, are a way for the community to add additional functionality to take advantage of the WebSocket infrastructure. We have converted the existing Change Data Capture system to an extension that supports connecting to multiple customer databases (multi-tenancy). Other possible extensions include listening to other databases like MySQL and getting stock market events server-side [5], then broadcasting them to connected clients.<p>This demo is built using a Supabase project, Supabase Realtime, and Next.js and deployed on 20 Fly [6] nodes located around the world. You can find an introduction and walkthrough of the demo here [5].<p>Supabase Realtime is entirely open source and you can find the demo code here [7]. Once we have stabilized the release we will add it to the self-hosted offering [8]. This demo is a way to highlight the upcoming features and gather feedback/ideas.<p>Feel free to ask me anything and let me know what you think!<p>[0] <a href="https://supabase.com" rel="nofollow">https://supabase.com</a><p>[1] <a href="https://github.com/supabase/realtime" rel="nofollow">https://github.com/supabase/realtime</a><p>[2] <a href="https://github.com/eulerto/wal2json" rel="nofollow">https://github.com/eulerto/wal2json</a><p>[3] <a href="https://github.com/supabase/walrus" rel="nofollow">https://github.com/supabase/walrus</a><p>[4] <a href="https://gsd.di.uminho.pt/members/cbm/ps/delta-crdt-draft16may2014.pdf" rel="nofollow">https://gsd.di.uminho.pt/members/cbm/ps/delta-crdt-draft16ma...</a><p>[5] <a href="https://supabase.com/blog/2022/04/01/supabase-realtime-with-multiplayer-features" rel="nofollow">https://supabase.com/blog/2022/04/01/supabase-realtime-with-...</a><p>[6] <a href="https://fly.io" rel="nofollow">https://fly.io</a><p>[7] <a href="https://github.com/supabase/realtime/tree/multiplayer" rel="nofollow">https://github.com/supabase/realtime/tree/multiplayer</a><p>[8] <a href="https://github.com/supabase/supabase/tree/master/docker" rel="nofollow">https://github.com/supabase/supabase/tree/master/docker</a>
Show HN: I made a website for you to travel the world in first-person POV
Show HN: Zaplib – Speed up your webapp with Rust+Wasm
Show HN: I made a puzzle game in HTML5