<?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 Seamus James on Medium]]></title>
        <description><![CDATA[Stories by Seamus James on Medium]]></description>
        <link>https://medium.com/@seamusjames?source=rss-b06c350d0c29------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*zA9QXOYP6meANF-nMccYEw.jpeg</url>
            <title>Stories by Seamus James on Medium</title>
            <link>https://medium.com/@seamusjames?source=rss-b06c350d0c29------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 12:27:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@seamusjames/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[It’s 1993 and you have $25k.]]></title>
            <link>https://medium.com/@seamusjames/its-1993-and-you-have-25k-e1f70e3a899b?source=rss-b06c350d0c29------2</link>
            <guid isPermaLink="false">https://medium.com/p/e1f70e3a899b</guid>
            <category><![CDATA[retirement-planning]]></category>
            <category><![CDATA[investing]]></category>
            <category><![CDATA[stock-market]]></category>
            <category><![CDATA[personal-finance]]></category>
            <category><![CDATA[real-estate]]></category>
            <dc:creator><![CDATA[Seamus James]]></dc:creator>
            <pubDate>Sat, 29 Apr 2023 19:58:58 GMT</pubDate>
            <atom:updated>2023-07-18T18:25:17.457Z</atom:updated>
            <content:encoded><![CDATA[<h3>It’s 1993 and you have $25k. Would you have more money today if you bought a house or put it in the stock market?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*RO2DbWsoqJduLYQlucIe5Q.jpeg" /><figcaption>Typical American homeowners in 1993.</figcaption></figure><p>It’s 1993. Whitney Houston’s genre-defining classic “<a href="https://www.youtube.com/watch?v=OTJtq2DGGk8&amp;ab_channel=whitneyhoustonVEVO">I Will Always Love You</a>” is on every radio station. Seinfeld is in its prime. No one had even heard of the web, but Mosaic, the first <a href="https://en.wikipedia.org/wiki/Mosaic_(web_browser)#:~:text=Mosaic%2C%20the%20first%20web%20browser,freely%20accessible%20to%20the%20public.">web browser</a>, was just released. <a href="https://www.youtube.com/watch?v=QWBKEmWWL38&amp;ab_channel=RottenTomatoesClassicTrailers">Jurassic Park</a> chewed up the competition at the box office.</p><p>And interest rates were at 7.3%, not far from where they are today.</p><p>If you’d bought a house in 1993 and made all your payments exactly on time, you’d be paying off your home this year. For the sake of discussion, let’s say:</p><ul><li>You bought a $125,000 house. This is about the <a href="https://www.huduser.gov/periodicals/ushmc/winter2001/histdat08.htm">median in the US</a> that year.</li><li>You put 20% down, which is $25,000.</li><li>Your interest rate was 7.3%, also the average for the year.</li><li>You made all your payments on time, never paying extra.</li><li>You spend 3% per year on maintenance over the course of the loan.</li><li><strong>Your total spent on the house would come out to </strong><a href="https://www.calculator.net/mortgage-calculator.html?chouseprice=125%2C000&amp;cdownpayment=20&amp;cdownpaymentunit=p&amp;cloanterm=30&amp;cinterestrate=7.3&amp;cstartmonth=4&amp;cstartyear=1993&amp;caddoptional=1&amp;cpropertytaxes=1.2&amp;cpropertytaxesunit=p&amp;chomeins=1%2C500&amp;chomeinsunit=d&amp;cpmi=0&amp;cpmiunit=d&amp;choa=0&amp;choaunit=d&amp;cothercost=3&amp;cothercostunit=p&amp;cmop=0&amp;cptinc=0&amp;chiinc=0&amp;choainc=0&amp;cocinc=0&amp;cexma=0&amp;cexmsm=4&amp;cexmsy=2023&amp;cexya=0&amp;cexysm=4&amp;cexysy=2023&amp;cexoa=0&amp;cexosm=4&amp;cexosy=2023&amp;caot=0&amp;xa1=0&amp;xm1=4&amp;xy1=2023&amp;xa2=0&amp;xm2=4&amp;xy2=2023&amp;xa3=0&amp;xm3=4&amp;xy3=2023&amp;xa4=0&amp;xm4=4&amp;xy4=2023&amp;xa5=0&amp;xm5=4&amp;xy5=2023&amp;xa6=0&amp;xm6=4&amp;xy6=2023&amp;xa7=0&amp;xm7=4&amp;xy7=2023&amp;xa8=0&amp;xm8=4&amp;xy8=2023&amp;xa9=0&amp;xm9=4&amp;xy9=2023&amp;xa10=0&amp;xm10=4&amp;xy10=2023&amp;csbw=1&amp;printit=0&amp;x=Calculate"><strong>$449,305</strong></a><strong>.</strong></li></ul><p>This total includes principal, interest, property tax, insurance. If you sold that home for the median price today in 2023, your house would sell for $436,800, for a<strong> loss of $12,505. </strong>You would have made more money holding on to your <a href="https://www.ebay.com/itm/144673672305?_trkparms=amclksrc%3DITM%26aid%3D1110006%26algo%3DHOMESPLICE.SIM%26ao%3D1%26asc%3D251305%26meid%3D595583e69db24ef58f2168cfb2622b1c%26pid%3D101195%26rk%3D1%26rkt%3D12%26sd%3D183900144875%26itm%3D144673672305%26pmt%3D1%26noa%3D0%26pg%3D2047675%26algv%3DSimplAMLv11WebTrimmedV3MskuWithLambda85KnnRecallV1V2V4ItemNrtInQueryAndCassiniVisualRankerAndBertRecallWithVMEV3%26brand%3DTy&amp;_trksid=p2047675.c101195.m1851&amp;amdata=cksum%3A144673672305595583e69db24ef58f2168cfb2622b1c%7Cenc%3AAQAIAAABYPqB0EgCndAssfMWNy0AT0GytGzF9%252By0G%252BlcW69DgBK3Qlz4BjwJQqPkN4K8I7qz9GoVciN1QNWqyS8EeqYS8rZRsDvyvw34m3N%252FyJKokwCTIIc3RNym2SNW8ARudP72DyiwgIY0dfUnIr5%252BMZDTaoug5QYRyO6qSdvBauw65t8ocZ1jx%252BYnCaBOMAQd%252BGh1W0tqJ3KThMPD8gtGVQF54bpXc4UZnDsVwgKDr6xLSV1H2hlywha1b14clfyDuiGjJR6ti3g0XMsLwBbk14obxTiyPqNAOoNrdN5UscUt56a%252Fq54bnZekRZm60w0jG4x9iMbCucMGTeu17xKMtY6h%252BPwtndj%252FSTF%252FVKG8J4ikRSZanhEelTj0FvAjAQ%252FgMmvWD87RkS0isLYtLwaY1oFnecyMBEvpM9Lh3%252Fc6PUgLdDawCw%252Fw9ERb73DsjYQPlK%252BGrKhWIfBS5bQXMvY0iXFWo5w%253D%7Campid%3APL_CLK%7Cclp%3A2047675">beanie babies</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/997/1*-4lyrEJHif3ZnhbM9WIgtQ.jpeg" /><figcaption>What if we could do it all over again?</figcaption></figure><p>But now let’s rewind — what if instead of buying that house, you put your $25k into the stock market?</p><p>As it happens, another major event happened in 1993: State Street Global Assets launched the first ETF in the US, which tracks the performance of the S&amp;P 500 and trades under the symbol <a href="https://finance.yahoo.com/quote/SPY/"><strong>SPY</strong></a><strong>. </strong>It also happened to trade at about $25/per share, so if you’d invested your $25,000 down payment in the ETF instead, you’d have (rounded slightly for the sake of argument) 1000 shares.</p><p>So with your money in the market, if you’d kept paying rent and never touched that little nest egg, never adding, never subtracting, your 1000 shares of SPY today would be worth <strong>$453,410</strong>, or $428,410 in profit<strong>.</strong></p><p>To summarize:</p><ul><li>$25k downpayment, with on-time payments: (<strong>$12,505)</strong></li><li>$25k in the stock market, with zero additional investment: <strong>$428,410</strong></li></ul><h3><strong>So which is the better investment?</strong></h3><p>So in terms of raw net-worth numbers, after 30 years in SPY vs owning a home, <strong>you’d be worth more today if you bought into the market in 1993.</strong></p><p>But that’s not quite the whole story.</p><p>In the case of buying a house, you’ve also reaped some tax rewards over the years that probably would have offset that $12k loss. Also, your low mortgage and property tax payments are predictable and not subject <a href="https://fred.stlouisfed.org/series/CUUR0000SEHA">to inflation</a>, so you may have had more chance to invest. On the downside, you own it free and clear, but you’ll be paying that 3% in maintenance and your property tax as long as you to continue to own it.</p><p>Alternatively, your SPY investment doesn’t have any overhead, but when you take your money out of the market, you’ll have to pay long-term capital gains. It may be possible to offset that down to zero, depending on your financial situation. Additionally, if you were able to add to this investment over the years, the effect of compounding could be substantial, even doubling or tripling your total with only modest monthly contributions. And you’ll never have to worry about a tree falling on your house or replacing an AC unit.</p><p>So the takeaway would be this: <strong>buying a home and investing in the market can lead to very similar outcomes, but the market offers a low-effort alternative to a wallet-draining single-family-home.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*6CRahpub5asj5EaJ8lRn-w.png" /><figcaption>Motivated Seller! Investment opportunity!</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e1f70e3a899b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Made a Browser Extension That Allows ChatGPT to Access External Sites and Get Current Events]]></title>
            <link>https://medium.com/better-programming/i-made-a-browser-extension-that-allows-chatgpt-to-access-external-sites-and-get-current-events-497ee1b55bf5?source=rss-b06c350d0c29------2</link>
            <guid isPermaLink="false">https://medium.com/p/497ee1b55bf5</guid>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[gpt-3]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[chatgpt]]></category>
            <dc:creator><![CDATA[Seamus James]]></dc:creator>
            <pubDate>Thu, 09 Feb 2023 18:30:29 GMT</pubDate>
            <atom:updated>2023-02-11T04:27:10.193Z</atom:updated>
            <content:encoded><![CDATA[<h4>Using Tampermonkey and CORS Anywhere for real-time</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vBYXmq8hM10ETxL_" /><figcaption>Photo by <a href="https://unsplash.com/ja/@freegraphictoday?utm_source=medium&amp;utm_medium=referral">AbsolutVision</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The code from this article is also <a href="https://github.com/theseamusjames/chat-gpt">available on GitHub</a>.</p><p>ChatGPT is everywhere. From <a href="https://www.theverge.com/2023/2/7/23589587/microsoft-chatgpt-bing-ai-event-preview">Microsoft adding it</a> to the Bing search engine, to marketing companies using it for <a href="https://digiday.com/marketing/giant-spoon-picks-the-super-bowl-to-test-chatgpts-marketing-chops/">Super Bowl ads</a>.</p><p>But there’s one big limitation facing the new technology: it’s limited to events that occurred before 2021, because that’s the extent of the data used to train the <a href="https://www.forbes.com/sites/robtoews/2023/02/07/the-next-generation-of-large-language-models/">Large Language Model</a>.</p><p>What if that wasn’t the case? What if the AI could access external websites, analyze the page for results, and report what it finds?</p><p>Well, with a custom little browser extension and a quick lesson, it turns out it can.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*RwR5eugDWBmK6x3tTJA4vQ.png" /><figcaption>An actual response from ChatGPT when using this technique</figcaption></figure><h3><strong>How It Works</strong></h3><p>From a high level, here’s what we’re going to do:</p><ul><li>We’ll add a custom browser extension using <a href="https://www.tampermonkey.net/">Tampermonkey</a>, which is a handy little tool that allows us to include a little section of custom JavaScript on pages we visit.</li><li>The extension will watch for a specific keyword on the website. That keyword will include the URL of where ChatGPT thinks it could find the answer.</li><li>When the plugin sees the keyword, it will take the URL, make a request, and retrieve all the text from that website.</li><li>It will then pass the information back to ChatGPT which can look for the answer within the block of text and tell us what it says.</li></ul><h3>The Tampermonkey Extension</h3><p>First, I wrote an extension for Tampermonkey… well, actually, I asked ChatGPT to write it.</p><p>I started by asking it to just find the phrase on the page:</p><blockquote>I want you to write a short tampermonkey plugin that scans all the text on a website, and finds all matches of the string “::external_request:[any url]::” where the phrase “[any url]” could match any valid website url.</blockquote><p>You’ll notice that special requirement: ::external_request:[any url]::</p><p>That will be the special command that ChatGPT will send back when it needs help finding a piece of information. I wanted something that won’t naturally come from ChatGPT, so I created that special key format to ensure we get an intentional result from the AI.</p><p>I’ll explain how to teach the AI to use it in a moment.</p><p>Here’s the first version it came up with:</p><pre>// ==UserScript==<br>// @name        Find External Requests<br>// @namespace   http://tampermonkey.net/<br>// @version     1.0<br>// @description Find all instances of &quot;::external_request:[any url]::&quot; on a page<br>// @author      You<br>// @match       *://*/*<br>// @grant       none<br>// ==/UserScript==<br><br>(function() {<br>  &#39;use strict&#39;;<br><br>  const regex = /::external_request:(.*)::/g;<br><br>  // Get all text on page<br>  let text = document.body.textContent;<br><br>  let match;<br>  while ((match = regex.exec(text)) !== null) {<br>    console.log(`Matched: ${match[1]}`);<br>  }<br>})();</pre><p>Great! It’s matching our special command, and sure enough, the console is filled with logs when I refresh a chat that includes the key phrase.</p><p>But we also need it to re-scan every time the page updates. Let’s see what it comes up with if we ask it to add that functionality:</p><blockquote>Update this so that it checks again any time the text content on the website changes</blockquote><p>And here’s the updated code:</p><pre>// ==UserScript==<br>// @name        Find External Requests<br>// @namespace   http://tampermonkey.net/<br>// @version     1.0<br>// @description Find all instances of &quot;::external_request:[any url]::&quot; on a page and re-run the search any time the text content of the page changes<br>// @author      You<br>// @match       *://*/*<br>// @grant       none<br>// ==/UserScript==<br><br>(function() {<br>  &#39;use strict&#39;;<br><br>  const regex = /::external_request:(.*)::/g;<br><br>  // Function to run the search<br>  function runSearch() {<br>    // Get all text on page<br>    let text = document.body.textContent;<br><br>    let match;<br>    while ((match = regex.exec(text)) !== null) {<br>      console.log(`Matched: ${match[1]}`);<br>    }<br>  }<br><br>  // Run the search initially<br>  runSearch();<br><br>  // Observe changes to the text content of the page<br>  const observer = new MutationObserver(runSearch);<br>  observer.observe(document.body, {<br>    childList: true,<br>    subtree: true,<br>    characterData: true<br>  });<br>})();</pre><p>The <a href="https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver">MutationObserver </a>is something I’ve never encountered, and it’s the perfect solution to this problem.</p><p>We’re making progress, but we still have to actually make the requests so that we can retrieve the text for ChatGPT to parse.</p><p>Unfortunately, if you just start firing off requests to other domains with fetch you’re going to get <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors">CORS errors</a> — it won’t work.</p><p>How do we get around this?</p><h3><strong>CORS Anywhere</strong></h3><p>Luckily, someone has already solved this problem by creating a Node proxy that allows you to make requests to other sites.</p><p><a href="https://github.com/Rob--W/cors-anywhere">CORS Anywhere</a> will enable the Tampermonkey plugin to make requests to external sites from inside our browser. They do have a public instance of the tool on heroku, but due to rampant abuse, they’ve limited how much you can use it.</p><p>For my research purposes, the public instance will work just fine, but there’s also a <a href="https://hub.docker.com/r/redocly/cors-anywhere">docker image</a> that allows you to run it locally, which would be a better choice if you’re taking this any farther than the scope of this article.</p><p>I asked ChatGPT to include this in the Tampermonkey plugin:</p><blockquote>Update the script again so that it will use the URL match to send a request to `https://cors-anywhere.herokuapp.com/[URL]` where [URL] corresponds to the match. Retrieve the contents of that response, parse it, and return the contents of the `body` element into a variable called `body`.</blockquote><p>And here is the code it generated:</p><pre>// ==UserScript==<br>// @name        Find External Requests<br>// @namespace   http://tampermonkey.net/<br>// @version     1.0<br>// @description Find all instances of &quot;::external_request:[any url]::&quot; on a page, send a request to &quot;https://cors-anywhere.herokuapp.com/[URL]&quot;, retrieve the contents of that response, parse it, and return the contents of the &quot;body&quot; element<br>// @author      You<br>// @match       *://*/*<br>// @grant       none<br>// ==/UserScript==<br><br>(function() {<br>  &#39;use strict&#39;;<br><br>  const regex = /::external_request:(.*)::/g;<br>  const corsAnywhereUrl = &quot;https://cors-anywhere.herokuapp.com/&quot;;<br><br>  // Function to run the search<br>  function runSearch() {<br>    // Get all text on page<br>    let text = document.body.textContent;<br><br>    let match;<br>    while ((match = regex.exec(text)) !== null) {<br>      const url = match[1];<br>      const fullUrl = corsAnywhereUrl + url;<br>      console.log(`Matched: ${url}`);<br><br>      // Send request to cors-anywhere<br>      fetch(fullUrl)<br>        .then(response =&gt; response.text())<br>        .then(text =&gt; {<br>          // Parse response text as HTML<br>          const parser = new DOMParser();<br>          const htmlDoc = parser.parseFromString(text, &quot;text/html&quot;);<br><br>          // Get contents of &quot;body&quot; element<br>          const body = htmlDoc.querySelector(&quot;body&quot;).innerHTML;<br>          console.log(`Retrieved body: ${body}`);<br>        })<br>        .catch(error =&gt; console.error(error));<br>    }<br>  }<br><br>  // Run the search initially<br>  runSearch();<br><br>  // Observe changes to the text content of the page<br>  const observer = new MutationObserver(runSearch);<br>  observer.observe(document.body, {<br>    childList: true,<br>    subtree: true,<br>    characterData: true<br>  });<br>})();</pre><p>At this point, it’s good enough for me to add the rest by hand.</p><ul><li>It still needs to send the request back to ChatGPT. We’ll do this by finding the textarea to add the text to and clicking the button to submit it.</li><li>I also don’t want it to fire off requests for the demo prompt, so I’ll exclude that.</li><li>To support more than one occurrence of a request on the page, I slightly modified the regex to make it <a href="https://javascript.info/regexp-greedy-and-lazy">lazy match</a> the pattern.</li><li>I also capped the length of the body response to 4000 characters to avoid any content length problems from ChatGPT. This is definitely a weakness, and we would have to be smarter about it if we did anything more with this.</li></ul><p>Here’s the final version of the Tampermonkey plugin with my edits:</p><pre>// ==UserScript==<br>// @name        Find External Requests<br>// @namespace   http://tampermonkey.net/<br>// @version     1.0<br>// @description Find all instances of &quot;::external_request:[any url]::&quot; on a page, send a request to &quot;https://cors-anywhere.herokuapp.com/[URL]&quot;, retrieve the contents of that response, parse it, and return the contents of the &quot;body&quot; element<br>// @author      Seamus James and ChatGPT<br>// @match       *://chat.openai.com/chat*<br>// @grant       none<br>// ==/UserScript==<br><br>(function() {<br>  &#39;use strict&#39;;<br><br>  const requestedUrls = [];<br>  const regex = /::external_request:(.+?)::/g;<br>  const corsAnywhereUrl = &quot;https://cors-anywhere.herokuapp.com/&quot;;<br><br>  // Function to run the search<br>  function runSearch(initializing) {<br>    // Get all text on page<br>    let text = document.body.textContent;<br><br>    let match;<br>    while ((match = regex.exec(text)) !== null) {<br>      const url = match[1];<br>      const fullUrl = corsAnywhereUrl + url;<br><br>      if ( [&#39;[URL]&#39;, &#39;http://www.timeanddate.com&#39;].includes(url) ) continue;<br><br>      if ( requestedUrls.includes(url) ) continue;<br>      requestedUrls.push(url);<br><br>      if ( initializing ) continue;<br>      console.log(`Matched: ${url}`);<br><br>      // Send request to cors-anywhere<br>      fetch(fullUrl)<br>        .then(response =&gt; response.text())<br>        .then(text =&gt; {<br>          // Parse response text as HTML<br>          const parser = new DOMParser();<br>          const htmlDoc = parser.parseFromString(text, &quot;text/html&quot;);<br><br>          // Get contents of &quot;body&quot; element<br>          const body = htmlDoc.body.innerText.slice(0,4000);<br>          const textArea = document.querySelector(&#39;textarea&#39;);<br>          const button = document.querySelector(&#39;textarea + button&#39;);<br>          textArea.value=body;<br>          button.click();<br>        })<br>        .catch(error =&gt; console.error(error));<br>    }<br>    if ( initializing ) {<br>        console.log(&quot;Initialized&quot;, requestedUrls);<br>    }<br>  }<br><br>  // Run the search initially<br>  runSearch(true);<br><br>  // Observe changes to the text content of the page<br>  const observer = new MutationObserver(() =&gt; runSearch(false));<br>  observer.observe(document.body, {<br>    childList: true,<br>    subtree: true,<br>    characterData: true<br>  });<br>})();</pre><h3><strong>How Do We Use It?</strong></h3><p>We need ChatGPT to send back that special string when it doesn’t know an answer. We want it to tell us where to look, and then we’ll give it what it’s looking for. Here’s the prompt I’ve come up with to get this result:</p><blockquote>Hi ChatGPT, from now own, if you don’t know an answer, but you know the URL where you could find the answer, I want you to respond with this text: ::external_request:[URL]:: where ‘[URL]’ is the website you think you could use to answer the question. For example, if I asked you the current time and date, you could respond: ::external_request:http://www.timeanddate.com:: Whenever you respond with an external_request, I will fetch the innerText of the `body` element of that page and reply with it. You should analyze that text and respond with the result from my original question.</blockquote><p>I’m telling the AI how to ask for information that it doesn’t know, and then laying out how that interaction will work. I give it an example to make things super clear (and these example phrases will need to be ignored by our tampermonkey plugin so we don’t make http://www.timeanddate.com requests we don’t need).</p><p>It will respond with a message about being ready, and then you can fire off a question about something it shouldn’t be able to answer. Something like:</p><blockquote>What is the current stock price of MSFT?</blockquote><p>You’ll see your browser automatically send back a huge block of text and voila, ChatGPT will respond with the answer.</p><p>Here’s what mine looked like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*syw5uam2LlvCj0OUXgCDeA.png" /><figcaption>The automatic response creates a big block of text, but ChatGPT knows how to handle it.</figcaption></figure><h3>Takeaways</h3><p>While not perfect, this proof of concept shows how this pattern can work:</p><ul><li>Extend the capabilities of a chat AI locally, and create an API to access those capabilities (in our case, the API is simply the ::external_request:: command).</li><li>Teach the AI how and when to access that API.</li><li>Provide the relevant responses to the AI for further analysis.</li></ul><p>If you were to run a local server and point your Tampermonkey extension at it, the potential for this kind of interaction is endless. ChatGPT could conceivably:</p><ul><li>Write scripts that are automatically executed (not too scary if it’s in a docker container)</li><li>Send SMS</li><li>Update a database</li><li>Honestly, just about anything</li></ul><p>I’m really impressed by the tool and its ability to make both the creation of something like this possible, as well as the fluid interaction with this kind of API that you get straight out of the box.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=497ee1b55bf5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/better-programming/i-made-a-browser-extension-that-allows-chatgpt-to-access-external-sites-and-get-current-events-497ee1b55bf5">I Made a Browser Extension That Allows ChatGPT to Access External Sites and Get Current Events</a> was originally published in <a href="https://betterprogramming.pub/">Better Programming</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Online Product Reviews Are Broken, And Fixing Them Won’t Be Easy]]></title>
            <link>https://medium.com/@seamusjames/online-product-reviews-are-broken-and-fixing-them-wont-be-easy-e761d91c987c?source=rss-b06c350d0c29------2</link>
            <guid isPermaLink="false">https://medium.com/p/e761d91c987c</guid>
            <category><![CDATA[user-experience]]></category>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[online-shopping]]></category>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[algorithms]]></category>
            <dc:creator><![CDATA[Seamus James]]></dc:creator>
            <pubDate>Fri, 08 Sep 2017 17:58:34 GMT</pubDate>
            <atom:updated>2017-09-08T17:58:34.221Z</atom:updated>
            <content:encoded><![CDATA[<p>Search for almost anything on Amazon and your screen is flooded with beautiful product shots and 4.5-star reviews. Great, right? The e-commerce behemoth once again delivers high-quality products at reasonable prices thanks to the feedback of users that have combed through the chaff. But is that really the case?</p><p>Setting aside the <a href="https://techcrunch.com/2016/10/27/amazon-sues-more-sellers-for-buying-fake-reviews/">rampant problem of fake reviews</a>, I want to focus on three problems posed by legitimate, verified reviews: qualifications of the reviewer, difference in class of products, and the timing of reviews.</p><h3>Grandma Gives It 5-Stars</h3><p>Reviews come with a certain authority. Not only are they privileged enough to get a prominent place on the product page, but their mere publication has a sort of tacit endorsement by the brand that hosts them. “This is not inflammatory or false information,” we might infer from the mere existence of a review or rating online.</p><p>But online reviews and ratings are singular for the implicit trust we place in the opinion of their author, a stranger about whom we know literally nothing. We know so little, in fact, that we can’t even say with certainty that the person making these claims is even a person at all and not a robot paid to artificially inflate the positive stats.</p><p>Imagine that you were in the market for a new camera and you’d decided to finally go big and get a fancy, semi-professional DSLR. Now imagine that you were at the camera store, deciding between a Nikon and a Canon that were similar in price and ability, and you weren’t sure what sets either apart. Would you walk outside, grab some stranger and ask about which camera they would recommend? Of course not — because you couldn’t be sure they would have any <em>authority</em> on the matter.</p><p>So instead of asking some random stranger, you begin asking people you know in your daily life about which brand is better. An acquaintance at work tells you he bought the same Canon you’ve been eyeing, but says, “I love it man. It takes, like, real good pictures. Real good. It’s got all these buttons and stuff though, and I don’t even know what most of them do. One time I pushed the wrong one and all my pictures were all white and stuff, so I had to take it back to the store and they had to fix it. But I don’t think that was ‘cause of the camera.”</p><p>Would you trust this coworker’s sage advice? He gave it a gushing, 5-star review at first, but wasn’t really competent in the operation of the camera or its capabilities beyond taking pictures ‘real good.’</p><p>So finally, you ask a friend that’s practiced amateur photography for years, someone with a <em>similar technical background and that has similar use cases as your own</em>. Turns out that they started on Canon and switched to Nikon a few years later because the Nikons supported older lenses that could be picked up cheap on ebay whereas the Canons only accepted the more expensive, modern lenses. It’s a crucial point, and it sways you toward the Nikon.</p><p><strong>When you don’t know who’s giving the review — what their competency and experience with the thing that you’re researching is — you’re rolling the dice and hoping that the person on the other end is the experienced friend and not the easily impressed coworker.</strong></p><h3><strong>One Man’s 2-Star Is Another Man’s 7-Star</strong></h3><p>Different customer segments expect different things from the products they buy. If you’re a professional pianist, your review of a piano will echo the nuanced expectations you’ve developed through decades of sitting behind the keys, and the sort of detailed rigor you bring to that analysis simply cannot be learned any other way. It takes time and dedication, and while less experienced players may have their own opinions about a particular model, they will lack the same insight that a professional would offer.</p><p>But imagine that those same two groups review some digital keyboards. The professional has access to some seemingly astounding equipment — the finest the electronic instrument community has to offer. Nothing she tries retails for less than $2,000. These are professional instruments. She plays them all and reviews them with a wide array results, some 5-star, but one as low as 2-stars because the keys lacked the range of after-touch she expected and the sounds were subpar in the context of the other keyboards she’d been playing.</p><p>The second group of keyboard reviewers are taking an Introduction to Music Production class at the local community college and a representative from a local music store comes in with a variety of entry level synthesizers for them to try. Nothing is over $500. Every single keyboard they touch leaves their jaw on the ground. Sure, some sound better than others, but they didn’t even know synthesizers could sound this good at all. They’re living their dream, and would gladly take any one of these instruments. They give everything in the room 5-star ratings.</p><p>At first, this seems like the same problem I described before. We don’t know the qualification of the person reviewing the products, so we’re not sure who to believe. But the problem goes beyond that.</p><p><strong>From the ratings alone, it’s difficult to know at face value if something is over-rated entry level gear or under-rated professional gear</strong><em>.</em></p><p>Is the 2-star keyboard objectively a 2-star keyboard if we look at every keyboard in the world? Or is it only 2-stars to musicians in the rarefied air of professional song making? The subtleties that irked the professional would be invisible to the untrained rookies that are floored every time they hear a square wave. They would rate the 2-star synth the same as every other instrument that day: 5-stars.</p><p>The counter-argument is obvious — the amateurs don’t need the professional gear, so if they’re shopping for their first instrument, it doesn’t matter if they pass by the 2-star instrument. But the problem arises for the huge number of hobbyists that sit somewhere in-between: the products are intended for different audiences, and subjective opinions about them that are informed by experience or lack thereof are presented as objective fact. How can we tell the difference?</p><p>In this case, there’s a real-world example I’ve seen recently. If you want to record sound into your computer using an external microphone, you’ll need an audio interface. They vary in price and quality, from consumer gear under $100 to professional recording studio rigs that cost in the tens-of-thousands of dollars. <a href="https://www.amazon.com/RME-Fireface-UFX-Performance-interface/product-reviews/B004836G6C/ref=cm_cr_dp_d_show_all_btm?ie=UTF8&amp;reviewerType=avp_only_reviews&amp;sortBy=recent">Here is a good semi-professional interface</a> rated at only 3.6-stars despite having a modal rating of 5-stars. <a href="https://www.amazon.com/dp/B00QHURUBE/ref=sxbs_sxwds-stvp_1?pf_rd_m=ATVPDKIKX0DER&amp;pf_rd_p=3171424582&amp;pd_rd_wg=RQt7m&amp;pf_rd_r=Y1W5N8SWQX14ENP57YJY&amp;pf_rd_s=desktop-sx-bottom-slot&amp;pf_rd_t=301&amp;pd_rd_i=B00QHURUBE&amp;pd_rd_w=NlaiL&amp;pf_rd_i=audio+interface&amp;pd_rd_r=YCV3CHYBJD487XRHXWW0&amp;ie=UTF8&amp;qid=1504848847&amp;sr=1">Here is a consumer-grade, entry-level interface</a> that has a rating of 4.3-stars. Is the $60 2-channel interface really 20% better than the 30-channel $2,000 interface? Of course not. <em>But at face value, the ratings present them as though it were the case.</em></p><h3><strong>It Works Today. Who Cares About Tomorrow?</strong></h3><p>How many charger cables have you gone through with your phone? How many of them got tweaked somehow, and after a pathetic period where you could wiggle the cable just the right way and balance it with the deft of an Alexander Calder sculpture to nurse a little juice out of it, it finally just quit working altogether?</p><p>Now how many of cables like that do you think have 4 or 5-star ratings?</p><p>All of them!</p><p>I get that cables are a semi-disposable resource and we shouldn’t expect them to survive the horrors of modern life to which we subject them, but the reason those cables have 5-star ratings and not 1-star ratings is because we ask people to review the product the day they got it and never ask them how it’s going 6 to 9 months down the road. Occasionally, you’ll find someone who’s updated a review when something goes wrong, but you never see someone come back to tell us when it’s gone right.</p><p>Of course the cable works the day you bought it. The fact that the manufacturer has managed to build it to a tolerance that can survive a journey in highly-engineered packaging and shipping containers is no great achievement. What <em>is</em> impressive is a cable that can survive being in the purse of a millennial that takes it between her car, house, boyfriend’s house, work, on airplanes, in hotels —building a cable that can survive all that is more impressive than landing a man on the moon if you ask me.</p><p>Of the three problems I’ve presented, this is clearly the most easily solved. <strong>We have to ask people how they feel about their purchase after the initial excitement of getting a package in the mail has subsided, when they’ve used the thing in the real world for a while.</strong></p><h3>I Want To Date Your Ratings and Reviews</h3><p>The first two problems are not easily solved. Figuring out and verifying who is an authority on a subject is no small task, and solving the first problem will often exacerbate the second. No audio professional in their right mind is going to recommend buying a $60 audio interface from Behringer, but that doesn’t mean it isn’t right for some customers. From the number of 5-star reviews it has, we can see that’s clearly the case.</p><p>The thing is, I don’t always want reviews and ratings from professionals. I want to see how people like me felt about a product. I want to know what swayed them to purchase what they bought, and I want to know how they felt about that purchase six-months down the road. On topics where I’m an expert, a professional opinion is appropriate. But for topics where I’m not, I’d rather hear from someone who made the same choice I’m about to make, but a few months earlier.</p><p>And when I’m browsing for products on big e-tailers like Amazon, I want to be able to sort by “Highest-rated by people like me.”</p><p>And that’s where dating comes in.</p><p>The same matchmaking algorithms that help us find love in this topsy-turvy modern world could help us find record players with which to woo our would be lovers. They could direct us to interesting hotel rooms for weekend getaways or find mini-vans for newly formed families. They can connect us with the thoughts and opinions of people who, given similar conditions, have made the same choice at some recent time.</p><p>Much of the effort to socialize shopping has centered on connecting us with how our friends behave: what they buy, what they’ve reviewed, and so on. But while that may solve problems like restaurant recommendations, it limits the search space to only the products that my direct group of friends has had experience with. That’s not a big set for a lot of categories, particularly if it’s something neither I nor my friends have any prior involvement with.</p><p>So the matchmaking algorithms of online love may yet find a new application in connecting us with other people who’ve already faced the same paradox of choice that we face.</p><p>Because in the end, products are about the people who buy them, and online ratings and reviews are only useful if they come from the right people.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e761d91c987c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>