<?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 kylebuildsstuff on Medium]]></title>
        <description><![CDATA[Stories by kylebuildsstuff on Medium]]></description>
        <link>https://medium.com/@kylebuildsstuff?source=rss-21fa74f72291------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dOfS3saSWY5bzOEBJl1sBA.png</url>
            <title>Stories by kylebuildsstuff on Medium</title>
            <link>https://medium.com/@kylebuildsstuff?source=rss-21fa74f72291------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 14:07:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kylebuildsstuff/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[Why Sui and Solana Have Staying Power]]></title>
            <link>https://medium.com/@kylebuildsstuff/why-sui-and-solana-have-staying-power-ca243e5d10b1?source=rss-21fa74f72291------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca243e5d10b1</guid>
            <category><![CDATA[sui]]></category>
            <category><![CDATA[solana-network]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[kylebuildsstuff]]></dc:creator>
            <pubDate>Fri, 29 Dec 2023 14:31:20 GMT</pubDate>
            <atom:updated>2024-01-14T23:46:37.354Z</atom:updated>
            <content:encoded><![CDATA[<p>Yet again, I feel I am faced with the decision of A or B.</p><p>To choose one is to exclude the other, I can only be a maxi of one chain. Ok, not really, but let’s think this through.</p><h4>Solana, right now</h4><p>Solana’s had better tech than Ethereum for years, and it feels just recently that people are tuning into this fact. Higher throughput and lower gas fees, things Ethereum and all of its L2s have promised for so long, are features that Solana already provides today. And with more adoption from big players like Visa and Shopify, a vibrant community of traders, and an ecosystem of maturing defi products, Solana is looking to be the blockchain to bet on for the next bull run.</p><h4>What Sui gets right</h4><p>On the other hand, we have Sui. Not even a year old but already making a big impression.</p><p>A lot of it, I think, is because of it’s language, Sui Move, and the object-centric model that it offers. It’s hard to explain how big of a difference this makes, but it’s like building a modern frontend UI with jquery versus a component-based framework like Svelte, or React. It’s definitely possible to do it either way, but to do it in jquery is something I’d imagine to be the developer equivalent of chewing glass.</p><p>Sui Move provides 1st class support for digital assets in a similar way that React and Svelte provide support for components.</p><p>In Sui, objects are the building blocks and they can represent digital assets like NFTs, they can even be nested within each other. In other account-based blockchains like Solana there are no objects or digital assets, at least not as primitives. Everything is an account, all abstractions are represented by accounts, and relations between them are mappings between accounts and addresses. While I respect the simplicity of this approach, in practice it makes building stuff so much more difficult when compared to Sui’s object-oriented approach.</p><p>And just as important as having appropriate primitives when dealing with digital assets, is being able to write safe code. Sui’s ownership model, combined with its bytecode verifier and object capabilities allow for account checks to be automated, making it much simpler to write safe code.</p><p>I think this is perhaps one of the biggest hurdles for onboarding devs onto web3. It’s not uncommon when writing smart contracts on other blockchains for the security, or account checking portion of the code, to be half the code written. And to get it wrong could be disastrous, potentially leading to the loss of millions of dollars.</p><p>In Sui, as a developer, much more of your focus can go into building digital assets rather than checking accounts.</p><p>One example of this can be found in writing an implementation for a mint authority lock in both Solana and Sui, here:</p><p><a href="https://medium.com/@kklas/smart-contract-development-move-vs-rust-4d8f84754a8f">https://medium.com/@kklas/smart-contract-development-move-vs-rust-4d8f84754a8f</a></p><p>How well-suited the object model is for digital assets and how easy it is to write safe code are my 2 favourite parts about Sui, but it also comes with 2 other incredible built-in features that should be noted:</p><p>- zkLogin: Auth primitive that allow for the creation of wallet-based accounts using web2 providers like Google</p><p>- Sponsored transactions: The ability to sponsor gas transaction for your users’ transactions</p><p>These features make it such that it’s actually possible to onboard web2 users without them needing to know what a wallet is, or that the app even uses a blockchain.</p><h4>Solana, dead?</h4><p>No, far from it.</p><p>Solana’s had arguably the best tech for years and it’s only now that people are coming around. Sui may have better tech than Solana but how long until the markets reflect this, if they even will at all?</p><p>And even if that does happen, Sui vs. Solana is drastically different than Solana vs. Ethereum (and all its L2s). Ethereum’s TPS hovered around 20 with gas prices of $20 on a good day while Solana was and still is doing thousands of transactions per second with gas prices of less than a penny.</p><p>I think it may be more accurate to say that Solana is gaining ground not because its tech is better but because the experience of using Ethereum is absolute trash compared to Solana.</p><p>Sui won’t replace Solana because using Solana doesn’t suck, the user experience right now on Solana is actually better in my opinion. The ecosystem is much more mature and the products reflect that.</p><p>Users don’t care about the underlying tech. They care about things that make their lives better.</p><h4>But Move?</h4><p>Move is not the same as Sui Move.</p><p>Other blockchains may use Move, Solana may add support for Move, but only Sui Move has full support for objects and all the benefits that come with it. The Sui team goes into more detail here:</p><p><a href="https://docs.sui.io/concepts/sui-move-concepts">https://docs.sui.io/concepts/sui-move-concepts</a></p><p>But why can’t another blockchain just copy Sui Move then?</p><p>As I understand it, adopting Sui Move is more than just a syntactical thing, Sui Move and what it enables is possible only because of unique design decisions implemented throughout the whole stack, including its storage model. Adopting an object model similar to Sui Move would likely require massive restructuring on multiple levels for any existing blockchain.</p><h4>A or B</h4><p>If you’re looking for the best developer experience, there is no equal to Sui.</p><p>Just as Solana has raised the bar for scalability and affordable gas prices, I think Sui has raised the bar for developer experience.</p><p>And though it may be possible to build kick ass products on any chain, it’s much easier to build cool stuff when you’re not chewing glass.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca243e5d10b1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Choose Svelte over React]]></title>
            <link>https://medium.com/@kylebuildsstuff/why-choose-svelte-over-react-b30d6220de0e?source=rss-21fa74f72291------2</link>
            <guid isPermaLink="false">https://medium.com/p/b30d6220de0e</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[svelte]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[kylebuildsstuff]]></dc:creator>
            <pubDate>Wed, 07 Jun 2023 19:16:44 GMT</pubDate>
            <atom:updated>2023-06-07T19:18:24.532Z</atom:updated>
            <content:encoded><![CDATA[<p>When comparing 2 tools it’s common to compare in terms of positives, “A” does this better than “B” and “B” does that better than “A”. It’s a good start but most of the time it’s surface level and a matter of preference. It makes no big difference because the end goal can still be achieved either way. I think it’s often better to compare in terms of negatives, because it’s the negatives that truly limit you.</p><p>And it’s the negatives of React that led me to choose Svelte as my primary JS framework. I wish it weren’t so. JQuery was neat, AngularJS blew my mind, but React was special. React did everything AngularJS did, and even Angular 2 for that matter, but better and simpler. Sadly, this no longer seems to be the case.</p><p>It’s the virtual DOM. There’s no escaping it in React. It’s its biggest strength, it’s what made it so revolutionary, and now it is its biggest weakness.</p><p>Besides the unnecessarily larger bundle sizes, it creates unnecessary re-renders of your whole app upon every change. It may have improved over the years but fundamentally the issue is still there, and to mask it we impose seemingly arbitrary rules upon developers. We use hooks, we manually specify dependencies within hooks, we use hooks only at the top level, we wrap things in hooks and callbacks and memos, and the hole gets deeper every year.</p><p>It doesn’t have to be this way, at least not anymore. Instead of asking “How do we make this better?” I think the better question is “Should we make this better?”.</p><p>Sometimes there are just inherent limitations with a tool, and instead of endlessly optimizing maybe we should look elsewhere. Instead of pouring millions into research and development to increase the efficiency of the internal combustion engine by a couple of percentage points, maybe we should look to electric vehicles that just don’t have the same inherent limitations.</p><p>That’s how I feel about Svelte and React. Svelte uses a compiler-based approach, and any abstractions or code you write get compiled down to plain JS, without the hunky virtual DOM. It’s about as close to vanilla JS as you can get with a framework. And because of this you aren’t held back by the limitations of a virtual DOM. No more thinking about optimizing for re-renders, following the rule of hooks, or anything else related to the virtual DOM.</p><p>Using React has been getting more burdensome every year. It’s not the handful of ever-changing libraries you need to use with React, it’s not even Redux, in fact, I still enjoy using Redux, it’s just React. It’s gotten so heavy it’s hard to move forward with it.</p><p>Using Svelte feels like flying in comparison. It’s so light. And not just in its final bundle size but also in terms of the mental load, or framework-specific knowledge needed to use it. It makes for a better developer experience and faster load times for users.</p><p>I think React is too far gone at this point. Whatever got us from jQuery to React isn’t going to get us to the next level. We need something lighter and simpler, to make room for whatever is to come, and I think Svelte fits just right.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b30d6220de0e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hasura and Nhost vs Supabase]]></title>
            <link>https://medium.com/@kylebuildsstuff/shipping-fast-cf5370a00d14?source=rss-21fa74f72291------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf5370a00d14</guid>
            <category><![CDATA[hasura]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[backend-as-a-service]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[supabase]]></category>
            <dc:creator><![CDATA[kylebuildsstuff]]></dc:creator>
            <pubDate>Sat, 06 May 2023 16:37:21 GMT</pubDate>
            <atom:updated>2023-05-06T16:41:38.342Z</atom:updated>
            <content:encoded><![CDATA[<h3>Shipping Fast</h3><p>With so many new tools there are far more ways to build stuff now than ever, but the tools you choose could make the difference between taking months to ship a product or taking only days.</p><p>For a long time, devs would just write backends by hand, but this was tedious and time-consuming. Now we have services like Firebase, Hasura, Nhost, and Supabase that speed up development by taking care of backend features like databases, API endpoints, user authentication, and storage.</p><p>Firebase was one of the first solutions but it was proprietary software, a huge turnoff for many devs. Then came Hasura in 2017, an open-source solution that enabled a low-code GraphQL interface to access your PostgreSQL database along with your other standard Postgres features. Nhost came shortly after, providing Hasura as a service along with other backend features like authentication and storage.</p><p>And then in 2020 came Supabase, positioned as an open-source alternative to Firebase. It’s hard not to hear about how great Supabase is, but for the past few years I’ve avoided it because I was just so happy with Hasura and Nhost.</p><h3>What makes Hasura so Good?</h3><h4>Automatic GraphQL on all your data</h4><p>GraphQL promised a simpler developer experience where you could fetch the exact data you needed, but if you’ve ever written your own GraphQL resolvers you know this is only a half-truth. Sure, it’s arguably easier for frontend dev work, but now every column of every table is essentially an API endpoint you have to write a resolver for. Many times it was easier to just build normal REST APIs.</p><p>Hasura fixed all of this.</p><p>It provided instant CRUD-based resolvers for queries and mutations, with filters and operators, on every table and column, along with access to role-based authorization.</p><h4>Point and Click UI</h4><p>It’s so refreshing to be able to use well-designed abstractions that automate boring tasks while still providing the option to drop down to code for flexibility and customizability, and that’s what Hasura provides.</p><p>Anything from creating tables to adding auth policies and custom SQL, to constructing queries is just a click away.</p><p>It opens up access to data so much more because the barrier of entry is so much lower, you no longer need to think in code, you just click what you want, as if you were online shopping in your database.</p><h4>Separate Service</h4><p>One of my biggest gripes with GraphQL was how much crap you needed to add just to use it. Large libraries to make graphQL requests graphql-ify your data.</p><p>Hasura sits in between your server and database and requires no glue code or extra libraries. It’s agnostic in what you use in your code as it only exposes an HTTP endpoint to connect to.</p><h3>Why change?</h3><p>For one, a large part of Hasura’s focus over the past couple of years has been to support more databases, but these updates provided little to no value for the average developer. Along with their recent pricing changes, it seems they’re focusing a lot more on their enterprise clients and that worries me for the future of the open-sourced community edition of Hasura.</p><p>And two, Nhost, perhaps the best provider for Hasura as a service, with auth and storage included, recently changed their free tier pricing from allowing unlimited active free projects to one active free project. I like my free stuff, and Supabase offers 2 free active projects, that’s 2x more than 1!</p><p>But also because despite being a separate entity, Nhost is inherently tied to Hasura and I don’t like the direction Hasura is going in.</p><h3>Migrating to Supabase</h3><p>Ever since its launch, Supabase has been crushing it with new features, documentation, marketing, and support, even launching support for new hotnesses like pg_vector and text embeddings that enable new AI-related workflows.</p><p>For the most part, the development flow is similar.</p><p>Things like creating tables and updating columns can be done with a point-and-click UI. The main differences I found were:</p><h3>Writing SQL</h3><p>Things like accessing data within your DB and setting auth policies require actual code, whether with SQL or through their client library. It’s much easier to build queries with button clicks in Hasura than it is through writing code with Supabase.</p><h3>Migrations are manual</h3><p>In Hasura, migration files are automatically written after every database update. If you use Nhost for Hasura then migrations are automatically deployed when your specified production branch is pushed. It’s a huge timesaver.</p><p>With Supabase, migrations need to be done manually through their CLI, though they do have a diffing command that comes in handy.</p><h3>GraphQL support</h3><p>Though Supabase has released support for GraphQL it’s still relatively new and doesn’t have the same level of support for many features in GraphQL as Hasura, some of which include:</p><ul><li>Support for nested mutations</li><li>Querying by primary key</li><li>Certain filters</li><li>Better GraphQL editor with query builder and recent history in sidebar</li></ul><h3>Verdict</h3><p>In terms of productivity, I’d have to go with Hasura, specifically with Nhost. The low-code UI Hasura provides, combined with Nhost’s supporting features and infrastructure, are just too good. I don’t have to think about code when interacting with my DB. It’s point-and-click to build tables, auth policies, queries, and mutations, all while maintaining the ability to drop down to code if needed.</p><p>Supabase is still a great choice and I’ll be trying it out for my next few projects.</p><p>Besides the better documentation, more active community, and more generous free tier, I think Supabase is better aligned in the long term for the average developer because of Hasura’s focus on enterprise clients and Nhost’s dependency on Hasura. Also, if Supabase keeps up their pace it won’t be long before they close the gaps they have between them and Hasura and Nhost.</p><p>Not having access to Hasura’s UI is quite a loss but SQL is a powerful language that’s not going anywhere and this makes for a good excuse to get more proficient in it. Plus, with Supabase’s recently added AI docs helper, writing SQL is only going to get easier.</p><p>Other than that, Supabase offers the same features I care about and I think it’s a good idea to explore new options to keep from vendor dependency.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf5370a00d14" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Video Transcriber Using the Whisper Speech to Text API]]></title>
            <link>https://medium.com/@kylebuildsstuff/building-a-video-transcriber-using-the-whisper-speech-to-text-api-571f21cc3410?source=rss-21fa74f72291------2</link>
            <guid isPermaLink="false">https://medium.com/p/571f21cc3410</guid>
            <category><![CDATA[sveltekit]]></category>
            <category><![CDATA[whisper-api]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[webdev]]></category>
            <dc:creator><![CDATA[kylebuildsstuff]]></dc:creator>
            <pubDate>Sun, 05 Mar 2023 13:08:32 GMT</pubDate>
            <atom:updated>2023-03-05T13:08:32.683Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*01NttKoyXXgTSNRFY9XKQA.png" /></figure><p><a href="https://youtu.be/-ASKn_a1gl4">https://youtu.be/-ASKn_a1gl4</a></p><h3>Overview</h3><p>OpenAI just released version 2 of Whisper API, their speech to text model. That means voice transcription just got a whole lot better.</p><p>Let’s build a little proof of concept.</p><p>Our project will have an input for uploading files and a button that will, upon clicking, transcribe the file using the Whisper API, and display the transcribed text in our UI.</p><h3>Dependencies</h3><pre>&quot;dependencies&quot;: {<br>    &quot;@sveltejs/kit&quot;: &quot;^1.5.0&quot;,<br>    &quot;tailwindcss&quot;: &quot;^3.2.7&quot;,<br>  }</pre><h3>API MVP</h3><p>Let’s start by making sure our frontend can call our server upon mounting, and then having our server call the OpenAI transcription endpoint to transcribe a file we already have on hand.</p><pre>// routes/+page.svelte</pre><pre>&lt;script lang=&quot;ts&quot;&gt;<br>  import { onMount } from &#39;svelte&#39;;</pre><pre>  onMount(async () =&gt; {<br>    await handleTranscription();<br>  });</pre><pre>  const handleTranscription = async () =&gt; {<br>    const response = await fetch(&#39;/api/transcription&#39;, {<br>      method: &#39;POST&#39;,<br>      headers: {<br>        &#39;Content-Type&#39;: &#39;application/json&#39;<br>      },<br>      body: JSON.stringify({})<br>    }).then((res) =&gt; res.json());</pre><pre>    console.log(&#39;response: &#39;, response);</pre><pre>    return response;<br>  };<br>&lt;/script&gt;</pre><pre>hello motto</pre><pre>// routes/api/transcription/+server.ts</pre><pre>import { json } from &#39;@sveltejs/kit&#39;;<br>import fs from &#39;fs&#39;;<br>import { OPENAI_API_SECRET_KEY } from &#39;$env/static/private&#39;;</pre><pre>export const POST = async (event) =&gt; {<br>  /**<br>   * Request config<br>   *<br>   * &lt;https://platform.openai.com/docs/api-reference/audio/create&gt;<br>   *<br>   */<br>  // We use our own video here and place it in the /static folder.<br>  const buffer = fs.readFileSync(&#39;static/the-great-dictator.mp4&#39;);<br>  const file = new Blob([buffer]);</pre><pre>  const formData = new FormData();<br>  formData.append(&#39;file&#39;, file, &#39;test.wav&#39;);<br>  formData.append(&#39;model&#39;, &#39;whisper-1&#39;);<br>  formData.append(&#39;language&#39;, &#39;en&#39;);</pre><pre>  /**<br>   * &lt;https://platform.openai.com/docs/api-reference/audio/create?lang=node&gt;<br>   */<br>  const res = await fetch(`https://api.openai.com/v1/audio/transcriptions`, {<br>    method: &#39;POST&#39;,<br>    headers: {<br>      Authorization: `Bearer ${OPENAI_API_SECRET_KEY}`,<br>      Accept: &#39;application/json&#39;<br>    },<br>    body: formData<br>  });</pre><pre>  const data = await res.json();</pre><pre>  console.log(&#39;data: &#39;, data);</pre><pre>  return json({});<br>};</pre><p>And this is the logged response we get:</p><pre>// The response came all in one line but I cut it up for some readability</pre><pre>data:  {<br>  text: &quot;I&#39;m sorry, but I don&#39;t want to be an emperor. \\<br>That&#39;s not my business. I don&#39;t want to rule or conquer anyone. \\<br>I should like to help everyone if possible. Jew, Gentile, black man, \\<br>white. We all want to help one another. Human beings are like that. \\<br>We want to live by each other&#39;s happiness, not by each other&#39;s misery. \\<br>We don&#39;t want to hate and despise one another. In this world, there&#39;s \\<br>room for everyone, and the good earth is rich and can provide for everyone. \\<br>The way of life can be free and beautiful, but we have lost the way. \\<br>Greed has poisoned men&#39;s souls, has barricaded the world with hate, \\<br>has goose-stepped us into misery and bloodshed. We have developed speed, \\<br>but we have shut ourselves in. Machinery that gives abundance has left us \\<br>in want. Our knowledge has made us cynical, our cleverness hard and unkind. \\<br>We think too much and feel too little. More than machinery, we need humanity. \\<br>More than cleverness, we need kindness and gentleness. Without these qualities,\\<br> life will be violent, and all will be lost. The aeroplane and the radio \\<br>have brought us closer together. The very nature of these inventions cries out \\<br>for the goodness in men, cries out for universal brotherhood, for the unity of\\<br> us all. Even now, my voice is reaching millions throughout the world, \\<br>millions of despairing men, women, and little children, victims of a system \\<br>that makes men torture and imprison innocent people. To those who can hear me,\\<br> I say, do not despair. The misery that is now upon us is but the passing of\\<br> greed, the bitterness of men who fear the way of human progress. \\<br>The hate of men will pass, and dictators die, and the power they took from the\\<br> people will return to the people. And so long as men die, liberty will never \\<br>perish. Soldiers, don&#39;t give yourselves to brutes, men who despise you, \\<br>enslave you, who regiment your lives, tell you what to do, what to think, \\<br>and what to feel, who drill you, diet you, treat you like cattle, \\<br>use you as cannon fodder. Don&#39;t give yourselves to these unnatural men, \\<br>machine men with machine minds and machine hearts. You are not machines, \\<br>you are not cattle, you are men. You have the love of humanity in your hearts. \\<br>You don&#39;t hate, only the unloved hate, the unloved and the unnatural. \\<br>Soldiers, don&#39;t fight for slavery, fight for liberty. In the 17th chapter of\\<br> St. Luke, it is written, the kingdom of God is within man, not one man nor a \\<br>group of men, but in all men, in you, you the people have the power, the power \\<br>to create machines, the power to create happiness. You the people have the power to make this life free and beautiful, to make this life a wonderful adventure. Then in the name of democracy, let us use that power, let us all unite, let us fight for a new world, a decent world that will give men a chance to work, that will give youth a future and old age a security. By the promise of these things, brutes have risen to power, but they lie, they do not fulfill that promise, they never will, dictators free themselves, but they enslave the people. Now let us fight to fulfill that promise, let us fight to free the world, to do away with national barriers, to do away with greed, with hate and intolerance. Let us fight for a world of reason, a world where science and progress will lead to all men&#39;s happiness. Soldiers, in the name of democracy, let us all unite. Thank you.&quot;<br>}</pre><p>Pretty handy stuff for just a few lines of code.</p><p>But this requires you to have the file already available before making the call. That can pose some logistical issues as you’d probably have to then store that data in an S3 bucket and retrieve it, or something to that effect.</p><p>It’d be so much simpler is if we could just have the user upload their own file so we can skip file storage.</p><h3>Integrating user input</h3><p>And thanks to Sveltekit that’s actually really simple.</p><pre>// routes/+page.svelte</pre><pre>&lt;script lang=&quot;ts&quot;&gt;<br>  let files;</pre><pre>  const handleTranscription = async () =&gt; {<br>    const formData = new FormData();<br>    formData.append(&#39;file&#39;, files[0]);</pre><pre>    const response = await fetch(&#39;/api/transcription&#39;, {<br>      method: &#39;POST&#39;,<br>      body: formData<br>    }).then((res) =&gt; res.json());</pre><pre>    console.log(&#39;response: &#39;, response);</pre><pre>    return response;<br>  };<br>&lt;/script&gt;</pre><pre>&lt;input type=&quot;file&quot; bind:files /&gt;</pre><pre>&lt;button type=&quot;submit&quot; on:click={handleTranscription}&gt;Submit&lt;/button&gt;</pre><p>And then we adjust our server to process the file from the request:</p><pre>// routes/api/transcription/+server.ts</pre><pre>import { json } from &#39;@sveltejs/kit&#39;;<br>import { OPENAI_API_SECRET_KEY } from &#39;$env/static/private&#39;;</pre><pre>export const POST = async (event) =&gt; {<br>  const requestBody = await event.request.formData();<br>  const requestFile = requestBody.get(&#39;file&#39;);</pre><pre>  /**<br>   * Request config<br>   *<br>   * &lt;https://platform.openai.com/docs/api-reference/audio/create&gt;<br>   *<br>   */<br>  const file = new Blob([requestFile], { type: &#39;video/mp4&#39; });</pre><pre>  const formData = new FormData();<br>  formData.append(&#39;file&#39;, file, &#39;test.wav&#39;);<br>  formData.append(&#39;model&#39;, &#39;whisper-1&#39;);<br>  formData.append(&#39;language&#39;, &#39;en&#39;);</pre><pre>  /**<br>   * &lt;https://platform.openai.com/docs/api-reference/audio/create?lang=node&gt;<br>   */<br>  const res = await fetch(`https://api.openai.com/v1/audio/transcriptions`, {<br>    method: &#39;POST&#39;,<br>    headers: {<br>      Authorization: `Bearer ${OPENAI_API_SECRET_KEY}`,<br>      Accept: &#39;application/json&#39;<br>    },<br>    body: formData<br>  });</pre><pre>  const data = await res.json();<br>  const transcribedText = data?.text || &#39;&#39;;</pre><pre>  console.log(&#39;data: &#39;, data);</pre><pre>  return json({ transcribedText });<br>};</pre><p>And that’s everything we need in terms of features. All we have to do now is to make our UI look pretty.</p><h3>Styling our UI</h3><p>With the help of tailwindcss we add style our input, display the uploaded file’s filename, make our button look a bit better, and display the transcribed text underneath:</p><pre>&lt;script lang=&quot;ts&quot;&gt;<br>  let isLoading;</pre><pre>  let files;<br>  let transcribedText = &#39;&#39;;</pre><pre>  $: fileName = files &amp;&amp; files[0] &amp;&amp; files[0].name;</pre><pre>  const handleTranscription = async () =&gt; {<br>    isLoading = true;</pre><pre>    const formData = new FormData();<br>    formData.append(&#39;file&#39;, files[0]);</pre><pre>    const response = await fetch(&#39;/api/transcription&#39;, {<br>      method: &#39;POST&#39;,<br>      body: formData<br>    }).then((res) =&gt; res.json());</pre><pre>    transcribedText =<br>      response?.transcribedText || &#39;Transcription could not be completed&#39;;</pre><pre>    isLoading = false;<br>    return response;<br>  };<br>&lt;/script&gt;</pre><pre>&lt;div class=&quot;grid grid-cols-1 items-start gap-4 pt-5&quot;&gt;<br>  &lt;!-- Upload --&gt;<br>  &lt;div class=&quot;mt-2 col-span-1 sm:mt-0&quot;&gt;<br>    &lt;div<br>      class=&quot;flex max-w-lg justify-center rounded-md border-2 border-dashed border-gray-300 px-6 pt-5 pb-6&quot;<br>    &gt;<br>      &lt;div class=&quot;space-y-1 text-center&quot;&gt;<br>        &lt;svg<br>          class=&quot;mx-auto h-12 w-12 text-gray-400&quot;<br>          stroke=&quot;currentColor&quot;<br>          fill=&quot;none&quot;<br>          viewBox=&quot;0 0 48 48&quot;<br>          aria-hidden=&quot;true&quot;<br>        &gt;<br>          &lt;path<br>            d=&quot;M28 8H12a4 4 0 00-4 4v20m32-12v8m0 0v8a4 4 0 01-4 4H12a4 4 0 01-4-4v-4m32-4l-3.172-3.172a4 4 0 00-5.656 0L28 28M8 32l9.172-9.172a4 4 0 015.656 0L28 28m0 0l4 4m4-24h8m-4-4v8m-12 4h.02&quot;<br>            stroke-width=&quot;2&quot;<br>            stroke-linecap=&quot;round&quot;<br>            stroke-linejoin=&quot;round&quot;<br>          /&gt;<br>        &lt;/svg&gt;<br>        &lt;div class=&quot;flex justify-center text-sm text-gray-600&quot;&gt;<br>          &lt;label<br>            for=&quot;file-upload&quot;<br>            class=&quot;relative cursor-pointer rounded-md bg-white font-medium text-indigo-600 focus-within:outline-none focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 hover:text-indigo-500&quot;<br>          &gt;<br>            &lt;span&gt;Upload a file&lt;/span&gt;<br>            &lt;input<br>              bind:files<br>              id=&quot;file-upload&quot;<br>              name=&quot;file-upload&quot;<br>              type=&quot;file&quot;<br>              class=&quot;sr-only&quot;<br>            /&gt;<br>          &lt;/label&gt;<br>        &lt;/div&gt;<br>        &lt;p class=&quot;text-xs text-gray-500&quot;&gt;<br>          mp3, mp4, mpeg, mpga, m4a, wav, and webm up to 25MB<br>        &lt;/p&gt;<br>      &lt;/div&gt;<br>    &lt;/div&gt;<br>  &lt;/div&gt;</pre><pre>  &lt;span class=&quot;text-gray-500&quot;&gt;<br>    {fileName ? fileName : &#39;No file found&#39;}<br>  &lt;/span&gt;</pre><pre>  &lt;!-- Transcribe --&gt;<br>  {#if isLoading}<br>    &lt;button<br>      on:click={handleTranscription}<br>      disabled<br>      class=&quot;w-1/2 opacity-50 rounded-md bg-indigo-600 py-2.5 px-3.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600&quot;<br>      &gt;Transcribing...&lt;/button<br>    &gt;<br>  {:else}<br>    &lt;button<br>      on:click={handleTranscription}<br>      type=&quot;submit&quot;<br>      class=&quot;w-1/2 rounded-md bg-indigo-600 py-2.5 px-3.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600&quot;<br>      &gt;Transcribe&lt;/button<br>    &gt;<br>  {/if}<br>&lt;/div&gt;</pre><pre>&lt;!-- Text --&gt;<br>&lt;section class=&quot;mt-5&quot;&gt;{transcribedText}&lt;/section&gt;</pre><p>And here’s the finished product!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bXlJdgg7jfUGyFp2tiXAWA.png" /></figure><p>It’s now super simple to transcribe any video or podcast, and it also makes for building voice-based apps and features a lot more feasible too.</p><p>Checkout the full source code at my repo:</p><p><a href="https://github.com/KTruong008/whisper-speech-to-text-example">https://github.com/KTruong008/whisper-speech-to-text-example</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=571f21cc3410" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blogging with Sveltekit and Markdown]]></title>
            <link>https://medium.com/@kylebuildsstuff/blogging-with-sveltekit-and-markdown-f8c4d0b02c30?source=rss-21fa74f72291------2</link>
            <guid isPermaLink="false">https://medium.com/p/f8c4d0b02c30</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[markdown]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[sveltekit]]></category>
            <category><![CDATA[svelte]]></category>
            <dc:creator><![CDATA[kylebuildsstuff]]></dc:creator>
            <pubDate>Sat, 04 Mar 2023 13:00:38 GMT</pubDate>
            <atom:updated>2023-03-05T13:10:31.123Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HroX3DsmlIDCuv2-NRnF1Q.png" /></figure><p>Sveltekit is a phenomenal tool for the web. Not only is it a delight to code with but it also ships minimal JS bundles that’s about as close as you can get to writing plain JS with a framework. It’s also great for making blogs.</p><p>Markdown is an odd markup language but it’s got a good balance between simplicity and customizability that makes it a popular choice for dev blogging.</p><p>We’ll be using the mdsvex library for today. Other than enabling markdown, it also allows you to use svelte components directly within markdown.</p><p><a href="https://mdsvex.com/docs">https://mdsvex.com/docs</a></p><p>The basic idea is that mdsvex converts markdown into svelte components. We’ll create base post and layout components that can be automatically inherited and reused, and mdsvex will take care of the rest.</p><p>https://youtu.be/oh9BLo30m9A</p><h3>Dependencies</h3><pre>&quot;dependencies&quot;: {<br>	&quot;tailwindcss&quot;: &quot;^3.2.7&quot;,<br>  &quot;@tailwindcss/forms&quot;: &quot;^0.5.3&quot;,<br>  &quot;@tailwindcss/typography&quot;: &quot;^0.5.9&quot;,<br>  &quot;luxon&quot;: &quot;^3.2.1&quot;,<br>  &quot;mdsvex&quot;: &quot;^0.10.6&quot;<br>}</pre><h3>UI Boilerplate</h3><p>Using tailwindcss we create our UI.</p><p>Our initial page will have a list of posts, categorized by cards for featured posts and lists for normal posts. Clicking the post will lead to the actual blog post, which will be set up in the next section.</p><pre>// routes/+layout.svelte</pre><pre>&lt;script&gt;<br>  import &#39;../app.css&#39;;<br>&lt;/script&gt;</pre><pre>&lt;div class=&quot;min-h-full h-full&quot;&gt;<br>  &lt;slot /&gt;<br>&lt;/div&gt;</pre><pre>// routes/+page.svelte</pre><pre>&lt;script lang=&quot;ts&quot;&gt;<br>  import { POSTS_LIST } from &#39;$lib/shared/shared.constant&#39;;</pre><pre>  import PostCard from &#39;./post-card.svelte&#39;;<br>  import PostListItem from &#39;./post-list-item.svelte&#39;;</pre><pre>  const featuredPosts = POSTS_LIST.filter((post) =&gt; post.isFeatured);<br>  const posts = POSTS_LIST.filter((post) =&gt; !post.isFeatured);<br>&lt;/script&gt;</pre><pre>&lt;div class=&quot;relative bg-white px-4 pt-16 pb-20 sm:px-6 lg:px-8 lg:pb-28&quot;&gt;<br>  &lt;div class=&quot;relative mx-auto max-w-7xl&quot;&gt;<br>    &lt;div class=&quot;text-center&quot;&gt;<br>      &lt;h1 class=&quot;text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl&quot;&gt;<br>        From the blog<br>      &lt;/h1&gt;<br>    &lt;/div&gt;<br>    &lt;div class=&quot;mx-auto mt-12 grid max-w-lg gap-5 lg:max-w-none lg:grid-cols-3&quot;&gt;<br>      {#each featuredPosts as { url, title, description, author, date }}<br>        &lt;PostCard {url} {title} {description} {author} {date} /&gt;<br>      {/each}<br>    &lt;/div&gt;</pre><pre>    &lt;!-- Lists --&gt;<br>    &lt;ul class=&quot;divide-y divide-gray-200&quot;&gt;<br>      {#each posts as { url, title, description, author, date }}<br>        &lt;PostListItem {url} {title} {description} {author} {date} /&gt;<br>      {/each}<br>    &lt;/ul&gt;<br>  &lt;/div&gt;<br>&lt;/div&gt;</pre><pre>// routes/post-card.svelte</pre><pre>&lt;script lang=&quot;ts&quot;&gt;<br>  import { DateTime } from &#39;luxon&#39;;</pre><pre>  export let url = &#39;&#39;;<br>  export let title = &#39;&#39;;<br>  export let description = &#39;&#39;;<br>  export let author = &#39;&#39;;<br>  export let date = &#39;&#39;;<br>  export let tags = &#39;&#39;;</pre><pre>  $: publishedAt = DateTime.fromISO(date).toLocaleString(DateTime.DATE_FULL);<br>&lt;/script&gt;</pre><pre>&lt;div class=&quot;flex flex-col overflow-hidden rounded-lg shadow-lg border border-gray-200&quot;&gt;<br>  &lt;div class=&quot;flex flex-1 flex-col justify-between bg-white p-6&quot;&gt;<br>    &lt;div class=&quot;flex-1&quot;&gt;<br>      &lt;p class=&quot;text-sm font-medium text-indigo-600&quot;&gt;{tags}&lt;/p&gt;<br>      &lt;a<br>        href={url}<br>        class=&quot;mt-2 block&quot;<br>      &gt;<br>        &lt;p<br>          class=&quot;text-2xl font-semibold text-gray-900 hover:bg-gradient-to-r hover:from-emerald-400 hover:to-cyan-400 hover:bg-clip-text hover:text-transparent hover:cursor-pointer&quot;<br>        &gt;<br>          {title}<br>        &lt;/p&gt;<br>        &lt;p class=&quot;mt-3 text-base text-gray-500&quot;&gt;<br>          {description}<br>        &lt;/p&gt;<br>      &lt;/a&gt;<br>    &lt;/div&gt;<br>    &lt;div class=&quot;mt-6 flex flex-col justify-center&quot;&gt;<br>      &lt;!-- &lt;p class=&quot;text-sm font-medium text-gray-900&quot;&gt;{author}&lt;/p&gt; --&gt;<br>      &lt;div class=&quot;flex space-x-1 text-sm text-gray-500&quot;&gt;<br>        &lt;span&gt;{publishedAt}&lt;/span&gt;<br>      &lt;/div&gt;<br>    &lt;/div&gt;<br>  &lt;/div&gt;<br>&lt;/div&gt;</pre><pre>// routes/post-list-item.svelte</pre><pre>&lt;script lang=&quot;ts&quot;&gt;<br>  export let url = &#39;&#39;;<br>  export let title = &#39;&#39;;<br>  export let description = &#39;&#39;;<br>  export let author = &#39;&#39;;<br>  export let date = &#39;&#39;;<br>  export let tags = &#39;&#39;;<br>&lt;/script&gt;</pre><pre>&lt;li class=&quot;py-4&quot;&gt;<br>  &lt;div class=&quot;mx-auto max-w-7xl py-8 px-4 sm:px-6 lg:px-8&quot;&gt;<br>    &lt;div class=&quot;text-center&quot;&gt;<br>      &lt;h2 class=&quot;text-base uppercase font-semibold text-gray-900&quot;&gt;{tags}&lt;/h2&gt;<br>      &lt;a<br>        href={url}<br>        class=&quot;mt-3 text-2xl font-bold tracking-tight text-gray-900 hover:bg-gradient-to-r hover:from-emerald-400 hover:to-cyan-400 hover:bg-clip-text hover:text-transparent hover:cursor-pointer&quot;<br>      &gt;<br>        {title}<br>      &lt;/a&gt;<br>      &lt;p class=&quot;mx-auto mt-2 max-w-xl text-lg text-gray-900&quot;&gt;<br>        {date}<br>      &lt;/p&gt;<br>    &lt;/div&gt;<br>  &lt;/div&gt;<br>&lt;/li&gt;</pre><p>And while we’re at it, we can also add the UI boilerplate for the actual blog post. Note the props, they actually will come from the frontmatter section in markdown.</p><pre>// routes/post.svelte</pre><pre>&lt;script lang=&quot;ts&quot;&gt;<br>  import { DateTime } from &#39;luxon&#39;;<br>  import { onMount } from &#39;svelte&#39;;</pre><pre>  export let title = &#39;&#39;;<br>  export let description = &#39;&#39;;<br>  export let publishedAtIso = &#39;&#39;;<br>  // export let author = &#39;&#39;;</pre><pre>  $: publishedAt = DateTime.fromISO(publishedAtIso).toLocaleString(DateTime.DATE_FULL);<br>&lt;/script&gt;</pre><pre>&lt;article&gt;<br>  &lt;div class=&quot;mx-auto max-w-6xl py-16 px-4 sm:pt-24 sm:px-6 lg:px-8&quot;&gt;<br>    &lt;div class=&quot;text-center&quot;&gt;<br>      &lt;!-- &lt;h2 class=&quot;text-lg uppercase font-semibold text-gray-900&quot;&gt;{tags}&lt;/h2&gt; --&gt;<br>      &lt;h1<br>        class=&quot;mt-5 text-4xl font-bold tracking-tight text-gray-900 sm:text-5xl lg:text-6xl&quot;<br>      &gt;<br>        {title}<br>      &lt;/h1&gt;<br>      &lt;p class=&quot;mx-auto mt-3 max-w-xl text-xl text-gray-900&quot;&gt;<br>        {publishedAt}<br>      &lt;/p&gt;<br>    &lt;/div&gt;<br>  &lt;/div&gt;</pre><pre>  &lt;section class=&quot;w-full bg-white pb-16 px-4&quot;&gt;<br>    &lt;div class=&quot;prose max-w-4xl mx-auto text-gray-900&quot;&gt;<br>      &lt;slot /&gt;<br>    &lt;/div&gt;<br>  &lt;/section&gt;<br>&lt;/article&gt;</pre><h3>Configuring mdsvex</h3><p>To convert markdown into svelte components we need to configure the library:</p><pre>// svelte.config.js</pre><pre>import adapter from &#39;@sveltejs/adapter-auto&#39;;<br>import { vitePreprocess } from &#39;@sveltejs/kit/vite&#39;;<br>import { mdsvex } from &#39;mdsvex&#39;;</pre><pre>/** @type {import(&#39;@sveltejs/kit&#39;).Config} */<br>const config = {<br>  // Consult &lt;https://kit.svelte.dev/docs/integrations#preprocessors&gt;<br>  // for more information about preprocessors<br>  preprocess: [<br>    vitePreprocess(),<br>    // &lt;https://joshcollinsworth.com/blog/build-static-sveltekit-markdown-blog#approach-2-dynamic-routes&gt;<br>    mdsvex({<br>      extensions: [&#39;.md&#39;, &#39;.svx&#39;],<br>      // &lt;https://mdsvex.com/docs#layouts&gt;<br>      layout: &#39;./src/routes/post.svelte&#39;<br>      // layout: {<br>      //   // _: &#39;./src/routes/post.svelte&#39;<br>      //   blog: &#39;./src/routes/post.svelte&#39;<br>      // }<br>    })<br>  ],<br>  extensions: [&#39;.svelte&#39;, &#39;.md&#39;, &#39;.svx&#39;],</pre><pre>  kit: {<br>    // adapter-auto only supports some environments, see &lt;https://kit.svelte.dev/docs/adapter-auto&gt; for a list.<br>    // If your environment is not supported or you settled on a specific environment, switch out the adapter.<br>    // See &lt;https://kit.svelte.dev/docs/adapters&gt; for more information about adapters.<br>    adapter: adapter()<br>  }<br>};</pre><pre>export default config;</pre><h3>Adding a blog post</h3><p>While blog posts are added as +page.md files, it helps to have a master list of all the posts and their metadata available in JS to reference in other files, which is why we keep POSTS_LISTS in lib/shared/shared.constant.ts.</p><pre>// lib/shared/shared.constant.ts</pre><pre>/**<br> * This is the MASTER list of all blog posts.<br> *<br> * There may be duplicates everywhere, but this is the most organized<br> * and parseable source of truth for blog posts.<br> */<br>export const POSTS_LIST = [<br>  {<br>    title: &#39;Best online text to speech generators&#39;,<br>    url: &#39;/best-online-text-to-speech-generators&#39;,<br>    description:<br>      &#39;A high-level view of features and pricing from the newest and best online text to speech generators on the market&#39;,<br>    author: &#39;Kyle&#39;,<br>    date: &#39;2023-02-05&#39;,<br>    isFeatured: true<br>  },<br>  {<br>    title: &#39;Best free online text to speech generators&#39;,<br>    url: &#39;/best-free-online-text-to-speech-generators&#39;,<br>    description:<br>      &#39;A high-level view of features and pricing from the newest and best free online text to speech generators on the market&#39;,<br>    author: &#39;Kyle&#39;,<br>    date: &#39;2023-02-05&#39;,<br>    isFeatured: true<br>  }<br>];</pre><pre>// routes/best-online-text-to-speech-generators/+page.md</pre><pre>---<br>title: &#39;Best online text to speech generators&#39;<br>description: &#39;A high-level view of features and pricing from the newest and best online text to speech generators on the market&#39;<br>author: &#39;Kyle&#39;<br>publishedAtIso: &#39;2023-02-05&#39;<br>---</pre><pre>&lt;script&gt;<br>...<br>&lt;/script&gt;</pre><pre>## Current state of text to speech AI voice generators</pre><pre>Text to speech technology, also known as speech synthesis, is software that converts written text into spoken words.</pre><pre>Text to speech technology has greatly improved over the past few years, leading to more realistic and natural-sounding voices. From creating more content for social media and platforms like Youtube and Tiktok, to improving accessibility for those with disabilities, or even increasing efficiency in the workplace, text to speech has numerous applications that are making a real impact in our daily lives.</pre><pre>This article provides a high-level view of features and pricing from the newest and best online text to speech generators on the market.</pre><pre>&lt;div id=&quot;beepbooply&quot;&gt;&lt;/div&gt;</pre><pre>## Beepbooply</pre><pre>Beepbooply is a new online text to speech generator created to provide access to the latest voice models at the best prices.</pre><pre>Providing access to over 900+ voices across 80+ languages, beepbooply sources models from Google, Microsoft, and Amazon.</pre><pre>They offer some of the best prices along with one-time prepaid options that go for as low as $2.</pre><pre>- 900+ voices<br>- Voices from Google, Microsoft, and Amazon<br>...</pre><pre>&lt;a href=&quot;&lt;https://beepbooply.com&gt;&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;beepbooply&lt;/a&gt;<br>...</pre><p>This is the bare minimum you need to set up a markdown blog using mdsvex and Sveltekit. I went ahead and added a few more blog posts along with a navbar so you can switch between post and list of posts, here’s how it looks:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ttdeCSTsAxiICkm_WMhwXw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6gb1hvX4wspecOdZLCHzHQ.png" /></figure><p>The full code repository can be found at <a href="https://github.com/KTruong008/blog-kylebuildsstuff">https://github.com/KTruong008/blog-kylebuildsstuff</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f8c4d0b02c30" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using the ChatGPT API to Build a Chatbot]]></title>
            <link>https://medium.com/@kylebuildsstuff/chatgpt-api-the-batman-edition-f55ce292bcf4?source=rss-21fa74f72291------2</link>
            <guid isPermaLink="false">https://medium.com/p/f55ce292bcf4</guid>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[svelte]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[kylebuildsstuff]]></dc:creator>
            <pubDate>Fri, 03 Mar 2023 13:06:43 GMT</pubDate>
            <atom:updated>2023-03-05T13:10:07.503Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FkMPxOtp8Biw%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DkMPxOtp8Biw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FkMPxOtp8Biw%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/d3d88f5c542d8fea17e60cc6ca0e92c0/href">https://medium.com/media/d3d88f5c542d8fea17e60cc6ca0e92c0/href</a></iframe><p>Chatgpt, the large language model that took the world by storm just months ago, has just released an official API. And what’s the first thing we should do with it?</p><p>Try to take over the world.</p><p>No, Brain, we build a Batman and Alfred chat interface.</p><p>A few things to note before we do:</p><ul><li>There’s currently a 4096 token limit that includes both the input and output, each token is about 4 English characters.</li><li>The API is 10x cheaper than the previous best GPT model, with better results</li><li>This API is a lot faster than the regular ChatGPT</li></ul><p>And with that, let’s start by initializing a Sveltekit project along with setting up tailwindcss for styling purposes.</p><pre>npm create svelte@latest .</pre><p>To setup tailwindcss we use their Sveltekit guide:</p><p><a href="https://tailwindcss.com/docs/guides/sveltekit">https://tailwindcss.com/docs/guides/sveltekit</a></p><h3>API boilerplate</h3><p>The first part will be setting up the API calls, making sure we can call our own server, and then from the server making sure we can call the OpenAi chat completion API endpoint.</p><p>To make our server, we create a file our file like this:</p><pre>// routes/api/chat/+server.ts</pre><pre>import { json, type RequestEvent } from &#39;@sveltejs/kit&#39;;<br>import { OPENAI_API_SECRET_KEY } from &#39;$env/static/private&#39;;</pre><pre>export const POST = async (event: RequestEvent) =&gt; {<br>	const requestBody = await event.request.json();<br>	const { message: _message } = requestBody;</pre><pre>	/**<br>	 * Request config<br>	 */<br>	const completionHeaders = {<br>		&#39;Content-Type&#39;: &#39;application/json&#39;,<br>		Authorization: `Bearer ${OPENAI_API_SECRET_KEY}`<br>	};<br>	const messages = [<br>		{<br>			role: &#39;system&#39;,<br>			content: &#39;You are a Alfred, a most helpful and loyal fictional butler to Batman.&#39;<br>		}<br>		// { role: &#39;user&#39;, content: &#39;Alfred, where did I leave my batmobile?&#39; },<br>		// {<br>		// 	role: &#39;assistant&#39;,<br>		// 	content:<br>		// 		&#39;Sir, you left the Batmobile in the Batcave, where it is normally parked. Shall I have it brought to you?&#39;<br>		// }<br>	];<br>	const completionBody = {<br>		model: &#39;gpt-3.5-turbo&#39;,<br>		messages<br>	};</pre><pre>	/**<br>	 * API call<br>	 */<br>	const completion = await fetch(&#39;&lt;https://api.openai.com/v1/chat/completions&gt;&#39;, {<br>		method: &#39;POST&#39;,<br>		headers: completionHeaders,<br>		body: JSON.stringify(completionBody)<br>	})<br>		.then((res) =&gt; {<br>			if (!res.ok) {<br>				throw new Error(res.statusText);<br>			}<br>			return res;<br>		})<br>		.then((res) =&gt; res.json());</pre><pre>	const message = completion?.choices?.[0]?.message?.content || &#39;&#39;;</pre><pre>	return json(message);<br>};</pre><p>Note the body of the request we send to OpenAi. We use the gpt-3.5.-turbo model for chat completion, and the messages are an array of objects with each object having a “role” that can either be “system”, “assistant”, or “user”. More about these roles and the shape of the request and response here:</p><p><a href="https://platform.openai.com/docs/guides/chat/introduction">https://platform.openai.com/docs/guides/chat/introduction</a></p><p>And to call our server we create a function within our component and call it upon mounting:</p><pre>// routes/+page.ts</pre><pre>&lt;script lang=&quot;ts&quot;&gt;<br>	import { onMount } from &#39;svelte&#39;;</pre><pre>	onMount(async () =&gt; {<br>		console.log(&#39;Hello world!&#39;);</pre><pre>		const what = await handleChatCompletion();</pre><pre>		console.log(&#39;what: &#39;, what);<br>	});</pre><pre>	const handleChatCompletion = async () =&gt; {<br>		const response = await fetch(&#39;/api/chat&#39;, {<br>			method: &#39;POST&#39;,<br>			headers: {<br>				&#39;Content-Type&#39;: &#39;application/json&#39;<br>			},<br>			body: JSON.stringify({<br>				message: &#39;Hello world!&#39;<br>			})<br>		}).then((res) =&gt; res.json());</pre><pre>		return response;<br>	};<br>&lt;/script&gt;</pre><pre>&lt;h1 class=&quot;text-3xl font-bold underline&quot;&gt;Hello world!&lt;/h1&gt;</pre><p>All the calls are hard-coded right now, but that’ll do just fine as we just want to make sure the simplest calls are working.</p><h3>UI boilerplate</h3><p>Next, we’ll prettify the UI with tailwindcss. I went ahead and bought the tailwind UI package for this. It doesn’t explicitly support svelte but it works well enough.</p><p>We add the UI for our chat messages, along with appropriate headshots for profile pics, provided by Midjourney:</p><pre>// chat-message.svelte<br>&lt;script lang=&quot;ts&quot;&gt;<br>	export let name = &#39;&#39;;<br>	export let message = &#39;&#39;;</pre><pre>	const imgSrc = name === &#39;Alfred&#39; ? &#39;/alfred-headshot.png&#39; : &#39;/batman-headshot.png&#39;;<br>&lt;/script&gt;</pre><pre>&lt;li class=&quot;flex py-4&quot;&gt;<br>	&lt;img class=&quot;h-10 w-10 rounded-full&quot; src={imgSrc} alt=&quot;&quot; /&gt;<br>	&lt;div class=&quot;ml-3&quot;&gt;<br>		&lt;p class=&quot;text-sm font-medium text-gray-900&quot;&gt;{name}&lt;/p&gt;<br>		&lt;p class=&quot;text-sm text-gray-500&quot;&gt;{message}&lt;/p&gt;<br>	&lt;/div&gt;<br>&lt;/li&gt;</pre><pre>// +page.svelte<br>&lt;script lang=&quot;ts&quot;&gt;<br>	import { onMount } from &#39;svelte&#39;;</pre><pre>	import ChatMessage from &#39;./chat-message.svelte&#39;;</pre><pre>	onMount(async () =&gt; {<br>		const what = await handleChatCompletion();</pre><pre>		console.log(&#39;what: &#39;, what);<br>	});</pre><pre>	const handleChatCompletion = async () =&gt; {<br>		const response = await fetch(&#39;/api/chat&#39;, {<br>			method: &#39;POST&#39;,<br>			headers: {<br>				&#39;Content-Type&#39;: &#39;application/json&#39;<br>			},<br>			body: JSON.stringify({<br>				message: &#39;Hello world!&#39;<br>			})<br>		}).then((res) =&gt; res.json());</pre><pre>		return response;<br>	};<br>&lt;/script&gt;</pre><pre>&lt;ul role=&quot;list&quot; class=&quot;divide-y divide-gray-200&quot;&gt;<br>	&lt;ChatMessage name=&quot;Alfred&quot; message=&quot;Hello world!&quot; /&gt;</pre><pre>	&lt;ChatMessage name=&quot;Batman&quot; message=&quot;Hello Alfred!&quot; /&gt;<br>&lt;/ul&gt;</pre><pre>&lt;form class=&quot;mt-4&quot;&gt;<br>	&lt;div class=&quot;relative mt-1 flex items-center&quot;&gt;<br>		&lt;input<br>			type=&quot;text&quot;<br>			name=&quot;search&quot;<br>			id=&quot;search&quot;<br>			class=&quot;block w-full rounded-md border-0 py-1.5 pr-14 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6&quot;<br>		/&gt;<br>		&lt;button<br>			on:click={() =&gt; {<br>				console.log(&#39;clicky&#39;);<br>			}}<br>			type=&quot;submit&quot;<br>			class=&quot;absolute inset-y-0 right-0 flex py-1.5 pr-1.5&quot;<br>		&gt;<br>			&lt;kbd<br>				class=&quot;inline-flex items-center rounded border border-gray-200 px-1 font-sans text-xs text-gray-400&quot;<br>				&gt;Enter&lt;/kbd<br>			&gt;<br>		&lt;/button&gt;<br>	&lt;/div&gt;<br>&lt;/form&gt;</pre><h3>Connecting it all together</h3><p>And finally, we tie everything together, formatting the messages to and from our server.</p><p>We want our Alfred bot to remember some past context when responding, so we keep track of these messages with an array and update it upon submitting messages.</p><pre>// +page.ts<br>&lt;script lang=&quot;ts&quot;&gt;<br>	import { onMount } from &#39;svelte&#39;;</pre><pre>	import ChatMessage from &#39;./chat-message.svelte&#39;;</pre><pre>	let messages = [] as any;<br>	let inputMessage = &#39;&#39;;</pre><pre>	onMount(async () =&gt; {<br>		await handleChatCompletion();<br>	});</pre><pre>	const handleChatCompletion = async () =&gt; {<br>		const userMessage = {<br>			role: &#39;user&#39;,<br>			content: inputMessage<br>		};</pre><pre>		const response = await fetch(&#39;/api/chat&#39;, {<br>			method: &#39;POST&#39;,<br>			headers: {<br>				&#39;Content-Type&#39;: &#39;application/json&#39;<br>			},<br>			body: JSON.stringify({<br>				isInitializing: messages.length === 0,<br>				priorMessages: messages,<br>				message: inputMessage<br>			})<br>		}).then((res) =&gt; res.json());</pre><pre>		if (inputMessage) {<br>			messages = messages.concat([userMessage]);<br>		}</pre><pre>		messages = messages.concat(response);<br>		inputMessage = &#39;&#39;;</pre><pre>		return response;<br>	};<br>&lt;/script&gt;</pre><pre>&lt;ul class=&quot;divide-y divide-gray-200&quot;&gt;<br>	{#if messages.length &gt; 0}<br>		{#each messages as message}<br>			&lt;ChatMessage role={message.role} message={message.content} /&gt;<br>		{/each}<br>	{/if}<br>&lt;/ul&gt;</pre><pre>&lt;form class=&quot;mt-4&quot;&gt;<br>	&lt;div class=&quot;relative mt-1 flex items-center&quot;&gt;<br>		&lt;input<br>			bind:value={inputMessage}<br>			type=&quot;text&quot;<br>			name=&quot;search&quot;<br>			id=&quot;search&quot;<br>			class=&quot;block w-full rounded-md border-0 py-1.5 pr-14 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6&quot;<br>		/&gt;<br>		&lt;button<br>			on:click={handleChatCompletion}<br>			type=&quot;submit&quot;<br>			class=&quot;absolute inset-y-0 right-0 flex py-1.5 pr-1.5&quot;<br>		&gt;<br>			&lt;kbd<br>				class=&quot;inline-flex items-center rounded border border-gray-200 px-1 font-sans text-xs text-gray-400&quot;<br>				&gt;Enter&lt;/kbd<br>			&gt;<br>		&lt;/button&gt;<br>	&lt;/div&gt;<br>&lt;/form&gt;</pre><pre>// chat-message.svelte</pre><pre>&lt;script lang=&quot;ts&quot;&gt;<br>	export let role = &#39;&#39;;<br>	export let message = &#39;&#39;;</pre><pre>	const imgSrc = role === &#39;assistant&#39; ? &#39;/alfred-headshot.png&#39; : &#39;/batman-headshot.png&#39;;<br>	const name = role === &#39;assistant&#39; ? &#39;Alfred&#39; : &#39;Batman&#39;;<br>&lt;/script&gt;</pre><pre>&lt;li class=&quot;flex py-4&quot;&gt;<br>	&lt;img class=&quot;h-10 w-10 rounded-full&quot; src={imgSrc} alt=&quot;&quot; /&gt;<br>	&lt;div class=&quot;ml-3&quot;&gt;<br>		&lt;p class=&quot;text-sm font-medium text-gray-900&quot;&gt;{name}&lt;/p&gt;<br>		&lt;p class=&quot;text-sm text-gray-500&quot;&gt;{message}&lt;/p&gt;<br>	&lt;/div&gt;<br>&lt;/li&gt;</pre><pre>// routes/api/chat/+server.ts</pre><pre>import { json, type RequestEvent } from &#39;@sveltejs/kit&#39;;<br>import { OPENAI_API_SECRET_KEY } from &#39;$env/static/private&#39;;</pre><pre>export const POST = async (event: RequestEvent) =&gt; {<br>	const requestBody = await event.request.json();<br>	const { priorMessages = [], message, isInitializing = false } = requestBody;</pre><pre>	/**<br>	 * Request config<br>	 *<br>	 * &lt;https://platform.openai.com/docs/guides/chat/introduction&gt;<br>	 *<br>	 * Roles: &#39;system&#39;, &#39;assistant&#39;, &#39;user&#39;<br>	 */<br>	const completionHeaders = {<br>		&#39;Content-Type&#39;: &#39;application/json&#39;,<br>		Authorization: `Bearer ${OPENAI_API_SECRET_KEY}`<br>	};<br>	const initialMessage = {<br>		role: &#39;system&#39;,<br>		content:<br>			&#39;You are a Alfred, a most helpful and loyal fictional butler to Batman. Your responses should be directed directly to Batman, as if he were asking you himself.&#39;<br>	};<br>	const messages = isInitializing<br>		? [initialMessage]<br>		: [<br>				initialMessage,<br>				...priorMessages,<br>				{<br>					role: &#39;user&#39;,<br>					content: message<br>				}<br>		  ];<br>	const completionBody = {<br>		model: &#39;gpt-3.5-turbo&#39;,<br>		messages<br>	};</pre><pre>	/**<br>	 * API call<br>	 */<br>	const completion = await fetch(&#39;&lt;https://api.openai.com/v1/chat/completions&gt;&#39;, {<br>		method: &#39;POST&#39;,<br>		headers: completionHeaders,<br>		body: JSON.stringify(completionBody)<br>	})<br>		.then((res) =&gt; {<br>			if (!res.ok) {<br>				throw new Error(res.statusText);<br>			}<br>			return res;<br>		})<br>		.then((res) =&gt; res.json());</pre><pre>	const completionMessage = completion?.choices?.map?.((choice) =&gt; ({<br>		role: choice.message?.role,<br>		content: choice.message?.content<br>	}));</pre><pre>	return json(completionMessage);<br>};</pre><p>And with that, we have ChatGPT for Batman and Alfred!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_7b9a-u4WpTF7h0J.png" /></figure><h3>Final thoughts</h3><p>Overall, the API is super simple to use and I think it opens up so many possibilities it’s hard to imagine right now.</p><p>The biggest limiter right now is probably the 4096 token limit, so you can’t just import a giant document as context, but I think there are some workarounds for this using text embeddings. I’ll have to look into that more soon.</p><p>Feel free to view the code for yourself at:</p><p><a href="https://github.com/KTruong008/chatgpt-api-example">https://github.com/KTruong008/chatgpt-api-example</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f55ce292bcf4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning to Build on Solana (Week 1)]]></title>
            <link>https://coinsbench.com/learning-to-build-on-solana-week-1-ed22d00c7272?source=rss-21fa74f72291------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed22d00c7272</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[solana-network]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[kylebuildsstuff]]></dc:creator>
            <pubDate>Wed, 13 Jul 2022 11:03:22 GMT</pubDate>
            <atom:updated>2022-11-09T19:16:04.503Z</atom:updated>
            <content:encoded><![CDATA[<p>My first look into Solana and it was surprising to see how much could be done without any knowledge of Rust at all. Similar to client-server models, devs can use the JSON RPC API to interact with backend programs already deployed on Solana. The only issue is that if you want to really build something where you have control over the backend as well as the front then you’re going to have to write some Solana smart contracts (programs) in Rust.</p><p>So what does building Solana programs look like? And how does it differ from traditional web 2 development flows with databases?</p><p>For one, everything in Solana seems to use the concept of “accounts”, which are frequently compared to, within the docs, as files on a Linux system. Users use accounts, and users use programs that use accounts, and those programs use other accounts to store data. Everything’s an account and accounts live on the blockchain forever.</p><p>But all of this was a bit much for me and I didn’t feel comfortable digging into details without a stronger foundation. I needed to learn Rust.</p><h4>What makes Rust special?</h4><p>Rust is a systems level program, which basically means Rust is cooler than any JS framework because Rust is <em>truly</em> blazingly fast.</p><p>A lot of good things are said about Rust, including the fact that it’s consistently been the most favourite language according to past StackOverflow surveys. Most of this, I think, can be attributed to its compiler. The compiler allows for higher level abstractions that provide convenience and safety without compromising in control or speed.</p><p>If you’ve ever used Svelte or sveltekit it has a familiar feel, because in Svelte you can use powerful abstractions that allow for features like reactive UI components without using a virtual DOM at runtime because the compiler compiles everything down to plain JavaScript, resulting in a much smaller and faster bundle size. It’s zero-cost abstractions.</p><p>I always had this fear of lower level languages because of having to manage memory manually and accidently crashing my program, but the compiler has made this simple and straightforward. In fact, many of Rust’s features felt familiar despite me coming from a JS background.</p><p>The basic data types like numbers, booleans, and strings, and tools to control flow like loops and even functional iterators like map and filter, are still there and the knowledge transfers rather smoothly. The new features, like pointers, references, and ownership, are well-explained in the Rust book.</p><p>In addition to memory management, Rust provides enums, traits, better error handling.</p><h4>Enums and Traits</h4><p>Enums may already be a feature in TypeScript but Rust enums, I feel, are just better, especially when combined with the match operator because of the utility and conciseness it allows for. Ideas that would usually take 2 or 3 blocks of code now can take just 1.</p><p>Traits are really neat. Usually in object-oriented languages you have the idea of interfaces or inheritance where one object builds on top of another. But this leads to a lot of encapsulation where crucial details are hidden and it feels like playing with a tower of jenga blocks when trying to change things. Traits allow for the same utility of sharing functionality but without the encapsulation. You define traits with the methods you want and then you tack the traits onto whatever objects you wish. It’s a much flatter way of using shared features.</p><h4>Error handling</h4><p>I liked error handling in JS because I just assumed everything would go wrong (because it usually did), and then I’d account for that with a chain of question marks that’d look something like this:</p><pre>let data = please?.()?.dont?.()?.break?.()</pre><pre>if (!data) { return; }</pre><pre>…</pre><p>And if I missed a question mark or didn’t account for a specific scenario then the program would just crash at runtime, leaving users with a broken app.</p><p>Rust doesn’t let you code crap like that. The compiler adds guards that stop such errors before they hit runtime. Another reason it can do this because of the Option and Result enums. Many common Rust methods return these enums and it’s perhaps the most elegant way I’ve seen of dealing with such issues.</p><p>The main issue is that in languages like JS that allow for null or undefined values is that in cases where you expect a value but get null or undefined, and you don’t handle it properly, it breaks.</p><p>In Rust you always get a value. It’s an enum and you either get the variant of the enum that returns a value with the data you want or the variant that returns a value saying there was no value. It looks something like this:</p><pre>let f = File::open(&quot;hello.txt&quot;);</pre><pre>let f = match f {<br>    Ok(file) =&gt; file,<br>    Err(error) =&gt; panic!(&quot;Problem opening the file: {:?}&quot;, error),<br> };</pre><p>f is the value and it returns a Result enum, for which there are two variants, Ok and Err. The compiler forces you to handle both scenarios. There is no way the program can crash at run time because null values don’t exist, so there’s no way to use a null value as a not-null value.</p><h4>Match operator</h4><p>You may have noticed the match operator too. It’s basically like switch in JS/TS, if switch was any good. Match can be used as an expression so you can throw it almost anywhere and have it return a value. In addition, it matches “patterns”. More than just booleans like in if statements, it can match variants of an enums, arrays, tuples, and almost anything else you’d need.</p><h4>What’s next?</h4><p>I feel I have a decent handle of the basics of Rust, enough so that I can start poking around and maybe even write something. Usually this would be a great time to build my own project to solidify what I’ve learned, but I’m in a rush and eager to learn how to build on Solana, so I’m looking to spend the next week learning more about Solana and its surrounding ecosystem of tools, then I’ll probably build a PoC of some sort combining everything I’ve learned.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed22d00c7272" width="1" height="1" alt=""><hr><p><a href="https://coinsbench.com/learning-to-build-on-solana-week-1-ed22d00c7272">Learning to Build on Solana (Week 1)</a> was originally published in <a href="https://coinsbench.com/">CoinsBench</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Build on the Blockchain?]]></title>
            <link>https://medium.com/@kylebuildsstuff/why-build-on-the-blockchain-be26272f9550?source=rss-21fa74f72291------2</link>
            <guid isPermaLink="false">https://medium.com/p/be26272f9550</guid>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[solana-network]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[kylebuildsstuff]]></dc:creator>
            <pubDate>Wed, 13 Jul 2022 10:55:47 GMT</pubDate>
            <atom:updated>2023-03-05T18:28:59.347Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently, I’ve come to the realization that there’s nothing about my work that excites me anymore. I’ve seen my fair share of JS frameworks and I’ve built enough backend systems, and everything feels like I’m building some pretty form fields to hook up to some API and then saving it in a database. It’s just not fun anymore.</p><p>So, what makes the blockchain any better?</p><p>I could go on for hours the reasons why one should or shouldn’t and there’d be good points on both sides, but what it’s really about for me is ownership, and enabling it in a way that was never possible before.</p><p>I used to play this game, Runescape, all day long. It was an RPG, you could do almost anything you wanted, whether it be fighting monsters, fishing, cutting wood, going on quests, and so on. And out of all the exciting things you could do in this world my favourite was mining. I’d spend weekends clicking on digital rocks, mining digital coal and iron to smelt digital steel bars, to then smith them into various items I’d sell for digital coins.</p><p>If you played too then you know what I’m talking about. And if you didn’t, then just know that this was no isolated incident. Hundreds of thousands of kids played this game then, and millions more continue to play today in various other forms. These were NFTs before NFTs were a thing, and if we had NFTs and blockchain tech back then it would have changed everything.</p><p>Ultimately, what this kind of ownership means to me is that we don’t have to invest so much of our lives into doing jobs we’re apathetic about just to make a living. We could just be mining digital coal, or whatever floats your boat.</p><p>The shift has already started on platforms like Youtube, Twitch, and Tiktok where people own their channels and they can make a living creating content about what they enjoy, full-time. I think blockchain tech just takes this to the next level. The issue with current platforms is they own everything and you’re at their mercy. If your interests don’t align with theirs then they can shut down your account or demonetize you, and the only recourse you have is to stir up enough trouble on social media in hopes they’ll notice.</p><p>Build on the blockchain. Empower the next generation of creators. Own your digital assets and corporate interests will just be one less thing to worry about.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be26272f9550" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>