<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Raphaël Huchet on Medium]]></title>
        <description><![CDATA[Stories by Raphaël Huchet on Medium]]></description>
        <link>https://medium.com/@rap2h?source=rss-444ef7b46027------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*7Pi56HuKXfLi_rgcbdT2zw.png</url>
            <title>Stories by Raphaël Huchet on Medium</title>
            <link>https://medium.com/@rap2h?source=rss-444ef7b46027------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 12:47:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rap2h/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Secret of Darkwoods, two months after Steam Release]]></title>
            <link>https://medium.com/@rap2h/the-secret-of-darkwoods-two-months-after-steam-release-c87fc7f38501?source=rss-444ef7b46027------2</link>
            <guid isPermaLink="false">https://medium.com/p/c87fc7f38501</guid>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[rpg]]></category>
            <dc:creator><![CDATA[Raphaël Huchet]]></dc:creator>
            <pubDate>Tue, 23 May 2023 17:22:17 GMT</pubDate>
            <atom:updated>2023-05-23T17:22:17.045Z</atom:updated>
            <content:encoded><![CDATA[<p>Two months ago, I released a free video game on Steam, an open-world text-based RPG inspired by the ‘choose your own adventure’ books. It was an exciting and rewarding experience, I will share my experiences here.</p><p><a href="https://store.steampowered.com/app/2271590/The_Secret_of_Darkwoods/">The Secret of Darkwoods on Steam</a></p><p>I had a few building blocks to start with. I do programming, music, and I’m interested in procedural generation. I’ve played several ‘choose your own adventure’ books when I was a child. I also like to draw, but I’m pretty bad at it.</p><p>Last September, I made a prototype that I tested in the form of a video on 2 forums. I received positive feedback and decided to give it a shot. I spent about 7 months in my free time, I think I spent more than 500 hours on it in total.</p><p>I completely messed up at the beginning with my estimates. I thought it would be a small project that I could wrap up in a few weeks. I then set a deadline (and postponed it once!)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nSCaUB5BN6rAXTtZzF0GEQ.jpeg" /></figure><p>It has become a game of 800 unique pages (with procedural variations). It takes between 3 and 6 hours to complete it. I’ll put usage statistics at the end of the thread. In terms of programming, it is “loops” and “if” statements.</p><p>Originally, it was a music project. Several tracks that I have made in recent years have been published as illustrations for RPG sessions. I thought it could be interesting to use them in a video game.</p><p>Eight composers have offered their tracks for free, following a call for participation. It was great to be able to discuss the music and I think they were pleased to see their music in a game.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*wLpvrwJYsXBAKlw2_Dcdig.png" /></figure><p>For the illustrations, I used midjourney. When I started the project, it seemed like an opportunity to develop an illustrated game, but now the subject seems more complicated.</p><p>The game is unexpectedly successful among blind players, which is reassuring about the game’s interest itself and the fact that the images were secondary. I thank the testers who have greatly helped me make the game accessible.</p><p>It was a rewarding experience on a social level, surprisingly: I met lots of people who contributed and my friends and family supported me or participated in developing the game. All in all, more than 50 contributors. Thanks to everyone!</p><p>This game was developed as a hobby, I wanted it to be free. I was told that this could represent an additional difficulty (examples: game poorly perceived, difficulty in generating engagement, Steam has no interest in promoting, etc.), but I’m not quite sure.</p><p>My initial goal was to have 30 people play for 20 minutes. In the end, there were more than 1500 people for an average time of 2 hours of play, which was totally unexpected. 270 people probably finished it, there are 15 people playing every day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*r8V7nkA1X33xPw-ZlGk-XA.png" /></figure><p>The alpha and beta tests significantly improved the quality of the game, I don’t know if people were aware of it, I sometimes received emails of several pages from unknown people suggesting super relevant improvements.</p><p>I regret not planning to allow translations. Several people have offered to translate the game for free into many languages, but the game is not at all ready for that, it would take dozens of hours to prepare it.</p><p>That’s it. I loved making this game, it took me a lot of time, it was full of emotions and now that it’s over, it feels a bit weird. Don’t hesitate if you have any questions or comments, I would be happy to discuss it!</p><p>Translated from my original tweet thread (in french): <a href="https://twitter.com/rap2h/status/1660952774966755329">https://twitter.com/rap2h/status/1660952774966755329</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*UCcBcTeEF10i87IgKq5TeQ.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c87fc7f38501" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I eventually wrote code to generate prompts that generate code]]></title>
            <link>https://medium.com/@rap2h/how-i-eventually-wrote-code-to-generate-prompts-that-generate-code-e32ded2018e1?source=rss-444ef7b46027------2</link>
            <guid isPermaLink="false">https://medium.com/p/e32ded2018e1</guid>
            <category><![CDATA[midjourney]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Raphaël Huchet]]></dc:creator>
            <pubDate>Tue, 10 Jan 2023 17:07:26 GMT</pubDate>
            <atom:updated>2023-05-23T16:20:25.784Z</atom:updated>
            <content:encoded><![CDATA[<p>I’m developing <a href="https://the-secret-of-darkwoods.vercel.app/">the Secret of Darkwoods</a> an open-world procedural illustrated text-based RPG that allows players to interact with random characters in the streets of towns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lHb2HyzcW58pbYCqSd0oUg.png" /></figure><p>I wanted to create diversity in the game by ensuring that each random encounter with a character would be unique and that each character had their own original background story. To accomplish this, I set a goal for myself to generate at least 30 character portraits and 100 background stories. These character portraits would represent people of various ages, living in either a village or city setting, and the background stories would range from ordinary to extraordinary. I knew that achieving this level of diversity would require a significant amount of time and effort, so I decided to write code to generate prompts for both the character portraits and the background stories.</p><p>I use <a href="https://www.midjourney.com/">Midjourney</a> to generate illustrations and <a href="https://chat.openai.com/chat">ChatGPT</a> to help me in writing text.</p><h3>Code for generating prompts</h3><p>I ended up writing code to generate the 30 prompts for Midjourney and the 30 prompts for ChatGPT.</p><pre>// Simplified example<br>for(const wealth of [&quot;rich&quot;, &quot;middle&quot;, &quot;poor&quot;]) {<br> for(const age of [&quot;young&quot;, &quot;middle&quot;, &quot;old&quot;]) {<br>  for(const town of [&quot;village&quot;, &quot;city&quot;]) {<br>   // …<br>   const midjourneyPrompt = `character portait, …`;<br>   const chatGptPrompt = `Write 4 versions of …`;<br>   console.log(midjourneyPrompt);<br>   console.log(chatGptPrompt);<br>  }<br> }<br>}</pre><h3>Midjourney prompts</h3><p>The code generates this kind of Midjourney prompts</p><blockquote>character portait, a very ugly 30 years old rural woman, background is a medieval village, daylight, fantasy, painting</blockquote><blockquote>character portait, a depressed 30 years old rich black man, background is a medieval city, daylight, fantasy, painting</blockquote><p>I had to make some adjustments to help Midjourney overcome some of its limitations. I added “very ugly” to have normal women, randomly specify “black”, “asian”, “indian”, etc. to avoid having only white people, or just say “daylight” to avoid having poor people on a dark background.</p><p>I then pasted these requests to the Midjourney chat bot, downloaded all the generated images and named them correctly to associate them with the matching texts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iDlyRvLTF1JFDE2MPPfB0Q.png" /></figure><h3>ChatGPT prompts</h3><p>The ChatGPT prompts generated by my code look like this:</p><blockquote>Write 4 versions of a short description and background for a middle-age man met in the streets of a city (RPG medieval fantasy setting, 1 or 2 paragraphs, present tense).</blockquote><blockquote>Be creative. You are a leftist, you avoid cliché. Being rich does not always mean being humble. Use present tense.</blockquote><blockquote>In the first version, you focus on the background.<br>In the second version, you are not allowed to use “Despite …”.<br>In the third version, you write an extraordinary story for the person. It could be sad or fun or just astonishing.<br>In the fourth version, “the hero” meet the person while walking around the city (“the hero” is “you”, like in gamebooks). Do not describe the feelings of the hero. Remember: write “you” instead of “the hero”. Also don’t add “you can’t help but” phrase at the end.</blockquote><blockquote>Replace the name of the person with ${firstName} and the name of the town with ${townName}.<br>Write the 4 versions as an array of javascript strings (using backticks) in a variable called “text”.</blockquote><p>I have added some guidelines to fit better the universe I want to present in my game and to adjust some biases, in order to avoid, for example, that all rich people are presented as benefactors and poor people get out of their condition through their perseverance.</p><blockquote>Write the 4 versions as an array of javascript strings (using backticks) in a variable called “text”.</blockquote><p>The last lines helped me directly have code that I can use in my game. Instead of having a text that I would have had to modify to add variables, I directly asked ChatGPT to generate some code ready to copy and paste.</p><p>It generates something like this (an old middle-class man in a big city):</p><pre>[<br> `${firstName} is an elderly man who can often be found wandering the streets of ${townName}. Despite his advanced age, he is still full of life and passion. He loves to spend his days reading and learning about the world around him, and is always eager to engage in meaningful conversation with anyone who will listen.`,<br> `${firstName} is a wise and well-respected member of the ${townName} community. He has dedicated his life to learning and has a wealth of knowledge on a wide range of subjects.`,<br> `${firstName} is a man of many tales, each more extraordinary than the last. He has traveled to every corner of the realm, braving dangers and overcoming challenges that most people can only dream of. He has seen and done things that would astound even the bravest of heroes, and his stories are told and retold throughout ${townName} and beyond.`,<br> `As you walk through the streets of ${townName}, you come across ${firstName} sitting on a bench. He looks up at you with a kind and wise face, and you can&#39;t help but feel drawn to him. You approach and strike up a conversation, and before you know it, hours have passed as he shares with you tales of his adventures and the lessons he has learned throughout his life.`,<br>]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N5_R1BI7w19khndEfnEyRA.png" /></figure><h3>Object ready for the game</h3><p>Since this is code, I just have to copy/paste in a pattern, with the corresponding image:</p><pre>{<br> images: [&quot;man-middle-old-city.png&quot;],<br> townSize: &quot;big&quot;,<br> age: &quot;old&quot;,<br> wealth: &quot;middle&quot;,<br> gender: &quot;m&quot;,<br> texts: [<br>  `${firstName} is an elderly…`,<br>  `${firstName} is a wise…`,<br>  `${firstName} is a man of many tales…`,<br>  `As you walk through the streets of ${townName}…`,<br> ],<br>},</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MgwStGB-5-MK03JJGxKXPQ.png" /></figure><p><a href="https://store.steampowered.com/app/2271590/The_Secret_of_Darkwoods"><strong>The game will be released on Steam</strong></a><strong> for free on March 21, 2023. <br>Add to your wishlist to get a free copy </strong>🎉</p><p><a href="https://store.steampowered.com/app/2271590/The_Secret_of_Darkwoods/">The Secret of Darkwoods on Steam</a></p><p>Let me know if you have any questions! 🙏</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e32ded2018e1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create a lookalike search engine with Next.js, Tailwind and Elasticsearch (10 steps)]]></title>
            <link>https://medium.com/@rap2h/create-a-lookalike-search-engine-with-next-js-tailwind-and-elasticsearch-10-steps-bcdce74dc243?source=rss-444ef7b46027------2</link>
            <guid isPermaLink="false">https://medium.com/p/bcdce74dc243</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[elasticsearch]]></category>
            <category><![CDATA[tailwind-css]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Raphaël Huchet]]></dc:creator>
            <pubDate>Tue, 04 Jan 2022 08:04:35 GMT</pubDate>
            <atom:updated>2022-01-04T08:04:35.672Z</atom:updated>
            <content:encoded><![CDATA[<p>Link to the post: <a href="https://dev.to/rap2hpoutre/create-a-lookalike-search-engine-with-nextjs-tailwind-and-elasticsearch-10-steps-4o9e">https://dev.to/rap2hpoutre/create-a-lookalike-search-engine-with-nextjs-tailwind-and-elasticsearch-10-steps-4o9e</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bcdce74dc243" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A few weeks maintaining React components, using various approaches]]></title>
            <link>https://medium.com/@rap2h/a-few-weeks-maintaining-react-components-using-various-approaches-89f448073ab4?source=rss-444ef7b46027------2</link>
            <guid isPermaLink="false">https://medium.com/p/89f448073ab4</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[reactjs]]></category>
            <dc:creator><![CDATA[Raphaël Huchet]]></dc:creator>
            <pubDate>Tue, 14 Dec 2021 07:56:15 GMT</pubDate>
            <atom:updated>2021-12-14T07:56:15.647Z</atom:updated>
            <content:encoded><![CDATA[<p>Link to the story: <a href="https://dev.to/rap2hpoutre/a-few-weeks-maintaining-react-components-using-various-approaches-3017">https://dev.to/rap2hpoutre/a-few-weeks-maintaining-react-components-using-various-approaches-3017</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89f448073ab4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Modify Elasticsearch mappings and settings without downtime]]></title>
            <link>https://codeburst.io/modify-elasticsearch-mappings-and-settings-without-downtime-223911c0e521?source=rss-444ef7b46027------2</link>
            <guid isPermaLink="false">https://medium.com/p/223911c0e521</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[elasticsearch]]></category>
            <dc:creator><![CDATA[Raphaël Huchet]]></dc:creator>
            <pubDate>Wed, 17 Oct 2018 21:51:48 GMT</pubDate>
            <atom:updated>2018-10-23T18:56:27.404Z</atom:updated>
            <cc:license>http://creativecommons.org/publicdomain/zero/1.0/</cc:license>
            <content:encoded><![CDATA[<p>Here is a <strong>3 steps</strong> procedure to modify mappings and settings on an <strong>existing index</strong> without downtime. No need to manually re-import everything.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/1*Dt_Gc2oTWMDCDbmHL5lXig.png" /></figure><h3>Step 1: Create a new index</h3><p>Let’s say the original index name is things. Create a new index with another name with the new settings and mappings properties:</p><pre>PUT things2<br>{<br>  &quot;mappings&quot;: {<br>    &quot;_doc&quot;: {<br>      &quot;properties&quot;: {<br>        &quot;foo&quot;: {<br>          &quot;type&quot;: &quot;text&quot;,<br>          &quot;analyzer&quot;: &quot;french&quot;<br>        }<br>      }<br>    }<br>  }<br>}</pre><h3>Step 2: Re-index from old index to new index</h3><p>Then you need to copy the docs from things to things2:</p><pre>POST _reindex<br>{<br>  &quot;source&quot;: {<br>    &quot;index&quot;: &quot;things&quot;<br>  },<br>  &quot;dest&quot;: {<br>    &quot;index&quot;: &quot;things2&quot;<br>  }<br>}</pre><h3>Step 3: Create an alias for new index</h3><p>Finally, you can drop the old index and create an alias for the new one with the same name as the previous one.</p><pre>POST _aliases<br>{<br>  &quot;actions&quot; : [<br>    { &quot;add&quot;:  { &quot;index&quot;: &quot;things2&quot;, &quot;alias&quot;: &quot;things&quot; } },<br>    { &quot;remove_index&quot;: { &quot;index&quot;: &quot;things&quot; } }  <br>  ]<br>}</pre><p>Voilà! You can use things as usual with the new settings and mappings. 🎉</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=223911c0e521" width="1" height="1" alt=""><hr><p><a href="https://codeburst.io/modify-elasticsearch-mappings-and-settings-without-downtime-223911c0e521">Modify Elasticsearch mappings and settings without downtime</a> was originally published in <a href="https://codeburst.io/">codeburst</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting started using Hyperapp with Parcel as a bundler]]></title>
            <link>https://itnext.io/getting-started-using-hyperapp-with-parcel-as-a-bundler-df1541a3f659?source=rss-444ef7b46027------2</link>
            <guid isPermaLink="false">https://medium.com/p/df1541a3f659</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[itnext]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[Raphaël Huchet]]></dc:creator>
            <pubDate>Tue, 23 Jan 2018 08:15:42 GMT</pubDate>
            <atom:updated>2018-06-06T20:51:41.700Z</atom:updated>
            <cc:license>https://creativecommons.org/publicdomain/mark/1.0/</cc:license>
            <content:encoded><![CDATA[<p><a href="https://hyperapp.js.org/">Hyperapp</a> is a 1KB JavaScript library for building front-end web applications. It has a functional design and combines state management with a VDOM engine, with no dependencies. <a href="https://parceljs.org/">Parcel</a> is a fast, zero configuration web application bundler.</p><p>Let’s start using them together.</p><h3>Recipe 🥗🍴</h3><p>Install Parcel.</p><pre>npm i -g parcel-bundler</pre><p>Create a working directory and a package.json file.</p><pre>mkdir my-hyperapp-test<br>cd my-hyperapp-test<br>npm init</pre><p>Install Hyperapp, Babel and JSX packages.</p><pre>npm i hyperapp jsx-transform babel-preset-env <br>npm i babel-plugin-transform-react-jsx</pre><p>Create a .babelrc file.</p><pre>{<br>  &quot;presets&quot;: [&quot;env&quot;],<br>  &quot;plugins&quot;: [[&quot;transform-react-jsx&quot;, { &quot;pragma&quot;: &quot;h&quot; }]]                       }</pre><p>Create a app.jsx file.</p><pre>import { h, app } from &quot;hyperapp&quot;;<br><br>const state = { name: &quot;world&quot; };<br><br>const actions = {<br>  refresh: () =&gt; state =&gt; ({<br>    name: [&quot;Jane&quot;, &quot;John&quot;][+(Math.random() &lt; .5)]<br>  })<br>};<br><br>const view = (state, actions) =&gt; (<br>  &lt;main&gt;<br>    &lt;h1&gt;Hello {state.name}&lt;/h1&gt;<br>    &lt;button<strong> </strong>onclick<strong>=</strong>{actions.refresh}&gt;Refresh&lt;/button&gt;<br>  &lt;/main&gt;<br>);<br><br>const main = app(state, actions, view, document.body);</pre><p>Then create a index.html file.</p><pre>&lt;html&gt;&lt;body&gt;&lt;script src=&quot;./app.jsx&quot;&gt;&lt;/script&gt;&lt;/body&gt;&lt;/html&gt;</pre><p>Then, run Parcel.</p><pre>parcel index.html</pre><p>Open your browser, go to <a href="http://localhost:1234/">http://localhost:1234,</a> <strong>it works</strong>!</p><p>Now, you can build something for real.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mVFLT4Day01eQ5b0P3ZvFg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df1541a3f659" width="1" height="1" alt=""><hr><p><a href="https://itnext.io/getting-started-using-hyperapp-with-parcel-as-a-bundler-df1541a3f659">Getting started using Hyperapp with Parcel as a bundler</a> was originally published in <a href="https://itnext.io/">ITNEXT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create a (micro)calendar with VueJS and good old Bootstrap in a breeze]]></title>
            <link>https://codeburst.io/create-a-micro-calendar-with-vuejs-and-good-old-bootstrap-in-a-breeze-8d33bd5ae814?source=rss-444ef7b46027------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d33bd5ae814</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[vuejs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[Raphaël Huchet]]></dc:creator>
            <pubDate>Tue, 17 Oct 2017 12:26:42 GMT</pubDate>
            <atom:updated>2017-10-17T22:50:11.992Z</atom:updated>
            <cc:license>https://creativecommons.org/publicdomain/mark/1.0/</cc:license>
            <content:encoded><![CDATA[<h4>Yesterday, I wanted to build a PoC of a week Calendar. I thought it would be hard, with VueJS, it’s easy, it took me half an hour.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*qxAY07OOychfTOEZis_CBg.gif" /><figcaption>The GIF is in French, sorry. I’m too lazy to re-capture screen. Code is in English though.</figcaption></figure><h3>HTML Boilerplate</h3><p>First, create a small HTML boilerplate (including VueJS and Bootstrap).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/99a7d2f2a1d8518e00dca04752db2c8d/href">https://medium.com/media/99a7d2f2a1d8518e00dca04752db2c8d/href</a></iframe><h3>Initialize Weeks and Hours with Vue</h3><p>Then, create a Vue instance with some data. The data has a days property. Each day has a name (the name of the week day, i.e “Monday, Tuesday, etc.”) and a set of hours (an object with an index from 8 am to 8 pm, and a selected property). So, add this in the &lt;script&gt; tag:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/409a02d7cc7e8939540c25fd736a580a/href">https://medium.com/media/409a02d7cc7e8939540c25fd736a580a/href</a></iframe><h3>Display Calendar (week days and hours)</h3><p>Add some HTML in the <em>panel-body</em> div. Iterate over the days with a v-for loop and over the hours of each day.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fd9c3d72868750cb2633a2e7451d5d2d/href">https://medium.com/media/fd9c3d72868750cb2633a2e7451d5d2d/href</a></iframe><p>Now the calendar is rendered (and it’s a bit responsive, thanks to the bunch of col-* classes we put on the third div). Let’s make it alive.</p><h3>Handle click on hours</h3><p>Add a method to handle click with Vue.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ce8a9d009279c9dac43d047ba39a283f/href">https://medium.com/media/ce8a9d009279c9dac43d047ba39a283f/href</a></iframe><p>Then change the tr that render hours: bind the td to the click handler and bind a class to the selected property.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/acb84b7ce17b646a78d4f86c4c16d41a/href">https://medium.com/media/acb84b7ce17b646a78d4f86c4c16d41a/href</a></iframe><p>It’s time for CSS. Add some style in the style tag, selected element will be blue (kind of):</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6ee0dec17058c522f05dfbdc31644499/href">https://medium.com/media/6ee0dec17058c522f05dfbdc31644499/href</a></iframe><h3>It works!</h3><p>You don’t have a real calendar, but it’s a good(?) start. You can check the source here:</p><ul><li>Github: <a href="https://github.com/rap2hpoutre/vue-calendar">https://github.com/rap2hpoutre/vue-calendar</a></li><li>JS Fiddle: <a href="https://fiddle.jshell.net/rap2h/o841rp9b/">https://fiddle.jshell.net/rap2h/o841rp9b/</a></li></ul><p>Thanks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d33bd5ae814" width="1" height="1" alt=""><hr><p><a href="https://codeburst.io/create-a-micro-calendar-with-vuejs-and-good-old-bootstrap-in-a-breeze-8d33bd5ae814">Create a (micro)calendar with VueJS and good old Bootstrap in a breeze</a> was originally published in <a href="https://codeburst.io/">codeburst</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create and publish a Nuxt.js powered website on Github pages]]></title>
            <link>https://medium.com/hackernoon/create-and-publish-a-nuxt-powered-website-on-github-pages-3e922dfa7372?source=rss-444ef7b46027------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e922dfa7372</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[vuejs]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Raphaël Huchet]]></dc:creator>
            <pubDate>Tue, 13 Jun 2017 10:23:20 GMT</pubDate>
            <atom:updated>2017-07-20T11:13:20.280Z</atom:updated>
            <cc:license>https://creativecommons.org/publicdomain/mark/1.0/</cc:license>
            <content:encoded><![CDATA[<h4>How to build and share a static site from scratch in 5 minutes.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*2QOKCwEhtITQa0RIuoQsYQ.png" /><figcaption>Nuxt.js is a framework for creating Universal Vue.js Applications.</figcaption></figure><p>Install <a href="https://github.com/vuejs/vue-cli">vue-cli</a>:</p><pre>npm install -g vue-cli</pre><p>Create the project (replace my-project by your project name):</p><pre>vue init nuxt/starter my-project<br>cd my-project<br>npm install</pre><p>Update nuxt.config.js to <a href="https://nuxtjs.org/api/configuration-router/#base">add a base URL</a> (replace my-project by your project name):</p><pre>router: { base: &#39;/my-project/&#39; },</pre><p>Install <a href="https://github.com/L33T-KR3W/push-dir">push-dir</a>:</p><pre>npm install push-dir --save-dev</pre><p>Create a deploy command to publish to <a href="https://pages.github.com/">Github pages</a> by editing package.json file and adding this line at the beginning of the script section:</p><pre>&quot;deploy&quot;: &quot;push-dir --dir=dist --branch=gh-pages --cleanup&quot;,</pre><p>Connect to your Github account and create an empty repository.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-2omWvHEs5odTWU3-zJ4ZA.png" /></figure><p>Then commit and push your code to your repository (replace me by your name and my-project by your project name):</p><pre>git init<br>git add .<br>git commit -m &quot;init&quot;<br>git remote add origin https://github.com/me/my-project.git<br>git push -u origin master</pre><p>Generate the site and publish it:</p><pre>npm run generate<br>npm run deploy</pre><p>Go to your site https://me.github.io/my-project (replace me by your name and my-project by your project name) and <strong>enjoy the result</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bSDmqoePSoIpgFilpOhVpg.png" /></figure><p>You can publish your changes by running this again:</p><pre>npm run generate<br>npm run deploy</pre><p><strong>Voilà. </strong>🤗</p><figure><a href="http://bit.ly/HackernoonFB"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0hqOaABQ7XGPT-OYNgiUBg.png" /></a></figure><figure><a href="https://goo.gl/k7XYbx"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vgw1jkA6hgnvwzTsfMlnpg.png" /></a></figure><figure><a href="https://goo.gl/4ofytp"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gKBpq1ruUi0FVK2UM_I4tQ.png" /></a></figure><blockquote><a href="http://bit.ly/Hackernoon">Hacker Noon</a> is how hackers start their afternoons. We’re a part of the <a href="http://bit.ly/atAMIatAMI">@AMI</a> family. We are now <a href="http://bit.ly/hackernoonsubmission">accepting submissions</a> and happy to <a href="/service/mailto:partners@amipublications.com">discuss advertising &amp; sponsorship</a> opportunities.</blockquote><blockquote>If you enjoyed this story, we recommend reading our <a href="http://bit.ly/hackernoonlatestt">latest tech stories</a> and <a href="https://hackernoon.com/trending">trending tech stories</a>. Until next time, don’t take the realities of the world for granted!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*35tCjoPcvq6LbB3I6Wegqw.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e922dfa7372" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/create-and-publish-a-nuxt-powered-website-on-github-pages-3e922dfa7372">Create and publish a Nuxt.js powered website on Github pages</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Procedural Landscape Experiment]]></title>
            <link>https://medium.com/hackernoon/a-procedural-landscape-experiment-4efe1826906f?source=rss-444ef7b46027------2</link>
            <guid isPermaLink="false">https://medium.com/p/4efe1826906f</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[rust]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[procedural-generation]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Raphaël Huchet]]></dc:creator>
            <pubDate>Wed, 24 May 2017 11:26:49 GMT</pubDate>
            <atom:updated>2017-07-19T16:34:37.748Z</atom:updated>
            <cc:license>https://creativecommons.org/publicdomain/mark/1.0/</cc:license>
            <content:encoded><![CDATA[<h4>Quick and dirty(?) procedural generation in 99 LoC of Rust</h4><p>Some days ago, I tried to create a procedural landscape generator. Here is the actual result: <a href="https://rap2hpoutre.github.io/landscape-site/">https://rap2hpoutre.github.io/landscape-site/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*OYOz__xSF8pGp3G7kTCQuw.png" /><figcaption>Sometimes there is a moon or a sun.</figcaption></figure><p>I like to know how things work; this is how I built that one.</p><h3>Mountains</h3><p>I’m not a good programmer and I don’t know how to create mountains. I found this answer on Stack Exchange: <a href="https://gamedev.stackexchange.com/a/93531/81351">https://gamedev.stackexchange.com/a/93531/81351</a></p><p>So, I transposed this code into Rust, because I do like Rust for reasons. First, I created a Mountain struct.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ae123370eeb61c907f082f57d0820884/href">https://medium.com/media/ae123370eeb61c907f082f57d0820884/href</a></iframe><p>The points are the “y” position of each summit: on a 640x480 image, there are 640 points varying from 0 (highest) to 480 (lowest).</p><p>Then I created two associated functions: a new method to initialize points and a draw method to render each pixel of the mountain range.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/88aa8706ffd864d274fac421cdca8cd2/href">https://medium.com/media/88aa8706ffd864d274fac421cdca8cd2/href</a></iframe><p>It’s the longest part (it’s dirty, not the ugliest though!), think it’s just an adapted copy/paste from the StackExchange post I mentioned.</p><p>The new method takes a tuple of arguments y_amp which is just the bounds of the current mountain range (max height and min height). The points are initialized with random adjacent values.</p><p>The draw method takes a reference to the image we are drawing on and two colors: the initial color of the mountain range (color) and the color of the fog (c_fog) which is required in order to create a gradient. For each point, draw a gradient “line” form the summit to the bottom of the image, mixing fog color with initial color.</p><p>I could have use constants (for 640, 480, etc.), choose better name for variables and add comments but, hey! No time! Be quick, be dirty.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/1*xo7v-A34EusGbMT02GX55w.png" /></figure><h3>Random color helper</h3><p>The main task of this program is to generate random colors. I created a small helper to generate a color:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/040bcd4b43db4a79b087126499bbcdb5/href">https://medium.com/media/040bcd4b43db4a79b087126499bbcdb5/href</a></iframe><p><em>I forgot to mention that all functions and structs like </em><em>Rgb, </em><em>RgbImage, </em><em>interpolate, etc. comes from the excellent, partially documented and more or less stables “</em><a href="https://crates.io/crates/image"><em>image</em></a><em>” and “</em><a href="https://crates.io/crates/imageproc"><em>imageproc</em></a><em>” crates (a crate is a Rust lib).</em></p><p>The rgb_rand function I wrote can generate a random color from red range, green range and blue range. I will use it everywhere from now.</p><h3>Gradient sky and random moon</h3><p>With the help of rgb_rand function, I can initialize a random sky color, a random fog color, and a random moon color.</p><p>The sky. It can be light, dark or light-blue, let’s throw 1D3:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/be0e7850d76a5817c00d3154ba07993c/href">https://medium.com/media/be0e7850d76a5817c00d3154ba07993c/href</a></iframe><p>The fog has a totally random color and the planet (moon? sun? who cares?) color is a mix between the sky and a random color:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d0cb378969329dbc726bbf498c2a085f/href">https://medium.com/media/d0cb378969329dbc726bbf498c2a085f/href</a></iframe><p>Now let’s draw everything. So I started with the sky (our base image buffer):</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4b295892132d54ce00453bd0e3c4fab8/href">https://medium.com/media/4b295892132d54ce00453bd0e3c4fab8/href</a></iframe><p>Then the program draws the planet as often as not after throwing a coin with gen_weighted_bool. The planet is just a filled circle. Sometimes, another filled circle is drawn just after with the color of the sky to create a crescent moon effect.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b4f85d06d45345bff984eebbc01dcb5d/href">https://medium.com/media/b4f85d06d45345bff984eebbc01dcb5d/href</a></iframe><p>Then a gradient is applied on everything we drawn.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/845d0d80480b889e0f3a872b60d77f40/href">https://medium.com/media/845d0d80480b889e0f3a872b60d77f40/href</a></iframe><p>With all this code in a main function, we now have a gradient sky with a moon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*RsVkAlSLmWMcaWNnSU8AUA.png" /></figure><h3>Muted mountains on a gradient sky</h3><p>It’s time to add some mountains ranges on this gradient sky.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c64b93bbb344645efbad5e706d60c819/href">https://medium.com/media/c64b93bbb344645efbad5e706d60c819/href</a></iframe><p>In short, I just defined a random number of mountain range mountain_count, then a base color c_mountain. Then we iterate for each mountain range, build and draw the Mountain we created on the first step.</p><p>The deep down mountains have their color softened with the sky color. Remember the fog color is also mixed with the mountains to make them seems less flat.</p><p>Maybe I forgot something, the whole code is available here: <a href="https://github.com/rap2hpoutre/landscape/blob/master/src/main.rs">https://github.com/rap2hpoutre/landscape/blob/master/src/main.rs</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/1*NpH8kF4uwk97FmSQvsXZ8Q.png" /></figure><h3>Final thoughts</h3><p>I love procedural generation and I love to read about how procedural things were created, even if I don’t understand most of the time. This post is a description of what I coded, it’s obviously not a how-to or a tutorial about Rust. The result is not super-sexy, but I liked creating it. I also built a small web site with a fresh landscape generated every minute. In a frame, because I wanted it look like artistic! Here it is: <a href="https://rap2hpoutre.github.io/landscape-site/">https://rap2hpoutre.github.io/landscape-site/</a></p><p>My main inspiration were <a href="https://en.wikipedia.org/wiki/Navarre">Navarre</a> mountains. Here is a list of projects far better than mine, also I plundered their ideas:</p><ul><li><a href="https://foopod.github.io/sunset/">https://foopod.github.io/sunset/</a></li><li><a href="http://v21.io/softlandscapes/">http://v21.io/softlandscapes/</a></li><li><a href="https://www.reddit.com/r/proceduralgeneration/comments/606y33/procedurally_generated_landscapes/">https://www.reddit.com/r/proceduralgeneration/comments/606y33/procedurally_generated_landscapes/</a></li><li><a href="http://imgur.com/a/3Fmuf">http://imgur.com/a/3Fmuf</a></li><li><a href="https://gamedev.stackexchange.com/questions/93511/how-can-i-generate-a-2d-mountain-landscape-procedurally">https://gamedev.stackexchange.com/questions/93511/how-can-i-generate-a-2d-mountain-landscape-procedurally</a></li></ul><p>I would be happy to answer questions, listen to suggestions or face criticisms.</p><p>Thanks to @dorhan_ for his review!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*-w_jO2URWhtloRnIphj1qQ.png" /></figure><figure><a href="http://bit.ly/HackernoonFB"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0hqOaABQ7XGPT-OYNgiUBg.png" /></a></figure><figure><a href="https://goo.gl/k7XYbx"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vgw1jkA6hgnvwzTsfMlnpg.png" /></a></figure><figure><a href="https://goo.gl/4ofytp"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gKBpq1ruUi0FVK2UM_I4tQ.png" /></a></figure><blockquote><a href="http://bit.ly/Hackernoon">Hacker Noon</a> is how hackers start their afternoons. We’re a part of the <a href="http://bit.ly/atAMIatAMI">@AMI</a> family. We are now <a href="http://bit.ly/hackernoonsubmission">accepting submissions</a> and happy to <a href="/service/mailto:partners@amipublications.com">discuss advertising &amp; sponsorship</a> opportunities.</blockquote><blockquote>If you enjoyed this story, we recommend reading our <a href="http://bit.ly/hackernoonlatestt">latest tech stories</a> and <a href="https://hackernoon.com/trending">trending tech stories</a>. Until next time, don’t take the realities of the world for granted!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*35tCjoPcvq6LbB3I6Wegqw.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4efe1826906f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/a-procedural-landscape-experiment-4efe1826906f">A Procedural Landscape Experiment</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to query JSONB, beginner sheet cheat]]></title>
            <link>https://medium.com/hackernoon/how-to-query-jsonb-beginner-sheet-cheat-4da3aa5082a3?source=rss-444ef7b46027------2</link>
            <guid isPermaLink="false">https://medium.com/p/4da3aa5082a3</guid>
            <category><![CDATA[postgres]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Raphaël Huchet]]></dc:creator>
            <pubDate>Thu, 30 Mar 2017 12:54:26 GMT</pubDate>
            <atom:updated>2023-09-13T14:36:21.674Z</atom:updated>
            <cc:license>https://creativecommons.org/publicdomain/mark/1.0/</cc:license>
            <content:encoded><![CDATA[<p><a href="https://medium.com/hackernoon/how-to-query-jsonb-beginner-sheet-cheat-4da3aa5082a3">How to query JSONB, beginner sheet cheat</a></p><h3>Let’s say we have to query a user table with a metadata JSONB column on a PostgreSQL 9.5+ database.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kq1n6Yv-YUxJAL6P45PMcQ.jpeg" /></figure><h4>1. Select items by the value of a first level attribute (#1 way)</h4><p>You can query with the @&gt; operator on metadata. This operator can compare partial JSON strings against a JSONB column. It’s the <em>containment</em> operator. For this case you may need to add a GIN index on metadata column.</p><pre>SELECT * FROM users WHERE metadata @&gt; &#39;{&quot;country&quot;: &quot;Peru&quot;}&#39;; </pre><h4>2. Select items by the value of a first level attribute (#2 way)</h4><p>The -&gt;&gt; operator gets a JSON object field as text. Use it if you want to query a simple field in a JSONB column. You might add a B-tree index on metadata-&gt;&gt;&#39;country&#39;.</p><pre>SELECT * FROM users WHERE metadata-&gt;&gt;&#39;country&#39; = &#39;Peru&#39;;</pre><h4>3. Select item attribute value</h4><p>Once again, the -&gt;&gt; operator gets a JSON object field as text. Just use directly it in the SELECT.</p><pre>SELECT metadata-&gt;&gt;&#39;country&#39; FROM users;</pre><h4>4. Select only items where a particular attribute is present</h4><p>You can use the -&gt;&gt; operator with the classic operator you use on text: =, &lt;&gt;, IS NULL, etc. Do not forget to index metadata-&gt;&gt;&#39;country&#39; with a B-tree index.</p><pre>SELECT * FROM users WHERE metadata-&gt;&gt;&#39;country&#39; IS NOT NULL;</pre><h4>5. Select items by the value of a nested attribute</h4><p>You can use both @&gt; or -&gt;&gt;, just like for first level attribute. Add an index according to your choice.</p><pre>SELECT * FROM users WHERE metadata-&gt;&#39;company&#39;-&gt;&gt;&#39;name&#39; = &quot;Mozilla&quot;;</pre><pre>SELECT * <br>  FROM users <br>  WHERE metadata @&gt; &#39;{&quot;company&quot;:{&quot;name&quot;: &quot;Mozilla&quot;}}&#39;;</pre><h4>6. Select items by the value of an attribute in an array</h4><p>Remembering @&gt; operator checks containment in a JSONB column, you can query on an array like {&quot;x&quot;: [&quot;a&quot;, &quot;b&quot;, &quot;c&quot;]&quot;} by just passing {&quot;x&quot;:[&quot;a&quot;]} to the WHERE clause:</p><pre>SELECT * FROM users WHERE metadata @&gt; &#39;{&quot;companies&quot;: [&quot;Mozilla&quot;]}&#39;;</pre><h4>7. IN operator on attributes</h4><p>Sometimes, we may need to select items where the attributes inside a JSONB column matches a bunch of possible values.</p><pre>SELECT * FROM users <br>  WHERE metadata-&gt;&gt;&#39;countries&#39; IN (&#39;Chad&#39;, &#39;Japan&#39;);</pre><h4>8. Insert a whole object</h4><p>Use UPDATE ... SET as usual and pass the whole object as JSON.</p><pre>UPDATE users SET metadata = &#39;{&quot;country&quot;: &quot;India&quot;}&#39;;</pre><h4>9. Update or insert an attribute</h4><p>Use the || operator to concatenate the actual data with the new data. It will update or insert the value.</p><pre>UPDATE users SET metadata = metadata || &#39;{&quot;country&quot;: &quot;Egypt&quot;}&#39;;</pre><h4>10. Removing an attribute</h4><p>The operator - removes a key from an object.</p><pre>UPDATE users SET metadata = metadata - &#39;country&#39;;</pre><h3>Final note</h3><p>Querying on JSONB objects is almost as simple as classic SQL queries. I posted only a few examples here, about what seems the most common use cases to me. It’s a note for me, I hope it could help other people too.</p><p>You may dig in PostgreSQL docs, which has many more examples and more precise explanations :</p><ul><li><a href="https://www.postgresql.org/docs/9.6/static/functions-json.html">PostgreSQL: Documentation: 9.6: JSON Functions and Operators</a></li><li><a href="https://www.postgresql.org/docs/9.6/static/datatype-json.html">PostgreSQL: Documentation: 9.6: JSON Types</a></li></ul><p><em>Feel free to comment with advices, feedback and criticism. I would be really happy to learn more.</em></p><p>Thanks to <a href="https://medium.com/u/adfa6e96ed77">Emilien Schneider</a> (once again) for his review.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fdde502%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2Fhackernoon%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href">https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4da3aa5082a3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/how-to-query-jsonb-beginner-sheet-cheat-4da3aa5082a3">How to query JSONB, beginner sheet cheat</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>