Monday, April 11, 2022

आज का कार्टून:महंगे पेट्रोल और गैस से लोग पहले ही हताश, अब नींबू की कीमतों ने बढ़ाई खटास


via देश | दैनिक भास्कर https://ift.tt/H9cDytT

Show HN: Esht – Embeddable SHell Tags https://ift.tt/rXwvzG6

Show HN: Esht – Embeddable SHell Tags https://ift.tt/tmTSsIn April 12, 2022 at 02:15AM

Show HN: Multiplayer Demo Built with Elixir https://ift.tt/FuOAPVw

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. 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. 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. 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. 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. The next version of Supabase Realtime will offer three features: Broadcast, Presence, and Extensions. 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. 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. 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. 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]. 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. Feel free to ask me anything and let me know what you think! [0] https://supabase.com [1] https://ift.tt/AZF5HfN [2] https://ift.tt/nXetGsa [3] https://ift.tt/uSMWDyF [4] https://ift.tt/608qPmw... [5] https://ift.tt/4stGIyb... [6] https://fly.io [7] https://ift.tt/kgjpYSb [8] https://ift.tt/XhfViQN https://multiplayer.dev April 11, 2022 at 11:45PM

Show HN: Paper Birch Notes https://ift.tt/UquHpPJ

Show HN: Paper Birch Notes https://ift.tt/UFmbCaf April 11, 2022 at 11:00PM

Sunday, April 10, 2022

मॉर्निंग न्यूज ब्रीफ:JNU में रामनवमी पर नॉनवेज को लेकर भिड़े छात्र; पाकिस्तान का PM बनने से पहले शरीफ ने छेड़ा कश्मीर का मुद्दा


via देश | दैनिक भास्कर https://ift.tt/OesEQXI

आज का इतिहास:25 साल पहले आज ही के दिन गिरी थी 10 महीने पुरानी एचडी देवगौड़ा सरकार, 12 महीने में देश ने देखे थे 4 PM


via देश | दैनिक भास्कर https://ift.tt/iSXeFOb

आज का कार्टून:सुप्रीम कोर्ट की बॉल पर कैप्टन इमरान बोल्ड, अविश्वास प्रस्ताव के सेंसेशनल ओवर में हारे मैच


via देश | दैनिक भास्कर https://ift.tt/rOVgeKJ

Show HN: Cypress Recorder that adapts to UI changes with Email testing https://ift.tt/A5fD4V2

Show HN: Cypress Recorder that adapts to UI changes with Email testing https://ift.tt/WfsaCNG April 10, 2022 at 11:51PM

Show HN: Ultra fast Terraform plan and state parser written in Rust https://ift.tt/XtWjdH0

Show HN: Ultra fast Terraform plan and state parser written in Rust https://ift.tt/dyaRXPn April 11, 2022 at 12:41AM

हिमाचल पुलिस बैंड हुनरबाज टैलेंट शो के फाइनल में पहुंचा:जीत से बस एक कदम दूर, लाठी-डंडे वाली खाकी को नई पहचान दिलाने जा रहा पुलिस बैंड


via देश | दैनिक भास्कर https://ift.tt/e2EY1dC

नड्‌डा ने जयराम के इन वजीरों को दी संजीवनी:फेरबदल की अफवाहों पर लगाया विराम, 3-4 सालों से सरकार व संगठन को अस्थिर करने का दिखा नया ट्रेंड


via देश | दैनिक भास्कर https://ift.tt/vol3IMy

Saturday, April 9, 2022

पर्दे के पीछे की राजनीति में एक्सपर्ट आशीष पटेल:कभी जल निगम में नौकरी करते थे, 2022 चुनाव में अपना दल को तीसरी बड़ी पार्टी बनाया, अब योगी कैबिनेट में शामिल


via देश | दैनिक भास्कर https://ift.tt/HWGJtIS

Show HN: Turn any data into a fast analytical API https://ift.tt/CfRQh8u

Show HN: Turn any data into a fast analytical API https://columns.ai/dev April 8, 2022 at 02:59PM

भारत-अमेरिका 2+2 समिट 11 अप्रैल से:ऊर्जा और खाद्य संकट पर होगी बात,  व्हाइट हाउस बोला-हमारे रिश्ते अहम


via देश | दैनिक भास्कर https://ift.tt/5BSfvDu

Show HN: tmux.nvim – turning Neovim into a terminal multiplexer https://ift.tt/GdvnY0J

Show HN: tmux.nvim – turning Neovim into a terminal multiplexer https://ift.tt/IjKzCle April 10, 2022 at 02:23AM

Show HN: MassCode v2 – a code snippets manager for developers https://ift.tt/f3VSzMe

Show HN: MassCode v2 – a code snippets manager for developers https://ift.tt/NoeUtOE April 9, 2022 at 10:23PM

Show HN: Dev Toolbox – A browser extension with simple offline dev tools https://ift.tt/uDnXGwJ

Show HN: Dev Toolbox – A browser extension with simple offline dev tools Hello HN! I'd like to share a browser extension I made that provides quick offline access to various development tools. Current tool set: Calculate hashes; encode and decode HTML, URI, Base64; convert numbers between different bases; parse and manipulate various time formats; format and inspect IPv4/CIDR addresses; search all v13.1 emoji with quick copying in various formats. It runs entirely offline, making no external requests (even emoji PNG files are bundled), and only requires local storage permission to remember your last tab and input. This was inspired by an old extension called Hasher (no longer on the Chrome Store) that provided a simple interface to similar utilities. This was an opportunity to get back into making extensions, practice with Vue a bit, and expand upon the original idea. It's available for Chrome, Edge (via Chrome Store), and Firefox; links and screenshots are on GitHub, where you can also report any problems. Feedback and suggestions are very welcome. Thanks! https://ift.tt/p0sNCgl https://ift.tt/p0sNCgl April 10, 2022 at 01:13AM

Show HN: I made a website for you to travel the world in first-person POV https://ift.tt/97sSKCQ

Show HN: I made a website for you to travel the world in first-person POV https://ift.tt/IwqinLR April 10, 2022 at 12:28AM

Show HN: tltv – Federation protocol for 24/7 TV channels https://ift.tt/KMVr6Ng

Show HN: tltv – Federation protocol for 24/7 TV channels I spent six years trying to build a tv channel server. rewrote it eight times. flas...