<?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 Shemar Dacosta on Medium]]></title>
        <description><![CDATA[Stories by Shemar Dacosta on Medium]]></description>
        <link>https://medium.com/@shemar?source=rss-8b839cca1065------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*tO7HCu1S9DVgLTcxBSEOhA.png</url>
            <title>Stories by Shemar Dacosta on Medium</title>
            <link>https://medium.com/@shemar?source=rss-8b839cca1065------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 16:24:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shemar/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[Teaching Oedipus to Listen (and Talk Back) | The Dolittle Project PT 2]]></title>
            <link>https://medium.com/@shemar/teaching-oedipus-to-listen-and-talk-back-the-dolittle-project-pt-2-4ac01ea7e637?source=rss-8b839cca1065------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ac01ea7e637</guid>
            <dc:creator><![CDATA[Shemar Dacosta]]></dc:creator>
            <pubDate>Sun, 18 May 2025 03:44:17 GMT</pubDate>
            <atom:updated>2025-05-18T03:44:17.590Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C6v96FPcXxqFoV62JVEwnA.jpeg" /><figcaption>Test Bear 🐻</figcaption></figure><p>When I first got the LLM running locally, it felt like a win—until I tried talking to it.</p><p>What came back? Garbage tokens, half sentences, repeated lines, and some &lt;|eot_id|&gt; rune like it was casting spells.</p><p>That’s when I realized: running the model wasn’t enough. If I wanted Oedipus to talk like a real voice assistant, I had to build his ears, his mouth, and most of his brain from scratch.</p><p>So I did.</p><h3>🧠 Big Brain Energy —No Cloud, No Filter, All Mine</h3><blockquote><strong>SPECS: </strong>The whole setup runs on a Raspberry Pi 5 with built-in Wi-Fi and Bluetooth. I’ve got a 1TB SSD hooked up for the LLM model, and the microSD handles the API, logs, and the rest of the backend stuff.</blockquote><p>🧠 <strong>Interactive Mode: Stream First, Think Fast</strong></p><p>At first, I built the backend using the classic prompt-in, response-out pattern. Send a request to /ask, get a response back. It worked — but every call started the LLM via scratch. Cold starts. Full reloads. Slow as hell.</p><p>Then I found out about interactive mode in llama-cli.</p><blockquote>the command-line tool from llama.cpp that runs local LLMs and streams responses straight from your terminal. <a href="https://github.com/ggml-org/llama.cpp">https://github.com/ggml-org/llama.cpp</a></blockquote><p>Instead of restarting the model on every request, I launch it once and keep it alive in the background. It runs as a long-lived subprocess — hot and ready, constantly streaming tokens the moment I send a prompt.</p><pre>llama-cli \<br>  -m /mnt/oedipus/models/thea-rp-3b-25r.i1-Q4_K_M.gguf \<br>  --interactive \<br>  --n-predict 256 \<br>  --ctx-size 2048 \<br>  --threads 6 \<br>  --batch-size 1024 \<br>  --temp 0.7 \<br>  --top-p 0.9 \<br>  --repeat-penalty 1.1 \<br>  --mirostat 2 \<br>  --mirostat-ent 3.0 \<br>  --mirostat-lr 0.3 \<br>  --mlock \<br>  --no-mmap \<br>  --system-prompt &quot;$(cat /mnt/oedipus/base_system_prompt.txt)&quot;</pre><blockquote><strong>What matters here:</strong></blockquote><blockquote><strong>— — interactive</strong>: Streams responses live instead of restarting the model.</blockquote><blockquote><strong>— — mlock</strong> + <strong>— — no-mmap</strong>: Load the entire model into RAM and keep it there. No paging, no delays.</blockquote><blockquote><strong>— — mirostat</strong> settings: Keeps the responses spicy but not chaotic.</blockquote><blockquote><strong>— — n-predict</strong>: Controls how much the model says in one go — good for speed.</blockquote><blockquote><strong>— — system-prompt</strong>: This is where the magic starts.</blockquote><p>Which leads me to the next part: <strong>personality</strong>.</p><p>🧠 <strong>Giving Oedipus a Voice: The Base Prompt</strong></p><p>That <strong>— — system-prompt </strong>flag? That’s where I breathe life into him.</p><p>I’ve got a .txt file — basically a stitched-together blueprint of who Oedipus is, how he talks, how he thinks, what he never shuts up about. This is where the personality gets locked in.</p><p>It’s not just a vibe check — it’s the <strong>soul</strong>.</p><p>Under the hood, this system prompt loads at startup and stays persistent in the model’s context window for the entire session. Every user prompt gets injected <strong><em>after</em></strong> it — so no matter what you ask, Oedipus stays in character. It sets the behavioral guardrails, the voice, and even how he interprets follow-up questions.</p><p>🧠 <strong>Turning the Stream Into an API (and Making Sense of the LLM Outputs)</strong></p><p>Running the LLM was one thing — turning its token stream into a clean, usable API response was the real work.</p><p>Once I had llama-cli running in — interactive mode, I wrapped it with a Flask server. The goal: feed in prompts, read the response stream in real time, and return structured replies that feel conversational but behave like a proper API.</p><p>The pipeline looks simple on paper:</p><blockquote>1. Launch llama-cli in interactive mode at startup</blockquote><blockquote>2. Pipe prompts in via stdin.write()</blockquote><blockquote>3. Read tokens from stdout in real time</blockquote><blockquote>4. Buffer the response, sanitize it, and return it from /ask</blockquote><p>The hard part wasn’t getting a response — it was knowing when the model was <em>done</em>. LLMs stream forever unless you give them rules.</p><p>Luckily, with <strong>chat templates</strong> baked in, the model drops an end marker like &lt;|im_end|&gt;. Once I spotted that in the logs, I had my signal.</p><p>Now my script anchors on that tag, waits for it, and only then sends the response through the API. After that, I sprinkle in a few extra sanitation steps — stripping out leftover tags, echoes, and weird formatting — just to keep things tight.</p><p>No more guesswork. <strong>/ask</strong> returns fast, full replies — clean, trimmed, and still just chaotic enough.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F131rqGYPaxY%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D131rqGYPaxY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F131rqGYPaxY%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/b75690daa031a0db5627cca0e59c9038/href">https://medium.com/media/b75690daa031a0db5627cca0e59c9038/href</a></iframe><p>Before I wired up the voice, I built a simple chatbot interface to test &amp; talk to the brain directly. With the LLM running in interactive mode and my exact config, I was getting full replies in <strong>5 to 10 seconds</strong>, sometimes even faster. On average? Never more than <strong>12 seconds</strong>.</p><p>For something running entirely on a Raspberry Pi 5, that’s wild.</p><p>But I didn’t just want a chatbot.</p><p>I wanted something I could speak to — and something that would talk back.</p><h3>🦾 The Ears &amp; Mouth — Oedipus Speaks (and Listens)</h3><blockquote>Once I had the brain running on the Pi 5, I needed a way to <em>talk to it</em> — and get it to talk back.</blockquote><p>That’s where the Pi Zero comes in. It’s the portable piece — the part you can wear, carry, or strap to something wild. It connects to the local API over Wi-Fi and acts like the sensory shell for Oedipus.</p><p><strong>Here’s how it works:</strong></p><ul><li>I hooked up a cheap lavalier mic from Amazon for voice input</li><li>Paired a small Bluetooth speaker for audio playback</li><li>Used speech_recognition + Google’s speech-to-text to capture what I say</li><li>Sent that transcript to the Pi 5 over the network by hitting the /ask endpoint</li><li>Got a reply back, ran it through Google TTS with a high-pitched voice, and played it aloud</li></ul><p>That’s the loop: <strong>mic → text → API → response → voice → speaker.</strong></p><p>No cap… It just works!</p><p>The Pi Zero script uses a persistent loop that listens for the word <strong>“Oedipus”</strong>, then starts recording what I say next.</p><p>If I pause too long, it resets. If I say “stop” or “shut up,” it kills playback immediately. The whole thing is written to know when to listen and when to chill.</p><p>There’s even filler audio — little “meow” or “purr” clips that play while Oedipus is thinking, so it doesn’t feel dead during lag. You can turn it off, but I kinda like the weirdness.</p><p>Everything runs locally on the Pi Zero, with minimal delay. No cloud calls except for Google TTS and speech recognition. And if I wanted to swap those out later for local models, I could — but honestly, it already feels like I’ve built my own Alexa that curses and remembers things.</p><p>To test it in the wild, I packed everything into a teddy bear — mic, speaker, Pi Zero, all embedded in something soft, quiet, and self-contained. It’s the perfect low-key shell to see how Oedipus performs off the desk, away from wires — just a little test run in something that doesn’t look like it’s listening.</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fwww.youtube.com%2Fshorts%2FEycP-fdGiOM%3Ffeature%3Dshare&amp;type=text%2Fhtml&amp;schema=youtube&amp;display_name=YouTube&amp;src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FEycP-fdGiOM%3Ffeature%3Doembed" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/863b5ae647d75e42d0411472abcea405/href">https://medium.com/media/863b5ae647d75e42d0411472abcea405/href</a></iframe><p>I’ve tested Oedipus in a browser, in a teddy bear, and all across my apartment — but the next step was obvious: make him mobile. Really mobile.</p><p>So I started turning the whole setup into something wearable — mic, speaker, Pi Zero, all reimagined to move with a little more personality.</p><p>What’s next isn’t just about hardware — it’s about turning Oedipus from a prototype into something that feels present. Smarter memory, more independence, and maybe even less code… more instinct.</p><p>Voice. Memory. Personality. All that’s left is mobility.</p><p><strong>Oedipus IRL | The Dolittle Project PT 3 —Coming Soon</strong></p><p><a href="https://www.shemar.dev/">𝔰𝔥𝔢𝔪𝔞𝔯.dev</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ac01ea7e637" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DIY Intelligence: Building My Own Voice AI | The Dolittle Project PT 1]]></title>
            <link>https://medium.com/@shemar/diy-intelligence-building-my-own-voice-ai-the-dolittle-project-pt-1-b6da0bac504d?source=rss-8b839cca1065------2</link>
            <guid isPermaLink="false">https://medium.com/p/b6da0bac504d</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[raspberry-pi]]></category>
            <category><![CDATA[voice-assistant]]></category>
            <category><![CDATA[creative-coding]]></category>
            <dc:creator><![CDATA[Shemar Dacosta]]></dc:creator>
            <pubDate>Sun, 04 May 2025 04:44:09 GMT</pubDate>
            <atom:updated>2025-05-18T04:04:10.501Z</atom:updated>
            <content:encoded><![CDATA[<p>Forget ‘Hey Siri’ — I gave my cat a voice, a memory, and zero filter.</p><p>— -</p><p>There was a moment — mid-scroll, pink drink in hand — when I asked Siri something simple like, “What’s the weather in Berlin this weekend?”</p><p>She gave me a half-answer in that usual, awkward tone. No mention of my trip, no memory of the conversation we had five minutes earlier. Just vibes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*U9mY00wTl1JDIsWC.png" /></figure><p>That’s when it hit me:</p><p><strong>This isn’t intelligence. It’s just voice-activated Googling.</strong></p><p>So I started thinking — if these so-called “smart assistants” aren’t actually smart, why not build my own? LLMs are everywhere now, but hardly anyone’s using them in a personal way.</p><p>Where’s the assistant that actually <em>remembers</em> you? Talks like a real person? One you’d actually <em>want</em> to hear from?</p><p>Not another “Hey Siri” clone — I wanted an AI with personality, memory, and a little bit of edge.</p><p>That’s how <strong>The</strong> <strong>Dolittle Project </strong>was born.</p><h3>Why I Don’t Talk to Siri Anymore</h3><p>Siri, Alexa, Google, ChatGPT, Gemini — they’re all polished, fast, and safe. But that’s kind of the problem. No depth. No edge. No memory unless you’re deep in their ecosystem.</p><p>Ask them something real, and half the time you’ll get a safe, polished response — if they don’t dodge it entirely. And the “personality”? Let’s be honest — it’s just corporate voiceover with a pulse.</p><p>Most of them can’t (or won’t):</p><ul><li>Remember what you said yesterday</li><li>Grow with you</li><li>Sound like a real human</li><li>Run offline, on your terms</li><li>Say what they actually think</li></ul><p>(Okay — some of them can now, <em>if you’re paying enough.</em>)</p><p>I didn’t want a voice assistant. I wanted something that <em>got me</em>.</p><p>So I built one.</p><h3>Meet Oedipus: my uncensored, persistent, talking AI</h3><p>It’s named after my cat, Oedipus — partly as a joke, but also because the plan is to strap the whole setup onto him eventually.</p><p>If anyone’s gonna walk around talking back with attitude, it might as well be him.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gmLd_yP9Pzn6LavI.jpeg" /></figure><p>𝓂𝓎 𝒷𝒶𝒷𝓎 𝑜𝑒𝒹𝒾𝓅𝓊𝓈 𝓇𝑒𝓍</p><p>From day one, I had three non-negotiables:</p><ol><li><strong>Persistent memory</strong> — so it can actually remember stuff across sessions.</li><li><strong>Full local control</strong> — no cloud, no spying, everything runs on my hardware.</li><li><strong>A real voice and personality</strong> — something that <em>feels</em> like talking to a companion, not a corporate help desk.</li></ol><h3>Building the Body and Mind</h3><p>I needed two things: power and portability. Something strong enough to run a language model smoothly, and something small enough to eventually walk around on four legs.</p><p>That’s why I chose <strong>a Raspberry Pi 5</strong> as the main brain — it’s compact, quiet, and packs enough punch to handle local inference without breaking a sweat. I even grabbed a dedicated <strong>1TB SSD</strong> just to hold the LLM — no shared space, no clutter, just brainpower.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qxl_CeOwenEWaPjT.jpeg" /></figure><p><em>Raspberry Pi 5 with a dedicated 1TB SSD &amp; PiZero2W</em></p><p>And for the wearable setup, <strong>the Pi Zero 2 W</strong> hit the sweet spot — tiny, wireless, and just enough juice to handle voice commands on the move.</p><p>The main brain runs on a <strong>RPi 5</strong> — compact, quiet, and way more powerful than it looks, with 8GB of RAM and a 1TB SSD I grabbed off Amazon. It’s small enough to tuck behind a router. The Pi Zero? That’s for the wearable version — light enough to go inside a stuffed animal if I’m being real.</p><p>For the brain, I tested a bunch of models — Mistral, OpenHermes, the usual suspects — but ended up going with <strong>Thea RP 3B</strong>. I’d read it was great for conversations and roleplaying, and after running it through some tests, it just <em>clicked</em>. It runs clean on llama.cpp in interactive mode, which keeps the back-and-forth feeling natural.</p><p>Big shoutout to the folks who built it — seriously impressive work. 👏🏾👏🏾</p><p>For the voice, I tweaked Google’s <strong>Wavenet TTS</strong> — pitched up, sped up, somewhere between <em>BMO from Adventure Time</em> and your favorite chaotic sidekick.</p><h3>Prototypes, bugs, and the weird stuff nobody tells you</h3><p>Early versions of Oedipus were… a trip. He’d cut off mid-sentence, repeat himself, forget the first word entirely. Sometimes he’d spit out weird tags like &lt;|im_start|&gt;, or freeze in silence like he was thinking too hard.</p><p>I kept running into all these little edge cases no one warns you about — stuff that doesn’t show up in LLM tutorials or Raspberry Pi guides. You only find out once the thing is sitting on your desk, staring back at you like, <em>“your move.”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/0*7k08V-IxeMsmszxc.gif" /></figure><p>That’s when the real work began.</p><p><a href="https://medium.com/@shemar/teaching-oedipus-to-listen-and-talk-back-the-dolittle-project-pt-2-4ac01ea7e637"><strong>Teaching Oedipus to Listen (and Talk Back) | The Dolittle Project PT 2</strong></a></p><p><a href="https://www.shemar.dev/">𝔰𝔥𝔢𝔪𝔞𝔯.dev</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6da0bac504d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Women in Technology]]></title>
            <link>https://medium.com/@shemar/women-in-technology-36d1e4dda0a9?source=rss-8b839cca1065------2</link>
            <guid isPermaLink="false">https://medium.com/p/36d1e4dda0a9</guid>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[teaching]]></category>
            <dc:creator><![CDATA[Shemar Dacosta]]></dc:creator>
            <pubDate>Wed, 17 Apr 2019 22:06:55 GMT</pubDate>
            <atom:updated>2019-05-07T15:03:11.728Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*mQFilDnz_elMqptu7TaF0g.jpeg" /><figcaption><strong>Fun Fact: The First Programmer was a woman! Ada Lovelace</strong></figcaption></figure><p>It’s a well-known fact, Women are underrepresented in the field of technology.</p><p>It doesn’t make sense to me why. Women have the potential to do everything and more when it comes to <strong>everything</strong>.</p><p>But society has a tendency to put them down in subliminal ways and I hate it. What makes us so different?</p><p>Understanding Women in Technology and all the systems surrounding it could help us develop a broader sense of the flaws in some of our systems. Doing that we can find out more on how to fix it. I want to share my thoughts and highlight on these systems and talk about how I tried to solve it</p><p>A piece I would like to introduce first would be <a href="https://www.phillyvoice.com/sarah-kunst-talks-diversity-tech-under-30-summit/">Sarah Kunst’s talk on diversity in tech</a> at Under 30 Summit. Sarah is the founder of Proday &amp; is a contributing editor at Marie Claire Mag. She is known for her place in Forbes 30 under 30.</p><blockquote>“The biggest enemy to any startup is inertia,”</blockquote><blockquote>“Nothing happens unless you make it happen. There’s no momentum, no brand recognition, no one knows your website exists, no one knows your company.”</blockquote><blockquote>-Kunst.</blockquote><p>She talked about the difficulties of creating a startup and facing all the problems that come with it. This feeling is what I strongly believe is the root of why there is a gender gap. Imposter Syndrome, the feeling of being a fraud and not being able to get the job done.</p><p>So many people experience this, especially in the tech field. Kunst shows that is possible to overcome it just by diving head first. She reminded us that it’s possible for <strong>anyone</strong> to create a startup. Her spot in 30 under 30 proves that.</p><p>There will evidently be pitfalls in our balance if this doesn’t change soon or later. An embarrassing example would be how Apple’s Health app excluded women’s health, entirely.</p><p><a href="https://twitter.com/Just_Kate">Kate Brodock</a>, CEO and Co-Founder at Women 2.0 and Heavily involved around Women in Tech, who frequently writes about startups and women in tech, that expressed the need for women to design Artificial Intelligence technology alongside men.</p><blockquote>“If we don’t get women and people of color at the table — real technologists doing the real work — we will bias systems.”- Kate Brodock</blockquote><p><a href="https://twitter.com/Just_Kate">Brodock</a> talks about the need for women in AI development because in a male dominated development it creates a tremendous bias mainly because the AI mostly caters to request made by men, focusing more on their minds rather than the minds of women. This is needed to further explain the technology gender gap and why it’s an issue.</p><p>We have to work on fixing this issue in order for us to move forward and be more productive or else we’ll shamefully not progress well and miss out on potential progress because this can call for more opportunity for new job choices for young women looking to take an interest in tech.</p><p>There will be more creations and more inventions, but first, we need to plant the seed for the opportunity.</p><p>I surveyed girls in my High School, Bronx Academy for Software Engineering, and asked the questions regarding their first coding experience and how the environment was in the classroom.</p><p>I was stumped because these girls did get the opportunity of programming, but they all kept saying that it just wasn’t for them.</p><p>Digging deeper I started looking at the teachers in the classroom. I found/experienced that every teacher I came across, only 1 knew how to code and taught with passion.</p><p>I learned a lot from him but ironically enough, he didn’t even apply to be a CS teacher which is weird enough because it was a CS class. I then kept looking at the other teachers and their background turns of most we’re Math majors and was just given the DOE’s curriculum of Computer Science which is hella complicated if you ask me, I walked out of the AP Computer Science test because of how overwhelmed I was.</p><p><strong>I’d wouldn’t want to do CS too if I had only the current teachers and only following the curriculum that they gave them and nothing more.</strong></p><p>so then I came up with a solution…</p><blockquote><strong>We need to start hiring passionate STEM teachers to teach Computer Science and pay closer attention to the students and the curriculum.</strong></blockquote><p>When I presented that solution, it was viewed as a stretch and I can see why. I didn’t know how would I apply it. I almost had to redevelop my whole solution because of it, however, I strongly believed in it.</p><p>When Highschool passed and I graduated. I was still very salty on the feedback I got on my Women in Tech project and I decided to should use my free time to carry out my solution whilst giving back to my community.</p><p>I went back to my middle school <strong>Soundview Academy</strong> and started my own Computer Science After School club with kids from 6th-7th grade.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9cE0tqv4KuZ7VCfhAwatJA.jpeg" /></figure><p>I taught my kids basic <strong>p5.js </strong>&amp; <strong>HTML/CSS.</strong></p><p>I made it a mission to me to not only be here 100% for the kids but to let them know about imposter and always told them they can do it.</p><p>I doubted myself so much because of the fact that there were many disruptions and I’m not even far enough in my career for me to even be teaching!</p><p>The only difference from me and actual teachers are that I was actually passionate about everything I was doing and I made sure I take account of everything regarding my pupil.</p><p>It’s almost the last day for projects and also my last day at Soundview and I thought that nobody will finish. To my surprise, one of my girl students came in excitedly to tell me</p><p>“ Hey, so I kept looking up the p5 stuff at home and finished my project early!”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U_Rl-vvo84H1VIf0Ff0rwQ.jpeg" /></figure><p>Then throughout that period, the same girl started helping all the other girls with finishing their projects. By the end of the day, every single girl in the class completed the project. The same girls that told me it was too hard.</p><p>Words cannot explain the wholesome feeling I felt. She took it upon herself to drive her own learning.</p><p>I only gave her the tools and told her she can do it.</p><p>After my time at Soundview, I made it my mission to teach whenever I can. I successfully proved my solution and gave back to my community.</p><p>My students at Soundview completed their projected because they told themselves they could and their curiosity flourished.</p><p>I now know that I can do anything I want in this field, as long as I tell myself that I can do it.</p><p>…and <strong>I can do it, so I will</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_d0EHoSCkYrgH4j1cr-5jA.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36d1e4dda0a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Twitter Bots  : Part 2, the Legend of Heroku]]></title>
            <link>https://medium.com/@shemar/twitter-bots-part-2-the-legend-of-heroku-c76542585020?source=rss-8b839cca1065------2</link>
            <guid isPermaLink="false">https://medium.com/p/c76542585020</guid>
            <category><![CDATA[heroku]]></category>
            <dc:creator><![CDATA[Shemar Dacosta]]></dc:creator>
            <pubDate>Thu, 21 Mar 2019 20:52:43 GMT</pubDate>
            <atom:updated>2019-03-21T20:52:43.796Z</atom:updated>
            <content:encoded><![CDATA[<h3>Twitter Bots 🐦 : Part 2, the Legend of Heroku</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SxMzcNf3N8EQK4kgNXyeTw.png" /></figure><p>Welcome to Part 2 of my Twitter Bot Tutorial!</p><blockquote>If you haven’t read Part 1, I highly suggest you do! <a href="https://medium.com/@shemar/twitter-bots-part-1-6747b55ac4d">Part 1</a></blockquote><p>Congratz! You made it!</p><p>You may be thinking, <em>“</em><strong><em>how can I host this bot on the internet so it can run by itself?</em></strong><em>”</em></p><p>Heroku is the answer! (ﾉ◕ヮ◕)ﾉ*:･ﾟ✧</p><p>“<strong>Heroku</strong> is a platform as a service (PaaS) that enables developers to build, run, and operate applications entirely in the cloud.”</p><p>Initially, you would need to <a href="https://signup.heroku.com/">sign up &amp; create a Heroku Account</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j5nFwjWR4ikIzOIISUMSCQ.png" /></figure><p>afterward, <strong>install</strong> the <strong>Heroku CLI</strong> you can do so here <a href="https://devcenter.heroku.com/articles/heroku-cli#download-and-install">https://devcenter.heroku.com/</a></p><p><strong>Great!</strong></p><p>Next, head into your project directory and run this line.</p><pre>$ heroku create</pre><p>This creates your Heroku app as well as a Git repository a remote called, heroku</p><blockquote>so when pushing you can do <strong>“git push heroku master”</strong></blockquote><p>Still, in your project directory, you will now need to create a <strong>Procfile</strong></p><pre>$ touch Procfile</pre><p>Heroku uses your Procfile to run your twitter bot ruby file in the cloud!</p><p><strong>Amazing right?!?!?</strong></p><p>Open up your Procfile and enter this code</p><pre>$ worker: bundle exec ruby <strong>your-bot-name</strong>.rb</pre><p>That’s it for the typing coding stuff!</p><p>All you have to do now is deploy your bot to Heroku :D</p><pre>$ git add .<br>$ git commit -m &quot;Deplyed my first bot!&quot;<br>$ git push heroku master</pre><p>Last Step!</p><p>Head over to your <a href="https://dashboard.heroku.com/apps/">Heroku Dashboard</a> and go to <strong>Apps -&gt; Resources</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s-d4TezDRKF7XFx1VTD8qQ.png" /><figcaption>this is my own example</figcaption></figure><p>You now need to <strong>turn off</strong>, the default web dyno and <strong>turn on </strong>your worker dyno! You can easily do this by clicking on the pencil</p><p>That’s it! You’re done ᕙ(⇀‸↼‶)ᕗ</p><p>Thank you for reading my blog! I would love to see all of you guy’s Bots!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c76542585020" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Twitter Bots  : Part 1]]></title>
            <link>https://medium.com/@shemar/twitter-bots-part-1-6747b55ac4d?source=rss-8b839cca1065------2</link>
            <guid isPermaLink="false">https://medium.com/p/6747b55ac4d</guid>
            <category><![CDATA[toms]]></category>
            <category><![CDATA[heroku]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[twitterbots]]></category>
            <category><![CDATA[flatiron-school]]></category>
            <dc:creator><![CDATA[Shemar Dacosta]]></dc:creator>
            <pubDate>Wed, 13 Mar 2019 21:45:36 GMT</pubDate>
            <atom:updated>2019-03-21T20:53:33.271Z</atom:updated>
            <content:encoded><![CDATA[<h3>Twitter Bots 🐦 : Part 1</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ew3b7RTi04f-YRFpD0Vjhw.jpeg" /></figure><p>Twitter Bots are also super cool (▀̿Ĺ̯▀̿ ̿), I had previously tried learning how to make these bots in Node.js a long time ago. I thought that it would be great to re-learn it in ruby this time around :D</p><p>This will be split up into two parts, this being the Twitter bot setup and coding tutorial. Second, being for Heroku.</p><blockquote><em>Graham: “ Let’s do the thing! ” </em>\ (•◡•) /</blockquote><h3>Twitter</h3><p>To start you’d want to head over to <a href="https://developer.twitter.com/">https://developer.twitter.com/</a> in the account you want to make a bot.</p><p>there’s a lot of prerequisites to complete before you are able to create an App.</p><p>when you’re done with that go to <strong>Apps </strong>and the <strong>Create an App</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eoCYcEigGkqhdWQr8vifzA.png" /><figcaption>you would need to complete these questions to get to the next step</figcaption></figure><p>Once done, head over to your new <strong>App</strong> and go to <strong>Permissions</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S_Kx7j-zxvoKB2AwswjPfg.png" /></figure><h3>Change your permissions to access Read, Write, and DMs</h3><p><em>This now allows your app to Post, Search, and recognize DMs</em></p><blockquote>Next step is to head over to Keys and Tokens</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7TSIdvy8izRm5x9dmdTDSg.png" /></figure><p>These are your API Keys/Tokens. You need needs to connect your code to your bot!</p><p>I blurred my keys out because they are meant to be kept a <strong><em>secret!</em></strong></p><p>You can customize your App detail if you want! Other than that, you are done here!</p><h3>The Code</h3><p>First, you’d need to make a new directory and create a <strong>.rb file</strong> in it.</p><p>Preferably name your ruby file after your bot name!</p><h4>I will be showing you how I made <strong>Tom Bot</strong>, a bot that tracks mentions and will tweet the user back if they are in Tom!</h4><blockquote>Tom is my chosen cohort name for my Flatiron Access Labs Cohort ¯\_(ツ)_/¯</blockquote><p>You will need to install the Twitter gem, <a href="https://github.com/sferik/twitter">repo</a></p><p>gem install twitter</p><p>Once installed, go to your bot ruby file and store your keys in this the <strong>config</strong> variable</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/921f0e05e9546038b4cb9a0af29cf96e/href">https://medium.com/media/921f0e05e9546038b4cb9a0af29cf96e/href</a></iframe><p>Next, you now want to set up your <strong>Twitter Streaming Client</strong> &amp; <strong>Twitter REST Client. </strong>We’re also going to squeeze in a variable of our username to use later!</p><blockquote>These two clients have different responsibilities, to find out more.</blockquote><blockquote>Check out this <a href="https://github.com/sferik/twitter">repo</a>!</blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/50e7240997fc2ba6c4d7b0223f16dc5f/href">https://medium.com/media/50e7240997fc2ba6c4d7b0223f16dc5f/href</a></iframe><p>Great! We’re making progress! (づ｡◕‿‿◕｡)づ</p><p>Next, I declared a bunch of <strong>constants</strong> with <strong>an array of names and responses</strong>,</p><blockquote><em>I won’t be displaying the names of my classmates here for they’re own privacy.</em></blockquote><p>So you can just add your own!</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/13ffee73a2543fe640c84a5b1b11ba7d/href">https://medium.com/media/13ffee73a2543fe640c84a5b1b11ba7d/href</a></iframe><p>(ﾉ◕ヮ◕)ﾉ*:･ﾟ✧ Awesome Sauce! ✧ﾟ･: *ヽ(◕ヮ◕ヽ)</p><p>Now for the fun part.</p><p>Now we are going to need to do the following</p><ol><li>Stream all tweets mentioning my Bot.</li><li>Check if at any time in the tweet they mention a <strong>name</strong></li><li>Check if they are <strong>Tom</strong></li><li>Tweet them back with the right response</li></ol><p>Got it? Let’s do it!</p><p>There is hella new stuff! But let us break down the important stuff.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/85791632d7a43d581b980a44f8cdeffa/href">https://medium.com/media/85791632d7a43d581b980a44f8cdeffa/href</a></iframe><blockquote><strong>tS.filter(track: username)</strong></blockquote><p>This <strong>filter</strong> method from the <strong>Streaming Client</strong> takes in a <strong>track parameter</strong></p><p>in it, I chose to track my <strong>username</strong> which it was set in the variable beforehand</p><p><strong><em>We’re on our final step! </em></strong>(☞ﾟ∀ﾟ)☞</p><p>Now all we have to do it add a helper method to find Tom and a conditional that will determine if they’re Tom or not.</p><p>The conditional will then do the tweeting! (づ￣ ³￣)づ</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/11367e2dcec16c0ee48423ee59702fd6/href">https://medium.com/media/11367e2dcec16c0ee48423ee59702fd6/href</a></iframe><blockquote>get_tom</blockquote><p>This method will either return <strong>nil </strong>or a string of the Tom member’s name.</p><p>In the conditional, we then use a method from <strong>Twitter’s REST Client</strong>, <strong>.update</strong></p><p>aaaaaaaand we are done! You created your first Twitter bot :)</p><p>Head into your directory and run this into your terminal</p><p>ruby your-bot-name.rb</p><p>If it runs, try tweeting at your bot :D</p><h4>I encourage you all to check branch off and make your own cool bots!</h4><h3><strong>Check out TOM bot! @RailsTom</strong></h3><p>Resources</p><ul><li><a href="https://developer.twitter.com/en/docs">Documentation Home</a></li><li><a href="https://github.com/sferik/twitter">GitHub - sferik/twitter: A Ruby interface to the Twitter API.</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6747b55ac4d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I  Google Extensions']]></title>
            <link>https://medium.com/@shemar/i-google-extensions-31c7e47f6ab1?source=rss-8b839cca1065------2</link>
            <guid isPermaLink="false">https://medium.com/p/31c7e47f6ab1</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[supreme]]></category>
            <category><![CDATA[googleextensions]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[lil-yachty]]></category>
            <dc:creator><![CDATA[Shemar Dacosta]]></dc:creator>
            <pubDate>Wed, 27 Feb 2019 23:32:05 GMT</pubDate>
            <atom:updated>2019-02-28T15:07:24.794Z</atom:updated>
            <content:encoded><![CDATA[<p>Google Extensions are super duper cool! (ﾉ◕ヮ◕)ﾉ*:･ﾟ✧</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*Zt1zT-t6UWLlJqYikOorsQ.gif" /></figure><p>They are very easy to create and powerful enough to build actual projects!</p><p>We would want to start with a manifest.json</p><pre><em># manifest.json </em><br>{<br>  &quot;manifest_version&quot;: 2,<br>  &quot;name&quot;: &quot;My Extension&quot;, # name of your extension<br>  &quot;version&quot;: &quot;0.1&quot; # version of you extension<br>}</pre><p>You may be wonder <strong><em>“Where do I write my code?”</em></strong></p><p>Adding <strong>content scripts</strong> top the <strong>manifest.json</strong> file</p><pre><em># manifest.json</em><br>{<br>  &quot;manifest_version&quot;: 2,<br>  &quot;name&quot;: &quot;My Extension&quot;,<br>  &quot;version&quot;: &quot;0.1&quot;,<br> <strong> &quot;content_scripts&quot;: [<br>    {<br>      &quot;js&quot;: [&quot;content.js&quot;]<br>    }</strong><br>  ]<br>}</pre><p>In the script file, you could write <strong>ES6(Javascript) </strong>regularly do!</p><p>Now for Shemar Labs!</p><p><a href="https://github.com/spookyvert/shemarlabs">spookyvert/shemarlabs</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DzIlrZ0O6sG44tb4WNVbvQ.png" /><figcaption>Every time you go to accesslabs.org with my extension, it will present me. Sir Shemar The Great III</figcaption></figure><blockquote>here is what I wrote for my Access Labs Extension</blockquote><pre><em># scripts.json</em></pre><pre>(function() {<br>    document.getElementById(&quot;home-top&quot;).style.backgroundImage = &quot;url(https://medium.com/&#39;%3Ca%20href=%22/service/https://i.imgur.com/aFoneLb.jpg&#39;%22%3Ehttps://i.imgur.com/aFoneLb.jpg&#39;%3C/a%3E)&quot;<br>    document.getElementById(&quot;home-top&quot;).style.backgroundSize = &quot;cover&quot;<br>})();</pre><p>with these few lines,</p><ol><li>I was able to enter the <strong>DOM</strong></li><li>Change the CSS for selected element! <em>(by the ID)</em></li><li>it’s also a self-executing function ¯\_(ツ)_/¯</li></ol><p>You may ask again! <strong><em>“How do you know the site has the ID in it?”</em></strong></p><pre><em># my manifest.json</em></pre><pre>{<br>  &quot;manifest_version&quot;: 2,<br>  &quot;name&quot;: &quot;Shemar Access Labs&quot;,<br>  &quot;version&quot;: &quot;1&quot;,<br>  &quot;content_scripts&quot;: [<br>    {<br>      &quot;matches&quot;: [<br>        &quot;<a href="https://www.accesslabs.org/">https://www.accesslabs.org/</a>&quot;,<br>        &quot;<a href="http://www.accesslabs.org/">http://www.accesslabs.org/</a>&quot;,<br>        &quot;<a href="http://*.accesslabs.org/">http://*.accesslabs.org/</a>&quot;,<br>        &quot;<a href="https://*.accesslabs.org/">https://*.accesslabs.org/</a>&quot;<br>      ],<br>      &quot;js&quot;: [&quot;scripts.js&quot;]<br>    }<br>  ]<br>}</pre><p>Google extensions are so cool they even allow you to declare the site you want it to run on!!!</p><p>Loading unpackaged extensions is easy in Chrome.</p><p>You’d want to head over to chrome://extensions and follow these and you&#39;re done :D</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*u0SHCfVYZYtJJJm_qleZgw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*bzYfaz2e-gTnCHdK1nzYQw.gif" /></figure><h4>I made a very simple example of the use of Google Extension,</h4><p>There is a very cool thing you could make with it, think about it. Every extension is made starting off with this, don’t you think you can make whatever you want to? Don’t answer that<strong> YES YOU CAN</strong>.</p><p><em>here is a Supreme Bot made by my amigo Fredi </em>ʕ•ᴥ•ʔ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fxv07h3I6m8EiTahtYpjVg.png" /></figure><p><em>here is an extension that literally gives emails read receipts </em><a href="https://emojipedia.org/top-hat/">🎩</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zJ0x8ed6FNawfedbQhEmPw.png" /></figure><p>The point I want to get across is that the possibilities of Google Extensions are ENDLESS and I encourage you all to experiment with it 😋</p><p>Here are more resources I highly recommend you read up on if you love extension as much as I do (☞ﾟ∀ﾟ)☞</p><ul><li><a href="https://developer.chrome.com/extensions/getstarted">Getting Started Tutorial</a></li><li><a href="https://shiffman.net/a2z/chrome-ext/">Chrome Extensions | Daniel Shiffman</a></li></ul><p>Oh and before I forgot…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/1*Es_5ji8WSXGNYcgRaI-YHA.gif" /><figcaption>you know who you are</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31c7e47f6ab1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>