<?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 Otha Hernandez on Medium]]></title>
        <description><![CDATA[Stories by Otha Hernandez on Medium]]></description>
        <link>https://medium.com/@otha.hernandez?source=rss-1cb262f8ff5d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Mo9CC8Utqhq-yTho.</url>
            <title>Stories by Otha Hernandez on Medium</title>
            <link>https://medium.com/@otha.hernandez?source=rss-1cb262f8ff5d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 19:04:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@otha.hernandez/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[An Introduction to Creating a Synth with Tone.JS]]></title>
            <link>https://medium.com/@otha.hernandez/an-introduction-to-creating-a-synth-with-tone-js-1aa8a51acbd5?source=rss-1cb262f8ff5d------2</link>
            <guid isPermaLink="false">https://medium.com/p/1aa8a51acbd5</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Otha Hernandez]]></dc:creator>
            <pubDate>Thu, 01 Aug 2019 16:42:50 GMT</pubDate>
            <atom:updated>2019-08-01T16:42:50.285Z</atom:updated>
            <content:encoded><![CDATA[<p>My introduction to programming was my interest in something called Max MSP. It’s a visual programming language used to create audio and multimedia applications.</p><p>Since I’ve reached a general proficiency in programming in Javascript, and have a deep passion for music and synthesis the only logical conclusion for me was to discover a remarkable synthesis library called Tone.js.</p><p><a href="https://codepen.io/jakealbaugh/full/qNrZyw/">https://codepen.io/jakealbaugh/full/qNrZyw/</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2Fjakealbaugh%2Fembed%2Fpreview%2FqNrZyw%3Fheight%3D600%26slug-hash%3DqNrZyw%26default-tabs%3Djs%2Cresult%26host%3Dhttps%3A%2F%2Fcodepen.io&amp;url=https%3A%2F%2Fcodepen.io%2Fjakealbaugh%2Ffull%2FqNrZyw%2F&amp;image=https%3A%2F%2Fscreenshot.codepen.io%2F111863.qNrZyw.small.1622f706-b93f-45fe-9612-6eb64386fc32.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/c9ee90f2655c3560a0dfdcaa1dc9a08d/href">https://medium.com/media/c9ee90f2655c3560a0dfdcaa1dc9a08d/href</a></iframe><ul><li><a href="https://beatbucket.io/">Beat Bucket</a></li><li><a href="https://tothepoweroftom.github.io/xysynth/">xysynth</a></li></ul><p>Below is a really basic example of how create new instance of a Tone Synth, and play a middle C 8th note.</p><pre>//create a synth and connect it to the master output (your speakers)<br>var synth = new Tone.Synth().toMaster()<br><br>//play a middle &#39;C&#39; for the duration of an 8th note<br>synth.triggerAttackRelease(&#39;C4&#39;, &#39;8n&#39;)</pre><p>You are, in short, creating a synth object and sending it to your speakers with the built-in to master function.</p><p>Then you are calling the built-in triggerAttackRelease function and passing two arguments in, a specific note and it’s value.</p><p>This will fire as soon as a page renders, so it’s best you attach an event listener to it. If you want to trigger the sound you’ve just created you can add a keydown event to the document and the sound should trigger every time you press a key on your keyboard.</p><pre>var synthA = new Tone.Synth({<br>  oscillator: {<br>    type: &#39;fmsquare&#39;,<br>    modulationType: &#39;sawtooth&#39;,<br>    modulationIndex: 3,<br>    harmonicity: 3.4<br>  },<br>  envelope: {<br>    attack: 0.001,<br>    decay: 0.1,<br>    sustain: 0.1,<br>    release: 0.1<br>  }<br>}).toMaster()<br><br>var synthB = new Tone.Synth({<br>  oscillator: {<br>    type: &#39;triangle8&#39;<br>  },<br>  envelope: {<br>    attack: 2,<br>    decay: 1,<br>    sustain: 0.4,<br>    release: 4<br>  }<br>}).toMaster()</pre><p>During instantiation, every synth object takes options. These options vary depending on the type of synth object you are creating. Read the documentation to learn more about this.</p><p>One of the options is the oscillator. You can specify the type of the oscillator by putting in a string value that matches what is available in the documentation. Some examples of waveforms you can use are sine, sawtooth, square, fmsquare.</p><p>You can change the envelope’s decay, sustain and release.</p><p>There is a lot to cover when it comes to this library!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1aa8a51acbd5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Democracy at Work: an introduction to WS]]></title>
            <link>https://medium.com/@otha.hernandez/democracy-at-work-an-introduction-to-ws-48be01f18b0e?source=rss-1cb262f8ff5d------2</link>
            <guid isPermaLink="false">https://medium.com/p/48be01f18b0e</guid>
            <category><![CDATA[management]]></category>
            <dc:creator><![CDATA[Otha Hernandez]]></dc:creator>
            <pubDate>Wed, 24 Jul 2019 19:01:38 GMT</pubDate>
            <atom:updated>2019-07-24T19:01:38.760Z</atom:updated>
            <content:encoded><![CDATA[<p>Democracy at Work: an introduction to WSDEs</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*c-chfiHMWRt1yPqAB_wsGQ.gif" /></figure><p><strong>DISCLAIMER</strong>: This is a work in progress. I’m not an expert on WSDEs. Due to the nature of what I will be talking about here, there is a lot to unpack and to be established. In the early stages of this article I will attempt to explain why we should organize WSDEs and gradually attempt to lay out (with my limited personal understanding)how a WSDE might work and that is a consequence of the democratic/self-directed nature of such a system. There are no one size fits all answers to each and every hypothetical scenario. This is due to the dynamic nature of each individual’s and/or group’s material conditions.</p><p>What is a WSDE and why should anyone care about it? Should WSDEs be the next startups? The latter question depends on your values.</p><p>A WSDE is an acronym that stands for Worker Self-Directed Enterprise. It is a way of organizing work places.</p><p>The aim of this article is to introduce the idea of <strong>democratically owned and operated work places</strong> and to argue that every work place should be organized in this way, given you care about the values a business such as this would uphold. It is also my aim to try and draw a connection between this and tech startups.</p><p>When I was a kid my dad told me that if I didn’t go to college that I would end up working for and taking orders from someone that was dumber than me. As it turns out I didn’t go to college (because I had to work) and what he said wasn’t entirely wrong. Further, many people who did went to college would probably agree that their bosses and</p><p>My dad’s analysis of my future working conditions was an incomplete analysis that mirrored his own biases about how the world worked according to how he was treated. It was an analysis from the perspective of an immigrant who spoke english as his second language and because of this was often times treated as though he wasn’t as intelligent as others.</p><p>One could say the same about my experiences. In my experiences, and in the experiences of many others that I know, there has often been a “stupid boss”. However, the boss wasn’t just stupid. The boss and the order givers (the managers/supervisors) often had a fundamental lack of care or concern for me or/and us, the worker(s). Part of the reason for this lack of care or concern was because the workers were conditioned into believing that they are held accountable by their superiors and not that their superiors are held accountable by them.</p><p>Imagine if you will that you lived in a society where power was structured in the way your workplace was. Is that the world that you would want to live in? Then why would you want to work in a place like this? We spend most of our waking hours at work, thus we spend most of our waking hours living by the conditions that have been set by our bosses and enforced by our supervisors. These rules are meant to benefit shareholders and board members and often times these conditions are in conflict with the core values of democracy and human decency. The reality is, you might already live in a world like the one I just told you to imagine.</p><p>The beauty of a WSDE is that not all workplaces need to be structurally identical, they only need to be democratic. To a certain extent and depending on the limitations of what their predecessors have voted for, the people who work in that space get to determine what their working conditions are.</p><p>For instance, if the company collectively decide that they need managers and supervisors, the workers will collectively elect them. They can also decide if they want regular elections or whether they want positions of power to be passed down. A worker self directed enterprise is whatever the collective decides.</p><p>In part two of this series I will talk about different examples of co-ops and WSDEs and talk about how that could tie in with startups.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48be01f18b0e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[VIM is pretty great: a brief introduction.]]></title>
            <link>https://medium.com/@otha.hernandez/vim-is-pretty-great-a-brief-introduction-aa98695bb853?source=rss-1cb262f8ff5d------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa98695bb853</guid>
            <category><![CDATA[vim]]></category>
            <dc:creator><![CDATA[Otha Hernandez]]></dc:creator>
            <pubDate>Thu, 27 Jun 2019 16:15:44 GMT</pubDate>
            <atom:updated>2019-06-27T16:15:44.660Z</atom:updated>
            <content:encoded><![CDATA[<p>VIM is pretty great. In fact, anyone who has used it for long enough to actually figure out how it works would probably disagree because saying it’s just “great” might actually be an understatement. For example, they might say something like, “ I love VIM! It’s the best!” or, “It’s the only text editor worth using you big dummy!”, or “I use Emacs actually.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U1ebBdjloi5HABcKYTLbBA.png" /></figure><p>VIM stands for Vi iMproved. It was released in 1991 and originally created by Bram Moolenaar.</p><p>Vi is an in-terminal text editor that doesn’t rely on menus or icons, in fact it is entirely text based. One must rely on the power of its 3 modes, Normal mode, Insert Mode, and Visual Mode. Each of these modes have a very specific role and getting familiar with these modes is highly recommended.</p><p>If you were to open up that terminal of yours and type :</p><pre>$ vim</pre><p>You might see something kinda resembling this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4fjdFJ9MbMDewi3XNpgWkA.png" /></figure><p>This is what mine looks like.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Har3P7CSjG4sfQB3pHJUA.png" /></figure><p>You might be typing at this point and realizing that nothing is really happening. That’s because you are in NORMAL mode. If you want to see some of your typing you’ll have to type I. This will put you in INSERT mode. Once here you can start writing your program, poem, screenplay. No joke you can actually use something called fountain for screenwriters.</p><p>But we are talking about how it can be used for programming here today.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*78AzOtcxsCxh1hPbImhhXQ.gif" /></figure><p>You should be spending most of your time in NORMAL mode so here is a reference of all of the key commands.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*shb4kV000-Rppv3pTQCNLQ.png" /></figure><p>Seems overwhelming? Let’s break things down a little bit.</p><p>The h, j, k, l, w, and b keys are the most basic navigational tools we have here in VIM. The h and l keys are the left and right keys and move your cursor left and right. The j, and k keys move the cursor down and up. The w key moves your cursor (b)ackwards and the w key moves your cursor to the beginning of the next word. Cool right?</p><p>Even cooler we can chain some key combinations to do some pretty cool stuff. if we were to push the number 2 key and the j key it would move us two lines down, given that there are two lines below it to move towards. If you did the same thing and pressed k it would move you two lines upward. In fact, if you were to type any number and and key designated towards movement it would to that thing that many times.</p><p>I am going to make this a series, because I definitely want to do a deep dive on this since there is so much that you can do with VIM. Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa98695bb853" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Instapy or: How I Learned to Stop Worrying and Love Automation.]]></title>
            <link>https://medium.com/@otha.hernandez/instapy-or-how-i-learned-to-stop-worrying-and-love-automation-b8f3d9100a0b?source=rss-1cb262f8ff5d------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8f3d9100a0b</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[instagram]]></category>
            <category><![CDATA[humor]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[Otha Hernandez]]></dc:creator>
            <pubDate>Thu, 06 Jun 2019 14:13:35 GMT</pubDate>
            <atom:updated>2019-06-06T14:13:35.303Z</atom:updated>
            <content:encoded><![CDATA[<p>It’s midnight. You’re in bed. It’s dark, except not entirely. There is one light on. The cold white glow of your phone’s screen illuminates your face. Admit it, this is you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8z_5jsOeVuNt_QpHSJdlHg.jpeg" /></figure><p>It’s 1pm now. You’re at work, or at least your body is. You are holding a warm, rectangular metallic object in your hand, but it isn’t the warmth that makes this object valuable. It isn’t that this object was built with parts and labor from different places around the world that makes you cherish it so. No, cherish isn’t the right word. Perhaps it is something closer to a desire, a type of desire that transcends your awareness of that desire. A special type of desire that is self replicating. It’s a type of desire that always promises an extra bit of its own essence but in a material sense is less valuable than vapor. In fact there is no essence there that is separate of your own. What you’re feeling is actually your self experiencing the essence of your own desire. I’m not sure that there is a word for all of that. I googled it.</p><p>But I’m not just talking about your phone here people, I’m talking about what’s being broadcast on your phone. I’m talking about Instagram folks. Thats right. America’s greatest contribution to the world! The most popular RPG out there where people pretend to be someone who they are not in order to get engagement from strangers. It also happens to be the biggest producer of this country’s most valuable commodity. Validation.</p><p>Now I used to be like you, on my screen late at night or at work, unconsciously producing validation for free but no longer!</p><p>Enter Instapy! Instapy is a tool that automates your social media interactions to “farm” likes, comments, and followers on Instagram. On a high level, the way it works is, you write a script using the built-in Instapy methods molded for your own needs. Just call that program in your terminal and bingo bango you’re done! Sit, back, relax, and watch the likes roll in.</p><p>Actually, you should also learn Python. Also, having at least a fundamental understanding of programming helps too. However you don’t have to be an expert, I’m definitely not, but that won’t stop me from telling you how I think it works!</p><p>First install Instapy using pip. Pip is a package management system built with and for python.</p><pre>pip install instapy</pre><p>Now open up the text editor of your choice.</p><pre># imports<br>from instapy import InstaPy<br>from instapy import smart_run<br><br># login credentials<br>insta_username = &#39;champagnepapi&#39;  # &lt;- enter username here<br>insta_password = &#39;imdepressed&#39;  # &lt;- enter password here<br><br># get an InstaPy session!<br># set headless_browser=True to run InstaPy in the background<br>session = InstaPy(username=insta_username,<br>                  password=insta_password,<br>                  headless_browser=False)<br><br>with smart_run(session):<br>    &quot;&quot;&quot; Activity flow &quot;&quot;&quot;<br>    # general settings<br>    session.set_relationship_bounds(enabled=True,<br>                                    delimit_by_numbers=True,<br>                                    max_followers=4590,<br>                                    min_followers=45,<br>                                    min_following=77)<br><br>session.set_dont_include([&quot;friend1&quot;, &quot;friend2&quot;, &quot;friend3&quot;])<br>    session.set_dont_like([&quot;broccoli&quot;, &quot;mean_people&quot;])<br>    # activity<br>    session.like_by_tags([&quot;natgeo&quot;], amount=10)</pre><p>You might be thinking to yourself, “Hey! I recognize some of those words, numbers, and symbols. You’re well on your way.</p><p>The above is a modified version of a template script from Instapy’s github page. You can find that <a href="https://github.com/InstaPy/instapy-quickstart">here</a>. Let’s break this down a little.</p><pre># imports<br>from instapy import InstaPy<br>from instapy import smart_run</pre><p>First we import Instapy “from” instapy. Import is a way of gaining access to code in another module my importing it. From instapy we are importing Instapy and smart_run. These have built-in methods that give us the power to do everything that we need to do.</p><pre># login credentials<br>insta_username = &#39;champagnepapi&#39;  # &lt;- enter username here<br>insta_password = &#39;imdepressed&#39;  # &lt;- enter password here</pre><p>You’ll notice that you are saving your username and password to a variable. This will be stored here and be used later on in the login process.</p><pre># get an InstaPy session!<br># set headless_browser=True to run InstaPy in the background<br>session = InstaPy(username=insta_username,<br>                  password=insta_password,<br>                  headless_browser=False)</pre><p>We are creating an Instapy session here and using those login variables from earlier as arguments.</p><pre>headless_browser = False</pre><p>This means, when your Instapy opens a browser session (using selenium) it will not be visible and will run in the background. If you set it to true you will be able to witness your default browser open up and log you in to your instagram account.</p><pre>with smart_run(session):<br>    &quot;&quot;&quot; Activity flow &quot;&quot;&quot;<br>    # general settings<br>    session.set_relationship_bounds(enabled=True,<br>                                    delimit_by_numbers=True,<br>                                    max_followers=4590,<br>                                    min_followers=45,<br>                                    min_following=77)</pre><p>This establishes the type of accounts you will be engaging with. Delimiting by numbers, in this case, maximum followers of 4590 and minimum followers of 45. You can set this to whatever you like.</p><pre>session.set_dont_include([&quot;friend1&quot;, &quot;friend2&quot;, &quot;friend3&quot;])<br>    session.set_dont_like([&quot;broccoli&quot;, &quot;mean_people&quot;])<br>    # activity<br>    session.like_by_tags([&quot;natgeo&quot;], amount=10)</pre><p>First line here will exclude specific instagram accounts. It takes an array of string values containing the instagram user’s handle. You can put as many as you like. The second line in this section refers to instagram tags to exclude. This means that when the program scrolls through instagram for you, it looks at the caption and checks to see if the picture contains hashtags that you excluded. If it finds one, it wont like the picture. It also does this for the instagram user’s name. I bet you can figure out what like by tags does on the last line!</p><pre>python3 your-program-name.py</pre><p>In your terminal you add this in the directory where your file lives and you’re done! Of course there is a lot more that you can do with this. You can automate comments, string interpolate the users name into the comment. You can search by hashtags and only like pictures with those hashtags in them. You can set the frequency at which you like or comment.</p><p>That’s it! If you want to learn more about Instapy and how it works check out this link <a href="https://github.com/timgrossmann/InstaPy">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8f3d9100a0b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>