<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: hmmhmmhm</title>
    <description>The latest articles on DEV Community by hmmhmmhm (@hmmhmmhm_77).</description>
    <link>https://dev.to/hmmhmmhm_77</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1067722%2F7fe8b73f-f3ca-49a2-b68d-360c76c11c38.jpeg</url>
      <title>DEV Community: hmmhmmhm</title>
      <link>https://dev.to/hmmhmmhm_77</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hmmhmmhm_77"/>
    <language>en</language>
    <item>
      <title>Can you quickly shuffle the index of a trillion documents without conflict?</title>
      <dc:creator>hmmhmmhm</dc:creator>
      <pubDate>Tue, 30 May 2023 10:07:34 +0000</pubDate>
      <link>https://dev.to/hmmhmmhm_77/can-you-quickly-shuffle-the-index-of-a-trillion-documents-without-conflict-2bal</link>
      <guid>https://dev.to/hmmhmmhm_77/can-you-quickly-shuffle-the-index-of-a-trillion-documents-without-conflict-2bal</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--nf4nZjQ4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mcvww6cqvmed43wtc15k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--nf4nZjQ4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mcvww6cqvmed43wtc15k.png" alt="Recoon" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Peter quill&lt;/strong&gt;: Hey, i have a big problem, last year i wanted to keep the post url in my message board short, so i used an incremental index to create a number for every post that comes up, and now i need to hide it, but i still want it to be short, how do i do that?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Rocket&lt;/strong&gt;: It's no big deal, just use &lt;strong&gt;&lt;a href="https://github.com/hmmhmmhm/pseudo-shuffle"&gt;psuedo-shuffle.js&lt;/a&gt;&lt;/strong&gt; in the middle, it'll take 4 lines, Don't say you can't make it to the gym tonight bro.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Above conversation is an example of what I've been through before. 😅 And I've created a little library that can come in handy when you want to hide the numbering of posts on the web, starting from 1 and going up, to make it look random!&lt;/p&gt;




&lt;h2&gt;
  
  
  &lt;a href="https://github.com/hmmhmmhm/pseudo-shuffle"&gt;&lt;center&gt;👉 Psuedo-Shuffle.js 👈&lt;/center&gt;&lt;/a&gt;
&lt;/h2&gt;




&lt;h3&gt;
  
  
  Just try it!
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;Open the index.js file and try to modify it yourself, put in the range and index you want and notice that the value keeps changing as you change it.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;iframe src="https://codesandbox.io/embed/seudo-shuffle-demo-1hycrr"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>programming</category>
      <category>react</category>
      <category>backend</category>
    </item>
    <item>
      <title>How to write a Supabase security policy in Typescript</title>
      <dc:creator>hmmhmmhm</dc:creator>
      <pubDate>Mon, 22 May 2023 06:52:24 +0000</pubDate>
      <link>https://dev.to/hmmhmmhm_77/how-to-write-a-supabase-security-policy-in-typescript-3dc8</link>
      <guid>https://dev.to/hmmhmmhm_77/how-to-write-a-supabase-security-policy-in-typescript-3dc8</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--fQhKbd2g--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ymmke62yl1yy9348ke2q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--fQhKbd2g--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ymmke62yl1yy9348ke2q.png" alt="Supabase Row Level Security Editor Logo Preview Image" width="800" height="323"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Supabase utilizes Row Level Security (RLS) to configure access control per account privilege to DB rows, allowing clients to make direct requests to the DB without API development.&lt;/p&gt;

&lt;p&gt;However, RLS rules must be written in PostgreSQL, which is frustrating when writing complex rules.&lt;/p&gt;

&lt;p&gt;The Supabase RLS Editor converts your project's table schema to a Typescript specification, and then allows you to write RLS rules in Typescript with Intellisense.&lt;/p&gt;

&lt;p&gt;You don't need to set up anything else, just follow the link below and it will open a code window on the web and work with your project.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Supabase RLS Editor&lt;br&gt;
&lt;a href="//supabase-rls.up.railway.app"&gt;supabase-rls.up.railway.app&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>supabase</category>
      <category>rls</category>
      <category>programming</category>
      <category>typescript</category>
    </item>
  </channel>
</rss>
